Search tutorial by keyword

How to install VNC on Linux

 

Normally expert level Linux users use CLI or SSH for servers but there happens sometimes that we have lost SSH access and in result we cannot access the server, here comes the importance of tool named as VNC which is GUI for you Linux server 

To install VNC on your Linux server you have to first install gnome by following command

#yum groupinstall "GNOME Desktop"

Then install VNC

#yum install tigervnc-server

To access VNC you have to add a user for VNC let’s say we add vnctest as a user by following command

#useradd vnctest

After giving the password for your user then you have to add this user to your VNC config file

#vi /etc/sysconfig/vncservers

[...]

VNCSERVERS="1:vnctest"

VNCSERVERARGS[1]="-geometry 1024x768"

Now restart the VNC service by 

#/etc/init.d/vncserver restart

Now you can download VNC viewer from google and add the IP:Port for your server with username and password 

Note: Port for VNC server is normally 5901 and for the next user it will be incremented 

Michael Dudli

Cloud Specialist with more than 10 years experience in the Hosting Business.

Website: www.cloudserver24.com

Contact

Ventas

sales@cloudserver24.com

Soporte

support@cloudserver24.com