VNC-Server-CentOS


VNC Server Installation on CentOS 6.5
=============================


# yum install tigervnc-server
# yum install vnc      ----> Optional
# chkconfig vncserver on

# useradd test
# useradd user1        ----> Optional


# su - test
$ vncpasswd

Password:--VNCPasswordFor user test
Varify:
$

# su - user1        ----> Optional
$ vncpasswd        ----> Optional

Password:--VNCPasswordFor user user1
Varify:$

# vi /etc/sysconfig/vncservers

[...]
VNCSERVERS="1:test 2:user1"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1336x768"
#

# service vncserver restart
# vncserver


Edit the xstartup file in .vnc directory:

$ su - test
$ vi ~/.vnc/xstartup      ----> Optional

...
#twm &
exec gnome-session &

$

# service vncserver restart


===================================

From VNC-Client(Remmina RDP Client)

Protocal    :    VNC
Name        :    CentOS
Server        :    IP-Address:1
Username    :    test   
Password    :    password



=====================

Test vncserver config file on server

# egrep -v "^#|^$" /etc/sysconfig/vncservers
VNCSERVERS="2:root 3:test 4:vncu1 5:centos"
VNCSERVERARGS[2]="-geometry 1280x1024 -nolisten tcp -localhost"
VNCSERVERARGS[3]="-geometry 800x600"
VNCSERVERARGS[4]="-geometry 1280x1024"
VNCSERVERARGS[5]="-geometry 1280x1024"

#