Monday, September 22, 2008

ATI driver problem after upgrade to Intrepid Ibex from Hardy (2)

The fglrx is still can not been used. The problem was described in last post.

The solution for using "radeon" is :

sudo apt-get install envyng-core
sudo envyng -t

select uninstall ATI driver

change the xorg.conf to use "radeon"
Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
EndSection

Section "Module"
Load "dri"
Load "GLcore"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "radeon"
EndSection



reboot

Enable desktop effects in Systerm->Appearance->Effects

Enjoy it!!!!

Sunday, September 21, 2008

ATI driver problem after upgrade to Intrepid Ibex from Hardy

First, you can't open X with old driver. If you change Driver "fglrx" to "vesa", it will work without 3D effect.

The error in Xorg.0.log is:

(EE) module ABI major version (0) doesn't match the server's version (1)
(II) UnloadModule: "dri"
(II) Unloading /usr/lib/xorg/modules/extensions//libdri.so
(EE) Failed to load module "dri" (module requirement mismatch, 0)

The solution is :

sudo apt-get install envyng-core
sudo envyng -t

choose to remove all ati drivers

Then change xorg.conf to
Section "Device"
Identifier "Configured Video Device"
Driver "radeon"
EndSection

Then go to System-> Preference -> Appearance

Enable the 3D effect in one tab. The system will install the driver for you automatically.

Enjoy it:)

I think the key is remove old ATI drivers.

Wednesday, September 17, 2008

Matlab 2008a

Unable to initialize com.mathworks.mwswing.MJStartup
Fatal Error on startup: Failure loading desktop class

Solution:

cd ~
cd .matlab
sudo chown usrname:usrname -R R2008a/


那是因为你用root装的,你home目录下的.matlab/R2008a/ owner是root。把他改成你自己就好了。我试过,没问题的

Thursday, May 29, 2008

How to install google-gadgets-for-linux

Download adress:
http://code.google.com/p/google-gadgets-for-linux/

suzhe says
我装了以下包:
--I installed the followed packages:

If you lost some packages, the installation can probably be done. But It can not be run because losing the extensions.

libmozjs-dev
libxul-dev
libcurl4-openssl-dev
libgstreamer0.10-dev
libgstreamer-plugins-base0.10-dev
libdbus-1-dev
librsvg2-dev

另外还有 gtk 相关的开发包。
and the gtk relative packages.

Acturally I installed more than that coz I didn't really find out the package from configure file.

I use gtk, so I can disable qt-xml-http-request
./configure --disable-qt-xml-http-request
Good luck! It's really cool!!!!

Friday, May 23, 2008

vim token regular expression

When you use the regular expression in Vim, you probably want to cite the search results in the replaced pattern. Followed is one of the solution.

%s/\(\n\d\+\n\)/^M\1/g
\1 represent the searching content in (), you can put the second () after the first one.

Thursday, April 17, 2008

linux advantage

1.虽然我从未觉得用linux就显得另类,但实际效果可能就是这样的
2.如果经常用脚本,批量处理文件,批量运行程序,自动化的计算,太方便了
3.可以看到源码,如果对哪个程序感兴趣,可以寻根究底,文档免费,程序免费
4.如果你写程序,随时可以做些贡献,可能为社区贡献力量,你想开发windows?不太现实
5.个人认为桌面效果已经很不错了,甚至可以自己写compiz的plugin,也可以生活在前沿上,别人想开发什么,正在开发什么,你有什么要求和建议,都可以沟通
6.更好的机会提高工作,娱乐效率,比如可以浏览linux下的软件,可能有意想不到的功能,比如我发现有个软件列出了很多在线电台,听歌就免费了
7.开服务器方便,远程控制方便
8.hack工具很多
9.硬盘换到别的机器上不用重装系统
10.内存自动作为硬盘缓存,打开已经开过的程序非常快
11.升级频繁,感觉每天都是新的
12.永远有东西折腾,图形界面就很多,玩完一个换一个,发行版好多,不停的试
最后,简单

Sunday, April 13, 2008

Install FCITX Under Hardy Heron

在英文环境下安装FCITX没有安装SCIM方便,需要修改一些文件,现在简单列出安装的步骤:
安装FCITX包,直接使用sudo apt-get install fcitx即可,现在源中的文件版本是3.4.3
安装im-switch,直接使用sudo apt-get install im-switch即可
因为是英文环境,所以需要修改Xinput文件:
sudo vi /usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules
在该文件中找到
“xim” “X Input Method” “gtk20″ “/usr/share/locale” “ko:ja:th:zh”
替换为:
“xim” “X Input Method” “gtk20″ “/usr/share/locale” “en:ko:ja:th:zh”
im-switch -s fcitx
重新启动Xwindow即可

Friday, April 4, 2008

Can not rename file in nautilus

conflict with scim. Also problem in Opera. can not navigate in nautilus.

https://bugs.launchpad.net/ubuntu/+bug/34282


I've found the solution on Chinese Ubuntu forums on http://forum.ubuntu.org.cn/viewtopic.php?p=479741&sid=c37de1d11989db6ebe95227b35efa770#479818 ,
which say
sudo apt-get install scim-bridge
sudo gedit /etc/X11/xinit/xinput.d/scim
change GTK_IM_MODULE=xim into GTK_IM_MODULE="scim-bridge"
and restart X.
This fixed the problem (both deadkey and SCIM) for me.

Thursday, March 27, 2008

Fire Gesture does not work in Firefox 3 (FF3)

Check if you have Drag and Drop add-ons. It conflict with Fire Gestures. Uninstall it, will be fine.

Monday, March 17, 2008

Alt F2

The 'Run Application" applet will vanish after you delete the gnome panel if you like avant so much. Just

apt-get install gmrun

Then set the the short cuts in ccsm
General Option->Commands
set Command line 0 : gmrun
Then go to tab Actions->commands
set Key alt F2, then cancel that in General
You also can set screen edge as Bottum Left.

Sunday, March 16, 2008

Hardy scim 输入法

I want to switch from fcitx to scim after I upgrade my system from Gusty to Hardy.

after install the scim package, do
im-switch -s scim -z default


However, scim may conflict with nautilus and opera, So you can't rename file and navigating by key.

do the following

http://ubuntuforums.org/showpost.php?p=3676161&postcount=6

Friday, March 14, 2008

Ubuntu Hardy heron ATI driver

When you see this post, there is no answser yet. My laptop is thinkpad T60 ATI Radeon X1300. I upgraded from Gutsy to Hardy.

1. Using envyng, failed.
Envy helped me every time before this. But failed this time. I don't know why, because now I can't find where is the log file.

2. Catalyst driver 8.3, failed.
No success.

3. Default restricted driver in repository, sucess.
But it's slow.

Wait for more informations.

Friday, February 15, 2008

How to import email from opera to gmail

1. convert the format from MBS to MBX by MBS2MBX: http://www.kmkorn.de/sw/opera/en/mbs2mbx.htm

2. Send all the email to Gmail by GML :http://www.marklyon.org/gmail/