很久很久以前

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            34 隨筆 :: 4 文章 :: 17 評(píng)論 :: 0 Trackbacks
          在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)窗體
          posted on 2006-08-31 13:03 Long Long Ago 閱讀(928) 評(píng)論(3)  編輯  收藏 所屬分類(lèi): others

          評(píng)論

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

          # re: 在unbuntu中安裝xgl及使用 2006-09-08 11:32 Long Long Ago
          我沒(méi)使用過(guò)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的日志文件,看看是什么問(wèn)題  回復(fù)  更多評(píng)論
            

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

          主站蜘蛛池模板: 色达县| 乡宁县| 隆安县| 拜城县| 潞城市| 霍州市| 内乡县| 健康| 清水河县| 嵊泗县| 江北区| 鲜城| 昂仁县| 涡阳县| 丹江口市| 阆中市| 益阳市| 济阳县| 滨海县| 花莲县| 建瓯市| 彰化市| 长沙县| 金湖县| 甘泉县| 莱阳市| 裕民县| 周口市| 突泉县| 来凤县| 城市| 阳新县| 涞源县| 宜兴市| 噶尔县| 温宿县| 广平县| 四子王旗| 昭平县| 鹤山市| 永川市|