在Ubuntu下同时配置欧洲键盘和中文输入法绝对是pain in the ass。单独搞这两个其实并不难,难就难在他们在一起不好工作。就为这个我放弃了用了1年多的fcitx,转而用scim-fit。
前一阵逛超市看到罗技无限键鼠套装打折卖99,于是买了一套回来,回来一直当英语键盘用。可是经常被键位搞晕,后来换成瑞典语键盘了,但是在fcitx下输入汉字有些键就不管用了,而且中文输入也时有时没有的。像是这个符号“~”我就输入不了。正好在ubuntu论坛上发现了一个新舒服法Fun Input Toy,把fcitx换下来,把scim装上。然后在设置里有个Other/European也选上,就行了。在scim把键位也设成swedish,这样无论切到哪个语,键位都是瑞典语的。
我自己的机器以前用得土法配置的fcitx不好自动去除,装了卸了几次还是不行。所有环境变量都设上还是不能用,不知道为什么fcitx这么firm。最后只好在自己的.profile最后强行把IM_MODULE弄成scim。
Comments (2) Posted on Thursday, August 28th, 2008
一直对这个鸡肋设备很不感冒,直到在Ubuntu下加上了指纹识别。安装很简单,效果很强筋。不只是开机可以用指纹,任何时候,只要系统要求输入root user密码,你都可以刷指纹。Are you getting me?在Terminal下用sudo可以刷,在Gnome下执行高级任务可以刷,真是太爽了。
在ubuntu 8.04下软件已经在库里了
sudo apt-get install libpam-thinkfinger thinkfinger-tools
把/etc/pam.d/common-auth改一下,这样只要要密码的时候都可以刷,哈哈
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
auth sufficient pam_thinkfinger.so
auth required pam_unix.so try_first_pass nullok_secure
再把你的指纹存一下,要刷三次
sudo tf-tool --acquire
然后把指纹关联一下
sudo tf-tool --add-user 用户名
然后启用(我没运行就能用了)
$ sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable
然后就爽去吧
Comments (1) Posted on Tuesday, August 26th, 2008
- 给Firefox用上内存做交换区(来源)在/etc/fstab加入:
tmpfs /tmp/cache tmpfs size=128M 0 0
然后建立/tmp/cache目录
sudo mkdir /tmp/cache
然后加载
sudo mount -a
在Firefox里地址栏输入 about:config.加入新字串[browser.cache.disk.parent_directory],它的值是你的目录位置 重启Firefox就会发现速度有变化(希望是变快:)
- 几个其他小改动(来源)关掉IPV6,在/etc/modprobe.d/aliases里找到
alias net-pf-10 ipv6
改为
alias net-pf-10 off #alias net-pf-10 ipv6
主机名和localhost关联,在/etc/hosts,改成如下的东西
127.0.0.1 localhost yourhost
127.0.1.1 yourhost
未完待续…
Comments (1) Posted on Saturday, December 29th, 2007