Click to See Complete Forum and Search --> : Start up programs


PravusMentis
07-17-2001, 11:30 AM
Is there anyway in some sort of config, or in a script to have Linux start up programs at boot (Ex Editor, Graphics Program, and also open an FTP to a specific site) so i can save time on going and opening each one of these

mrBen
07-17-2001, 12:08 PM
Um, yes.

I am assuming that you are running from GUI. KDE has it's own AutoStart folder (or it used to, but I'm not sure in 2.1) which acted like the startup folder in Windows. You should find in your home directory some config files for your desktop startup - they are normally hidden (. dot) files - use ls -a at the command line to see all the files there. And I think that one of them is used to set up your desktop - I think mine is in the .Desktop folder, but I can't remember, and you should be able to add some commands to there, like ex, gimp, etc. If you put an & after the command, then it will also startup in the background, which I think is supposed to be good.

So add something like this:

ex &
gimp &
konqueror ftp://my.ftp.site/ &


Can someone else fill in the blanks for me. FoBoT? (You seem to be doing that for me today, cheers)

Gray_Race
07-17-2001, 02:19 PM
I run mandrake 8.0, so I don't know how general this is, but for startup programs I edit my .xsession file in my home user directory. Before the exec enlightment(or whatever windowmanger you use) you put in the command you want to run. For example:

gkrealm &


Hope that helps some.

PravusMentis
07-17-2001, 02:25 PM
Thanks yes this helped greatly :)

ZacMacCrac
07-17-2001, 02:26 PM
I assume that you're not using any GUI as you didn't write anything about it.

If you need certain programs to start whenever you boot, you can simply add symlinks to their binaries in the directories /etc/rcn.d where n is a number from 0 to 6 and stands for the runlevels the system has. The directories might be named slightly different for your distro (in my case it's Debian), but looking at /etc should give you the idea.