Skip to main content
Share Your Experience: Take the 2024 Developer Survey
34 votes

Unable to reconfigure locale in raspberry pi

This blog post helped me: Raspberry Pi -- Fixing your Locale http://www.jaredwolff.com/blog/raspberry-pi-setting-your-locale Edit /etc/locale.gen and uncomment the line with en_US.UTF-8 e.g. sudo ...
beepscore's user avatar
  • 441
14 votes

Unable to reconfigure locale in raspberry pi

The other answers weren't working for me but I found one that did. Run sudo nano /etc/default/locale Change it to include these three lines: LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_US.UTF-8 ...
Pikamander2's user avatar
8 votes

locale settings Issues

I was having a very similar issue. Here's how I fixed it: Run sudo nano /etc/default/locale Change it to include these three lines: LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_US.UTF-8 Then ...
Pikamander2's user avatar
7 votes
Accepted

Is it possible to produce a pipe "|" with a US keyboard and the vanilla Raspbian?

| = AltGr + Shift + `~ \ = AltGr + -_ One solution that I've found is to hold the AltGr key and press the `~ key. But I'm not sure if this would work for a normal "right alt" on a US keyboard. ...
Bruno Bronosky's user avatar
5 votes

Cannot display gpio documentation over "man gpio" command

Presumably the gpio utility is not installed. The gpio utility is bundled with the wiringPi library. Install wiringPi (if using Raspbian) with sudo apt-get install wiringpi The gpio command should ...
joan's user avatar
  • 71.1k
4 votes
Accepted

How do you force wiringPI library to use local time instead of UTC time?

The use of UTC time seems to be hardcoded in ds1302 utility. Note the following line: gmtime_r (&now, &t) ; This converts your system time to UTC, before writing it to the DS1302 chip. When ...
Dmitry Grigoryev's user avatar
4 votes

Change default en_GB to en_US (cannot type a pipe key)

I found this post which got me going: https://rohankapoor.com/2012/04/americanizing-the-raspberry-pi/ I'm assuming this was written from an older version of Raspbian because there's a few differences ...
John Dyer's user avatar
  • 169
4 votes

Cannot display gpio documentation over "man gpio" command

You should fix the locale and other internationalisation options (using raspi-config and not trying to manually configure). This issue is unrelated to gpio. gpio was NOT included with Wheezy and ...
Milliways's user avatar
  • 60.3k
4 votes

Get message "Cannot open display "default display", when SSH-ing

in the bashrc file i was sourcing multiple other files. and it turned out to be an xkeymap call that caused the message. Turns out the x in xkeymap is for... -x You can test whether a console login ...
Michael Harvey's user avatar
4 votes
Accepted

Get message "Cannot open display "default display", when SSH-ing

This is a very common sign that there is something in the remote user's .bashrc file that tries to start something that wants to use the X display. That is what the message usually means. A lazy way ...
Michael Harvey's user avatar
3 votes
Accepted

Cannot set keyboard using raspi-config

Here it presents a long list of options in Cyrillic and Greek and non-English languages but nothing that looks appropriate for USA/English, or even anything that looks Western-European. Even under ...
goldilocks's user avatar
  • 59.1k
3 votes
Accepted

Web Browser keywords to automaticly redirect to local websites?

I found a solution with mDNS. The website I used is the following: https://www.howtogeek.com/167190/how-and-why-to-assign-the-.local-domain-to-your-raspberry-pi/ It worked perfectly fine.
Konstantin Kilbel's user avatar
3 votes

locale settings Issues

Scriptable solution: sudo -i echo "en_US.UTF-8 UTF-8" > /etc/locale.gen locale-gen en_US.UTF-8 echo "LANG=en_US.UTF-8" > /etc/default/locale update-locale en_US.UTF-8
Filippo Vitale's user avatar
2 votes

locale settings Issues

I met the same problem when using SSH to connect my PI. I noticed that configuration in PI is different from locale settings in my computer. I change the /etc/default/locale in BOTH pi and computer ...
larrydong's user avatar
2 votes

reconfigure locale failed

this worked for me: $ export LANGUAGE=de_DE.UTF-8 $ export LANG=de_DE.UTF-8 $ export LC_ALL=de_DE.UTF-8 $ sudo locale-gen de_DE.UTF-8 $ sudo update-locale de_DE.UTF-8
dosnbrot's user avatar
2 votes

How to change the keyboard layout console-only

After having installed raspi-config I also had to install keyboard-setup console-data console-setup Running raspi-config afterwards and changing locale settings worked like a charm! See also github
bash.d's user avatar
  • 141
2 votes

how to make browser display chinese characters properly

I then typed the following command sudo apt-get install ttf-wqy-microhei The content of the webpage now correctly shows the chinese language
Kim Stacks's user avatar
2 votes
Accepted

Locale won't change

Directly connected. I actually just got it. I'm reluctant to say "figured it out." but I logged out, and looked at the other login session options. The greeter was set to EN_US.UTF-8 There were 3 ...
j0h's user avatar
  • 2,473
2 votes

How can I turn off Wi-Fi localisation on the Pi 3 B+?

You can simply disable the wifi-country service with: rpi3+ ~$ sudo systemctl disable wifi-country.service But when I enable the service again it has no effect. systemctl status wifi-country.service ...
Ingo's user avatar
  • 42.2k
2 votes

Raspberry Pi cannot set the keyboard to UK English

You are right to mention that sudo dpkg-reconfigure keyboard-configuration should do the thing. If it doesn't work you may have a look at man keyboard. There you will find: The keyboard file ...
Ingo's user avatar
  • 42.2k
1 vote
Accepted

Raspberry Pi cannot set the keyboard to UK English

Thank you for the suggestions. I tried both. After some experimentation I have found that one answer seems to be to cancel the initial welcome screen and do all the setup from the terminal using ...
BrianW's user avatar
  • 21
1 vote

Is it possible to produce a pipe "|" with a US keyboard and the vanilla Raspbian?

The problem is the Raspberry pi foundation Raspbian image ships configured for a UK keyboard, while you have a US keyboard. Keyboards do not send characters to the computer, they send "scan codes". ...
Peter Green's user avatar
  • 6,486
1 vote

Is it possible to produce a pipe "|" with a US keyboard and the vanilla Raspbian?

Press alt + ~` key next to the number 1 key it types a pipe
Gaberpont's user avatar
1 vote

Raspberry Pi and localhost Connection

I assume that you have a Raspberry Pi and a second computer. You want to send data UUID and RSSI from the Raspberry Pi to the second computer. There are three ways to do it that I can think of. ...
MatsK's user avatar
  • 2,811
1 vote

tmux over SSH: locale problem

This issue can have multiple causes. Apart from improperly configured locales and SSH env settings which have already been covered here, my particular case was solved by setting UsePAM yes in /etc/ssh/...
mniess's user avatar
  • 243
1 vote

Local network with several Pis and devices connected

One possible method: choose the most central PI and set this up as a WiFi AP as well as it's normal role. Share a directory via NFS. All other PIs and Androids mount the shared NFS - any alerts are ...
Charemer's user avatar
  • 645
1 vote

Update localization outside of raspi-config

It is possible; in fact you will see lots of questions on this site, usually from people who tried to do it the old manual way and got it wrong. The rest of us don't bother, for something we will ...
Milliways's user avatar
  • 60.3k
1 vote

Voice recognition in Raspberry Pi in custom language

According to this related question on our sister Stack Exchange "Can I get Speech Recognition in language other than English on Android?" Pocket Sphinx might be a possible route to go down. The ...
SlySven's user avatar
  • 3,621
1 vote

Unable to reconfigure locale in raspberry pi

Edit your /etc/locale.gen then uncomment the following line: en_GB.UTF-8 UTF-8 Run: sudo locale-gen en_GB.UTF-8 UTF-8 sudo update-locale en_GB.UTF-8 UTF-8 export LANGUAGE=en_GB.UTF-8 export LC_ALL=...
Abdul Basit's user avatar
1 vote

How can I change the locale?

If you're connecting to Pi via ssh, the machine you're connecting from may be exporting it's locale to your pi. This is another avenue. (On that machine, not on the Pi): sudo nano /etc/ssh/ssh_config ...
atahualpa's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible