System information: Debian WheezyCPU: intel core i7 3770I initially only had en_US.UTF-8 as the default language. This morning, I changed the /etc/local.gen file and un-comment the zh_CN.UTF-8 and run locale-gen:# nano /etc/local.gen# locale-genAfter that, I reboot the system, then I cannot see the log in screen. It is a black screen without any word, any sign or anything  on the screenThen, I log into the recovery mode, and check the locale, I saw thislocaleLANG=LC_CTYPE=POSIXLC_NUMERIC=POSIXLC_TIME=POSIXLC_COLLATE=POSIXLC_MONETARY=POSIXLC_MESSAGES=POSIXLC_PAPER=POSIXLC_NAME=POSIXLC_ADDRESS=POSIXLC_TELEPHONE=POSIXLC_MEASUREMENT=POSIXLC_IDENTIFICATION=POSIXLC_ALL=I used dpkg-reconfigure locales to set the locale to en_US.UTF-8 again (disable zh_CN.UTF-8), but the locale still stays in POSIX.dpkg-reconfigureI reinstalled the locale by using dpkg --reinstall install locales. It didn't help either.dpkg --reinstall install localesI think the default locale being set to POSIX might be the problem. Then I edit the .bashrc file (for both root and my account) and added # nano ~/.bashrcaddedexport LC_ALL= en_US.UTF-8export LANG = en_US.UTF-8export LANGUAGE = en_US.UTF-8Now I can see all locale setting being changed to en_US.UTF-8 but I still cannot see the log in page.I did some search, and guess might be related to this bug, which is an really old issue. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330500I looked at it, but don't know how to use it.And this is highly possibly related to PAM.What else can I do?Update, I have exported the logs.In the auth.log, I saw the following,Jan 21 10:09:13 QLin gnome-keyring-daemon[3864]: couldn't allocate secure memory to keep passwords and or keys from being written to the disk......Jan 21 10:14:18 QLin polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name :1.58, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)All log files can be found at dropbox
Problem with log in after change locale, maybe relate to PAM
linux;debian;locale;pam