Friday, 5 October 2012

Stuck at log in of Ubuntu? Try following



Stuck at log in of Ubuntu? Try following
So there I was working with Ubuntu and smartdomains. I was trying to install some plugins with java. As I rebooted the system I was shocked to see that the desktop would display the log in screen. I was able to put my password but then after accepting the password, the log in screen would reappear and it gets annoying after a number of log ins. So I tried to find a solution. As I found that there was a problem with the current log in screen. So I installed a new by doing the following: 
·         when you get to the graphical login screen hit Ctrl+Alt+F2, thus you get to a textual login
·         put in your name and password (password is not displayed when you type, neither as stars or bullets)
·         type sudo apt-get install gdm and hit enter, give your password and wait to get a line ending with a dollar sign again
·         type sudo dpkg-reconfigure gdm
·         hit enter at the first screen
·         select gdm in the list you get in the second screen with the arrow keys
·         hit the tab button (above the caps lock one), now you see the word Ok highlighted. Hit enter
·         type "sudo reboot" and hit enter. You'll get another graphical login screen, but you'll be able to log in!
·         P.S.: (1) if you are used to run some programs like ifconfig or others which are administrative ones from a terminal emulator (e.g. gnome-terminal) you'd better add a line like PATH="$PATH:/sbin:/usr/sbin" at the end of the .bashrc file in your home directory. You can do it with echo 'PATH="$PATH:/sbin:/usr/sbin"' >> ~/.bashrc. (2) if you want to change back to the other graphical login screen from time to time and see if it was bug-fixed and it works again you can run sudo dpkg-reconfigure gdm and select lightdm and reboot (doesn't look like it works if you just run sudo pkill X)

Cheers! 

No comments:

Post a Comment