29

I've downloaded the newest Raspbian release and it is a little bit different than the original one.

In particular, it gives a whole bunch of options to configure it the first time you boot it up. I'm just trying to do something simple like change the locale and I just don't understand what is happening. I hit enter on locale then it asks to choose a locale to be generated, so I scroll down to en-US.UTF8 UTF8 and hit enter again. Rhen it brings me to a screen that says lets you select default locale for the system enviorment: None or en_GB.UTF8 Which one should I select?

EGHDK
  • 1,351
  • 3
  • 13
  • 14

4 Answers4

31

Since you are in the United States I would enter none. You can change this after your Raspberry Pi has finished the setup process if needed.

In order to set the locale after you've setup Raspian run the following command to select the locale you want to generate.

$ sudo dpkg-reconfigure locales

It will then ask you which one should be the default. If you access your system via SSH it's advised to set it to none.

References

  1. Locale - Debian Wiki
  • Ooh! Thanks for that last line "If you access your system via SSH it's advised to set it to none". That'll come in handy down the line. – EGHDK Jul 18 '12 at 03:44
  • I just posted what I read, you may want to read the whole article to see if there are any other gotcha's. –  Jul 18 '12 at 03:50
  • 3
    Why does SSH affect locales? – Alex Chamberlain Jul 18 '12 at 06:26
  • 1
    @AlexChamberlain Though it is not likely to be an issue with the Pi in the vast majority of cases Locales controls how numbers and dates are formatted (i.e. mm/dd/yyyy vs dd/mm/yyyy). So if a computer is in America but accessed by a European user they can get dates and numbers formatted correctly for them. – Steve Robillard Jul 18 '12 at 07:43
  • The Debian Wiki reference is crucial here: it tells you how to configure your console (so direct access, not through a SSH connection) to default to a locale if nothing has been set (like through a SSH connection); the ${LANG:=<locale>.<codec>}; export LANG syntax in /etc/profile is important there. – Martijn Pieters Feb 05 '15 at 10:45
  • Setting to 'none' gave me a lot of warnings (13 lines when running raspi-config again), so I set the default to en_US.UTF8. See the answer by @OutsourcedGuru. – Roger Dueck Jul 31 '19 at 14:22
9

To mark a locale in the long list you have to press spacebar, after that you go out with enter and select your default locale with enter again.

malleYay
  • 355
  • 3
  • 5
3

From experience:

  • locale: en_US.UTF-8
  • default locale: en_US.UTF-8

I've found that selecting None as the default locale produces a number of errors/problems in installation scripts as run from within raspi-config itself and those which happen after-the-fact in combination with apt-get install, for example.

I use Raspbian on a daily basis and have run raspi-config countless times. I write documentation to describe the setup process. I note that if I select en_US.UTF-8 for both locale and default locale, I never get these warnings.

I routinely use both ssh to access the Raspberry as well as doing so local on the device itself.

For example, attempting to set the keyboard localisation (using None as the default locale) will often crash the underlying script from my own experience, leaving no method of adjusting the keyboard type.

And yes, I have chosen the option to upgrade the raspi-config script itself.

0

For me in the US, I set my locale to EN_US UTF 8 and the WIFI 5GHZ worked for me.

On my Wireless Router, I had N-Only mode (5GHZ) as I used DDWRT for the firmware.

One note from @malleYay was to use to SPACEBAR to select the options first before pressing the ENTER key