本文基本是按照http://www.ubuntuforums.org/showthread.php?t=186200,和http://www.ubuntuforums.org/showthread.php?t=1 ... xgl这两个帖子写的,在我的电脑上表现完美,拿来与大家分享。在此感谢这两位达人的贡献。
首先升级compiz等组件:
获取Quinn's keydeb http://xgl.compiz.info/ dapper main
deb-src http://xgl.compiz.info/ dapper main
deb http://www.beerorkid.com/compiz/ dapper main
然后安装最新的驱动和compiz组件:wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
在/etc/X11/xorg.conf中,注销Load "GLcore"和“dri”保证载入"glx"。sudo apt-get install nvidia-kernel-common nvidia-glx compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome compiz-kde gconf-editor gset-compiz
并且修改驱动板块如下(仅限nvidia用户,ati的就不晓得了):# Load "GLcore"
# Load "dri"
Load "glx"
然后在文件最后加上:Section "Device"
Identifier "YourCardHere" <-- 此处不要修改
Driver "nvidia" <--此处一定要改成这样的
BusID "PCI:1:0:0"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
修改默认X:Section "Extensions"
Option "Composite" "Enable"
EndSection
修改/etc/kde3/kdm/kdmrcsudo ln -sf /usr/bin/Xgl /etc/X11/X
nvidia:
ati:ServerCmd=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo
然后生成启动文件 /home/yourUSERNAME/.kde/Autostart/xgl,写入:ServerCmd=/usr/bin/Xgl :1 -fullscreen -ac -accel glx:pbuffer -accel xv:pbuffer
#!/bin/bash
compiz --replace gconf decoration dock wobbly fade minimize cube rotate zoom scale move resize place state switcher trailfocus water bs widget & gnome-window-decorator & xmodmap -e "keycode 22 = BackSpace"
OK,重启X,sudo chmod 755 /home/yourUSERNAME/.kde/Autostart/xgl
CTRL + ALT + Left/right arrow key. Switches to the new side of the cube for me.
CTRL + ALT + SHIFT + Left/Right arrow key- Takes the in focused app around cube.
CTRL + ALT + Left Click on Desktop - allows you to use the mouse to rotate cube.
F12 - uses the Expose like trick
Alt- Tab - switcher Vista-style
感觉新的3D桌面如何?