存档

‘Configure’ 分类的存档

tmpfs的应用

2008年12月25日

什么是tmpfs?tmpfs是一个高效的文件系统,之所以高效,是因为其使用内存作为存储设备。通过tmpfs,我们能像使用硬盘一样的使用内存。众所周知,内存的读取写入速度是硬盘不能比拟的。但由于内存的易失性,当系统掉电时,所有在tmpfs上的内容将会丢失。根据这些特性,我们可以将一些目录挂载到tmpfs文件系统下,设置正确下还能起到加快某些命令执行的速度。例如 pacman -Ss 。而且从这篇文章得知,tmpfs还会自动释放出未用的空间,大可放心的使用tmpfs。下面我列举一些我在Archlinux上使用tmpfs的一些心得。
首先建议物理内存容量至少要有1G以上,过少的内存反而会起反效果。例如我的物理内容容量为2G。(现在内存都是白菜价了)下面列举一些可以挂载到tmpfs上的目录,当然,你也可以将其他目录也挂载上去,这主要看你的内存大小和想象力了 :) ,例如你可以将整个 Firefox 都搬到内存上运行

/tmp
该目录是用来存放不同程序执行时产生的临时文件,既然是临时文件,即使在关机时没有保存也不会有大碍,而且还可以减少硬盘I/O读写次数。所以这个目录大可放心挂载到tmpfs上。

/var/tmp
功能上和/tmp目录相似,一些kde程序会用到这个目录。

/var/log
系统日志存放的目录。

/var/lib/pacman/sync(Archlinux特有)
这个目录是pacman特有的,用来存储每个可用仓库的软件列表,依赖关系等的信息。你每次执行 pacman -Sy 命令,就是将互联网上软件仓库的信息下载到这个目录,而执行 pacman -Ss 就是从这个目录下的信息中查询。如果将这个目录挂载到tmpfs上,可以加快搜索软件时的查询速度,但缺点是每次启动系统后都要重新执行一次 pacman -Sy 命令来生成这个目录下的内容,除非你用脚本控制每次关机都备份这个目录下的内容,如何取舍就要看各位了 :)

说了一大堆,那究竟如何才能挂载这些目录呢?方法很简单,直接写到 /etc/fstab 下,然后重启系统。不推荐直接用mount命令挂载,这会马上清空这些目录下的内容,有可能会导致正在运行的程序出错。

将下面这句加入到 /etc/fstab 内。

none /tmp tmpfs defaults,size=100m 0 0

值得注意 size=100m 这个选项,这是控制使用多少内存的关键,如果不加上这个选项,将默认使用一半容量的内存。这里我让其使用100M的内存空间,并挂载到 /tmp 下。其他的目录请如此类推,又或者加大 /tmp 下的空间,例如使用300M内存,然后将其他目录做符号链接到 /tmp 下,总之实现的方法有很多,就看各位喜欢 :) 。enjoy it !

PS:祝大家生蛋节快乐! :D

Configure , , ,

提高 nvidia 显卡驱动性能

2008年7月28日

在用了3个月的 nvidia 8600GT 后,发觉其 2d 性能相对于以前的 ATI 7500 没有多少的提升,而且在某些应用上还不升反降。例如 Firefox ,平时使用时简直就像以前用奔腾2装winxp一样,慢得一塌糊涂,标签页间的切换要等,Ctrl+T要等,上下拖动网页也要等,-_-,起初还以为 Linux 版的 Firefox 问题,还一度用了 opera 一段时间,但是问题依然存在。
如果你和我一样正在使用 GF8600GT 显卡(或者更新的9000系列),同样碰到以下的问题(包括但不限于-_-)

  • Firefox 缓慢
  • 平时拖动窗口会有延迟的现象
  • compiz的部分特性缓慢,例如 3D Windows、Animations、窗口最大化和卷起时很卡等

那么恭喜你,你和我一样遇到了 nvidia 驱动一个非常严重的 bug 了-_- ,目前并没有有效的解决方法,只能希望 nvidia 能在下一个驱动解决。大家也可以用下面提到的方法缓解该症状(2009年1月26日更新)使用版本号大于180.22的驱动,已经基本上解决这个bug了,但一些网站仍然会比较卡,例如太平洋电脑网

最后贴上我的 xorg.conf 文件中的 Device 段,Firefox 的缓慢现象有比较明显的改善。

Section “Device”
Identifier “Card0″
Driver “nvidia”
VendorName “nVidia Corporation”
BoardName “GeForce 8600 GT”
BusID “PCI:6:0:0″
Option “NoLogo” “True”
Option “RenderAccel” “True”无需添加,默认已经启动了
Option “DamageEvents” “True”无需添加,默认已经启动了
Option “BackingStore” “True”在xorg-server1.5.3里不建议设这个值
Option “UseCompositeWrapper” “True”
Option “TripleBuffer” “True”
Option “PixmapCacheSize” “300000″
Option “OnDemandVBlankInterrupts” “True”
EndSection

Configure ,

用 iptables 实现端口映射

2008年7月25日

由于我这里是几台 Windows 连接网关通过ADSL共享上网的,网关为 Archlinux ,单网卡,有两个网络接口,eth0链接内网,地址192.168.1.2;ppp0为ADSL拨号连接,地址自动分配,内网网段为 192.168.1.0/24 。
下图为物理拓扑图

物理拓扑图

比如内网上的pc1这台机想要BT下载,由于p2p的工作原理,我们必须在网关上打开到pc1的端口映射,这里假设pc1的ip地址为192.168.1.11,bt下载端口为11197。

# iptables -t nat -A PREROUTING -p tcp -i ppp0 –dport 11197 -j DNAT –to-destination 192.168.1.11:11197
# iptables-save -c > /etc/iptables/iptables.rules(这条命令不能用sudo,可以先执行su命令。不执行这条命令的后果是重启机器后要重新执行上一条命令)

就是这么简单,你现在已经打开了pc1的端口映射,而电驴的 HighID 问题也可以参考这个方法。附上一张内网BT下载的截图。(为啥我的下载速度这么慢?大家都限速了??)

utorrent-2008-07-25.JPG

Configure , ,

HowTo:搭建家用下载&路由服务器

2008年6月21日

其实这篇文章不能说是 HowTo ,最多只能说是我自己的安装笔记而已。该服务器主要用来下载和实现共享上网,有空还可以用它来研究iptables。整个系统没有鼠标键盘显示器,全都日常维护都是用SSH进行,所以使用了密钥的验证方式确保安全。下载方面用mldonkey实现,通过局域网内其他电脑用网页方式管理,唯一的不足是对BT下载支持不够。由于服务器基本上都是24小时运作的,所有在上面弄了个dnsmasq,实现DNS缓存和DHCP,局域网的其他机器ip都是自动获取,接上网线就能上网,十分方便。

先说说用到的软件

  • ArchLinux
  • ssh
  • iptables
  • dnsmasq
  • mldonkey

ArchLinux
选择安装包时只选择 base 组,加上 support 组中 re-pppoe,sudo,iptables等几个包,安装一个最小系统。安装完后运行

# pacman-optimize
# sync
# pacman -Syu mldonkey dnsmasq

ssh
为了安全,我这里设置了只允许用密钥验证,以下是我的 /etc/ssh/sshd_config 文件的内容

Port 22
ListenAddress 0.0.0.0
Protocol 2

KeyRegenerationInterval 1h
ServerKeyBits 768

LoginGraceTime 2m
PermitRootLogin yes

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
PermitEmptyPasswords no

ChallengeResponseAuthentication no
UsePAM yes
Subsystem sftp /usr/lib/ssh/sftp-server

iptables
由于服务器上只有一张网卡连接到交换机,再通过交换机连接到 ADSL Modem 上,所以需要共享服务器上的ppp0链接让局域网上的其他机器上网。

# iptables -F INPUT
# iptables -F FORWARD
# iptables -F POSTROUTING -t nat
# iptables -t nat -F
# iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o ppp0 -j MASQUERADE
# iptables-save -c > /etc/iptables/iptables.rules

dnsmasq
这个主要是用来做 dns 缓存和 dhcp 服务,参考了 firefoxmmx 写的这篇教程《提高ADSL(pppoe)上网速度

# vi /etc/dnsmasq.conf

找到下面这一项

#resolv-file=

用下面的一条语句替换

resolv-file=/etc/resolv_dnsmasq.conf

将下面两句前的注释符号删除

interface=eth0
dhcp-range=192.168.1.10,192.168.1.20,255.255.255.0,24h

创建新的dns配置文件,把自己常用的DNS添加到/etc/resolv_dnsmasq.conf中

# cp /etc/resolv.conf /etc/resolv_dnsmasq.conf

编辑 /etc/ppp/pppoe.conf

# vi /etc/ppp/pppoe.conf

找到下列一行

PEERDNS=NO

并在该行下面添加

DNS1 = 127.0.0.1

mldonkey
这里要注意 mldonkey 默认只允许 127.0.0.1 访问,要首先设置允许其他网段访问。~/.mldonkey/downloads.ini 文件的第37行就是设置的地方。再配合《导入 amule/emule 的设置到 Mldonkey》和《让 MLDonkey 导入 amule/emule 的临时文件》两篇文章,驴子基本上能全速运行了,如果你遇到中文文件名变成下划线的问题,可以参考这篇文章《 解决 Mldonkey 中文文件变下划线问题 》。

最后启动服务
# /etc/rc.d/iptables start
# /etc/rc.d/sshd start
# /etc/rc.d/samba start
# /etc/rc.d/dnsmasq start
# /etc/rc.d/mldonkey start

或者编辑 /etc/rc.conf 文件,添加到 daemon 段中。

ok,收工,enjoy it。

Configure , , , , ,

打开 AMD cpu 的 Cool’n'Quiet

2008年5月7日

Q:什么是 AMD cpu 的 Cool’n'Quiet?
A:这个是用来根据所执行的运算工作来改变自己的频率,降低处理器的发热量并降低功耗,这在我们平时浏览网页时尤为明显。

首先需要确保你的 CPU 支持 Cool’n'Quiet 并在 BIOS 中打开了相应的选项,然后用下列的命令查看内核是否支持

# dmesg | grep powernow

如果输出结果应该类似于下面的

powernow-k8: Found 1 AMD Athlon 64 / Opteron processors (version 1.60.2)
powernow-k8: 0 : fid 0×10 (2400 MHz), vid 0×2 (1500 mV)
powernow-k8: 1 : fid 0xe (2200 MHz), vid 0×6 (1400 mV)
powernow-k8: 2 : fid 0xc (2000 MHz), vid 0xa (1300 mV)
powernow-k8: 3 : fid 0xa (1800 MHz), vid 0xe (1200 mV)
powernow-k8: 4 : fid 0×2 (1000 MHz), vid 0×12 (1100 mV)

使用 cpudyn 来进行频率调整

# pacman -S acpid cpudyn

编辑 /etc/rc.conf ,在 MODULES 一行中加入下列模块

powernow-k8 cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_ondemand freq_table

在 DAEMONS 一行中加入

cpudyn

现在只要重启系统即可。

Configure ,

推荐台式机 7.10 用户使用 realtime 内核

2008年3月2日

realtime 内核(下面简称 rt)其实就是 Ubuntu Studio 默认使用的内核,这个内核经过优化,可以加快打开程序的速度,开启 compiz 后看视频会花屏的现象得到改善。我使用后的第一感觉是,响应速度明显加快了,尤其是打开 nautilus 的速度。缺点就是不适合用于笔记本电脑,会增加用电量的,而且也不适用于服务器版本。

suxixb@su:~$ uname -srvm
Linux 2.6.22-14-rt #1 SMP PREEMPT RT Tue Feb 12 09:57:10 UTC 2008 i686

安装 rt 内核

sudo apt-get install linux-backports-modules-rt linux-headers-2.6.22-14-rt linux-headers-rt linux-image-2.6.22-14-rt linux-image-rt linux-restricted-modules-rt linux-rt

安装完成后,重启,在 GRUB 处会叫您选择启动 rt 内核还是 generic 内核,选择 rt 项。

另外,Ubuntu 源内已经有不少编译好的内核了,其实完全可以挑一个自己喜欢的使用,平时用的 generic 内核属于通用内核。

suxixb@su:~$ apt-cache search linux-image
alsa-base – ALSA driver configuration files
linux-image – Generic Linux kernel image.
linux-image-386 – Linux kernel image on 386.
linux-image-debug-386 – Linux kernel debug image for 386 kernel image
linux-image-debug-generic – Linux kernel debug image for generic kernel image
linux-image-debug-server – Linux kernel debug image for server kernel image
linux-image-generic – Generic Linux kernel image
linux-image-server – Linux kernel image on Server Equipment.
linux-image-virtual – Linux kernel image geared towards virtualised hardware
linux-image-debug-ume – Linux kernel debug image for ume kernel image
linux-image-rt – Linux kernel image on realtime kernel
linux-image-ume – Linux kernel image on 386 Embedded/Mobile
linux-image-xen – Linux kernel image on Xen
rt2400-source – source for rt2400 wireless network driver
rt2500-source – source for rt2500 wireless network driver
virtualbox-ose-modules-2.6.22-14-generic – virtualbox-ose modules for linux-image-2.6.22-14-generic
virtualbox-ose-modules-2.6.22-14-server – virtualbox-ose modules for linux-image-2.6.22-14-server
xen-image-2.6.19-4-generic – Linux 2.6.19 image on PPro/Celeron/PII/PIII/P4
xen-image-2.6.19-4-server – Linux xen 2.6.19 image on x86.
linux-image-2.6.22-14-386 – Linux kernel image for version 2.6.22 on i386
linux-image-2.6.22-14-generic – Linux kernel image for version 2.6.22 on x86/x86_64
linux-image-2.6.22-14-server – Linux kernel image for version 2.6.22 on x86/x86_64
linux-image-2.6.22-14-virtual – Linux kernel image for version 2.6.22 on x86
linux-image-debug-2.6.22-14-386 – Linux kernel debug image for version 2.6.22 on i386
linux-image-debug-2.6.22-14-generic – Linux kernel debug image for version 2.6.22 on x86/x86_64
linux-image-debug-2.6.22-14-server – Linux kernel debug image for version 2.6.22 on x86/x86_64
linux-image-debug-2.6.22-14-virtual – Linux kernel debug image for version 2.6.22 on x86
linux-image-2.6.22-14-rt – Linux kernel image for version 2.6.22 on RT kernel
linux-image-2.6.22-14-ume – Linux kernel image for version 2.6.22 on Ubuntu Moblie and Embedded
linux-image-2.6.22-14-xen – Linux kernel image for version 2.6.22 on This kernel can be used for Xen dom0 and domU

Configure

在 Ubuntu 7.10 上安装 ATI Driver 8.03 和 compiz 0.6.99 (update 2008/3/6)

2007年11月22日

(更新于 08-3-6)
下载:ATI Driver 8.03,并假设放到 “/home/我的用户名/” 下

我的硬件环境:

  • CPU:AMD DualCore Athlon 64 X2, 2000 MHz (10 x 200) 3800+
  • 主板:Biostar(映泰) TForce 570 U
  • 显卡:ATI Radeon X1600 Pro (RV530)
  • 硬盘:西数 WD1600JB-00REA0
  • 网卡:主板自带
  • 声卡:主板自带

删除旧有驱动
如果您的是新装的系统,可以忽略该步,否则输入

sudo lrm-manager
sudo apt-get autoremove –purge fglrx*

安装必须的编译环境

sudo apt-get update
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-$(uname -r)

屏蔽fglrx核心模块

sudo gedit /etc/default/linux-restricted-modules-common

将里面的

DISABLED_MODULES=”"

改为

DISABLED_MODULES=”fglrx”

创建deb包并安装

bash *.run –buildpkg Ubuntu/gutsy
sudo dpkg -i *.deb
sudo apt-get -f install

配置驱动

sudo aticonfig –initial -f
sudo aticonfig –ovt=Xv

编辑 xorg.conf

sudo gedit /etc/X11/xorg.conf

在文件尾端添加

Section “Module”
load “dri”
load “dbe”
load “glx”
EndSection

Section “DRI”
Mode 0666
EndSection

Section “Extensions”
Option “RENDER” “true”
Option “DAMAGE” “true”
Option “Composite” “true”
Option “XVideo” “true”
EndSection

Section “ServerFlags”
Option “AIGLX” “Enable”
EndSection

找到 Section “Device” 并添加

Option “XAANoOffscreenPixmaps” “on”
Option “TexturedVideo” “on”
Option “Textured2D” “on”
Option “TexturedXrender” “on”
Option “BackingStore” “on”

ok,可以重启系统了,确认一下自己的驱动是否安装成功

fglrxinfo
glxinfo | grep render

如果出现以下的结果说明安装成功

suxixb@su:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1600 Series
OpenGL version string: 2.1.7412 Release

suxixb@su:~$

suxixb@su:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Radeon X1600 Series
suxixb@su:~$

以下是我的测试成绩

suxixb@su:~$ glxgears
34023 frames in 5.0 seconds = 6804.570 FPS
36599 frames in 5.0 seconds = 7319.708 FPS
36467 frames in 5.0 seconds = 7293.291 FPS
36344 frames in 5.0 seconds = 7268.694 FPS
36448 frames in 5.0 seconds = 7289.572 FPS
36506 frames in 5.0 seconds = 7301.147 FPS

suxixb@su:~$

安装 compiz fusion
到此,我们已经安装好 ATI 驱动并能正常使用了,是时候开始安装 compiz fusion,首先添加下列的源

deb http://kwatrow.nl/repo Gutsy compiz-fusion-git
wget http://kwatrow.nl/repo/Quattro.gpg -O- | sudo apt-key add -

执行一次更新

sudo apt-get update
sudo apt-get upgrade

首先把系统自带的 compiz 删除干净,去新立得里搜索 compiz ,把已经安装了的包全部彻底删除,或者用下面的命令

sudo apt-get autoremove –purge compiz compiz-*

安装新的 compiz

sudo apt-get install compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-unsupported

等待安装完成以后,到 “系统” ─ “首选项” ─ “外观” ─ “视觉效果” ,选择一个您喜欢的特效,怎样,效果还可以吧。当然,我们还需要更多的设置选项,继续下面的安装。

sudo apt-get install compizconfig-settings-manager emerald emerald-themes

让 compiz 使用 emerald 的主题

sudo gedit /usr/bin/compiz

找到下面的内容

# Defines the decorator and arguments.
# Set it to empty to make the script use the best decorator for your environment
DECORATOR=”"
DECORATORARGS=”"

改为下面的内容

# Defines the decorator and arguments.
# Set it to empty to make the script use the best decorator for your environment
DECORATOR=”emerald”
DECORATORARGS=”–replace”

ok,登出并重新登录 X ,世界变得更美妙了。

screenshot-desktop01-2008-03-04.png

screenshot-desktop02-2008-03-04.png

参考资料

  1. AIGLX
  2. 提升ati8.2驱动在compiz下的性能 by zhuqin_83
  3. ati官方驱动(非开源)的安装配置 by zhuqin_83
  4. gutsy下安装最新的 compiz 0.6.99(源) by zhuqin_83

Configure, Software , , ,

优化 GNOME 环境下的 KDE 程序字体

2007年11月13日

由于我一直使用 smplayer 来播放电影等,而 smplayer 是一个基于 Qt4 程序,虽然设置好了 GNOME 字体,但是并不适用于这些 KDE 程序,而继续使用 serif 字体,看上去很别扭。下面以 smplayer 为例,说说如何解决 KDE 程序的字体问题,而 GNOME 的字体优化可以看看我写的这篇《使用苹果字体美化 Ubuntu 7.10》

首先安装必要的工具,打开终端或用新立得安装 qt4-qtconfig 和 kcontrol

sudo apt-get install qt4-qtconfig kcontrol

等安装完成后,在终端运行

qtconfig-qt4

去到 “Fonts” 选项卡,把 “Default Font” 里的字体设置为您喜欢的,如下图,按 “Ctrl+S” 保存。

screenshot-qt-configuration-fonts-07-11-13.png

然后运行

kcontrol

将会打开 KDE Control Center (KDE 控制中心),去到 “Appearance & Themes(外观与主题)” — “Fonts(字体)” 下,把字体设为自己喜欢的,如下图

screenshot-fonts-kde-control-center-07-11-13.png

然后把 “Force fonts DPI(强制字体分辨率)” 设为 “96 DPI”,“Use anti-aliasing(圆整字体边角)” 设为 “Enable(启用)”,点 “Configure(配置)”,把 “Hinting style(微调样式)” 设为 “None(无)”,如下图

screenshot-configure-anti-alias-settings-kde-control-center-07-11-13.png

因为 GNOME 环境的字体分辨率一般是 96,而 KDE 一般是 75 ,设置为哪个值就由各位看官决定了,只需保持一致。如果不知道自己 GNOME 字体的分辨率,可以到 “系统” — “首选项” — “外观”,去到 “字体” 选项卡,点 “细节”,最上面的数值便是您的字体分辨率,如下图所示。

screenshot-gnome-fonts-dpi-07-11-13.png

最终效果如下

screenshot-smplayer-fonts-07-11-13.jpg

Configure , , ,

在 ubuntu 上配置 samba 服务

2007年10月27日

在通常情况下,要想实现 ubuntu 和 windows 之间的资源共享,需要借助 samba 服务,而ubuntu 自带的“共享文件夹”功能比较单一,需要进行一番设置才能实现共享的。以下是我在 7.10 上配置 samba 的过程。

安装 samba

sudo apt-get install samba smbfs

配置 smb.conf

sudo gedit /etc/samba/smb.conf

查找下列文字

; security = user

将其代替为

security = user
username map = /etc/samba/smbusers

继续查找下列文字

workgroup = MSHOME

将其代替为

workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936

添加允许网络访问的用户

sudo gedit /etc/samba/smbusers

输入下列内容。注意 suxixb 是我的登录名,需要换成您的,下同

suxixb = “network username”

更改用户的网络访问密码,可以不同于系统的登录密码

sudo smbpasswd -a suxixb

重启一下 samba 服务

sudo /etc/init.d/samba restart

好了,要在 windows 上访问 ubuntu的资源,只需在 “开始”—“运行” 里打 “\\ip 地址”,输入用户名和密码,ok。在 ubuntu 上需要用 “smb://ip 地址” 访问,不过需要在 windows 上赋予相关的权限

附:

  1. 删除上面添加的网络使用者的帐号

    sudo smbpasswd -x suxixb

  2. ubuntu 上添加共享
    去到 “系统”—“系统管理”—“共享的文件夹”,点 “添加”,选择要共享的目录,选是否给予写权限,点 “确定”。

Configure , ,

ATI x1000 系列显卡在 7.10 上安装 fglrx 8.42.3

2007年10月25日

这是我的安装记录,先说说我的硬件:

  • CPU:AMD DualCore Athlon 64 X2, 2000 MHz (10 x 200) 3800+
  • 主板:Biostar(映泰) TForce 570 U
  • 显卡:ATI Radeon X1600 Pro (RV530)
  • 硬盘:西数 WD1600JB-00REA0 + WD1600JD-00HBB0 + WD1600JS-00MHB0
  • 网卡:主板自带
  • 声卡:主板自带

参考了不少资料,终于在我生日的这天安装了 8.42.3 ,哈哈,写下这篇文章纪念。

参考:

  1. 如果之前安装了 xgl ,需要先卸载

    sudo apt-get remove xserver-xgl

  2. 卸载之前安装的旧驱动,或者用 “受限驱动管理器” 卸载。

    sudo apt-get remove xorg-driver-fglrx

  3. 删除旧的 fglrx 软件包

    sudo rm -f /usr/src/fglrx-kernel*.deb

  4. 修改配置文件,加入一个 disable 在双引号当中

    sudo gedit /etc/default/linux-restricted-modules-common

  5. 重启一次
  6. 下载驱动,把以下驱动下载到你要放置的地方,如您的主目录下:

    wget http://www2.ati.com/drivers/linux/ati-driver-installer-8.42.3-x86.x86_64.run

  7. 在下载驱动的期间,我们可以先安装需要的软件包

    sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-generic

  8. 当上面两步都完成后,cd 到驱动放置的目录,我这里是主目录,开始安装

    sudo sh ./ati-driver-installer-8.42.3-x86.x86_64.run

  9. 按照提示安装,一般选择自动安装,完成后不要重启电脑,先执行下面的命令。

    sudo /usr/X11R6/bin/aticonfig –initial

  10. 重启电脑吧!您会发现已经安装了 8.42.3 了。可以用下面的命令打开 Catalyst Control Center 面板,或者到 “应用程序” 下打开。

    amdcccle

  11. 启动 compiz 特效,执行下面的命令,看能不能启动成功

    SKIP_CHECKS=yes compiz

  12. 如果成功,执行下面命令,这样每次启动都会运行 Compiz Fusion

    mkdir -p ~/.config/compiz && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager

    或者到 “系统”—“首选项”—“外观”—“视觉效果”,选择自己喜欢的特效把。

Catalyst-Control-Center-Linux 界面

fglrxinfo 信息

启动 Compiz 成功

Configure , ,