tech:notes_langue_lang_locale_temps_timezone_tz
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_langue_lang_locale_temps_timezone_tz [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_langue_lang_locale_temps_timezone_tz [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes langue lang locale Temps timezone TZ | ||
| + | |||
| + | Voir : | ||
| + | * [[Notes fuseau horaire - timezone TZ - localtime - heure locale]] | ||
| + | |||
| + | Voir aussi : | ||
| + | * [[ubuntu-langue-clavier]] | ||
| + | * [[pb_lang_qwerty_boot_cryptsetup]] | ||
| + | |||
| + | |||
| + | ## SystemD | ||
| + | |||
| + | ~~~bash | ||
| + | # | ||
| + | timedatectl set-timezone Europe/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Avant SystemD | ||
| + | |||
| + | ~~~bash | ||
| + | echo " | ||
| + | |||
| + | # | ||
| + | dpkg-reconfigure --frontend noninteractive tzdata | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Debian / Ubuntu | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | fr_FR.UTF-8 UTF-8 | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | export LANG=fr_FR.UTF-8 | ||
| + | export LANGUAGE=fr_FR: | ||
| + | export LC_ALL=fr_FR.UTF-8 | ||
| + | # LC_ALL=C.UTF-8 | ||
| + | |||
| + | locale-gen | ||
| + | dpkg-reconfigure locales | ||
| + | update-locale LANG=fr_FR.UTF-8 | ||
| + | ~~~ | ||
| + | |||
| + | Ou | ||
| + | ~~~bash | ||
| + | locale-gen fr_FR.UTF-8 UTF-8 && dpkg-reconfigure locales | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~bash | ||
| + | # KEYBOARD CONFIGURATION FILE | ||
| + | |||
| + | # Consult the keyboard(5) manual page. | ||
| + | |||
| + | XKBMODEL=" | ||
| + | XKBLAYOUT=" | ||
| + | XKBVARIANT=" | ||
| + | XKBOPTIONS="" | ||
| + | |||
| + | BACKSPACE=" | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | sudu setupcon | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ### Redhat / CentOS | ||
| + | |||
| + | Source : | ||
| + | * https:// | ||
| + | |||
| + | Fichier de conf | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | LANG=en_US.utf8 | ||
| + | ~~~ | ||
| + | |||
| + | Afficher les infos | ||
| + | ~~~bash | ||
| + | localectl status | ||
| + | ~~~ | ||
| + | |||
| + | Langue | ||
| + | ~~~bash | ||
| + | localectl list-locales | ||
| + | #localedef set-locale LANG=en_US.utf8 | ||
| + | localedef set-locale LANG=fr_FR.utf8 | ||
| + | ~~~ | ||
| + | |||
| + | Clavier\\ | ||
| + | Voir [Comment mater le clavier sous Linux? | ||
| + | |||
| + | ~~~bash | ||
| + | localectl list-keymaps | ||
| + | #localectl set-keymap us | ||
| + | localectl set-keymap fr | ||
| + | #localectl set-x11-keymap fr | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Pb | ||
| + | |||
| + | ### Pb 1 | ||
| + | |||
| + | ~~~ | ||
| + | # loadkeys fr | ||
| + | cannot open file fr | ||
| + | ~~~ | ||
| + | |||
| + | Solution | ||
| + | ~~~bash | ||
| + | apt-get install kbd console-data | ||
| + | ~~~ | ||
| + | |||
| + | ### Pb 2 | ||
| + | |||
| + | Debian 9 | ||
| + | |||
| + | ~~~bash | ||
| + | localectl set-keymap fr | ||
| + | ~~~ | ||
| + | |||
| + | Après reboot, lightdm est bien en français par défaut (même si c'est **en_US.utf8** qui est affiché) | ||
| + | |||
| + | Par contre la console TTY est toujours en querty. | ||
| + | |||
| + | Il faut à chaque fois faire | ||
| + | |||
| + | ~~~bash | ||
| + | loadkeys fr | ||
| + | |||
| + | # idem pour X11 | ||
| + | setxkbmap fr | ||
| + | ~~~ | ||
| + | |||
| + | **loadkeys persistent**, | ||
| + | |||
| + | Il est possible d' | ||
| + | |||
| + | |||
| + | |||
| + | Solution : | ||
| + | |||
| + | ~~~bash | ||
| + | apt-get install console-setup | ||
| + | ~~~ | ||
| + | |||
| + | Si cela ne marche toujours pas | ||
| + | ~~~bash | ||
| + | apt-get install console-data | ||
| + | apt-get install console-setup | ||
| + | apt-get install keyboard-configuration | ||
| + | |||
| + | dpkg-reconfigure console-data | ||
| + | dpkg-reconfigure console-setup | ||
| + | dpkg-reconfigure keyboard-configuration | ||
| + | |||
| + | reboot | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Debian - set locale | ||
| + | |||
| + | ~~~ | ||
| + | WARNING! Your environment specifies an invalid locale. | ||
| + | The unknown environment variables are: | ||
| + | | ||
| + | This can affect your user experience significantly, | ||
| + | | ||
| + | |||
| + | sudo apt-get install language-pack-en | ||
| + | or | ||
| + | sudo locale-gen en_US.UTF-8 | ||
| + | |||
| + | To see all available language packs, run: | ||
| + | | ||
| + | To disable this message for all users, run: | ||
| + | sudo touch / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | a | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | #KEYMAP=n | ||
| + | KEYMAP=y | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | update-initramfs -u -k all | ||
| + | ~~~ | ||
| + | |||
| + | b | ||
| + | |||
| + | ~~~ | ||
| + | GRUB_CMDLINE_LINUX=”rd.lvm.lv=centos/ | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | grub2-mkconfig -o / | ||
| + | ~~~ | ||
| + | |||
| + | autres | ||
| + | |||
| + | ~~~bash | ||
| + | locale-gen fr_FR.UTF-8 UTF-8 | ||
| + | ~~~ | ||
| + | |||
| + | Ce qui revient à créer | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | # This file lists locales that you wish to have built. You can find a list | ||
| + | # of valid supported locales at / | ||
| + | # user defined locales to / | ||
| + | # this file, you need to rerun locale-gen. | ||
| + | |||
| + | en_US.UTF-8 UTF-8 | ||
| + | fr_FR.UTF-8 UTF-8 | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | update-locale LANG=fr_FR.UTF-8 | ||
| + | ~~~ | ||
| + | |||
| + | Ce qui revient à | ||
| + | |||
| + | `/ | ||
| + | ~~~bash | ||
| + | # File generated by update-locale | ||
| + | LANG=fr_FR.UTF-8 | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | dpkg-reconfigure -f noninteractive locales | ||
| + | env DEBIAN_FRONTEND=noninteractive apt-get install console-setup | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
