Ubuntu server if you want to use a graphical interface commonly used in 3 kinds of desktop environment (UBUNUT-DESKTOP/KUBUNUT-DESKTOP/XUBUNTU-DESKTOP), login Manager also has the corresponding 3 kinds of (GDM/KDM/XDM), I prefer to use Ubuntu and GDM.
PS: If the software is now installed when prompted to fail, indicating that the source software is missing the package, you can first try Apt-get Update software source after the attempt to install. If you still do not, you need to replace the software source.
First, the foundation of installation X-windows
#apt-get Install X-window-system-core
Second, install the login manager
#apt-get Install GDM
Third, install Ubuntu desktop
#apt-get Install Ubuntu-desktop
Complete the above 3 steps, the desktop environment is completed. Next, configure VNC to connect remotely
Iv. installation of Vncserver
#apt-get Install Vnc4server
V. Open VNC Service
The first time you start, you will be prompted to enter the VNC login password
#vncserver
Seeing the New ' ****:1 ' Desktop is ****:1 (* * * on behalf of the host name) means that the start VNC succeeds and a. VNC directory is generated in the home directory
Vi. Configuring VNC configuration Files
Vncserver The default window manager is TWM, which is a rudimentary window manager that can only use the command line; so we're going to change the desktop to gnome.
Edit Xstartup File
#vim ~/.vnc/xstartup
Comment out the "X-window-manager &" line and add a line to "Gnome-session &" below, and if KDE is installed, modify it to "Startkde &".
Seven, restart VNC service
#vncserver-kill:1 # #先kill掉原来的进程
#vncserver # #再重新启动服务
The above operation completes the server-side configuration, as long as the VNC client installed on this machine, enter ip:1 in VNC server to connect.