XGL:非常酷

安装好显卡驱动后,现在就来体验一下酷酷的XGL:
首先添加源:

deb http://www.beerorkid.com/compiz edgy main-edgy
deb http://media.blutkind.org/xgl/ edgy main-edgy
deb http://ubuntu.compiz.net/ edgy main-edgy

获取签名:

wget http://www.beerorkid.com/compiz/quinn.key.asc -O – | sudo apt-key add -
wget http://media.blutkind.org/xgl/quinn.key.asc -O – | sudo apt-key add -
wget http://ubuntu.compiz.net/quinn.key.asc -O – | sudo apt-key add -

更新源,安装XGL

sudo aptitude update
sudo aptitude install xserver-xgl compiz-gnome cgwd cgwd-themes cgwd-themes-extra gnome-compiz-manager

创建/usr/bin/startxgl:

sudo nano /usr/bin/startxgl

ATI显卡

#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
exec gnome-session

NVIDA显卡

#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:fbo -accel glx:pbuffer &
DISPLAY=:1
exec gnome-session

修改权限,创建会话文件

sudo chmod +x /usr/bin/startxgl
sudo nano /usr/share/xsessions/xgl.desktop

会话文件:

[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/bin/startxgl
Icon=
Type=Application

注销,选择XGL会话。
登录进来后运行,这一步好像以后可以忽略。

cgwd –replace && compiz –replace gconf

然后其他的设置都可以通过工具栏上的小立方体来进行操作。

参考:
1 http://xgl.compiz.info/
2 http://www.ubuntuforums.org/showthread.php?t=232662&highlight=xgl

This entry was posted in Linux and tagged , . Bookmark the permalink.

4 Responses to XGL:非常酷

  1. wlx [微博 ] says:

    问题:在gdm登录时必须手工选择XGL会话,即使把XGL作为默认会话进入会有问题,BORDER和TITLEBAR会消失,不知道是什么原因。

  2. wlx [微博 ] says:

    这个地方的howto好像不全,最全的参考这儿:
    Xgl and compiz how to for gnome (ati 32 bit)
    还要新建一个startcompiz文件:

    #!/bin/sh
    killall gnome-window-decorator
    wait

    # cgwd安装前使用
    # gnome-window-decorator &
    # cgwd安装后采用
    cgwd &
    compiz –replace gconf &

    然后赋予755权限,并添加到gnome session中。
    若想正常切换GNOME和XGL,还可以这样处理:
    在startxgl中添加:
    touch /tmp/Xgl-session
    然后修改startcompiz为

    #!/bin/sh
    if [ ! -f /tmp/Xgl-session ];then
    exit 1
    else
    rm /tmp/Xgl-session
    killall gnome-window-decorator > /dev/null 2>&1
    wait
    # gnome-window-decorator &
    cgwd&
    compiz –replace gconf &
    fi

    参考:http://www.compiz.net/topic-389-21.html

  3. Pingback: GIS RS Linux » i915的XGL与AIGLX - research of gis, rs, opensource.

  4. Pingback: GIS RS Linux

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string 1Tu58Z to the field below:

以新浪微博帐号登录