[Ubuntu only] Make a graphical interface for you VPS/Dedicated 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 :

#!/bin/sh
unset SESSION_MANAGER
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 :

content

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

If you want to set it as boot and save your settings like geometry etc... please check : http://superuser.com/a/421039
  •  
  • 150 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...

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...

Change permissions using find command

On a Linux server, if you are in need of changing the permissions of a bulk amount of files or...

Change the time of your vps/dedi

It's very easy, you first need to remove the current time file rm /etc/localtime and replace it...