Installation
apt-get updateaptinstall vnc4server
Enable VNC Service
Vncserver
The first boot will require a password, which can be modified later using VNCPASSWD;
See New ' ****:1 ' Desktop is ****:1 (* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Connect to Remote Desktop
to download the "VNC client" software, enter in the server bar:
<ip>:1 (default port is 1)
Optional: Installing the desktop environment
Installing the XFCE desktop environment
(1) Foundation of installation x-windows: #sudo apt-get Install X-window-system-core
(2) Install Login Manager: #sudo apt-get Install XDm (also available for KDM/GDM)
(3) Install Ubuntu Desktop: #sudo apt-get install Xubuntu-desktop (can also be kubunut-desktop/ubuntu-desktop)
Changing the VNC desktop environment
Vncserver default window manager is TWM, this is a very simple window manager, below we change the desktop to Xfce[gnome/kde]
To back up the original Xstartup file:
CP ~/.vnc/xstartup ~/.vnc/xstartup.bak
Modify the VNC boot file
VI ~/.vnc/xstartup
After "X-window-manager &" Enter:
X-window-manager & sesion-manager & xfdesktop & Xfce4-panel & xfce4-menu-plugin & &&&
Restart Service
Vncserver-Kill :1// here: 1 is the desktop number vncserver:1// generate a new session
Boot from boot
Edit/etc/rc.local on the last line of the file:
su ' /usr/bin/vncserver-name my-vnc-server-depth 16-geometry 1280x800:1 '
Ubuntu installation vncserver for graphical Remote Desktop