Wednesday, June 27, 2012

TigerVNC on CentOS 6

According to the Tigervnc wiki, TigerVNC is a high-performance, platform-neutral implementation of VNC (Virtual Network Computing), a client/server application that allows users to launch and interact with graphical applications on remote machines. TigerVNC provides the levels of performance necessary to run 3D and video applications, and it attempts to maintain a common look and feel and re-use components, where possible, across the various platforms that it supports. TigerVNC also provides extensions for advanced authentication methods and TLS encryption.

To install TigerVNC, follow this step.

1. Create the repository config file /etc/yum.repos.d/slce.repo:
[slce]
name=Scientific Linux Cyrillic Edition
baseurl=http://downloads.naulinux.ru/pub/SLCE/6x/$basearch/CyrEd/RPMS/
enabled=0
gpgcheck=1
gpgkey=http://downloads.naulinux.ru/pub/SLCE/RPM-GPG-KEY-linux-ink
2. Install tigervnc-server rpm package:
# yum --enablerepo=slce install tigervnc-server
3.Create VNC user
As root :
# useradd lombok
# passwd lombok
4.Set VNC's user password
Switch user into the account for each user, and run: vncpasswd This will create a .vnc directory.
[~]# su - lombok
[~]$ cd .vnc
[.vnc]$ ls
passwd
[.vnc]$ exit
[~]
#

4. Edit the server configuration
Edit /etc/sysconfig/vncservers, and add the following to the end of the file.
VNCSERVERS="1:lombok
VNCSERVERARGS[1]="-geometry 800x600"

5. Edit your iptables

6. Start the VNC Server

# /etc/init.d/vncserver start

7.Testing VNC Server

As user lombok :

# vncserver :1

At this point, your server is ready to accept connection from another computer.



Connect to TigerVNC Server

Start VNC Viewer Client, because vncserver starting at display 1 (vncserver:1) you must connect using IP:display_number, in this case : 192.168.110.75:1



Just enter user lombok password and press OK


And....


Optional

Another Option fow VNC Viewer is TightVNC Java Viewer version 2.5.0


Enter user lombok password and press login.


End.

No comments: