Wiki for setting up VNC Server

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Wiki for setting up VNC Server

Postby rgmhtt » Mon Jan 12, 2009 12:13 pm

Code: Select all

yum install vnc-server
(optionally also install vnc).

Log into each UserID that you will to access via VNC and run vncpasswd. This creates the initial vnc files and sets the VNC login password for the UserID. Note that VNC only uses the FIRST 8 Characters of the password. Longer passwords are truncated to 8 characters!

Edit /etc/sysconfig/vncservers, uncomment the VNCSERVERS line and list the UserIDs that will be accessible via VNC:

Code: Select all

VNCSERVERS="2:root 3:me 4:spouse"
Note that the display number (2, 3, or 4 above) maps into port numbers: 590n (5902, etc.) If you enable iptables, you will have to allow these ports.

[Optional, uncomment the VNCSERVERARGS line and set the display to a little smaller than your client's (e.g. 1550x1100) so that you do not have scroll bars on the client window.]

Now start then stop vncserver:

Code: Select all

service vncserver start service vncserver stop
Log into each UserID and edit ~/.vnc/xstartup, changing the last line to:

Code: Select all

exec gnome-session &
Now really start vncserver.

Code: Select all

service vncserver start
Set it to start at boot time:

Code: Select all

chkconfig --add vncserver
And you are ready to vnc to your hda server. At this point you can stop running X locally by editting /etc/inittab:

Code: Select all

id:3:initdefault:
This saves memory and CPU on your hda server.

geardog
Posts: 1
Joined: Tue Feb 24, 2009 11:28 pm

Re: Wiki for setting up VNC Server

Postby geardog » Tue Feb 24, 2009 11:30 pm

for those that haven't set a path to start service "/sbin/service vncserver start" may be required

Who is online

Users browsing this forum: No registered users and 66 guests