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
texconfig(1)							     TeX Live							      texconfig(1)

NAME
texconfig - configures teTeX or TeX Live texconfig-sys - configures teTeX or TeX Live system-wide SYNOPSIS
texconfig texconfig [ commands ...] texconfig-sys DESCRIPTION
texconfig allows one to configure and maintain TeX in an easy and convenient manner, offering a series of dialog boxes to the user. The tlmgr program has subsumed this function for TeX Live. This program is still supported, but the tlmgr interface is much more actively developed and tested. After choosing settings or options, the appropriate files are changed automatically and the new settings are applied for the user. If needed, copies of files in TEXMFDIST or TEXMFMAIN will be made in the user's TEXMFCONFIG tree. texconfig uses either the whiptail(1) or dialog(1) program to communicate with the user, so must be run in a terminal. For making system-wide changes, which will apply to all users of TeX (for example, default paper size and so on), run texconfig-sys instead. Changed or generated files will be placed in TEXMFSYSCONFIG. (You may need to be root to do this.) texconfig also offers a non-interactive batch mode which can be accessed with the following commands COMMANDS
Commands that accept further options usually display available options if called without them. For example, texconfig dvipdfm paper will inform about valid paper settings. conf Display the system configuration. dvipdfm paper [letter|legal|ledger|tabloid|a4|a3] Set up dvipdfm to use papersize PAPER by default. dvips add PRINTERNAME Create a new (empty) configuration file TEXMFCONFIG/dvips/config/config.PRINTERNAME. This file can later be filled with the mode, offset or printcmd options dvips del PRINTERNAME Remove config.PRINTERNAME dvips mode List available MetaFont modes. dvips [-P PRINTER] mode MODE Change the MetaFont mode to MODE for PRINTER or for all output files (config.ps), if no -P option is given. dvips [-P PRINTER] offset x-OFFSET,y-OFFSET Set printer offset for PRINTER or for all output files (config.ps), if no -P option is given. Offsets must be given with units, e.g. 0pt,10pt You can use testpage.tex from the LaTeX distribution to find these numbers. dvips [-P PRINTER] printcmd CMD Set the printing command for PRINTER or for all output files (config.ps), if no -P option is given. Commands might be lp or lpr. See the description of the o option in info dvips or the -O option in dvips(1). faq Display the list of Frequently Asked Questions about teTeX (and their answers). font vardir DIR, font ro, font rw formats This command allows to edit fmtutil.cnf(5) and (re)creates any new or changed formats afterwards. hyphen FORMAT This command allows to edit the hyphenation configuration file for formats that support this, and recreates the formats afterwards to enable the new languages. Available formats are shown when no FORMAT is given. Note that for formats that use LaTeX's language.dat, e.g. (pdf)jadetex and latex itself, this change is not persistent, since this file is a generated file. You should not use this command in these cases, read update-language(1) for alternatives. init [format] Recreate format or all formats if none is given, and the font information. This is the same as calling fmtutil --byfmt format or fmtutil --all, respectively, followed by updmap. mode-list List available printer modes, together with the printers they were developed for, and their DPI resolution mode MODE Set the default printer mode in /etc/texmf/web2c/mktex.cnf or the respective user file in $TEXMFCONFIG/web2c to MODE. paper [a4|letter] Set the default papersize for dvips, dvipdfm, pdftex and xdvi. The set is restricted because not all programs understand all sizes. pdftex paper [a4|letter] Set the default paper size for pdftex. rehash Call mktexlsr. xdvi paper PAPER Set the default paper size for xdvi. The (long) list is available with texconfig xdvi paper. ENVIRONMENT
To let you change files, texconfig will open the editor specified in the VISUAL or EDITOR variables, or sensible-editor if both are unset. SEE ALSO
whiptail(1), dialog(1), tlmgr(1), tex(1), mf(1), vi(1), EDITOR environment variable. AUTHOR
Thomas Esser TeX Live August 2011 texconfig(1)