First, install and enable the VNC server:
# yum install tigervnc-serverSet VNC password for your user:
# yum install xorg-x11-fonts-Type1
# chkconfig vncserver on
# su - USERAdd the following lines to the following file:
# vncpasswd
# exit
# vim /etc/sysconfig/vncservers
VNCSERVERS="1:USER"Add port 5900 (TCP and UDP) to your firewall allow rules (I just did this graphically at the machine's physical terminal, but you can use iptables in the CLI).
VNCSERVERARGS[1]="-geometry 800x600"
See if VNC server comes up:
# service vncserver restartEdit the user's vnc configuration to replace the "twm &" line with the following:
# service vncserver stop
# vim /home/USER/.vnc/xstartup
exec gnome-session &Test VNC server startup again:
# service vncserver restartAt this point, you should be able to point a VNC client at your machine, and you will automatically be logged-in. Note, it usually takes a little time... up to a minute or so, typically.
No comments:
Post a Comment