[Ubuntu only]Make a graphical interface on server

Do the following command in the order and one per one :

sudo apt-get install gnome-core vnc4server

(The bellow command will ask you a password)

vncserver;vncserver -kill :1

Then edit the config file (~/.vnc/xstartup) using nano or any other texteditor (such as vim/vi)

nano ~/.vnc/xstartup

And replace all lines by this :

gnome-session --session=gnome-classic &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

the content need to be like that :


Once it's done do from the same user the command (You can replace 1680x945 by your geometry screen) :

vncserver -geometry 1680x945

The above command start the graphical interface
if you want to stop it, just use this command :

vncserver -kill :1

To know how to connect to the graphical interface, please follow this tutorial : https://clients.hostsailor.com/knowledgebase.php?action=displayarticle&id=50

If you want to set it as boot and save your settings like geometry etc... please check : http://superuser.com/a/421039

  • vnc ubuntu
  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Backup and Restore cPanel Accounts via SSH

a. How to create a backup of a cPanel Account via SSH?   1. Log-in to the SSH as the Root user....

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...