Recently, I met the frozen problem after I log into Ubuntu. I searched around the solutions and summery them here.
What’s the problem?
After boot into Ubuntu 14.04, you enter your credential and the system just hangs up, freezes. If you are lucky, you might see mouse cursor, background wallpaper but nothing else.
Solutions may work
Sincere you are in the frozen system, you can use Alt+Ctrl+F2 to get into command line interface. Then type your username and password to login. Or you can reboot your system and enter the Ubuntu recovery model then choose “root Drop to root shell prompt“. After you get into command line interface, you may like to try the following solutions.
1. Re-install Unity in Ubuntu 14.04
Try the following commands one by one to re-install Unity desktop.
$ sudo su $ apt-get update $ apt-get install --reinstall ubuntu-desktop $ apt-get install unity $ reboot
2. Re-install Graphics Card Driver in Ubuntu 14.04
If the first try doesn’t work (It happened to me), you may need to re-install NVIDIA Driver. Try the following commands one by one.
$ sudo su $ apt-get update $ apt-get install --reinstall ubuntu-desktop $ apt-get install unity $ apt-get remove --purge nvidia* $ reboot
If it doesn’t work for you (It happened to me ToT), you may try the following steps:
$ sudo apt-get install nvidia-current $ sudo reboot
Hope you can login your Ubuntu now. But if your system hang out after install nvidia-current (Black screen with a blinking cursor) and you have installed CUDA on your machine, you may mass up the different versions of nvidia driver. What you need to do is un-installing the Ubuntu’s nvidia driver and install the driver from NVIDIA website. So get into the command lines interface via Ubuntu Recover Model and try these steps.
First, remove the current Nvidia graphics card driver
$ sudo apt-get remove --purge nvidia-*
Second, download & Install Nvidia Driver 331.38 (you may want new version)
For 32 bit (x86):
$ cd && wget us.download.nvidia.com/XFree86/Linux-x86/331.38/NVIDIA-Linux-x86-331.38.run
For 64 bit (x86_64):
$ cd && wget us.download.nvidia.com/XFree86/Linux-x86_64/331.38/NVIDIA-Linux-x86_64-331.38.run
$ chmod +x NVIDIA-Linux-*-331.38.run $ sudo sh NVIDIA-Linux-*-331.38.run $ sudo reboot
Finally, I got my problem fixed. Hope it will help.