爽了一下 compiz-fusion

LiYanrui posted @ Apr 12, 2008 06:21:11 AM in GNU/Linux & Unix with tags gentoo compiz-fusion , 7007 阅读

把 gnome 精简到 gnome-light 之后,节省了大概有 50M 的内存,重启时进入 gnome 桌面,发现内存占用不过 150M,心里感到无比清爽。尽管机器的内存是 2G,但是也不能随便浪费在那些我永远都可能用不到的程序上。如果非要我浪费一下内存,我倒是很愿意将它用到 compiz-fusion 上。

在 Gentoo 中安装 compiz-fusion 是件很简单的事情,但是需要注意以下几个问题:

  1. Gentoo 官方 portage 中收录的 compiz-fusion 目前只是 0.6.0,有点陈旧,不推荐,如果你喜欢历史或者考古,可以尝试一下;
  2. 网上有一些安装指南中如果是使用了 xeffects overlay,是不可能装上的,因为 xeffects overlay 已经不存在;
  3. 目前对 compiz-fusion 包提供支持的 overlay 是 desktop-effects。

在开始安装 compiz-fusion 之前,首先确认系统已经开启显卡 3D 加速,如果是 nvidia 卡,需要在 /etc/X11/xorg.conf 文件中开启了 "AddARGBGLXVisuals" 等选项,可以参考一下我的配置: 

# ...
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     32
                Modes   "1152x864"
        EndSubSection
       
        Option       "RenderAccel" "true"
        Option       "AllowGLXWithComposite" "true"
        Option       "AddARGBGLXVisuals" "True"
        Option       "NoLogo"          "True"
EndSection


Section "Extensions"
        Option     "Composite" "Enable"
EndSection

然后将 desktop-effects over 添加到 layman 中:

$ sudo layman -a desktop-effects

做好上述工作,就可以安装了,但是要面对两个选择,一是选择安装最新的 release 版本,二是选择安装处于开发中的版本,若选择前者,可:

$ sudo emerge -avt compiz-fusion  fusion-icon

若安装开发中的 compiz-fusion 版本,首先要解除 9999 版本限制,可在 /etc/portage/package.keywords 文件中添加如下代码:

dev-python/compizconfig-python **
x11-wm/compiz **
x11-wm/compiz-fusion **
x11-plugins/compiz-fusion-plugins-main **
x11-plugins/compiz-fusion-plugins-extra **
x11-plugins/compiz-fusion-plugins-unsupported **
x11-plugins/compiz-fusion-plugins-wallpaper **
x11-wm/emerald **
x11-themes/emerald-themes **
x11-apps/ccsm **
x11-libs/libcompizconfig **
x11-libs/compizconfig-backend-gconf **
x11-libs/compizconfig-backend-kconfig **
x11-libs/compiz-bcop **
x11-apps/fusion-icon **

然后再:

$ sudo emerge -avt compiz-fusion  fusion-icon

安装完后,打开 gnome 桌面菜单项 Applications -> System Tools -> Compiz Fusion Icon,会在 gnome panel notification area 中出现 Fusion Icon 图标,其右键菜单中提供了 gnome Metacity 环境与 Compiz 环境的切换及 Compiz-fusion 配置等功能。

推荐安装开发中的版本,因为可以提前体验许多新功能,:D 我最欣赏的一个新功能是 Expo 配置中的 Curver 功能,感觉它要比 desktop cube 有用多了,给个图炫耀一下

Head_small
四圣兽★白虎 说:
2008年4月12日 08:45 我还是比较喜欢cube,因为好玩~ 以前用beryl有一个功能,鼠标移到右上角时所有窗口会排列在桌面上,升级到Ubuntu7.10后Compiz-fusion貌似没这个功能了
Avatar_small
LiYanrui 说:
2008年4月12日 17:46 @ 四圣兽★白虎: 开启 CCSM->Window Management->Scale 功能,可以实现窗口排列。
Head_small
四圣兽★白虎 说:
2008年4月13日 16:12

嘿嘿,找到了

改了下动作,和原来效果一样了(虽然我只是觉得好玩)

多谢了^^

Zer4tul 说:
2008年9月13日 09:37

Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"

这个好像是nvidia的特有选项吧?

Avatar_small
Li Yanrui 说:
2008年9月13日 15:57

@ Zer4tul:

嗯,我一直都没用过 ati


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter