我也贴一下我安装XGL的经验吧……nVidia/Gnome/Dapper
发表于 : 2006-03-12 15:43
在nvidia Geforce FX5900XT、AMD Barton2500+ oc 3200+、1GB DDR400、NF2上测试有效
其实基本还是翻译的这篇文章:
http://www.ubuntuforums.org/showthread.php?t=131267
或者说,就是照抄这篇文章上的作法
1.装驱动
代码:
修改配置:
查找module区段,看看有没有Load "GLcore"或者Load "dri"
如果有,在前面用#注释掉
并且查找Load "glx",确保这行有且没有被注释掉即可
然后查找Device区段
大概看起来会像是这样:
但这篇文章给出的这一段不太合适,我帖一下我的:
我开始只是直接copy文章上的那个配置,然后果然启动后没进去X。。。
决定只是保留RenderAccel和AllowGLXWithComposite部分,剩下的用我原来xorg.conf就OK了
文章中还提到如果xgl还是启动不料,可以在xorg.conf下面添加这一段:
有关显卡的配置到此结束,开始准备安装xgl
2.先安装XGL:
修改一个配置文件:
让其有效的内容如下:
然后运行这个命令:
在打开的文件中(应该是空白的才对),填入下列语句 :
保存退出,然后修改这个文件的权限:
重新启动,第二部分结束
3.设置区域并启动XGL
重启后运行这句:
<language>这里填入你的国家的缩写,美国的是us,中国我开始实验ch发现不对……ch难道是chile的缩写么
反正后来我改成gb后就正常了(但好像还有一点小bug)
最后一步到了,在终端里头运行:
就可以了!
试试看拖动窗口以及这些快捷键
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
其实基本还是翻译的这篇文章:
http://www.ubuntuforums.org/showthread.php?t=131267
或者说,就是照抄这篇文章上的作法
1.装驱动
代码:
代码: 全选
sudo apt-get install nvidia-kernel-common nvidia-glx
代码: 全选
sudo gedit /etc/X11/xorg.conf
如果有,在前面用#注释掉
并且查找Load "glx",确保这行有且没有被注释掉即可
然后查找Device区段
大概看起来会像是这样:
代码: 全选
Section "Device"
Identifier- leave this line alone!
Driver "nvidia"
BusID "PCI:1:0:0"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
代码: 全选
Section "Device" Identifier "NVIDIA Corporation NV35 [GeForce FX 59
Driver "nvidia"
BusID "PCI:2:0:0"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Option "NoLogo"
EndSection
决定只是保留RenderAccel和AllowGLXWithComposite部分,剩下的用我原来xorg.conf就OK了
文章中还提到如果xgl还是启动不料,可以在xorg.conf下面添加这一段:
代码: 全选
Section "Extensions"
Option "Composite" "Enable"
EndSection
2.先安装XGL:
代码: 全选
sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome
代码: 全选
sudo gedit /etc/gdm/gdm.conf-custom
代码: 全选
[daemon]
[security]
[xdmcp]
[gui]
[greeter]
[chooser]
[debug]
[servers]# Override display 1 to use Xgl (DISPLAY 1 IMPORTANT FOR ATI FGLRX).
0=Xgl
[server-Xgl]
name=Xgl server
command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo
flexible=true
代码: 全选
sudo gedit /usr/bin/thefuture
代码: 全选
#!/bin/bash
gnome-window-decorator & compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &
代码: 全选
sudo chmod 755 /usr/bin/thefuture
3.设置区域并启动XGL
重启后运行这句:
代码: 全选
xmodmap /usr/share/xmodmap/xmodmap.<language>
反正后来我改成gb后就正常了(但好像还有一点小bug)
最后一步到了,在终端里头运行:
代码: 全选
thefuture
试试看拖动窗口以及这些快捷键
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