mana 写了:我看了wiki中的新手指南
http://wiki.ubuntu.org.cn/index.php?tit ... iant=zh-cn 里面说:
设置中文环境
* 重要:继续之前请确定本文前面的操作你都完成了
* 打开“语言支持”对话框(见右图)。单击主菜单中的“系统(System) --> 系统管理(Administration) --> 语言支持(language support)”。
* 在“支持的语言”列表中找到“汉语(Chinese)”,在右端打上勾。同时将默认语言修改为“汉语(Chinese)”并勾选“启用复杂字符输入支持(Enable support to enter complex characters)”,点击确定按钮。
Ubuntu 这时会下载并安装语言包。安装完毕之后,当你注销后重新登录,界面就变成中文的了。
我想问的是,在没有安装图形界面,只有控制台界面情况下,想实现上面的设定,需要如何做呢。
谢谢。
应该dpkg-reconfigure locales就够了吧。
看下文。
For those of you who are used to running "dpkg-reconfigure locales" on Debian to select and generate locales you may be a bit disappointed at the seemingly broken way it is done under Ubuntu.
When I say broken "dpkg-reconfigure locales" does not yield an interface that allows you to select and deselect locales. It simply generates the locales mentioned in "/var/lib/locales/supported.d/local" file. Therefore if you want to generate a bunch of locales you will need to add them to this file and re-run "dpkg-reconfigure locales". NOTE: One locale per line.
For a list of valid locales you can search through "/usr/share/i18n/SUPPORTED".