In this tutorial I will speak about Ubuntu Server Locales. You will learn what locales are and how you can change them in order to avoid problems and suit your needs.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# Ubuntu Server Locales cd ~/vagrant/ubuntu-trusty32/ vi Vagrantfile vi provision-shell/bootstrap.sh vagrant up --provider virtualbox vagrant ssh # Locales customize programs to your language and country # Get locale-specific information # Displaying the current settings locale # Print the system date and time date # -a Write names of available locales # The following command will show which locales are available on your system locale -a # perl: warning: Setting locale failed. # perl: warning: Please check that your locale settings: # LANGUAGE = (unset), # LC_ALL = (unset), # LC_PAPER = "ro_RO.UTF-8", # LC_ADDRESS = "ro_RO.UTF-8", # LC_MONETARY = "ro_RO.UTF-8", # LC_NUMERIC = "ro_RO.UTF-8", # LC_TELEPHONE = "ro_RO.UTF-8", # LC_IDENTIFICATION = "ro_RO.UTF-8", # LC_MEASUREMENT = "ro_RO.UTF-8", # LC_NAME = "ro_RO.UTF-8", # LANG = "en_US.UTF-8" # are supported and installed on your system. # perl: warning: Falling back to the standard locale ("C"). # locale: Cannot set LC_ALL to default locale: No such file or directory # /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory sudo dpkg-reconfigure tzdata # Compile a list of locale definition files sudo locale-gen ro_RO.UTF-8 locale -a sudo dpkg-reconfigure tzdata # Default locale settings sudo vi /etc/default/locale LANG="ro_RO.UTF-8" # Changes take effect only after a fresh login exit vagrant ssh date # /usr/sbin/dpkg-reconfigure: vă rog specificați un pachet pentru reconfigurare sudo dpkg-reconfigure # Configurația pachetului sudo dpkg-reconfigure tzdata sudo vi /etc/default/locale LANG="de_DE.UTF-8" sudo locale-gen de_DE.UTF-8 exit vagrant ssh date # /usr/sbin/dpkg-reconfigure: bitte geben Sie ein Paket an, das Sie neu konfigurieren wollen sudo dpkg-reconfigure # Paketkonfiguration sudo dpkg-reconfigure tzdata # Useful links https://help.ubuntu.com/community/Locale https://www.thomas-krenn.com/en/wiki/Configure_Locales_in_Ubuntu |
Useful links:
https://help.ubuntu.com/community/Locale
https://www.thomas-krenn.com/en/wiki/Configure_Locales_in_Ubuntu