很久很久以前

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            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的驅動:
          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 不過這里講的安裝方法中少了一個庫文件,呵呵
          設置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
          新建一個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
          在登陸管理器里建一個XGL會話: 建立一個文件/usr/share/xsessions/xgl.desktop ,內容如下:
          [Desktop?Entry]
          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
          看起來有點暈,尤其是輸入法的浮動窗體
          posted on 2006-08-31 13:03 Long Long Ago 閱讀(911) 評論(3)  編輯  收藏 所屬分類: others

          評論

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

          # 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的日志文件,看看是什么問題  回復  更多評論
            

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

          主站蜘蛛池模板: 饶平县| 吴川市| 岢岚县| 集贤县| 宣恩县| 微博| 简阳市| 祁东县| 清河县| 徐汇区| 高州市| 大渡口区| 台南市| 姜堰市| 舞阳县| 和田县| 凉山| 陈巴尔虎旗| 渝中区| 澎湖县| 衢州市| 汽车| 北票市| 平陆县| 墨玉县| 招远市| 仙居县| 洛浦县| 辉县市| 凌源市| 五华县| 固安县| 河池市| 兴城市| 湖北省| 平乡县| 内丘县| 南京市| 汽车| 恩平市| 万山特区|