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 - 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:

  2. edit ~/.pam_environment:


Logout and Login or Reboot.

share|improve this answer
Nano is also installed by default. :-) – LiveWireBT May 7 '12 at 17:29
If you want to understand what changing these variables means: – 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/ too, as it might conflict. – stragu Jun 22 at 4:15

Your Answer


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.