View Full Version : Automatically starting a program on bootup of machine
How can I automatically start a program says VNC on boot up of my machine?
Thanx
ZUZU
arkaine23
12-03-2003, 09:12 PM
Write an init script and link it to your default run level's runcontrol folder. Just make a new text file with this in it:
#!/bin/sh
su -c "vncserver -geometry 1024x768 -name knoppix:1" knoppix
name the script something... vnc1024 in this example. Note: that vnc command may not be quite correct.... I'll check on it and edit if if necessary. A good place to save this is /usr/local/bin (so all users with that in their PATH can use it as a regular system command).
chmod +x vnc1024
^ makes it executable for all users.
as root:
ln -s /usr/local/bin/vnc1024 /etc/rc5.d/S98vnc1024
^ links it to the run control for graphical mode.
L2Cache
12-04-2003, 06:00 AM
In kde, you can make a shortcut to the program, put it in the kde autostart folder, and it will run at startup.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.