Friday, March 6, 2009

qq linux 输入法解决办法

创建一个启动文件QQ,改成可以运行的属性,再运行该文件就可以了
chmod +x QQ

#!/bin/sh
export GTK_PATH="/usr/lib32/gtk-2.0"
export GTK_IM_MODULE=xim
cd /home/kekegg/bin #你的qq文件放的位置
./qq

Tuesday, February 3, 2009

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.