Part of the problem is /etc/pam.d/sshd: auth required pam_env.so # [1] auth required pam_env.so envfile=/etc/default/locale
The last line reads the locale settings and sets $LANG, which overrides the language settings and prevents users from changing their language. In order to make this work, /etc/pam.d/sshd will have to be changed, which will let users use a non-system default language. ** Description changed: The cloud images currently only support "en_US.UTF-8" locales in Oneiric - and Precise by default. Users who SSH in with a $LANG of something else - is ignored. + and Precise by default unless a user sets the locale via cloud-config in + cloud-init. Users who SSH into a cloud-image with LANG="<SOMETHING + ELSE>" will have an invalid LANG seting. - Currently the way to set the lang is to use cloud-config. + IMHO, this is a poor user experience for international users. We either + need to turn off "Accept LC_*" in /etc/sshd/config, installed (and thus + bloat the images) all the language packs or come up with a way to + dynamically install the the languages. + + Example: + LANG="en_GB.UTF-8" ssh ec2-23-20-37-252.compute-1.amazonaws.com + Warning: Permanently added 'ec2-23-20-37-252.compute-1.amazonaws.com' (ECDSA) to the list of known hosts. + Welcome to Ubuntu precise (development branch) (GNU/Linux 3.2.0-10-virtual i686) + + ubuntu@domU-12-31-39-16-C8-46:~$ locale + locale: Cannot set LC_ALL to default locale: No such file or directory + LANG=en_GB.UTF-8 + LANGUAGE= + LC_CTYPE=en_US.UTF-8 + LC_NUMERIC="en_GB.UTF-8" + LC_TIME="en_GB.UTF-8" + LC_COLLATE=en_US.UTF-8 + LC_MONETARY="en_GB.UTF-8" + LC_MESSAGES=en_US.UTF-8 + LC_PAPER="en_GB.UTF-8" + LC_NAME="en_GB.UTF-8" + LC_ADDRESS="en_GB.UTF-8" + LC_TELEPHONE="en_GB.UTF-8" + LC_MEASUREMENT="en_GB.UTF-8" + LC_IDENTIFICATION="en_GB.UTF-8" + LC_ALL= + + ubuntu@domU-12-31-39-16-C8-46:/home/ubuntu$ locale -a + C + C.UTF-8 + en_US.utf8 + POSIX -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/920601 Title: cloud-images don't understand other locales in precise To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/920601/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
