2013年1月9日星期三

FreeBSD正确配置中文环境的方法

以前一直以为是直接修改全局的profile或者cshrc来进行locale设置,现在才发现其实完全不用这么麻烦,而且那样是不规范的。

按照官方手册,正确的方法是修改/etc/login.conf,比如我要使用简体中文环境,那么就在/etc/login.conf添加:

chinese|Simplified Chinese Users Account:\

:charset=UTF-8:\

:lang=zh_CN.UTF-8:\

:tc=default:

然后需要重建数据库:

cap_mkdb /etc/login.conf

之后把需要的用户加入中文登录环境即可:

pw usermod YOUR_USER -L chinese

openwrt 6300V2 USB无法显示的问题

lsusb and fdisk -l There's a method to turn USB power on which is probably not persistent. I hope this will help you. echo 0 > /sys/c...