Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Lets say you want to start the application 'klipper'.
If you add it to your .bashrc, klipper will be started each time you open a terminal. This is clearly not what you want.
Next, you could use the files .xprofile and .xsession. Just add 'klipper' in one of those files, and you will find klipper starting up each time your X session starts up. This is a decent way to start your program at login.
Lastly, if you want to start a program at bootup instead of login (maybe its a server and not a desktop application), you might want to add it in your /etc/rc.d/rc.local file.
[edit: I'm not near my machine right now, am I mixing up .xprofile with .xinitrc?]
Last edited by indeliblestamp; 01-23-2008 at 06:26 AM.
If I understand your problem correctly, you want to start your terminal emulator (such as gnome-terminal, xterm, rxvt, konsole, etc). Bash will run inside the terminal.
So try with any one of those 4, they're the most common. A terminal should pop up as soon as you login into Gnome then.
Please correct me if I misunderstood.
Also, to load your applications after Gnome is fully loaded, try using the .xsession file.
Oh, glad that bit worked.
I did some googling and discovered that .xsession is primarily used to kick start lightweight window managers (and some applications before the wm itself starts). Apologies, that may not be the appropriate solution for you.
In your case, since you use Gnome, this link has exactly what you need. If you login as each user and follow the steps, you can configure a different set of apps to start for each of them.
yeah, use that, and if you need to run as a user, start in command-line mode, login as root, the su to the user account and start gnome from there. that is if you don't have the users around to let you into their account.
Sorry, I don't use Gnome so I can't help you with the location. Your best bet is probably digging around in ~/.gnome.
About the apps loading before Gnome fully does, I can suggest a temporary workaround: Say you want to start firefox. Create a shell script in ~/bin or /usr/local/bin (or anywhere in $PATH) called firefox-delayed, and put a sleep for a few seconds in it before running firefox. Give it +x permissions and use it in Gnome's application starter instead of the usual firefox binary.
Of course if someone else here has a better suggestion that would be much better.