PDA

View Full Version : [SOLVED] What file do I edit to run some commands at startup?



ovimunt
August 10th, 2008, 02:13 AM
Hi,

I know there's aa rc.something file where you can add commands you want to run at startup. Unfortunately I can't remember the exact name or the location of the file. Can anyone help?

Thanks

Diabolis
August 10th, 2008, 02:15 AM
You can add commands to be executed on startup here:
system / preferences /sessions

ovimunt
August 10th, 2008, 02:23 AM
Yeah! I got it, it's /etc/rc.local

aloshbennett
August 10th, 2008, 06:31 AM
Changing /etc/rc.local would affect all the users of the machine which doesnt matter if its a single user desktop :)

If you add your script under system/prefs/session, it would run only for ur user account.

I think it adds to .profile file under your home directory.

sdennie
August 10th, 2008, 06:48 AM
Also note that programs that depend on having a DISPLAY variable set will not work from /etc/rc.local. For minor tweaks, I also recommend using System->Preferences->Session.

Frak
August 10th, 2008, 06:53 AM
Add it to System -> Preferences -> Session, click New -> and add the path to the script. Make sure the script is executable by running

chmod +x <script/path/here>

EDIT
Got beat to it =\