2008年6月16日星期一

安装fcitx

5、添加中文支持。

sudo apt-get install language-pack-zh

6、fcitx安装:

sudo apt-get install im-switch fcitx
im-switch -s fcitx -z default # 注意,前面千万不要加sudo
完成设置最好重启一下X,以便进行下一步设置

7、修改部分:

sudo gedit /etc/gtk-2.0/gtk.immodules


找到下面这个部份

"/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"

改为下面这样

"/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"

注意:就是这里加上了en环境下的输入法支持。"ko:ja:th:zh" -> "en:ko:ja:th:zh" 设置完毕,注销一下电脑。(系统 -> 注销 -> 注销)这时候,输入法(按Ctrl+空格键激活输入法)就应该可以使用了。
8、修改字体:

gedit ~/.fcitx/config #ubuntu


(提示:该文件使用GBK编码,很多人打开它可能显示乱码,在kate下点菜单 工具 -> 编码 -> 简体中文GBK即可正常显示。)设置选项为中文,英文界面下输入栏与输入文字为方块的现像,只需修改config中的字体即可,例如:

[程序]
显示字体(中)=WenQuanYi Bitmap Song
显示字体(英)=WenQuanYi Bitmap Song
显示字体大小=12
主窗口字体大小=12
字体区域=zh_CN.UTF-8
是否使用AA字体=1
是否使用粗体=1

9、去除fcitx多余码表
sudo gedit /usr/share/fcitx/data/tables.conf
里面的内容大致是这样的

#以#打头的为注释
[码表]
名称=五笔字型
码表=wbx.mb
拼音=1
拼音键=z
.........
.........
#[码表]
#名称=二笔
#码表=eb.mb
.........
.........
#[码表]
#名称=仓颉
#码表=cj.mb
.........
.........

2008年6月2日星期一

Steps to get around Evolution "summary and folder mismatch" bug

  1. Disable all accounts in Evolution and exit
  2. cd ~/.evolution/mail/local
  3. rm Inbox.ibex.index Inbox.ibex.index.data
  4. Restart Evolution
  5. Press Sent/Receive several times
  6. Enable accounts
per
https://launchpad.net/ubuntu/+source/evolution/+bug/27014

2008年5月16日星期五

Ubuntu设置命令行默认编辑器

update-alternatives --config editor
然后从列表中选择

2008年3月24日星期一

Translation Practice

1. Previous experience shows that our shops are most profitable in the areas where residents there pay high attention to their healthy lives. As a result, our next shop should be opened at Plansvile, where there are many such residents. Shops from Plainsville report that the sales of sports shoes and sweaters are at a historical peak. A local club which was at the edge of bankrupt 5 years ago now has more members than any other time, with ... always full. We can also expect customers from the new generation: students from schools at Plainsville are required to take part in a program called "fitness of life", which emphasize on the benefit of doing exercise from ones' early ages.

2. 7 years ago, house owners of Brookville nearby implemented a series of regulations about how to arrange the courts of the community and which color should be applied to the buildings. From then on, the average price of real estate at Brookville increased three times. In order to increase the real estate at Deerhaven Acres, we should also have our own regulation on the scenery and colorring of buildings.

2007年12月27日星期四

Fonts TTF Opensymbol - Failed to write cache

Touch each directory reporting failed to write cache.
1. Save those directory to a file, say cache_fail_folder_list.txt
2.
sudo -i
cat cache_fail_folder_list.txt | xargs touch

Install Ubuntu 7.10 from hard disk

1. Copy initrd.gz, vmlinuz, grldr, menu.lst to C:\
2. add
c:\grldr="Install Ubuntu"
to c:\boot.ini
3. Put the iso file to the root directory of a fat32 partition
4. restart the system.

2007年11月23日星期五

another try to install wireless driver

http://ubuntuguide.org/wiki/Ubuntu:Gutsy#How_to_install_Broadcom_wireless_driver