很久很久以前

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            34 隨筆 :: 4 文章 :: 17 評論 :: 0 Trackbacks
          在sources.list中添加如下幾個源:
          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ū)動:
          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
          下面是安裝必要的庫文件:
          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 不過這里講的安裝方法中少了一個庫文件,呵呵
          設(shè)置xgl啟動入口:
          新建一個xgl啟動腳本/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
          新建一個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
          在登陸管理器里建一個XGL會話: 建立一個文件/usr/share/xsessions/xgl.desktop ,內(nèi)容如下:
          [Desktop?Entry]
          Encoding=UTF-8
          Name=XGl
          Exec=/usr/bin/startxgl.sh
          Icon=
          Type=Application?

          打開桌面菜單-〉系統(tǒng)-〉首選項-〉會話
          在最右邊的“啟動程序”里添加 /usr/bin/startcompiz 這句話
          最后不要忘了

          sudo aptitude update
          sudo aptitude upgrade
          關(guān)閉所有程序
          ctrl-alt-backspace啟動X
          登錄時在會話中選擇xgl
          會提示是否為默認(rè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
          看起來有點暈,尤其是輸入法的浮動窗體
          posted on 2006-08-31 13:03 Long Long Ago 閱讀(915) 評論(3)  編輯  收藏 所屬分類: others

          評論

          # re: 在unbuntu中安裝xgl及使用 2006-09-06 21:16 ahlongxp
          我用的ATI顯卡
          從來沒成功過  回復(fù)  更多評論
            

          # re: 在unbuntu中安裝xgl及使用 2006-09-08 11:32 Long Long Ago
          我沒使用過ati顯卡,你可以參考這片文章:http://wiki.ubuntu.org.cn/ATI%E6%98%BE%E5%8D%A1%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97?highlight=%28ati%29
          另外,你可以看看x的日志文件,看看是什么問題  回復(fù)  更多評論
            

          # re: 在unbuntu中安裝xgl及使用 2006-09-10 10:04 ahlongxp
          是ATI驅(qū)動的問題,它在新版的release notes里提了  回復(fù)  更多評論
            

          主站蜘蛛池模板: 肥东县| 子洲县| 泽库县| 娄烦县| 井研县| 原平市| 微山县| 镇康县| 新巴尔虎右旗| 新绛县| 乐清市| 莱州市| 五河县| 威海市| 宁化县| 赤峰市| 隆林| 马龙县| 云南省| 中方县| 金寨县| 航空| 遂溪县| 临城县| 长宁县| 会昌县| 陕西省| 葫芦岛市| 泾川县| 昌乐县| 庆城县| 大洼县| 株洲市| 静乐县| 宝山区| 云安县| 眉山市| 申扎县| 贵定县| 武胜县| 屯昌县|