@allen 发表于 2013-12-20 13:00:23

字体乱码,中文输入法,界面中文化

本帖最后由 @allen 于 2014-8-23 17:22 编辑

以下方法都是网上收集整理
1. 字体乱码
                              下载字体: sudo apt-get install ttf-wqy-microhei

2.中文输入法
方法一:
                              sudo apt-get install fcitx fcitx-googlepinyin fcitx-frontend-allfcitx-frontend-gtk2 \
fcitx-frontend-gtk3 fcitx-frontend-qt4fcitx-module-x11fcitx-config-gtk \          fcitx-config-gtk2 fcitx-toolsfcitx-ui-classic -y

sudo apt-get install im-config -y
sudo apt-get autoremove -y
sudo apt-get install -y ttf-bitstream-vera ttf-wqy-microhei ttf-wqy-zenhei\
xfonts-wqy ttf-arphic-ukai ttf-arphic-uming
im-config start
sudo reboot
fcitx

右下角出现键盘 ,右击图标可以配置,ctrl +space切换输入法
方法二:
安装IBus框架,在终端输入以下命令:
sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4

有下面几种常用选择:
IBus拼音:sudo apt-get install ibus-pinyin
IBUS五笔:sudo apt-get install ibus-table-wubi
谷歌拼音输入法:sudo apt-get install ibus-googlepinyin
Sun拼音输入法:sudo apt-get install ibus-sunpinyin

ibus-setup

此时,IBus Preference设置被打开。我们在Input Method选项卡中,选择自己喜欢的输入方式,并配置自己喜欢的快捷键即可。如下图所示:


默认ctrl +space 切换输入法

注意:重启了之后,切换不了输入法,但 执行:ibus-daemon -drx就可以了 ,不知道什么原因。






3.界面中文化
更新一下软件源:sudo apt-get update
下载中文支持包:sudo apt-get install language-pack-gnome-zh-hant language-pack-gnome-zh-hans
配置本地:sudo dpkg-reconfigure locales
下载中文字库: sudo apt-get install -y ttf-bitstream-vera ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy ttf-arphic-ukai ttf-arphic-uming
环境变量的文件: vi /etc/environment            
增加内容如下:

LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"

重启系统 :sudo reboot


注意:我是在CB2 操作的,CT 下好像不能全部中文化。


最后想请教下 ,经常出现这样错误sudo apt-get installxxx


E: Encountered a section with no Package: header                              
E: Problem with MergeList /var/lib/dpkg/status                                 
E: The package lists or status file could not be parsed or opened.

网上都是下面方法,但我执行了还是上面的错误                              
sudo rm-rf /vat/lib/apt/lists/*
apt-get update



Cannikin 发表于 2013-12-24 00:45:38

感谢分享

wake 发表于 2013-12-28 18:00:12

对于新手来说還是很好的东西来的
页: [1]
查看完整版本: 字体乱码,中文输入法,界面中文化