Run the following command in the command environment:
Apt-get Update//updating software Library
Apt-get upgrade//upgrade software
Apt-get Install Ubuntu-desktop//installing Ubuntu Desktop System
Installation time is a bit long and you need to wait patiently.
Reboot the desktop environment cannot be logged on with the root account after a reboot.
Restart and then use CTRL + ALT + F1 to enter the command line using root login
Run command
sudo vi/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf//Open 50-ubuntu.conf
Add at the end
Greeter-show-manual-login=true//Allow switch User login
Allow-guest=false//Disable guest
Full code
[seat:*]
User-session=ubuntu
Greeter-show-manual-login=true
Allow-guest=false
Save Restart (use the ESC key to switch to the last line mode after editing in VI mode, and then enter: Wq exit Edit) found that the root user logged on with a warning
Modify the/root/.profile file (edit in the GUI to check Show hidden file)
Replace MESG n with tty-s && mesg n
Full code
# ~/.profile:executed by bourne-compatible login shells.
If ["$BASH"]; Then
If [-f ~/.BASHRC]; Then
. ~/.bashrc
Fi
Fi
Tty-s && MESG N | | True
After saving reboot, you can log in to root in desktop environment perfectly.
Ubuntu Installation Desktop Environment