At first glance the title, seems to be very sb,ubuntu the selling point is the graphical interface, how still need to install?
In fact, because when you install Ubuntu, you choose the server mode, you do not install the graphical interface by default, and then suddenly, want to manipulate something in the graphical interface, such as the installation of the virtualization tool KVM, want to call Virt-manager, then there is no way, it must be installed.
The first thing to say is that the new version of Ubuntu, has not X11 to manage the graphical interface, now with the LIGHTDM to manage. So a lot of old articles, it is outdated, even if you see done, is meaningless, up the main is UBUNTU16 version, Nature is.
Then come to the point, since it is Ubuntu, of course, is dependent on the powerful apt source, I have not the hands of the cheap to compile so silly.
#先更新一下缓存, or it could be the old data. Apt-get update# then installs the necessary packages, which will be long ... apt-get install-y ubuntu-desktop lightdm gnome-session Unity-greeter# then, start the LIGHTDM, if no accident, your GUI desktop will appear the service LIGHTDM start# by default, the graphical interface after installation, is set to boot, and our purpose is only to use a bit even, # Then shut the boot up. Systemctl disable lightdm.service# run out, you can shut down, you will return to the command line mode service LIGHTDM stop
This is done.
It should be emphasized that the graphical interface will only be displayed on the local display, remote is not possible, do not think too much, but you can remotely start the LIGHTDM service to enable the graphical interface.
Then, in the new version of Ubuntu and Centos/redhat, the old chkconfig mode has been deprecated, and startup and shutdown services can also use the service XXX start/stop this mode, but set boot up and shutdown, It will be replaced by a new model Systemctl enable/disable Xxx.service this method.
Ubuntu Server Installation Graphical interface