Customizing Terminal in Live Linux Distro


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Customizing Terminal in Live Linux Distro
# 1  
Old 11-27-2010
Customizing Terminal in Live Linux Distro

I'm creating a python script to load a configuration to gnome-terminal immediately after a Live Boot. I must run it in super-user mode, because I shut down some services first. After this, I want to configure gnome-terminal. The problem is that if I run it as super-user, it successfully shuts down the services, but it doesn't configure gnome-terminal for some reason. But not runnning the script as super-user, it configures gnome-terminal correctly, but doesn't shut down the services. I'm trying to achieve both in one script, but I'm scratching my head on how to do it. Here is my sip:


Code:
# live start-up script

import os

# stop upstart job and services
os.system("sudo service avahi-daemon stop &")
os.system("sudo service cups stop &")
os.system("sudo service bluetooth stop &")

# start firewall
os.system("sudo ufw enable &")
os.system("sudo gufw &")

# load gnome-terminal entries
os.system("gconftool --load /media/scripts/gconf/gnome-terminal/custom.xml")

# launch terminal
os.system("gnome-terminal")

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Ubuntu

Intriguing Live Distro Sum Changes . . .

Greetings! Here's something which I came across whilst mucking about with a UNetbootin thumbdrive install of 12.04 (I suspect this would apply to other variants as well). Here's the scenario: As an experiment before burning to flash, I generated a comprehensive md5sums.txt for the entirety... (1 Reply)
Discussion started by: LinQ
1 Replies

2. Ubuntu

Customizing XUbuntu 12.04 Live CD - Start my Exe Automatically

Hi all http://ubuntuforums.org/images/smilies/smiley-faces-80.gif, I am customizing the LIVE CD of Xubuntu 12.04.. I removed the ubiquity package and changed the live username and hostname using uck-gui.. I am almost done with the customization. Now after the splash screen , the text in motd... (1 Reply)
Discussion started by: selvarajvss
1 Replies

3. UNIX for Advanced & Expert Users

XUbuntu Live CD customizing using uck-gui. - Splash screen not changing

Hi all, I am customizing the Xubuntu 12.04 live cd.. Using uck-gui , i extracted the iso file and mounted in a location. Can anyone please help me out how to proceed with removing the splash screen ( the screen that gives loading image with xubuntu logo) or to change the logo that is in... (1 Reply)
Discussion started by: selvarajvs
1 Replies

4. Emergency UNIX and Linux Support

XUbuntu Live CD customizing using uck-gui. - Splash screen not changing

Hi all, I am customizing the Xubuntu 12.04 live cd.. Using uck-gui , i extracted the iso file and mounted in a location. Can anyone please help me out how to proceed with removing the splash screen ( the screen that gives loading image with xubuntu logo) or to change the logo that is in the... (1 Reply)
Discussion started by: selvarajvs
1 Replies

5. UNIX for Dummies Questions & Answers

kcore and a live persistent linux usb distro

I have 2 computers, from now on i shall call these computers A and B. Made a live linux distro (bodhi) on A which has 1GB internal memory , because windows is unstable on B, which has 512MB internal memory. I mean with memory the internal memory of the computer, not the memory of the usb... (0 Replies)
Discussion started by: anno
0 Replies

6. Linux

Looking for a very leightweight Live-CD Distro

Hey, weird story, dunno if this is actually possible, but here's what happened: My dad's PC (Windows) is completely full of trash, the hard drive is completely full. After the last Windows update he wasn't able to boot anymore, even from a WindowsCD it didn't seem to work. That's at least what... (7 Replies)
Discussion started by: disaster
7 Replies

7. UNIX for Dummies Questions & Answers

Live/real-time text-file updates in terminal

I want to have a terminal open and have something like a "repeating cat" command running in it for a certain text file (in particular /var/log/system.log). So my terminal will scan or cat the text file every so often or whenever the text file system.log gets written to by the system, it will... (1 Reply)
Discussion started by: guitarscn
1 Replies

8. UNIX for Dummies Questions & Answers

Live Unix Distro Help...

Hello, I was just looking for some help on Unix distros that don't affect my hard disk. Basically what I am looking for is a distro that has all your programming needs (so I can program in Unix) and the basic functions of an OS. I would also like it to include python if possible. BTW, is it... (0 Replies)
Discussion started by: vhab
0 Replies

9. UNIX for Dummies Questions & Answers

Linux distro

Hi I'm have old toshiba laptop(t1900) 486, 4mbRAM and ~120MB of hdd I'm looking for distro to suite my comp, no need for X windows but not enything that runs on FAT, just normal small Linux. Actually, *BSDs will do as well. If u know any distro that would do this I will be thankful for hint ... (4 Replies)
Discussion started by: wolk
4 Replies
Login or Register to Ask a Question
lustatus(1M)						  System Administration Commands					      lustatus(1M)

NAME
lustatus - display status of boot environments SYNOPSIS
/usr/sbin/lustatus [-l error_log] [-o outfile] [BE_name] [-X] DESCRIPTION
The lustatus command is part of a suite of commands that make up the Live Upgrade feature of the Solaris operating environment. See live_upgrade(5) for a description of the Live Upgrade feature. The lustatus command displays the status information of the boot environment (BE) BE_name. If no BE is specified, the status information for all BEs on the system is displayed. The headings in the lustatus information display are described as follows: Boot Environment Name Name of the BE. Is Complete Indicates whether a BE is able to be booted. Any current activity or failure in an lucreate(1M) or luupgrade(1M) operation causes a BE to be incomplete. For example, if there is a copy operation proceeding on or scheduled for a BE, that BE is considered incomplete. Active Now Indicates whether the BE is currently active. The "active" BE is the one currently booted. Active On Reboot Indicates whether the BE becomes active upon next reboot of the system. Can Delete Indicates that no copy, compare, or upgrade operations are being performed on a BE. Also, none of that BE's file systems are currently mounted. With all of these conditions in place, the BE can be deleted. Copy Status Indicates whether the creation or repopulation of a BE is scheduled or active (that is, in progress). A status of ACTIVE, COMPARING (from lucompare(1M)), UPGRADING, or SCHEDULED prevents you performing Live Upgrade copy, rename, or upgrade operations. The following is an example lustatus display: Boot Environment Is Active Active Can Copy Name Complete Now On Reboot Delete Status -------------------- -------- ------ --------- ------ ---------- disk_a_S7 yes yes yes no - disk_b_S7db yes no no no UPGRADING disk_b_S8 no no no no - S9testbed yes no no yes - Note that you could not perform copy, rename, or upgrade operations on disk_b_S8, because it is not complete, nor on disk_b_S7db, because a Live Upgrade operation is pending. The lustatus command requires root privileges. OPTIONS
The lustatus command has the following options: -l error_log Error and status messages are sent to error_log, in addition to where they are sent in your current environment. -o outfile All command output is sent to outfile, in addition to where it is sent in your current environment. -X Enable XML output. Characteristics of XML are defined in DTD, in /usr/share/lib/xml/dtd/lu_cli.dtd.<num>, where <num> is the version number of the DTD file. OPERANDS
BE_name Name of the BE for which to obtain status. If BE_name is omitted, lustatus displays status for all BEs in the system. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/etc/lutab list of BEs on the system /usr/share/lib/xml/dtd/lu_cli.dtd.<num> Live Upgrade DTD (see -X option) ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWluu | +-----------------------------+-----------------------------+ SEE ALSO
lu(1M), luactivate(1M), lucancel(1M), lucompare(1M), lucreate(1M), lucurr(1M), ludesc(1M), ludelete(1M), lufslist(1M), lumake(1M), lumount(1M), lurename(1M), luupgrade(1M), lutab(4), attributes(5), live_upgrade(5) SunOS 5.10 23 Apr 2003 lustatus(1M)