VNC Server on Centos 6.4

Step 1 »For KDE:
# yum groupinstall  "KDE Desktop" -y

(tidak perlu diinstall..!)
Step 2 »Install   Tigervnc-Server
# yum -y install tigervnc-server

Step 3 » Create user name and password.
 [root@krizna ~]# adduser user1
 [root@krizna ~]# adduser user2
 [root@krizna ~]# passwd user1
 [root@krizna ~]# passwd user2
  Step 4 » Create VNC passwords for the Users created. [root@krizna ~]# su - user1
 [user1@krizna ~]$ vncpasswd
 Password:
 Verify:
 [user1@krizna ~]$ logout
 [root@krizna ~]# su - user2
 [user2@krizna ~]$ vncpasswd
 Password:
 Verify:
 [user2@krizna ~]$ logout 
Configure VNC configuration for new user (Editor -Vi) vi /etc/sysconfig/vncservers file and add the user name:
VNCSERVERS="2:userx"
you can add more users with multiple different display size for every user.
VNCSERVERS="2:userx 3:usery 4:userz"
VNCSERVERARGS[2]="-geometry 1280x1024"
VNCSERVERARGS[3]="-geometry 1280x1024"
VNCSERVERARGS[4]="-geometry 800x600"
Make it to start automatically on every reboot and start the vnc service.
# chkconfig vncserver on

# /etc/init.d/vncserver start
Starting VNC server: 2:pirat9 xauth: creating new authority file /home/pirat9/.Xauthority
xauth: (stdin):1: bad display name "unixmen-Centos64:2" in "add" command
New 'unixmen-Centos64:2 (pirat9)' desktop is unixmen-Centos64:2
Creating default startup script /home/pirat9/.vnc/xstartup
Starting applications specified in /home/pirat9/.vnc/xstartup
Log file is /home/pirat9/.vnc/unixmen-Centos64:2.log [ OK ]
 
Download and install VNC viewer in your client systems and try to connect to your vnc server. Enter the password and you will able to connect to your server.

copyright: http://ask.unixmen.com/

Post a Comment for "VNC Server on Centos 6.4"