compiz在debian上的安装和使用


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).
  • xorg.conf
接下,要对 /etc/X11/xorg.conf 进行一点小小的改动。
Section "Module"中第一行,加上
   Load   "dbe"
Section "Device"中最后一行,加上
   Option   "XAANoOffscreenPixmaps"   "true"
如果你还没有 Section "Extensions",就在xorg.conf中任意位置加上
Section   "Extensions"
Option "Composite" "Enable"
EndSection
NVIDIA 用户应该再在Section "Screen" 中加下这2行:
   Option   "AddARGBGLXVisuals"   "true"
DefaultDepth 24
以及在 Section "Device" 中还有这2行:
   Option   "AllowGLXWithComposite"   "true"
Option "TripleBuffer" "true"
  • AIGLX
从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
接下来,安装 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

  • Tips
可从  这里  找到我的配置文件 xorg.conf

用这条命令可以看到完整的 compiz 快捷方式列表
grep -A 2 '<' /usr/share/gconf/schemas/compiz.schemas
或者你在控制台下运行 gconf-editor,找Apps->compiz->plugins,下面就有说明的。
比较好玩的就是 ctrl-alt-左键拖动,更多的自己看吧。网上也有操作的,主页上也有说明。

如果你碰到任何奇怪的问题,比如没有窗口边框之类的,只要删除 compiz 的 gconf 记录
rm -r ~/.gconf/apps/compiz/
然后,再重启 GNOME 就行了。如果还是有问题,除了删除 compiz 的 gconf 记录外,再删除 ~/.config 文件。这样应该有用了,再不行的话,你找原作者说去吧。呵呵。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值