Install the compilation tool chain, modify the environment variables after the restart, may be due to misoperation caused by the power-on input password can not enter the desktop.
Press CTRL+ATL+F1 to enter the console.
Try the following methods to resolve
Method 1:
1, enter the system (in the input password of the interface)
2), hold down Ctrl+alt+f1 (F1~f7 is a different mode, the first 6 for console mode)
3), according to the prompts to enter the user name, password
4), enter etc directory (CD/ETC)
5), Edit profile file (/usr/bin/sudo VI profiles)
6, delete the inside of the code you added to the problem (check the X key to delete)
7), Save and exit (type shift+: Wq and enter)
8), repeat 2 to enter the window interface password can be
Method 2:
First, edit the sudo vi/etc/default/grub file and find the following line:
grub_cmdline_linux_default= "Quiet Splash"
Comment It out (available when you are ready to restore)
#GRUB_CMDLINE_LINUX_DEFAULT = "Quiet Splash"
Then, add the following
grub_cmdline_linux_default= "Text"
Save File and exit
Finally, use the sudo update-grub command to make the configuration effective
Reboot start the system.
Method 3:
Re-install the Ubuntu GNOME environment
Power on, hold down SHIFT and enter grub
Open Network
Enter root shell command line
Enter:
sudo apt-get remove ubuntu-desktop
and then enter:
sudo apt-get install ubuntu-desktop
Installation Completed, login, gnome back, file settings, etc. have not changed.
Complete