Posted on 2011-08-20 12:16
eamon 阅读(253)
评论(0) 编辑 收藏 引用 所属分类:
Linux系统
1.向/etc/apt/sources.list添加:deb http://www.beerorkid.com/compiz edgy main-edgy
2.添加key:wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
3.安装 nvidia官方驱动sudo apt-get install nvidia-glx运行glxgears,检查驱动是否安装正确。4.安装必要的包:sudo apt-get install compiz compiz-gnome xserver-xgl xserver-xorg libgl1-mesa-glx libglitz-glx1 cgwd cgwd-themes
5.编辑 /etc/X11/xorg.conf 注释掉GLcore 和 dri# Load "GLcore"
# Load "dri"
Load "glx"
启动3D加速Section "Device"
Identifier- leave this line alone!
Driver "nvidia"
BusID "PCI:1:0:0"
Option "RenderAccel" "true"
EndSection
添加扩展Section "Extensions"
Option "Composite" "Enable"
EndSection
6.编辑/etc/gdm/gdm.conf-custom :# GDM Configuration Customization file.
#
# This file is the appropriate place for specifying your customizations to the
# GDM configuration. If you run gdmsetup, it will automatically edit this
# file for you and will cause the daemon and any running GDM GUI programs to
# automatically update with the new configuration. Not all configuration
# options are supported by gdmsetup, so to modify some values it may be
# necessary to modify this file directly by hand.
#
# To hand-edit this file, simply add or modify the key=value combination in
# the appropriate section in the template below. Refer to the comments in the
# gdm.conf file for information about each option. Also refer to the reference
# documentation.
#
# If you hand edit a GDM configuration file, you should run the following
# command to get the GDM daemon to notice the change. Any running GDM GUI
# programs will also be notified to update with the new configuration.
#
# gdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
# For example, the "Enable" key in the "[debug]" section would be specified by
# "debug/Enable".
#
# You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
# re-read the new configuration settings. You can also restart GDM by sending
# a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart and will wait until all users log out before restarting GDM.
#
# For full reference documentation see the gnome help browser under
# GNOME|System category. You can also find the docs in HTML form on
# http://www.gnome.org/projects/gdm/
#
# NOTE: Lines that begin with "#" are considered comments.
#
# Have fun!
[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
7.运行 选择 System->Preferences->Sessions,在Startup Programs中添加 /usr/bin/compiz-start 重启系统。