How to Take Remote GUI Session of Linux Server ?

Tiger VNC is a high-performance client/server application that allows end users to take remote GUI session (Remote Desktop) of Linux Servers.So that graphical application can be launched remotely using VNC session.It also provides extensions for advanced authentication methods and TLS encryption.Normally tiger VNC is coming along with Redhat Linux distribution DVD and also its available for download from sourceforge.If its not already installed on the system,you use command “yum install tigervnc* ” to install it .If yum is not configured already,its time to configure now.

You can check the installation using below method.
[root@mylinz ~]# yum list |grep tigervnc*
This system is not registered with RHN.
RHN support will be disabled.
tigervnc-server.x86_64 1.0.90-0.10.20100115svn3945.el6
tigervnc.x86_64 1.0.90-0.10.20100115svn3945.el6
Here we will see how to take remote desktop of Linux server if the tigerVNC is already installed on the it  and VNC viewer is installed on windows box.

1. Login to Linux server and initiate the VNC server.If the firewall is enabled,Please make sure its allowing VNC ports and no action required if the firewall is already disabled.
Here i have logged in as root and initiating VNC session for it .

[root@mylinz ~]# vncserver
New 'mylinz:1 (root)' desktop is mylinz:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/mylinz:1.log
[root@mylinz ~]

2. Set the session password

[root@mylinz ~]# vncpasswd
[root@mylinz ~]#

3.Now open the VNC viewer from you windows box and enter the session details.

4.Click on the connect button and enter the VNC password which you have set in Linux server.

5.That’s all.Now you will get remote VNC session of you server like below one.

Any time you can change the VNC password by executing vncpasswd command from Linux console.

To identify you session details ,just grep the vnc process and find your session number.

[root@mylinz X11]# ps -ef |grep vnc
root 6663 1 0 15:56 pts/1 00:00:02 /usr/bin/Xvnc :1 -desktop mylinz:1 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
root 6669 6668 0 15:56 pts/1 00:00:00 vncconfig -iconic
root 7668 6641 0 16:32 pts/1 00:00:00 grep vnc

I am using this tool from last 3 years and i haven’t faced any issue till now.Hope you also would love to use tigerVNC server and tightVNC viewer.

Thank you for reading this article.