38

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.

44

Edit two files:

  1. sudoedit /etc/default/locale:

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

    LANG=en_US
    LANGUAGE=en_US
    

Logout and Login or Reboot.

  • 5
    Nano is also installed by default. :-) – LiveWireBT May 7 '12 at 17:29
  • 3
    If you want to understand what changing these variables means: help.ubuntu.com/community/Locale – yuric Apr 29 '13 at 17:25
  • 4
    Also need LC_ALL=en_US.UTF-8 – hlcs Jan 19 '16 at 0:28
  • 2
    If using KDE, you might want to check ~/.KDE/env/setlocale.sh too, as it might conflict. – stragu Jun 22 '16 at 4:15
  • 2
    This also works for "Bash on Ubuntu" on Windows 10. – CodeMonkey Oct 18 '16 at 6:46

protected by Byte Commander Dec 24 '16 at 20:28

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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