<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>猪小猪&#039;space &#187; ubuntu</title>
	<atom:link href="http://www.openboy.net/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.openboy.net</link>
	<description>创造机会的人是勇者,等待机会的人是愚者..</description>
	<lastBuildDate>Mon, 15 Mar 2010 16:03:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>linux输入法推荐：sunpinyin</title>
		<link>http://www.openboy.net/linux-ubuntu-input-sunpinyin.html</link>
		<comments>http://www.openboy.net/linux-ubuntu-input-sunpinyin.html#comments</comments>
		<pubDate>Sun, 14 Mar 2010 05:01:29 +0000</pubDate>
		<dc:creator>猪小猪</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[sunpinyin]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[输入法]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=491</guid>
		<description><![CDATA[我现在就是在ubuntu下写这篇博客，最近买完500G硬盘又从新安装了ubuntu,大家切记不要在wubi下安装ubuntu了，很容易出现问题，升级一般都不成功－ －.从新安装完ubuntu，我在忍不了里面的输入法了，在准备放弃打中文时，找到了sunpinyin这个输入法，现在安装好，感觉很不错，不如google拼音只能但是也已经足够了.
在编译安装sunpin输入法中也出现过一些问题，记录一下.
下面都是以ubuntu下为例.
1.先下载sunpinyin输入法.
wget http://sunpinyin.googlecode.com/files/ibus-sunpinyin-2.0_rc8.tar.gz
2.解压缩sunpin输入法
tar xvf ibus-sunpinyin-2.0_rc8.tar.gz
3.编译安装sunpinyin输入法
安装编译环境，防止出现下面的错误
sudo apt-get install make gcc-c++ ibus-devel python-devel sqlite-devel
cd sunpinyin-2.0
 ./configure --enable-ibus --disable-documents --prefix=/usr --libexecdir=/usr/lib/ibus-sunpinyin
make &#38;&#38; su -c 'make install'
当然编译中会出现各种各样的错误..
checking for sqlite3&#8230; configure: error: Package requirements (sqlite3 &#62;= 3.0) were not
解决办法
sudo apt-get install libsqlite3-dev
configure: error: Your intltool is too old.  You need intltool 0.35.0 or later
解决办法
sudo apt-get install intltool
No package &#8216;ibus-1.0&#8242; [...]]]></description>
			<content:encoded><![CDATA[<p>我现在就是在ubuntu下写这篇博客，最近买完500G硬盘又从新安装了ubuntu,大家切记不要在wubi下安装ubuntu了，很容易出现问题，升级一般都不成功－ －.从新安装完ubuntu，我在忍不了里面的输入法了，在准备放弃打中文时，找到了<a title="linux下的输入法sunpinyin" rel="external nofollow" href="http://code.google.com/p/sunpinyin/">sunpinyin这个输入法</a>，现在安装好，感觉很不错，不如google拼音只能但是也已经足够了.</p>
<p>在编译安装sunpin输入法中也出现过一些问题，记录一下.</p>
<p>下面都是以ubuntu下为例.<span id="more-491"></span></p>
<p>1.先<a title="以ubuntu为例：wget xxx" rel="external nofollow" href="http://code.google.com/p/sunpinyin/downloads/list">下载sunpinyin输入法</a>.</p>
<pre>wget http://sunpinyin.googlecode.com/files/ibus-sunpinyin-2.0_rc8.tar.gz</pre>
<p>2.解压缩sunpin输入法</p>
<pre>tar xvf ibus-sunpinyin-2.0_rc8.tar.gz</pre>
<p>3.编译安装sunpinyin输入法<br />
安装编译环境，防止出现下面的错误</p>
<pre>sudo apt-get install make gcc-c++ ibus-devel python-devel sqlite-devel</pre>
<pre>cd sunpinyin-2.0</pre>
<pre> ./configure --enable-ibus --disable-documents --prefix=/usr --libexecdir=/usr/lib/ibus-sunpinyin</pre>
<pre>make &amp;&amp; su -c 'make install'</pre>
<p>当然编译中会出现各种各样的错误..<br />
checking for sqlite3&#8230; configure: error: Package requirements (sqlite3 &gt;= 3.0) were not<br />
解决办法</p>
<pre>sudo apt-get install libsqlite3-dev</pre>
<p>configure: error: Your intltool is too old.  You need intltool 0.35.0 or later<br />
解决办法</p>
<pre>sudo apt-get install intltool</pre>
<p>No package &#8216;ibus-1.0&#8242; found<br />
解决办法</p>
<pre>sudo apt-get install libibus-dev</pre>
<p>这样基本上就成功了，如果出现sunpin su：认证失败<br />
你可以切换到root</p>
<pre>sudo -i</pre>
<p>在从新编译下，就ok了。</p>

	标签：<a href="http://www.openboy.net/tag/linux" title="linux" rel="tag">linux</a>, <a href="http://www.openboy.net/tag/sunpinyin" title="sunpinyin" rel="tag">sunpinyin</a>, <a href="http://www.openboy.net/tag/ubuntu" title="ubuntu" rel="tag">ubuntu</a>, <a href="http://www.openboy.net/tag/%e8%be%93%e5%85%a5%e6%b3%95" title="输入法" rel="tag">输入法</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.openboy.net/ubuntu-chinese-flash-garbled.html" title="解决Ubuntu下中文flash乱码问题 (2009/05/08)">解决Ubuntu下中文flash乱码问题</a> (5)</li>
	<li><a href="http://www.openboy.net/ubuntu-go-alipay-no-wine.html" title="用ubuntu上支付宝最简单的方法 (2009/07/28)">用ubuntu上支付宝最简单的方法</a> (5)</li>
	<li><a href="http://www.openboy.net/received-foreign-post-ubuntu-cd.html" title="收到了国外邮寄来的Ubuntu光盘 (2009/07/05)">收到了国外邮寄来的Ubuntu光盘</a> (12)</li>
	<li><a href="http://www.openboy.net/linux-directory-structure-and-ssh-order.html" title="总结一些linux目录结构和终端命令 (2009/07/27)">总结一些linux目录结构和终端命令</a> (1)</li>
	<li><a href="http://www.openboy.net/try-vps-and-install-linux-nginx-mysql-php.html" title="初试VPS的一些感想以及安装LNMP (2010/02/21)">初试VPS的一些感想以及安装LNMP</a> (12)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/linux-ubuntu-input-sunpinyin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu系统优化</title>
		<link>http://www.openboy.net/ubuntu-linux-system-optimization.html</link>
		<comments>http://www.openboy.net/ubuntu-linux-system-optimization.html#comments</comments>
		<pubDate>Mon, 03 Aug 2009 04:47:21 +0000</pubDate>
		<dc:creator>猪小猪</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[系统]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=424</guid>
		<description><![CDATA[最近一直在搞ubuntu.话说,用起来很顺手是因为我上网真的不知道做什么，但是用起来还是觉得有那么一点慢..但是现在搞清楚了，不是ubuntu的问题,而是一些设置我没有做.
1.解决ubuntu/linux打开网页慢、网速慢的问题
Ubuntu感觉网速慢，打开网页比较慢，主要是把时间浪费在域名解析上。我们可以用dnsmasq解决这问题。
安装dnsmasq
命令:
sudo apt-get install dnsmasq
编辑dnsmasq的配置文件
命令:
sudo gedit /etc/dnsmasq.conf
找到下面这一项
#resolv-file=
用下面的一条语句替换
resolv-file=/etc/resolv.dnsmasq.conf
确保你没有更改过/etc/resolv.conf文件，如果改过，恢复原状
然后执行命令
sudo cp /etc/resolv.conf /etc/resolv.dnsmasq.conf
然后编辑resolv.conf
命令
sudo gedit /etc/resolv.conf
将其中的域名服务器全部去掉，加入以下这行
nameserver 127.0.0.1
如果用路由上网也可以加上路由的地址
保存，退出
执行以下命令
sudo gedit /etc/ppp/peers/wvdial
在 usepeerdns 前面增加 ＃ ，也就是把这条语句覆盖掉。
以防，resolv.conf的设置被pppoe覆盖。
重启电脑。不重启，你会发现无法解析域名。所以一定要重启电脑，来达到重新启动dnsmasq的目的。
重启后， 你会发现解析速度比以前快了很多.
2.利用sysv-rc-conf管理服务加快ubuntu/linux的启动速度
一、sysv-rc-conf简介
sysv-rc-conf是一个强大的服务管理程序，群众的意见是sysv-rc-conf比chkconfig好用。
二、背景知识
1.Ubuntu运行级别
Linux 系统任何时候都运行在一个指定的运行级上，并且不同的运行级的程序和服务都不同，所要完成的工作和要达到的目的都不同，系统可以在这些运行级之间进行切换，以完成不同的工作。

2.Ubuntu 的系统运行级别：
0 系统停机状态
1 单用户或系统维护状态
2~5 多用户状态
6 重新启动
查看当前运行级别,执行命令：
runlevel（ runlevel 显示上次的运行级别和当前的运行级别，“N”表示没有上次的运行级别。）
切换运行级别，执行命令：
int [0123456Ss]
（  即在 init 命令后跟一个参数，此参数是要切换到的运行级的运行级代号，如：用 init 0 命令关机；用 init 6 命令重新启动。）
Linux 系统主要启动步骤:
1. 读取 MBR 的信息,启动 Boot Manager
Windows 使用 NTLDR 作为 Boot Manager,如果您的系统中安装多个
版本的 Windows,您就需要在 NTLDR 中选择您要进入的系统。
Linux 通常使用功能强大,配置灵活的 GRUB 作为 [...]]]></description>
			<content:encoded><![CDATA[<p>最近一直在搞ubuntu.话说,用起来很顺手是因为我上网真的不知道做什么，但是用起来还是觉得有那么一点慢..但是现在搞清楚了，不是ubuntu的问题,而是一些设置我没有做.</p>
<h3>1.解决ubuntu/linux打开网页慢、网速慢的问题</h3>
<p>Ubuntu感觉网速慢，打开网页比较慢，主要是把时间浪费在域名解析上。我们可以用dnsmasq解决这问题。<br />
<strong>安装dnsmasq</strong></p>
<p>命令:
<pre>sudo apt-get install dnsmasq</pre>
<p>编辑dnsmasq的配置文件<span id="more-424"></span></p>
<p>命令:
<pre>sudo gedit /etc/dnsmasq.conf</pre>
<p>找到下面这一项</p>
<pre>#resolv-file=</pre>
<p>用下面的一条语句替换</p>
<pre>resolv-file=/etc/resolv.dnsmasq.conf</pre>
<p>确保你没有更改过/etc/resolv.conf文件，如果改过，恢复原状</p>
<p>然后执行命令</p>
<pre>sudo cp /etc/resolv.conf /etc/resolv.dnsmasq.conf</pre>
<p>然后编辑resolv.conf</p>
<p>命令
<pre>sudo gedit /etc/resolv.conf</pre>
<p>将其中的域名服务器全部去掉，加入以下这行</p>
<pre>nameserver 127.0.0.1</pre>
<p>如果用路由上网也可以加上路由的地址</p>
<p>保存，退出</p>
<p>执行以下命令</p>
<pre>sudo gedit /etc/ppp/peers/wvdial</pre>
<p>在 usepeerdns 前面增加 ＃ ，也就是把这条语句覆盖掉。</p>
<p>以防，resolv.conf的设置被pppoe覆盖。</p>
<p>重启电脑。不重启，你会发现无法解析域名。所以一定要重启电脑，来达到重新启动dnsmasq的目的。</p>
<p>重启后， 你会发现解析速度比以前快了很多.</p>
<h3>2.利用sysv-rc-conf管理服务加快ubuntu/linux的启动速度</h3>
<p><strong>一、sysv-rc-conf简介</strong><br />
sysv-rc-conf是一个强大的服务管理程序，群众的意见是sysv-rc-conf比chkconfig好用。<br />
<strong>二、背景知识</strong><br />
<strong>1.Ubuntu运行级别</strong><br />
Linux 系统任何时候都运行在一个指定的运行级上，并且不同的运行级的程序和服务都不同，所要完成的工作和要达到的目的都不同，系统可以在这些运行级之间进行切换，以完成不同的工作。<br />
<strong><br />
2.Ubuntu 的系统运行级别：</strong><span><strong><br />
0</strong></span> 系统停机状态<span><strong><br />
1</strong></span> 单用户或系统维护状态<span><strong><br />
2~5</strong></span> 多用户状态<span><strong><br />
6</strong></span> 重新启动</p>
<p><strong>查看当前运行级别,执行命令：</strong><br />
runlevel（ runlevel 显示上次的运行级别和当前的运行级别，“N”表示没有上次的运行级别。）</p>
<p><strong>切换运行级别，执行命令：</strong><br />
int [0123456Ss]<br />
（  即在 init 命令后跟一个参数，此参数是要切换到的运行级的运行级代号，如：用 init 0 命令关机；用 init 6 命令重新启动。）</p>
<p><strong>Linux 系统主要启动步骤:</strong><br />
1. 读取 MBR 的信息,启动 Boot Manager<br />
Windows 使用 NTLDR 作为 Boot Manager,如果您的系统中安装多个<br />
版本的 Windows,您就需要在 NTLDR 中选择您要进入的系统。<br />
Linux 通常使用功能强大,配置灵活的 GRUB 作为 Boot Manager。<br />
2. 加载系统内核,启动 init 进程<br />
init 进程是 Linux 的根进程,所有的系统进程都是它的子进程。<br />
3. init 进程读取 /etc/inittab 文件中的信息,并进入预设的运行级别,<br />
按顺序运行该运行级别对应文件夹下的脚本。脚本通常以 start 参数启<br />
动,并指向一个系统中的程序。<br />
通常情况下, /etc/rcS.d/ 目录下的启动脚本首先被执行,然后是<br />
/etc/rcN.d/ 目录。例如您设定的运行级别为 3,那么它对应的启动<br />
目录为 /etc/rc3.d/ 。<br />
4. 根据 /etc/rcS.d/ 文件夹中对应的脚本启动 Xwindow 服务器 xorg<br />
Xwindow 为 Linux 下的图形用户界面系统。<br />
5. 启动登录管理器,等待用户登录<br />
Ubuntu 系统默认使用 GDM 作为登录管理器,您在登录管理器界面中<br />
输入用户名和密码后,便可以登录系统。(您可以在 /etc/rc3.d/<br />
文件夹中找到一个名为 S13gdm 的链接)</p>
<p><strong>三、安装sysv-rc-conf</strong></p>
<pre>sudo apt-get install sysv-rc-conf</pre>
<p><strong>四、使用sysv-rc-conf</strong></p>
<pre>sudo sysv-rc-conf</pre>
<p>操作界面十分简洁，你可以用鼠标点击，也可以用键盘方向键定位，用空格键选择，用<span style="color: #ffffff;">Ctrl+N</span>翻下一页，用<span style="color: #ffffff;">Ctrl+P</span>翻上一页，用<span style="color: #ffffff;">Q</span>退出。</p>
<p><strong>常见的系统服务有：</strong><br />
acpi-support 高级电源管理支持<br />
acpid acpi 守护程序.这两个用于电源管理,非常重要<br />
alsa 声音子系统<br />
alsa-utils<br />
anacron cron 的子系统,将系统关闭期间的计划任务,在下一次系统运行时执行。<br />
apmd acpi 的扩展<br />
atd 类似于 cron 的任务调度系统。建议关闭<br />
binfmt-support 核心支持其他二进制的文件格式。建议开启<br />
bluez-utiles 蓝牙设备支持<br />
bootlogd 启动日志。开启它<br />
cron 任务调度系统,建议开启<br />
cupsys 打印机子系统。<br />
dbus 消息总线系统(message bus system)。非常重要<br />
dns-clean 使用拨号连接时,清除 dns 信息。<br />
evms 企业卷管理系统(Enterprise Volumn Management system)<br />
fetchmail 邮件用户代理守护进程,用于收取邮件<br />
gdm gnome 登录和桌面管理器。<br />
gdomap<br />
gpm 终端中的鼠标支持。<br />
halt 别动它。<br />
hdparm 调整硬盘的脚本,配置文件为 /etc/hdparm.conf。<br />
hibernate 系统休眠<br />
hotkey-setup 笔记本功能键支持。支持类型包括: HP, Acer, ASUS, Sony,Dell, 和 IBM。<br />
hotplug and hotplug-net 即插即用支持,比较复杂,建议不要动它。<br />
hplip HP 打印机和图形子系统<br />
ifrename 网络接口重命名脚本。如果您有十块网卡,您应该开启它<br />
inetd 在文件 /etc/inetd.conf 中,注释掉所有你不需要的服务。如果该文件不包含任何服务,那关闭它是很安全的。<br />
klogd 重要。<br />
linux-restricted-modules-common 受限模块支持。<br />
/lib/linux-restricted-modules/ 文件夹中的模块为受限模块。例如某些驱动程序,如果您没有使用受限模块,就不需要开启它。<br />
lvm 逻辑卷管理系统支持。<br />
makedev 创建设备文件,非常重要。<br />
mdamd 磁盘阵列<br />
module-init-tools 从/etc/modules 加载扩展模块,建议开启。<br />
networking 网络支持。按 /etc/network/interfaces 文件预设激活网络,非常重要。<br />
ntpdate 时间同步服务,建议关闭。<br />
pcmcia pcmcia 设备支持。<br />
powernowd 移动 CPU 节能支持<br />
ppp and ppp-dns 拨号连接<br />
readahead 预加载库文件。<br />
reboot 别动它。<br />
resolvconf 自动配置 DNS<br />
rmnologin 清除 nologin<br />
rsync rsync 守护程序<br />
sendsigs 在重启和关机期间发送信号<br />
single 激活单用户模式<br />
ssh ssh 守护程序。建议开启<br />
stop-bootlogd 在 2,3,4,5 运行级别中停止 bootlogd 服务<br />
sudo 检查 sudo 状态。重要<br />
sysklogd 系统日志<br />
udev &amp; udev-mab 用户空间 dev 文件系统(userspace dev filesystem)。重要<br />
umountfs 卸载文件系统<br />
urandom 随机数生成器<br />
usplash 开机画面支持<br />
vbesave 显卡 BIOS 配置工具。保存显卡的状态<br />
xorg-common 设置 X 服务 ICE socket。<br />
adjtimex 调整核心时钟的工具<br />
dirmngr 证书列表管理工具,和 gnupg 一起工作。<br />
hwtools irqs 优化工具<br />
libpam-devperm 系统崩溃之后,用于修理设备文件许可的守护程序。<br />
lm-sensors 板载传感器支持<br />
mdadm-raid 磁盘陈列管理器<br />
screen-cleanup 清除开机屏幕的脚本<br />
xinetd 管理其他守护进程的一个 inetd 超级守护程序</p>
<p><strong>优化swappiness </strong><br />
Ubuntu Feisty默认的vm.swappiness值是60,这一默认值已经很合适了。但你可以改小一些降低swap的加载，系统性能会有一点点的提升<br />
查看swappiness</p>
<pre>sysctl -q vm.swappiness</pre>
<p>修改swappiness为10</p>
<pre>sudo sysctl vm.swappiness=10</pre>

	标签：<a href="http://www.openboy.net/tag/ubuntu" title="ubuntu" rel="tag">ubuntu</a>, <a href="http://www.openboy.net/tag/%e4%bc%98%e5%8c%96" title="优化" rel="tag">优化</a>, <a href="http://www.openboy.net/tag/%e7%b3%bb%e7%bb%9f" title="系统" rel="tag">系统</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.openboy.net/ubuntu-chinese-flash-garbled.html" title="解决Ubuntu下中文flash乱码问题 (2009/05/08)">解决Ubuntu下中文flash乱码问题</a> (5)</li>
	<li><a href="http://www.openboy.net/ubuntu-go-alipay-no-wine.html" title="用ubuntu上支付宝最简单的方法 (2009/07/28)">用ubuntu上支付宝最简单的方法</a> (5)</li>
	<li><a href="http://www.openboy.net/received-foreign-post-ubuntu-cd.html" title="收到了国外邮寄来的Ubuntu光盘 (2009/07/05)">收到了国外邮寄来的Ubuntu光盘</a> (12)</li>
	<li><a href="http://www.openboy.net/ubuntu-linux-download-tool-aria2.html" title="Ubuntu/linux下最强大的下载工具－aria2 (2009/07/30)">Ubuntu/linux下最强大的下载工具－aria2</a> (2)</li>
	<li><a href="http://www.openboy.net/linux-ubuntu-input-sunpinyin.html" title="linux输入法推荐：sunpinyin (2010/03/14)">linux输入法推荐：sunpinyin</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/ubuntu-linux-system-optimization.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Ubuntu/linux下最强大的下载工具－aria2</title>
		<link>http://www.openboy.net/ubuntu-linux-download-tool-aria2.html</link>
		<comments>http://www.openboy.net/ubuntu-linux-download-tool-aria2.html#comments</comments>
		<pubDate>Thu, 30 Jul 2009 10:49:06 +0000</pubDate>
		<dc:creator>猪小猪</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[命令]]></category>
		<category><![CDATA[工具]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=422</guid>
		<description><![CDATA[aria2是我今天新学到的一个命令行的下载工具，虽然还没研究透，但是他绝对比wget更好.
aria2 是 Linux 下一个不错的高速下载工具。由于它具有分段下载引擎，所以支持从多个地址或者从一个地址的多个连接来下载同一个文件。这样自然就大大加快了文件的下载速 度。aria2 也具有断点续传功能，这使你随时能够恢复已经中断的文件下载。除了支持一般的 http(s) 和 ftp 协议外，aria2 还支持 BitTorrent 协议。这意味着，你也可以使用 aria2 来下载 torrent 文件。
安装 aria2

aria2 目前已被包含到许多 Linux 发行版中，因此你可以通过所用的系统直接加以安装。例如，在 Debian/Ubuntu 中，你可以在终端执行如下指令来安装 aria2：
sudo apt-get install aria2
aria2 的使用方法
aria2 是命令行程序，使用非常简单。

一般使用使用 aria2 下载文件，只需在命令后附加地址即可。比如我们下载ubuntu如：
aria2c http://www.mirror.tw/pub/ubuntu/releases/jaunty/ubuntu-9.04-desktop-i386.iso
分段下载利用 aria2 的分段下载功能可以加快文件的下载速度，对于下载大文件时特别有用。为了使用 aria2 的分段下载功能，你需要在命令中指定 s 选项。如：
aria2c -s 2 http://www.mirror.tw/pub/ubuntu/releases/jaunty/ubuntu-9.04-desktop-i386.iso
这将使用 2 个连接来下载该文件。s 后面的参数值介于 1~5 之间，你可以根据实际情况选择。
断点续传在命令中使用 c 选项可以断点续传文件。如：
aria2c -c http://www.mirror.tw/pub/ubuntu/releases/jaunty/ubuntu-9.04-desktop-i386.iso
下载 torrent 文件你也可以使用 aria2 下载 BitTorrent [...]]]></description>
			<content:encoded><![CDATA[<p>aria2是我今天新学到的一个命令行的下载工具，虽然还没研究透，但是他绝对比wget更好.</p>
<p>aria2 是 Linux 下一个不错的<strong>高速下载工具</strong>。由于它具有分段下载引擎，所以支持从多个地址或者从一个地址的多个连接来下载同一个文件。这样自然就大大加快了文件的下载速 度。aria2 也具有断点续传功能，这使你随时能够恢复已经中断的文件下载。除了支持一般的 http(s) 和 ftp 协议外，aria2 还支持 BitTorrent 协议。这意味着，你也可以使用 aria2 来下载 torrent 文件。</p>
<p><strong>安装 aria2</strong><br />
<span id="more-422"></span><br />
aria2 目前已被包含到许多 Linux 发行版中，因此你可以通过所用的系统直接加以安装。例如，在 Debian/Ubuntu 中，你可以在终端执行如下指令来安装 aria2：</p>
<pre>sudo apt-get install aria2</pre>
<p><strong>aria2 的使用方法</strong></p>
<p>aria2 是<a title="Linux下的一些SSH常用命令总结" href="http://www.openboy.net/linux-ssh-order.html" target="_blank">命令行</a>程序，使用非常简单。</p>
<ul>
<li>一般使用使用 aria2 下载文件，只需在命令后附加地址即可。比如我们下载ubuntu如：
<pre>aria2c http://www.mirror.tw/pub/ubuntu/releases/jaunty/ubuntu-9.04-desktop-i386.iso</pre>
<li>分段下载利用 aria2 的分段下载功能可以加快文件的下载速度，对于下载大文件时特别有用。为了使用 aria2 的分段下载功能，你需要在命令中指定 s 选项。如：
<pre>aria2c -s 2 http://www.mirror.tw/pub/ubuntu/releases/jaunty/ubuntu-9.04-desktop-i386.iso</pre>
<p>这将使用 2 个连接来下载该文件。s 后面的参数值介于 1~5 之间，你可以根据实际情况选择。</li>
<li>断点续传在命令中使用 c 选项可以断点续传文件。如：
<pre>aria2c -c http://www.mirror.tw/pub/ubuntu/releases/jaunty/ubuntu-9.04-desktop-i386.iso</pre>
<li>下载 torrent 文件你也可以使用 aria2 下载 BitTorrent 文件。如：
<pre>aria2c -o gutsy.torrent http://cdimage.ubuntu.com/daily-live/current/gutsy-desktop-i386.iso.torrent</pre>
</ul>
<p>关于 aria2 的更多用法，可以通过 man aria2c 查阅。<br />
开发主页：<a href="http://aria2.sourceforge.net/" target="_blank">aria2</a></p>

	标签：<a href="http://www.openboy.net/tag/ubuntu" title="ubuntu" rel="tag">ubuntu</a>, <a href="http://www.openboy.net/tag/%e4%b8%8b%e8%bd%bd" title="下载" rel="tag">下载</a>, <a href="http://www.openboy.net/tag/%e5%91%bd%e4%bb%a4" title="命令" rel="tag">命令</a>, <a href="http://www.openboy.net/tag/%e5%b7%a5%e5%85%b7" title="工具" rel="tag">工具</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.openboy.net/ubuntu-chinese-flash-garbled.html" title="解决Ubuntu下中文flash乱码问题 (2009/05/08)">解决Ubuntu下中文flash乱码问题</a> (5)</li>
	<li><a href="http://www.openboy.net/computer-automatic-shutdown-order.html" title="电脑自动关机命令集合 (2008/04/27)">电脑自动关机命令集合</a> (0)</li>
	<li><a href="http://www.openboy.net/ubuntu-go-alipay-no-wine.html" title="用ubuntu上支付宝最简单的方法 (2009/07/28)">用ubuntu上支付宝最简单的方法</a> (5)</li>
	<li><a href="http://www.openboy.net/down-youtube-tudou-video.html" title="教你下载56、youtube、土豆、优酷、QQ播客等一系列播客的视频 (2009/01/05)">教你下载56、youtube、土豆、优酷、QQ播客等一系列播客的视频</a> (2)</li>
	<li><a href="http://www.openboy.net/received-foreign-post-ubuntu-cd.html" title="收到了国外邮寄来的Ubuntu光盘 (2009/07/05)">收到了国外邮寄来的Ubuntu光盘</a> (12)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/ubuntu-linux-download-tool-aria2.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>用ubuntu上支付宝最简单的方法</title>
		<link>http://www.openboy.net/ubuntu-go-alipay-no-wine.html</link>
		<comments>http://www.openboy.net/ubuntu-go-alipay-no-wine.html#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:41:30 +0000</pubDate>
		<dc:creator>猪小猪</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[支付宝]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=421</guid>
		<description><![CDATA[哈哈，我又用ubuntu实现了一个壮举&#8230;那就是用ubuntu上支付宝，当然，这个方法也适用所有linux登录支付宝！恩，只是查询，还不能支付，但是我没有用wine，哈哈，我也不会用～
记录下来，希望可以帮助到需要的人，而我自己也不会忘记～

在支付宝官方博客下载安全控件：http://blog.alipay.com/wp-content/2008/10/aliedit.tar.gz .
 右键单击控件文件aliedit.tar.gz，选“解压缩到此处”。
点击文件浏览器“查看”菜单－－显示隐藏文件。
打开文件夹：文件系统－－home－－你的用户名－－右键单击“.mozilla”选“以管理员打开”。
如果看见有plugins文件夹，就把刚才解压缩得到的两个文件复制到plugins文件夹里面；如果没有plugins文件夹，就先创建一个“plugins”文件夹，然后再复制进去。
重启Firefox。就可以登录支付宝了.


	标签：firefox, ubuntu, 支付宝

	相关日志
	
	解决Ubuntu下中文flash乱码问题 (5)
	收到了国外邮寄来的Ubuntu光盘 (12)
	又买相机了;输出全文rss (2)
	Ubuntu系统优化 (14)
	Ubuntu/linux下最强大的下载工具－aria2 (2)


]]></description>
			<content:encoded><![CDATA[<p>哈哈，我又用<strong>ubuntu</strong>实现了一个壮举&#8230;那就是<strong>用ubuntu上支付宝</strong>，当然，这个方法也适用所有linux登录支付宝！恩，只是查询，还不能支付，但是我没有用wine，哈哈，我也不会用～</p>
<p>记录下来，希望可以帮助到需要的人，而我自己也不会忘记～</p>
<ol>
<li>在支付宝官方博客下载安全控件：http://blog.alipay.com/wp-content/2008/10/aliedit.tar.gz .</li>
<li> 右键单击控件文件aliedit.tar.gz，选“解压缩到此处”。<span id="more-421"></span></li>
<li>点击文件浏览器“查看”菜单－－显示隐藏文件。</li>
<li>打开文件夹：文件系统－－home－－你的用户名－－右键单击“.mozilla”选“以管理员打开”。</li>
<li>如果看见有plugins文件夹，就把刚才解压缩得到的两个文件复制到plugins文件夹里面；如果没有plugins文件夹，就先创建一个“plugins”文件夹，然后再复制进去。</li>
<li>重启Firefox。就可以登录支付宝了.</li>
</ol>

	标签：<a href="http://www.openboy.net/tag/firefox" title="firefox" rel="tag">firefox</a>, <a href="http://www.openboy.net/tag/ubuntu" title="ubuntu" rel="tag">ubuntu</a>, <a href="http://www.openboy.net/tag/%e6%94%af%e4%bb%98%e5%ae%9d" title="支付宝" rel="tag">支付宝</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.openboy.net/ubuntu-chinese-flash-garbled.html" title="解决Ubuntu下中文flash乱码问题 (2009/05/08)">解决Ubuntu下中文flash乱码问题</a> (5)</li>
	<li><a href="http://www.openboy.net/received-foreign-post-ubuntu-cd.html" title="收到了国外邮寄来的Ubuntu光盘 (2009/07/05)">收到了国外邮寄来的Ubuntu光盘</a> (12)</li>
	<li><a href="http://www.openboy.net/buy-sony-h50-and-full-log-for-rss.html" title="又买相机了;输出全文rss (2009/06/07)">又买相机了;输出全文rss</a> (2)</li>
	<li><a href="http://www.openboy.net/ubuntu-linux-system-optimization.html" title="Ubuntu系统优化 (2009/08/03)">Ubuntu系统优化</a> (14)</li>
	<li><a href="http://www.openboy.net/ubuntu-linux-download-tool-aria2.html" title="Ubuntu/linux下最强大的下载工具－aria2 (2009/07/30)">Ubuntu/linux下最强大的下载工具－aria2</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/ubuntu-go-alipay-no-wine.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>收到了国外邮寄来的Ubuntu光盘</title>
		<link>http://www.openboy.net/received-foreign-post-ubuntu-cd.html</link>
		<comments>http://www.openboy.net/received-foreign-post-ubuntu-cd.html#comments</comments>
		<pubDate>Sun, 05 Jul 2009 08:56:53 +0000</pubDate>
		<dc:creator>猪小猪</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=409</guid>
		<description><![CDATA[好久没有更新博客了，这次真的是又有了题材.实在不是ubuntu的问题，就是邮政的那帮人，太叫人气愤.
早上邮局人员敲门来说，我收到了国际邮包，叫我先去小区居委会开证明盖公章，我去了那里，听居委会人唠叨了半天，说什么他们有什么资格命令我们盖章？反正最后还是给我盖了..囧，形式主义.后来在去离我家大约3.4公里的一个大邮局去取包裹.开始我也没太注意，可能是ubuntu团队弄错还是我写错.收裹人写的是openboy,其实openboy是我的注册名，我写的真名并不是这个.问题就出在这里，我到了邮局，人家说身份证不是这个名字，不给取.矫情了半天，叫我回居委会在修改下，说openboy和XX是同一个人.我郁闷.我又把那个取件的单子，在openboy后面加了我的真名，去邮局，人家还是说不行..我日..又说和他的邮包不对.又叫我去改.我最后只得在那个证明上自己写上了，openboy和xx是同一个人，这才把邮包给我取了出来..
万恶的邮局，你们怎么也学会了形式主义？是个人都知道我会自己加上去，我身份证都给您看了，还不行？非要我折腾？鄙视！！！
记得上次是英国邮寄来的MOO卡，就非常省事，而且还是送到了家，为什么同样是邮局，咋差距就那么大呢？？？？
不过收到光盘还是叫我惊喜，感谢ubuntu,免费的给了我这么好的东西，邮费都替我付了，我愿意做出我微薄的贡献，希望大家也装ubuntu试试，这是一个非常优秀的操作系统.而且还送了我四张ubuntu的贴纸。。哇哈哈。发来给大家看看！～

  

	标签：cd, ubuntu

	相关日志
	
	解决Ubuntu下中文flash乱码问题 (5)
	用ubuntu上支付宝最简单的方法 (5)
	Ubuntu系统优化 (14)
	Ubuntu/linux下最强大的下载工具－aria2 (2)
	linux输入法推荐：sunpinyin (0)


]]></description>
			<content:encoded><![CDATA[<p>好久没有更新博客了，这次真的是又有了题材.实在<strong>不是ubuntu的问题</strong>，就是<strong>邮政的那帮人</strong>，太叫人气愤.</p>
<p>早上邮局人员敲门来说，我收到了<strong>国际邮包</strong>，叫我先去小区居委会开证明盖公章，我去了那里，听居委会人唠叨了半天，说什么他们有什么资格命令我们盖章？反正最后还是给我盖了..囧，<strong>形式主义</strong>.后来在去离我家大约3.4公里的一个大邮局去取包裹.开始我也没太注意，可能是ubuntu团队弄错还是我写错.收裹人写的是<a title="猪小猪'space" href="http://www.openboy.net/">openboy</a>,其实<strong>openboy</strong>是我的注册名，我写的真名并不是这个.问题就出在这里，我到了邮局，人家说身份证不是这个名字，不给取.矫情了半天，叫我回居委会在修<span id="more-409"></span>改下，说openboy和XX是同一个人.我郁闷.我又把那个取件的单子，在openboy后面加了我的真名，去邮局，人家还是说不行..我日..又说和他的邮包不对.又叫我去改.我最后只得在那个证明上自己写上了，openboy和xx是同一个人，这才把邮包给我取了出来..</p>
<p>万恶的邮局，你们怎么也学会了<strong>形式主义</strong>？是个人都知道我会自己加上去，我身份证都给您看了，还不行？非要我折腾？鄙视！！！</p>
<p>记得上次是<a title="收到了邮寄来的MOO卡" href="http://www.openboy.net/flickrpro-free-moo-card-from-uk.html" target="_blank">英国邮寄来的MOO卡</a>，就非常省事，而且还是送到了家，为什么同样是邮局，咋差距就那么大呢？？？？</p>
<p>不过收到光盘还是叫我惊喜，<strong><a href="http://www.ubuntu.com" target="_blank">感谢ubuntu</a></strong>,免费的给了我这么好的东西，邮费都替我付了，我愿意做出我微薄的贡献，希望大家也装ubuntu试试，这是一个非常优秀的操作系统.而且还送了我四张ubuntu的贴纸。。哇哈哈。发来给大家看看！～</p>
<p><a title="DSC00537" href="../tag/ubuntu"><img src="http://farm3.static.flickr.com/2571/3688950403_3de9165fef.jpg" alt="DSC00537" width="500" height="375" /></a></p>
<p><a class="tt-flickr tt-flickr-Medium" title="DSC00535" href="http://www.openboy.net/"><img class="alignnone" src="http://farm4.static.flickr.com/3635/3688949321_e4175736bf.jpg" alt="DSC00535" width="500" height="375" /></a> <a class="tt-flickr tt-flickr-Medium" title="DSC00536" href="http://www.openboy.net/"><img class="alignnone" src="http://farm4.static.flickr.com/3622/3689756348_3e50d82ef1.jpg" alt="DSC00536" width="500" height="375" /></a> <a class="tt-flickr tt-flickr-Medium" title="DSC00538" href="http://www.openboy.net/"><img class="alignnone" src="http://farm3.static.flickr.com/2576/3688951421_6186f1e349.jpg" alt="DSC00538" width="500" height="375" /></a></p>

	标签：<a href="http://www.openboy.net/tag/cd" title="cd" rel="tag">cd</a>, <a href="http://www.openboy.net/tag/ubuntu" title="ubuntu" rel="tag">ubuntu</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.openboy.net/ubuntu-chinese-flash-garbled.html" title="解决Ubuntu下中文flash乱码问题 (2009/05/08)">解决Ubuntu下中文flash乱码问题</a> (5)</li>
	<li><a href="http://www.openboy.net/ubuntu-go-alipay-no-wine.html" title="用ubuntu上支付宝最简单的方法 (2009/07/28)">用ubuntu上支付宝最简单的方法</a> (5)</li>
	<li><a href="http://www.openboy.net/ubuntu-linux-system-optimization.html" title="Ubuntu系统优化 (2009/08/03)">Ubuntu系统优化</a> (14)</li>
	<li><a href="http://www.openboy.net/ubuntu-linux-download-tool-aria2.html" title="Ubuntu/linux下最强大的下载工具－aria2 (2009/07/30)">Ubuntu/linux下最强大的下载工具－aria2</a> (2)</li>
	<li><a href="http://www.openboy.net/linux-ubuntu-input-sunpinyin.html" title="linux输入法推荐：sunpinyin (2010/03/14)">linux输入法推荐：sunpinyin</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/received-foreign-post-ubuntu-cd.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>解决Ubuntu下中文flash乱码问题</title>
		<link>http://www.openboy.net/ubuntu-chinese-flash-garbled.html</link>
		<comments>http://www.openboy.net/ubuntu-chinese-flash-garbled.html#comments</comments>
		<pubDate>Fri, 08 May 2009 13:27:10 +0000</pubDate>
		<dc:creator>猪小猪</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=382</guid>
		<description><![CDATA[            刚刚使用了Ubuntu，却觉得这个操作系统在很多方面值得我们去研究,去用，也许刚开始有点不习惯,其实windows也是从开始慢慢习惯过来的.
每次用ubuntu下的firefox打开网页都正常，只是有时乱码，后来才发现都局限在flash乱码,开始也想是不是编码问题？如果编码错了，那会整个页面都错误,所以在网上查了好久,找到了这个解决办法.记录下.
1.首先,打开终端.输入
sudo -i
切换到root.
2.在输入
cd /etc/fonts/conf.d/
3.之后你可以备份一下字体配置：
sudo cp 49-sansserif.conf 49-sansserif.conf_backup

也可以跳过。
4.这步必须是root权限：
sudo gedit ./49-sansserif.conf
5.下面你会在那个文件中看到类似这样的文档：

&#60; ?xml version=&#34;1.0&#34;?&#62;
&#60; !DOCTYPE fontconfig SYSTEM &#34;fonts.dtd&#34;&#62;
&#60;fontconfig&#62;
&#60;!--
If the font still has no generic name, add sans-serif
--&#62;
&#60;match target=&#34;pattern&#34;&#62;
&#60;test qual=&#34;all&#34; name=&#34;family&#34; compare=&#34;not_eq&#34;&#62;
&#60;string&#62;sans-serif&#60;/string&#62;
&#60;/test&#62;
&#60;test qual=&#34;all&#34; name=&#34;family&#34; compare=&#34;not_eq&#34;&#62;
&#60;string&#62;serif&#60;/string&#62;
&#60;/test&#62;
&#60;test qual=&#34;all&#34; name=&#34;family&#34; compare=&#34;not_eq&#34;&#62;
&#60;string&#62;monospace&#60;/string&#62;
&#60;/test&#62;
&#60;edit name=&#34;family&#34; mode=&#34;append_last&#34;&#62;
&#60;string&#62;sans-serif&#60;/string&#62;
&#60;/edit&#62;
&#60;/match&#62;
&#60;/fontconfig&#62;

将其中的第1、2、4个后面的sans-serif或者serif用你自己系统中支持中文的字体的名字代替，注意字体名字的大小写
比如：我的系统中安装了wqy-zenhei.ttf，我则用wqy-zenhei代替上述所说的字段
注意：一般都修改成wqy-zenhei就可以！
修改完后文件：

&#60; ?xml version=&#34;1.0&#34;?&#62;
&#60; !DOCTYPE fontconfig SYSTEM &#34;fonts.dtd&#34;&#62;
&#60;fontconfig&#62;
&#60;!--
If the font [...]]]></description>
			<content:encoded><![CDATA[<p>            刚刚使用了Ubuntu，却觉得这个操作系统在很多方面值得我们去研究,去用，也许刚开始有点不习惯,其实windows也是从开始慢慢习惯过来的.<br />
每次用ubuntu下的firefox打开网页都正常，只是有时乱码，后来才发现都局限在flash乱码,开始也想是不是编码问题？如果编码错了，那会整个页面都错误,所以在网上查了好久,找到了这个解决办法.记录下.<span id="more-382"></span></p>
<p>1.首先,打开终端.输入
<pre>sudo -i</pre>
<p>切换到root.<br />
2.在输入
<pre>cd /etc/fonts/conf.d/</pre>
<p>3.之后你可以备份一下字体配置：
<pre>sudo cp 49-sansserif.conf 49-sansserif.conf_backup
</pre>
<p>也可以跳过。<br />
4.这步必须是root权限：
<pre>sudo gedit ./49-sansserif.conf</pre>
<p>5.下面你会在那个文件中看到类似这样的文档：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt; ?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;">&lt; !DOCTYPE fontconfig SYSTEM <span style="color: #ff0000;">&quot;fonts.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">If the font still has no generic name, add sans-serif</span>
<span style="color: #808080; font-style: italic;">--&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;pattern&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>sans-serif<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>serif<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>monospace<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;edit</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;append_last&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>sans-serif<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/edit<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>将其中的第1、2、4个<string>后面的sans-serif或者serif用你自己系统中支持中文的字体的名字代替，注意字体名字的大小写<br />
比如：我的系统中安装了wqy-zenhei.ttf，我则用wqy-zenhei代替上述所说的字段<br />
<strong>注意：一般都修改成wqy-zenhei就可以！</strong></p>
<p>修改完后文件：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt; ?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;">&lt; !DOCTYPE fontconfig SYSTEM <span style="color: #ff0000;">&quot;fonts.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">If the font still has no generic name, add sans-serif</span>
<span style="color: #808080; font-style: italic;">--&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;pattern&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wqy-zenhei<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wqy-zenhei<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>monospace<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;edit</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;append_last&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wqy-zenhei<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/edit<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>这只是一个笔记&#8230;嘿嘿.<br />
最后送一张Ubuntu的桌面壁纸&#8230;<br />
<a href="http://farm4.static.flickr.com/3303/3512204919_e83a63c838_o.jpg"><img alt="" src="http://farm4.static.flickr.com/3303/3512204919_e83a63c838_o.jpg" title="ubuntu壁纸" class="alignnone" width="800" height="600" /></a><br />
</string></p>

	标签：<a href="http://www.openboy.net/tag/flash" title="flash" rel="tag">flash</a>, <a href="http://www.openboy.net/tag/ubuntu" title="ubuntu" rel="tag">ubuntu</a>, <a href="http://www.openboy.net/tag/%e4%b9%b1%e7%a0%81" title="乱码" rel="tag">乱码</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.openboy.net/i-love-this-flash-game-named-antbuster.html" title="超耐玩的Flash小游戏-蚂蚁偷蛋糕Antbuster 1.2b (2009/09/22)">超耐玩的Flash小游戏-蚂蚁偷蛋糕Antbuster 1.2b</a> (2)</li>
	<li><a href="http://www.openboy.net/ubuntu-go-alipay-no-wine.html" title="用ubuntu上支付宝最简单的方法 (2009/07/28)">用ubuntu上支付宝最简单的方法</a> (5)</li>
	<li><a href="http://www.openboy.net/received-foreign-post-ubuntu-cd.html" title="收到了国外邮寄来的Ubuntu光盘 (2009/07/05)">收到了国外邮寄来的Ubuntu光盘</a> (12)</li>
	<li><a href="http://www.openboy.net/ubuntu-linux-system-optimization.html" title="Ubuntu系统优化 (2009/08/03)">Ubuntu系统优化</a> (14)</li>
	<li><a href="http://www.openboy.net/ubuntu-linux-download-tool-aria2.html" title="Ubuntu/linux下最强大的下载工具－aria2 (2009/07/30)">Ubuntu/linux下最强大的下载工具－aria2</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/ubuntu-chinese-flash-garbled.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
