在sources.list中添加如下幾個源:
nivida的驅動:
在module部分中確定lode xgl,有如下代碼:
設置xgl啟動入口:
新建一個xgl啟動腳本/usr/bin/startxgl.sh,內容如下:
新建一個compiz腳本/usr/bin/startcompiz,內容如下:
在登陸管理器里建一個XGL會話: 建立一個文件/usr/share/xsessions/xgl.desktop ,內容如下:
打開桌面菜單-〉系統-〉首選項-〉會話
在最右邊的“啟動程序”里添加 /usr/bin/startcompiz 這句話
最后不要忘了
sudo aptitude update
sudo aptitude upgrade
關閉所有程序
ctrl-alt-backspace啟動X
登錄時在會話中選擇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
看起來有點暈,尤其是輸入法的浮動窗體
deb?http://www.beerorkid.com/compiz/?dapper?main
deb?http://xgl.compiz.info/?dapper?main
deb-src?http://xgl.compiz.info/?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的驅動:
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部分,代碼如下:????Identifier-?leave?this?line?alone!
????Driver????????"nvidia"
????BusID????????"PCI:1:0:0"
????Option?????????"RenderAccel"?????????"true"
EndSection
Section?"Extensions"
??????????Option??"Composite"?"Enable"
EndSection
下面是安裝必要的庫文件:??????????Option??"Composite"?"Enable"
EndSection
sudo?apt-get?install?compiz?xserver-xgl?libgl1-mesa?xserver-xorg?libglitz-glx1?compiz-gnome
以上是引文http://www.ubuntuforums.org/showthread.php?t=131267 中的方法,此文所講的后面是加載方法,我沒有采用,用的是這里講的方法:http://forum.ubuntu.org.cn/viewtopic.php?t=16777 不過這里講的安裝方法中少了一個庫文件,呵呵設置xgl啟動入口:
新建一個xgl啟動腳本/usr/bin/startxgl.sh,內容如下:
Xgl?-fullscreen?:1?-ac?-accel?glx:pbuffer?-accel?xv:pbuffer?&?sleep?2?&&?DISPLAY=:1
#?Start?GNOME
exec?gnome-session?
使腳本可執行:
sudo chmod 755 /usr/bin/startxgl.sh#?Start?GNOME
exec?gnome-session?
新建一個compiz腳本/usr/bin/startcompiz,內容如下:
#!/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?&?
使得腳本可執行:sudo chmod 755 /usr/bin/startcompiz
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?&?
在登陸管理器里建一個XGL會話: 建立一個文件/usr/share/xsessions/xgl.desktop ,內容如下:
[Desktop?Entry]
Encoding=UTF-8
Name=XGl
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application?
Encoding=UTF-8
Name=XGl
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application?
打開桌面菜單-〉系統-〉首選項-〉會話
在最右邊的“啟動程序”里添加 /usr/bin/startcompiz 這句話
最后不要忘了
sudo aptitude update
sudo aptitude upgrade
關閉所有程序
ctrl-alt-backspace啟動X
登錄時在會話中選擇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
看起來有點暈,尤其是輸入法的浮動窗體