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