Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using system settings I changed my language to Arabic and deleted the English language from the settings. Then the computer lagged and it logged out - now I can't log back in because the login is in Arabic.

So is there a way to default my language via terminal, default the login password language, or login via terminal which is still in English. I only have access to guest and a terminal.


I changed the pasword to something that could be translated into arabic http://www.psychocats.net/ubuntu/resetpassword - then loged in and used system settings to default.

share|improve this question

If you are familiar with using vi from terminal, try the following:

  1. edit /etc/default/locale:

    LANG="en_US"
    LANGUAGE="en_US:en"
    
  2. edit ~/.pam_environment:

    LANG=en_US
    LANGUAGE=en_US
    

Logout and Login or Reboot.

share|improve this answer
3  
Nano is also installed by default. :-) – LiveWireBT May 7 '12 at 17:29
2  
If you want to understand what changing these variables means: help.ubuntu.com/community/Locale – YuriC Apr 29 '13 at 17:25
    
Also need LC_ALL=en_US.UTF-8 – hlcs Jan 19 at 0:28
    
If using KDE, you might want to check ~/.KDE/env/setlocale.sh too, as it might conflict. – stragu Jun 22 at 4:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.