在sources.list中添加如下幾個(gè)源:
deb?http://www.beerorkid.com/compiz/?dapper?main
deb?http://xgl.compiz.info/?dapper?main
deb-src?http://xgl.compiz.info/?dapper?main
添加代理:
export?http_proxy="http://xxx.xxx.xxx.xxx:xxxx"
獲取pgp密鑰:
wget?http://www.beerorkid.com/compiz/quinn.key.asc?-O?-?|?sudo?apt-key?add?-?
nivida的驅(qū)動(dòng):
sudo?apt-get?install?nvidia-kernel-common?nvidia-glx
編輯文件:/etc/X11/xorg.conf
在module部分中確定lode xgl,有如下代碼:
Load?"glx"
在devices部分修改除了Identifier行的其他各行,修改后如下:
Section?"Device"
????Identifier-?leave?this?line?alone!
????Driver????????"nvidia"
????BusID????????"PCI:1:0:0"
????Option?????????"RenderAccel"?????????"true"
EndSection
在最下面添加Extensions部分,代碼如下:
Section?"Extensions"
??????????Option??"Composite"?"Enable"
EndSection
下面是安裝必要的庫(kù)文件:
sudo?apt-get?install?compiz?xserver-xgl?libgl1-mesa?xserver-xorg?libglitz-glx1?compiz-gnome
以上是引文http://www.ubuntuforums.org/showthread.php?t=131267 中的方法,此文所講的后面是加載方法,我沒(méi)有采用,用的是這里講的方法:http://forum.ubuntu.org.cn/viewtopic.php?t=16777 不過(guò)這里講的安裝方法中少了一個(gè)庫(kù)文件,呵呵
設(shè)置xgl啟動(dòng)入口:
新建一個(gè)xgl啟動(dòng)腳本/usr/bin/startxgl.sh,內(nèi)容如下:
Xgl?-fullscreen?:1?-ac?-accel?glx:pbuffer?-accel?xv:pbuffer?&?sleep?2?&&?DISPLAY=:1
#?Start?GNOME
exec?gnome-session?
使腳本可執(zhí)行:
sudo chmod 755 /usr/bin/startxgl.sh
新建一個(gè)compiz腳本/usr/bin/startcompiz,內(nèi)容如下:
#!/bin/sh
killall?gnome-window-decorator
wait
gnome-window-decorator?&?LD_PRELOAD=/usr/lib/fglrx/libGL.so.1.2.xlibmesa
compiz?--replace?gconf?miniwin?decoration?transset?wobbly?fade?minimize?cube?rotate?zoom?scale?move?resize?place?switcher?trailfocus?water?&?
使得腳本可執(zhí)行:sudo chmod 755 /usr/bin/startcompiz
在登陸管理器里建一個(gè)XGL會(huì)話:
建立一個(gè)文件/usr/share/xsessions/xgl.desktop ,內(nèi)容如下:
[Desktop?Entry]
Encoding=UTF-8
Name=XGl
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application?
打開(kāi)桌面菜單-〉系統(tǒng)-〉首選項(xiàng)-〉會(huì)話
在最右邊的“啟動(dòng)程序”里添加 /usr/bin/startcompiz 這句話
最后不要忘了sudo aptitude update
sudo aptitude upgrade
關(guān)閉所有程序
ctrl-alt-backspace啟動(dòng)X
登錄時(shí)在會(huì)話中選擇xgl
會(huì)提示是否為默認(rèn)會(huì)話,建議選擇僅本次
哦,差點(diǎn)忘了,怎么使用:
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
看起來(lái)有點(diǎn)暈,尤其是輸入法的浮動(dòng)窗體