Autostart under Linux

Spearhawk

Member
Dec 27, 1999
75
0
0
Hi,
I'm trying to get vncserver to autostart on booting Linux (Mandrake 9.2). I have tried searching on google for it but I haven't found anything. Anyone got any ideas.
Note: I'm a Linux newbie, so telling me to install it as a system service or such won't help much.


Thanks in advance
`Spear
 

Zelmo3

Senior member
Dec 24, 2003
772
0
0
Someone correct me if I'm wrong, but I think you can just edit the /etc/rc.conf and add the executable's name (with full path).
 

rmrf

Platinum Member
May 14, 2003
2,872
0
0
to add in your own programs to start, you need to find the name of the daemon. I'm not sure what the exact program directory and name are, but here is what you would do.

you would open the file

/etc/rc.local in vi

, and add this line in:

/usr/sbin/vncserver start

this will start the vncserver after all the other services have started. also, instead of constantly adding lines of programs to start on bootup, you can create a script and add just one line in the rc.local file, and just keep editing the script with any changes you might want to make.