热门标签 | HotTags
当前位置:  开发笔记 > 运维 > 正文

debian4.0testing安装compiz

debian4.0testing安装compiz--Linux发行版技术-Debian信息,下面是详情阅读。
以前一直想弄BERYL,但是怎么也装不上!运行不了!嘿嘿,这回出了8.42,装上驱动就能启用COMPIZ了,嘿嘿!驱动安装是按UBUNTU里的方法装的!本版那个文章试了,我的机子上不行!

记录一下,以免忘记!

1、以前装过驱动的,要删除掉!
我的内核是2.6.22 ,前两天在2.6.18内核上装过驱动,升级系弘以后,ATI的3D驱动没了,我在新立得了把跟fglrx有关的包全删了,重启以后进不了X,把原来备份的xorg.conf文件弄到/etc/X11下就好了。

2、准备编译环境 :
apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-$

2、下载驱动,生成DEB包!
./ati-driver-installer-8.42.3-x86.x86_64 --buildpkg Debian/testing

3、安装:
dpkg -i *.deb

4、编译内核模块并安装:
module-assistant prepare
module-assistant update
module-assistant build fglrx
cd /usr/src
dpkg -i fglrx-kernel-*
depmod -a

5、修改xorg.conf
gedit /etc/X11/xorg.conf
把Driver 里面的ati换成 fglrx

加上两段:
Section "Extensions"
Option "Composite" "1"
EndSection

Section "ServerLayout"
Option "AIGLX" "on"
EndSection

6、要重启一下下!运行命令:fglrxinfo
# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon 9550 / X1050 Series
OpenGL version string: 2.0.6958 Release

运行glxinfo | grep render,信息如下!
# glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: ATI Radeon 9550 / X1050 Series

有这信息就成功了!

然后就按装COMPIZ

加入源:并下载安装公钥:
deb http://download.tuxfamily.org/shames...ktopfx/stable/ ./

apt-get install compiz compiz-gnome
apt-get install compizconfig-settings-manager (这个换成ccsm了)
apt-get install compiz-fusion-*
apt-get install fusion-icon

完了以后,又重启一下下,从菜单里单击compiz fusion icon ,开始运行3D桌面!

我第一次运行没有边框,打开Emerald Theme Manager,里面己有主题,选中一个,导出 ,再在Emerald Theme Manager ,import,好了,边框就出来了,不知道是什么回事,这时再选里面主题,也可以更换了!

(没边框是xorg.conf文件的问题,缺了两行内容,看下面的xorg.conf就知道了,有下划线的)

刚学DEBIAN,照猫画虎,弄出来的!

把xorg.conf文件贴上来:
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
EndSection

Section "Device"
Identifier "ATI Technologies Inc RV350 AS [Radeon 9550]"
Driver "fglrx"
BusID "PCI:1:0:0"
VideoRam 131072
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "XaaNoOffscreenPixmaps" (这里三行不能少,没它们就没边框)
EndSection

Section "Monitor"
Identifier "通用显示器"
Option "DPMS"
HorizSync 30-85
VertRefresh 50-160
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies Inc RV350 AS [Radeon 9550]"
Monitor "通用显示器"
DefaultDepth 24
SubSection "Display"
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "1"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
Option "AIGLX" "on"
EndSection

总之,是用上了compiz,好像有点不稳定。
推荐阅读
author-avatar
你给的未来丶我不要
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有