Vnc on Centos 5

useradd vncuser
passwd vncuser
yum groupinstall ” X Window System” “GNOME Desktop Environment”
yum install vnc-server

vi /etc/sysconfig/vncservers
VNCSERVERARGS[2]=”-geometry 1024×768 -nolisten tcp -nohttpd”

service vncserver start
chkconfig vncserver on /* auto start at boot */

vi /home/vncuser/.vnc/xstartup
exec gnome-session &

su vncuser

tail -f /home/vncuser/.vnc/hostname:1.log
.vnc/xstartup: Permission denied

chmod + x /home/vncuser/.vnc/xstartup

service vncserver restart

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.