Chinaunix首页 | 论坛 | 博客
  • 博客访问: 55793
  • 博文数量: 8
  • 博客积分: 71
  • 博客等级: 民兵
  • 技术积分: 92
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-03 01:31
文章分类

全部博文(8)

文章存档

2023年(1)

2017年(3)

2014年(1)

2013年(3)

2012年(1)

我的朋友

分类: LINUX

2013-12-13 14:10:32

1. 查看系统是否存在/dev/fb0设备文件,内核是否启用framebuffer帧缓冲

#  ls  /dev 

#  cat /dev/fb0  

 

2. 修改fb0文件访问权限,确保当前用户有使用权限

#  chmod 765 /dev/fb0

 

3. 将用户加入video

# gpasswd -a username  viedo

 

4. 安装fbterm + ucimf

$ sudo aptitude install fbterm fbterm-ucimf

$ sudo aptitude install libucimf0 ucimf-openvanilla openvanilla-imgeneric

$ sudo aptitude install openvanilla-dev

 

5. 启动fbterm

$ LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 fbterm -i fbterm_ucimf

5.1 运用alias简化命令

$ echo "alias fbterm='LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 fbterm -i fbterm_ucimf'" >> ~/.bashrc

 

6. 配置输入法

6.1 打开Ctrl+Space  切换 Ctrl+Shift

6.2 屏蔽除拼音五笔之外的输入法

$ cd /usr/share/openvanilla/OVIMGeneric,只保留pinyin.cin wubizixing2.cin,其余文件删除或者备份,其中wubizixing.cin只能打单字,wubizixing2.cin可以打词组。

6.3 调整输入法调出顺序

在终端里打开的输入法顺序是以文件名排列,将wubizixing2.cin改名为owubizixing2.cin即可,默认打开的就是五笔。

6.4 修改fbterm&ucimf字体

6.4.1 查看系统安装了哪些字体

$ fc-list

6.4.2 设置fbterm默认字体

$ vi .fbtermrc

    font-name=WenQuanYi Zen Hei Mono

    font-size=16

6.4.3 Ucimf默认输入字体显示效果极差,且不支持使用文泉驿等ttf字体,修改后无效,目前显示效果最好的只有unifont了,安装它。

$ sudo aptitude install unifont -y

6.4.4 ucimf的字型设置在/etc/ucimf.conf 或是 ~/.ucimf.conf

$ vi .ucimf.conf

font-name=unifont

font-size=16

重启系统,进入后显示效果非常漂亮哦J

7. 常见问题

第一次运行,出现下面的错误信息提示并且输入法不能启动:

can't change kernel keymap table, all shortcuts will NOT work, see SECURITY NOTES section of man page for solution.

设置增加suid权限

$ sudo chmod u+s /usr/bin/fbterm   OK


阅读(4917) | 评论(0) | 转发(0) |
0

上一篇:龙芯笔记本安装手记

下一篇:使用tmux

给主人留下些什么吧!~~