Installing a VNC Server On Linux Distro.


New Member
Today i'm going to teach you how to install a VNC server on Linux. It's quite simple after you've done it once.

1. Connect to your server using an SSH client (Putty)
2. [root@server] yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"
3. [root@server] yum install tigervnc-server
4. [root@server] adduser username (Will create a new user)
5. [root@server] passwd username (Will set the password of the new user)
6. [root@server] su username (Will login to the new user)
7. [root@server] vncserver (Will launch the vnc server)
Note: it may be xvncserver on some systems
The first time you type vncserver it'll ask you to choose a password. Go ahead and do that & remember it.

Now the VNC server is installed, although it'll require a bit of editing.

there are two ways of doing this.

1. [newuser@server root] cd .vnc
2. [newuser@server root] nano xstartup
3. change twm to gnome-session

1. Download winSCP
2. Connect to your server
3. open this directory home/newuser/.vnc/
4. Open xstartup
5. change twm to gnome-session

Now that you changed the twm to gnome-session reboot your vps and launch your vnc server.
If you dont remember how after rebooting follow these steps.

1. connect to your server using a SSH client (Putty)
2. [root@server] su username ( The new user you created before)
3. [newuser@server root] vncserver

Now you should be able to connect to your server using a vnc client.
I recommend using "TightVNC" you can download that here.

This is how your connect screen should look before connecting.


Cant connect to the internet?
This is one is pretty simple, you must navigate to your/etc/resolv.conf and change your nameservers
# Generated by NetworkManager

Unfinished Transactions remaining
This happens when you try and download something from the software manager.

Run the following to install yum-utils
yum install yum-utils
yum clean all
/usr/sbin/yum-complete-transaction --cleanup-only
Now yum commands can be run without the unfinished transactions warning.
yum update
Hopefully this helped you out, if you need more help feel free to contact me via pm.
Last edited:


Staff member
Thank you for the post.

On the tech side, please email support and ask:

to be converted to VSWAP
that shmpages is at 100,000