操作系统

compiz在debian上的安装和使用
作者 nico 2007年12月16日 12:17

    原文在 http://technowizah.com/2006/10/debian-how-to-aiglx-compiz.html

    我没有完整的翻译,只把我认为非常重要的贴了上来。

    http://wiki.debian.org/Compiz

    很多有用的信息。解释了很多了问题

    

    先用

    glxinfo | grep direct

    看看你的系统有没有打开 direct rendering,这很关键。正常情况下,应该打开了,看到

    direct rendering: Yes

    如果你的机器上没有 glxinfo 这个命令,就要装上 mesa-utils

    或者你可以用我自己发现的方法

    cat /var/log/Xorg.0.log | grep direct

    正常情况下应该返回

     Indirect CPU to Screen color expansion

     (II) I810(0): direct rendering: Enabled

    呵呵,我是 intel 的集成显卡。各人的显卡驱动不同的。

    如果你没有看到相应的内容,请先去装上合适的驱动。一般来说 INTEL 的显卡没什么问题,NVIDIA 和

    ATI 的就要装上各自的驱动了。原因不用我多说了,相信各位用 NVIDIA 和 ATI 的都很主动地装过了。

    以下2个地址,是给有疑问的人准备的。

    http://technowizah.com/2006/11/debian-how-to-nvidia-drivers.html

    http://technowizah.com/2006/10/debian-how-to-ati-drivers.html

    

     A 3D desktop with Compiz, showing a very handy feature : "expose" (a la Mac OS X).

    

    接下,要对 /etc/X11/xorg.conf 进行一点小小的改动。

    在Section "Module"中第一行,加上

     Load "dbe"在Section "Device"中最后一行,加上

     Option "XAANoOffscreenPixmaps" "true"如果你还没有Section "Extensions",就在xorg.conf中任意位置加上

    Section "Extensions"

     Option "Composite" "Enable"

    EndSectionNVIDIA 用户应该再在Section "Screen" 中加下这2行:

     Option "AddARGBGLXVisuals" "true"

    DefaultDepth 24以及在Section "Device" 中还有这2行:

     Option "AllowGLXWithComposite" "true"

     Option "TripleBuffer" "true"

    

    从xorg7.1开始,AIGLX 就已经被整合进 X server了,正常情况下,它是自动加载的。用

    cat /var/log/Xorg.0.log | grep -i aiglx

    来看一下,正常情况下看到 (==) AIGLX enabled,可以忽略所有的警告。如果有人知道它们的意思,

    请告诉我。反正我是用 google 找了半天都没知道是什么意思。

    如果没看到相应的内容,就需要手工添加了。

    在Section "ServerLayout" 中加上:

     Option "AIGLX" "true"

    需要注意的是,严格地讲,从 1.0-9629 版本起,NVIDIA drivers 就不用 AIGLX 了,但配置文件还

    是一样的。

    

    接下来,安装 compiz

    sudo apt-get install compiz然后把 compiz 加入你的桌面环境(Gnome, KDE, or Xfce)中去,并把它作为自动启动项目。各人的桌面各个清楚,这个我就不翻译了。

    Gnome

    Go in Desktop -> Preferences -> Sessions. Then choose the Startup Programs tab and add an entry for Compiz :

    compiz --replace --fast-filter

    KDE

    Simply create a file ~/.kde/Autostart/compiz.desktop with this content :

    [Desktop Entry]

    Encoding=UTF-8

    Exec=compiz --replace gconf & kde-window-decorator &

    GenericName[en_US]=

    StartupNotify=false

    Terminal=false

    TerminalOptions=

    Type=Application

    X-KDE-autostart-after=kdesktop

    Xfce

    Simply edit the file /usr/share/desktop-base/profiles/xdg-config/xfce4-session/xfce4-session.rc (or /etc/xdg/xfce4-session/xfce4-session.rc) and replace xfwm4 with compiz:

    Client0_Command=compiz --fast-filter

    That's it. Restart the X server and you are good to go.

    

    The "film view", showing multiple desktops

    

    可从

    这里

     找到我的配置文件 xorg.conf

    用这条命令可以看到完整的 compiz 快捷方式列表

    grep -A 2 '或者你在控制台下运行 gconf-editor,找Apps->compiz->plugins,下面就有说明的。

    比较好玩的就是 ctrl-alt-左键拖动,更多的自己看吧。网上也有操作的,主页上也有说明。

    如果你碰到任何奇怪的问题,比如没有窗口边框之类的,只要删除 compiz 的 gconf 记录

    rm -r ~/.gconf/apps/compiz/然后,再重启 GNOME 就行了。如果还是有问题,除了删除 compiz 的 gconf 记录外,再删除 ~/.config 文件。这样应该有用了,再不行的话,你找原作者说去吧。呵呵。

    

    

    

    

    

    

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/37261/showart_443665.html

打开APP阅读全文

compiz在debian上的安装和使用

compiz在debian上的安装和使用

长按识别二维码 进入IT168查看全文

请长按保存图片
{{data.thematic.text}}

相关文章

加载中...

分享到

请使用浏览器的分享功能
分享到微信等