View Full Version : [SOLVED] What file do I edit to run some commands at startup?
August 10th, 2008, 02:13 AM
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?
August 10th, 2008, 02:15 AM
You can add commands to be executed on startup here:
system / preferences /sessions
August 10th, 2008, 02:23 AM
Yeah! I got it, it's /etc/rc.local
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.
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.
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>
Got beat to it =\
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.