【求助】如何设置tty为英文而DE/WM为中文(包括终端)
Tofloor
poster avatar
huizq
deepin
2016-08-11 17:17
Author
如题,因为tty下的中文是乱码,所以我想这样设置。
首先,我尝试了在/etc/locale.conf中设置LC_*    如图:
  
但是这样设置之后,tty也变成中文了. 应该是LC设置的问题.

接着,我还原更改,尝试在.xprofile和.xinitrc中设置中文.

然后分别尝试了用登陆管理器和startx启动,但两种方式启动的DE都是英文.

请问各位大神们: 我应该如何修改设置才能以正确的方式打开tty和DE/WM呢?

Reply Favorite View the author
All Replies
avatar
MattD
deepin
2016-08-11 17:50
#1
很简单,几行shell配置就搞定:
  1. if [ "$TERM" = "linux" ]; then  
  2.     export LANG=C
  3. fi
Copy the Code
Reply View the author
avatar
leaeasy
deepin
2016-08-11 18:06
#2
https://bbs.deepin.org/user/15801 是最简单的方式
直接修改/etc/default/locale 里面设置LANG=en_US.UTF-8 也是可以满足楼主的要求

在Deepin不是修改/etc/locale.conf而是/etc/default/locale
至于通过lightdm及通过startx启动桌面设置LC_*的方式都有所差异
Reply View the author
avatar
132******13
deepin
2016-08-11 18:13
#3
又学到了新知识
Reply View the author
avatar
colin4124
deepin
2016-08-12 04:53
#4
建议官方在下一版中这样做,不然遇到无法进入桌面环境的情况下,要是进入 tty 乱码的话很不方便
Reply View the author