FW: How to add vnc starting to the service

Hernandez, Magdalena MHernandez "at" westlinemed.com
Wed Aug 4 19:57:01 2004


These are instructions I use install VNC on Linux. They work great. Good
luck.
VNCSERVER Configuration on Linux
To upgrade from an existing system to 3.3.7

Step 1 - Back up important files / Remove existing install
	a) save the init script
		# cp /etc/rc.d/init.d/vncserver /root
	b) remove the vnc common rpm from the system
		# rpm -e vnc
	c) remove the vncserver rpm from the system
		# rpm -e vncserver

Step 2 - Install the source RPM
	a) obtain the 3.3.7 rpm file 
	b) install the source rpm
		# rpm -ivh vnc-3.3.7-1.src.rpm

Step 3 - Build the source RPM into a binary RPM
	a) go to the spec directory
		# cd /usr/src/redhat/SPECS
	b) build the binary RPM
		# rpmbuild -bb vnc.spec

Step 4 - Install the new binary RPM
	a) go to the rpm directory
		# cd /usr/src/redhat/RPMS/i386
	b) install the rpm
		# rpm -ivh vnc-3.3.7-1.i386.rpm

Step 5 - Restore the init script and start
	a) move the init script back (get file from LTSP server by scp. #scp
hostname:/etc/rc.d/init.d/vncs*)
		# mv /root/vncserver /etc/rc.d/init.d
	b) restore the link to start it automatically

	c) start vnc (only do step c if VNC is already installed on box)
		# /etc/rc.d/init.d/vncserver start

		# ln -s /etc/rc.d/init.d/vncserver
/etc/rc.d/rc3.d/S35vncserver
1.First make sure that the installation of linux has included the vncserver.
If not download from http://www.realvnc.com/ or you could try loading it
again in server settings and services in XWindows. 
2.Go to /etc/sysconfig 
3.Edit vncservers 
4.Go down to the line that says #VNCSERVERS=1:myusername" 
5.Go to the next line and type 
6.VNCSERVER="1:username" (example root). Make a space before the quotes if
you want to add another user and type 2:username, etc. 
7.In the next line type ARGUS="geometry 1024x768 -alwaysshared " 
8.Save 
9.Make sure there is a file in /etc/init.d. IT should be called vncserver 
10.Then type /etc/init.d/vncserver start 
11.Sometimes you need to put in the vnc password before it will start 
12.Type vncpasswd 
13.Type in password. 
14.Lastly type /etc/init.d/vncserver restart 

	

Magdalena Hernandez
Network Consultant
Westline Medical Management



-----Original Message-----
From: wangshifang_2008 "at" yahoo.com.cn [mailto:wangshifang_2008 "at" yahoo.com.cn]
Sent: Tuesday, August 03, 2004 5:09 PM
To: vnc-list "at" realvnc.com
Subject: How to add vnc starting to the service


Hi:
  I installed vnc3.3.7 on linux,and vncviewer : win2000,
 but every time when I restart my linux ,I must start the vncserver
manualy,I want to make it auto start when my computer restaring,
what should I do?
Thanks



---------------------------------
Do You Yahoo!?
C "at" E.CwPGS&SP>!SP#,"R;KQ"KQ1iC "at" M<!"Q^M<:M?aM<
100UWSJOd9;2;9;SC#?QE;"5gSJWTVz@)H]#!
_______________________________________________
VNC-List mailing list
VNC-List "at" realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list