auto starting program as root?
if a that only can be started by root, needs to auto start once the GUI Desktop has finnished loading, how would i go about it?
thanks in advance... |
There are a few ways you can go about this:
1. Use kdesu / gnomesu in .xinitrc / wm startup script Code:
kdesu command_to_run & 2. Make a sudo entry for it, with no password required. Example entry in /etc/sudoers: Code:
username ALL=NOPASSWD: /path/to/command --to --run Code:
sudo /path/to/command --to --run & |
You could also write a script and put it somewhere in /etc/init.d or /etc/rc.d depending on your distro. There is also a file somewhere in /etc/ called rc.local where you can put scripts to start programs when your system boots up.
|
Quote:
|
Quote:
|
Quote:
thanks in advance... |
Quote:
The kdestartup file is also a good one of you happen to use KDE. However, if the app isnt a GUI app, or doesnt in somehow modify your X session or something, then you can start it up at any time, but since you wanted a way for starup after X is loaded, I presumed that you meant a GUI app (: |
All times are GMT -5. The time now is 04:25 PM. |