Thursday, September 24, 2009

Ubuntu cant login after keyboard layout changed! problem solved using autologin gdm.conf

Some days ago i am reading blogs from the bloggers of bhilai,one of my favourite blog is "aarambh" by mr sanjeev tiwari.I decided to write a post to make Ubuntu linux a complete hindi desktop,i changed language from English to Hindi and keyboard layout to bolnagri(hindi) (this is the mistake).After reboot i cant login because user name and password are in English and i cant type is english.
I tried many things,changed xorg.conf file,reconfigure xserver etc but nothing happen finally i got an idea that if i can login automatically into system (gdm ) then i can change setting back to English layout.
following are the step by step procedure to autologin ubuntu using gdm.conf

Step 1.boot the system,you can see login screen,
Step 2.Switch to console using Ctrl+ALT+F1.
Step 3.login using your username and password(you can login with username
and password in console).
Step 4.Run the following command to edit gdm.conf file.

sudo nano /etc/gdm/gdm.conf

find the line

autologin=false

edit this with following:
# Automatic login, if true the first attached screen will automatically logged
# in as user as set with AutomaticLogin key.
AutomaticLoginEnable=true
AutomaticLogin=mahendra

mahendra is username of my system.

Step 5.save the file and restart gdm.

to stop the gdm

sudo /etc/init.d/gdm stop

to start the gdm

sudo gdm

done! now you can login into system and change the keyboard layout.

if you cant then restart your system next time you are automatically logged in.

if you face any problem comment me!

No comments: