vmware under feisty

March 25th, 2007 | Posted in ubuntu   1 Comment

vmware-workstation的内核模块在2.6.20下编译不过,可能有解决方案,不过网上有现成的更好的办法,就是改用vmware-server

到vmware下载vmware-server,解压开来装上,问你是否执行vmware-config.pl的时候选no

然后开始cheat。

apt-get install vmware-server-kernel-modules

这个是ubuntu源里面别人编译好的vmware-server的内核模块,能够保持和内核的一致
然后sed -i -e "s/\/sbin\/insmod -s -f \"\/lib\/modules\/\`uname -r\`\/misc\/\$1.o\"/\/sbin\/insmod -s -f \"\/lib\/modules\/\`uname -r\`\/vmware-server\/\$1.ko\"/" /etc/init.d/vmware

这里和原文不一样,改的是vmware启动脚本里面关于加载内核模块的地方,原文是改成了modprobe一下,但是我不知道啥时候insmod,所以我就改成了这个,源里面针对2.6.20编译的内核是以ko结尾,而且是放在vmware-server下

再然后sed -i -e "s/sub configure_module {/sub configure_module {\n return 'yes';/" /usr/bin/vmware-config.pl

这个是hack掉vmware-config.pl里面安装内核模块部分,vmware-server自带是没有2.6.20的,自己编译可能还有什么问题,所以用别人编译好的,这里直接return yes;最好

之后就全ok了, 跑一下vmware-config.pl吧

注:以上步骤都需要root权限

原文在http://www.ubuntuforums.org/showpost.php?p=2143833&postcount=14

Seems scim conflicts with Xorg or sawfish or emacs?

March 9th, 2007 | Posted in Emacs   1 Comment

I first found this problem when using ubuntu dapper & emacs 23.0.0.1.

Sometimes when speedbar is started in emacs, every key press in emacs does not effects unless next time I switched to emacs.

At first, I thought it was a little bug with emacs 23, so I did not take it serious.

But after upgrading to feisty & emacs 23.0.0.9, this happens more often. When created a new frame, either speedbar or C+X 5 2, key press frozen. And everything returns all right when all other frames are closed. And evem more, key press lags when switching windows! So I thought it maybe bug with xorg or sawfish!
So I asked in emacs@newsmth, and someone said it maybe problem between xim & emacs in reply. Then I disabled scim and now seems everything ok.

comment spam

March 5th, 2007 | Posted in 叉言叉语   Add Comment
真不知道怎么找过来的,ban IP!
202.83.212.236