Put this in a file named "vncstart" and give it executable permissions:
/usr/bin/vncserver :1 -geometry 1024x768 &> /dev/null & ##Uncomment the next line to make it run for various users #su - username -c "/usr/bin/vncserver :2 -geometry 1024x768 &> /dev/null &" Put this file in your /etc/init.d folder. Then run the following command from the command line: update-rc.d vncstart defaults 99 This will automatically add it to the rc.d directories for you. See the manpage for updaterc.d for more information. Then you can either reboot or run invoke-rc.d vncstart start to see if it works. HTH Zach -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Matt Pierce Sent: Monday, July 19, 2004 3:40 PM To: [EMAIL PROTECTED] Subject: Linux Start UP Scripts Hello all, Was wondering if anyone had a vncserver startup/shutdown script that they wouldn't mind sharing? I am running SuSE Enterprise Server 8 with the default vnc with the distro. I'm a new linux user, and have not quite figured out how to write scripts yet, so if you have one, it's appriciated. I can learn from that. Thanks. -- Matt Pierce Assistant Network Administrator Brazos County IT Department [EMAIL PROTECTED] 979.361.4469 *****Confidentiality Notice***** The information in this email may be confidential and/or privileged. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and its attachments, if any, or the information contained herein is prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your computer system. Thank you _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 7/5/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 7/5/2004 _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
