其实基本还是翻译的这篇文章:
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