HOWTO install Gnome and VNC on your Linux VPS

  1. Install Gnome Desktop, VNC Server and Xterm:
    1. yum groupinstall gnome-desktop
    2. yum install vnc-server xterm
  2. Create a normal user:
    1. useradd vncuser
    2. passwd vncuser
  3. Login as vncuser and create VNC password:
    1. vncpasswd
    2. exit
  4. Login as root again
  5. Create xstartup script and edit run Gnome desktop:
    1. vi /home/vncuser/.vnc/xstartup
    2. Edit the contents of the file to look like this:

      ( while true; do xterm; done ) &

      # Uncomment the following two lines for normal desktop:
      exec /etc/X11/xinit/xinitrc

      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      xterm -geometry 1024x768 -ls -name "$VNCDESKTOP Desktop" &
      gnome-session &
  6. Edit the file "/etc/sysconfig/vncservers" and add this to the last two lines (change te resolution to what you want):
    VNCSERVERARGS[1]="-geometry 640×480"
  7. Start VNC server: service vncserver start
  8. Connect with a VNC client, using an address like: or
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

SSH without passwords

If you need quick access from your linux desktop to the VPS there is an easy solution that won't...

How to move a website without downtime

You have a website you need to move to a new web server on a new IP address. You intend to keep...

Plesk, Qmail and Spamdyke

Spamdyke installation is quick and easy. It seamlessly installs between Plesk and Qmail. Below we...

Automatic MySQL backup using automysqlbackup

Sooner more than later, you will regret not having proper backups of your MySQL databases....

Download all files and folders from remote FTP server

This is a useful command that will download all files and folders from a remote FTP server:wget...