[Ubuntu only]Make a graphical interface on server

You can watch the video tutorial by clicking here.

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

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 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

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

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

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...