Chinaunix首页 | 论坛 | 博客
  • 博客访问: 29446
  • 博文数量: 5
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 60
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-21 11:39
文章分类

全部博文(5)

文章存档

2009年(4)

2008年(1)

我的朋友
最近访客

分类: LINUX

2008-07-05 15:57:00

  很多地方compiz的安装都采用已经打包的格式,自然方便,简洁,但针对RHEL 5.2的rpm包似乎还没有,所以只好自己动手,丰衣足食了。
  首先得配置好显卡驱动,我的显卡是N卡,xorg.conf文件如下:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildmeister@builder63) Thu Jun 5 00:11:12 PDT 2008

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder63) Thu Jun 5 00:10:21 PDT 2008
# Xorg configuration created by pyxf86config

Section "Module"
    Load "extmod"
    Load "dbe"
    Load "type1"
    Load "freetype"
    Load "glx"
EndSection

Section "ServerLayout"
    Identifier "Default Layout"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
    Option "Xinerama" "0"
EndSection

Section "InputDevice"

    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
EndSection

Section "Monitor"
    Identifier "TCL_MF712"
    VendorName "TCL"
    ModelName "Tech. Concepts TCL MF712"
    HorizSync 30.0 - 86.0
    VertRefresh 30.0 - 160.0
    Option "DPMS"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce FX 5200"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "nvidia"
    Monitor "TCL_MF712"
    DefaultDepth 24

    Option "NoLogo" "true"    
    Option "AddARGBGLXVisuals" "true"
    Option "DisableGLXRootClipping" "true"
    Option "TwinView" "0"
    Option "TwinViewXineramaInfoOrder" "CRT-0"
    Option "metamodes" "1024x768_85 +0+0; nvidia-auto-select +0+0"

    SubSection "Display"
        Depth 24
    EndSubSection
EndSection

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


  安装的compiz为0.6.2稳定版,下载地址:,在安装前首先要检查以下包是否已经安装:
 

perl-XML-Parser
control-center-devel
freeglut-devel
gconf2-devel
intltool
libwnck-devel
xorg-x11-server-sdk
gconf-editor

Pyrex

然后进行安装目录
./configure && make && make install

这样以来,compiz库安装到/usr/local/lib下,为了以后其他程序能访问到这里的lib文件,需要做以下操作:
vim /etc/ld.so.conf.d/local.conf
加入:/usr/local/lib
刷新缓存:/sbin/ldconfig

为简单起见,使用gconf-editor配置compiz,需要输入以下命令配置
gconftool-2 -s /apps/compiz/general/allscreens/options/active_plugins "[gconf,decoration,wobbly,fade,minimize,cube,switcher,move,resize,place,rotate,zoom,scale,dbus,png,svg]" -t list --list-type=string
保险其见,打开应用程序-系统工具-配置编辑器,仔细查看/apps/compiz/general/allscreens/options/active_plugins 键值是否已经更改为上面方括号内字符串。

创建启动文件:vim /usr/bin/gocompiz

#!/bin/sh
# Compiz startup script for version 0.6
compiz --replace gconf &
gtk-window-decorator --replace &

 添加权限:chmod a+x /usr/local/bin/gocompiz

最后添加到会话中,注销后重新登录,成功了!
如果想要搞得更复杂些,参考: 一文


阅读(832) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:gentoo下用mutagen解决mp3标签乱码问题

给主人留下些什么吧!~~