免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1129 | 回复: 0
打印 上一主题 下一主题

从源码编译安装compiz 0.6.2 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-05 15:57 |只看该作者 |倒序浏览

                                  很多地方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稳定版,下载地址:
compiz-0.6.2.tar.gz
,在安装前首先要检查以下包是否已经安装:

               
               
                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
最后添加到会话中,注销后重新登录,成功了!
如果想要搞得更复杂些,参考:
http://linuxdesktop.cn/2007/11/05/compile-compiz-fusion-from-sourcecode/
一文

               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/71976/showart_1073763.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP