<?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>飞天的梦想 &#187; Linux</title>
	<atom:link href="http://hiei.yeax.com/archives_category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://hiei.yeax.com</link>
	<description>emule linux and so on..</description>
	<lastBuildDate>Tue, 27 Apr 2010 08:38:22 +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>在Debian Linux 下使用exfat (支持读写)</title>
		<link>http://hiei.yeax.com/archives_220.html</link>
		<comments>http://hiei.yeax.com/archives_220.html#comments</comments>
		<pubDate>Tue, 27 Apr 2010 08:38:22 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[exfat]]></category>
		<category><![CDATA[fuse]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/?p=220</guid>
		<description><![CDATA[在Debian Linux 下使用exfat]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_220.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Debian下利用apache2 mod_proxy,mod_cache,mod_rewrite 使用静态化的一种办法</title>
		<link>http://hiei.yeax.com/archives_188.html</link>
		<comments>http://hiei.yeax.com/archives_188.html#comments</comments>
		<pubDate>Wed, 14 Jan 2009 07:51:19 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[mod_cache]]></category>
		<category><![CDATA[mod_disk_cache]]></category>
		<category><![CDATA[mod_proxy]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/?p=188</guid>
		<description><![CDATA[1. 打开需要的模块
ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/proxy.load
ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/proxy_http.load
ln -s /etc/apache2/mods-available/cache.load /etc/apache2/mods-enabled/cache.load
ln -s /etc/apache2/mods-available/disk_cache.load /etc/apache2/mods-enabled/disk_cache.load
2.ReWrite 配置
我这里文章都是这样子的： http://www.example.com/Article.php?id=124323
我希望将它改为更加友好的方式： http://www.example.com/list/124323.html
RewriteEngine On
RewriteRule /articlelist/(.+)\.html$ /Article.php?id=$1 [L]
经过Rewrite配置后，重启确定Rewrite生效.
/etc/init.d/apache2 restart
3. 静态化
虽然这样子外人看起来像是静态化的了，但是每次访问都需要去查一次数据库，为了真正的实现静态化，我们通过mod_proxy和mod_disk_cache模块来实现。
用这个办法的好处是你不需要在前面再架设一个Squid之类的代理服务器，直接用apache2内置模块就可以实现了。性能也足够高，静态化后性能可以提高10倍，这还是在用简单sql查询的前提下，如果sql比较复杂，那性能的提高就更加明显了。
A. 先创建cache目录
mkdir -p /var/cache/apache2/proxy
chmod 777 /var/cache/apache2/proxy
chown -R www-data.www-data /var/cache/apache2/proxy
B.  修改php程序。 mod_cache遵循标准rfc协议，如果你的php输出里面没有过期设置，它将不会cache这个文件。
在php程序前面加入几行代码,注意一定要在输出正文前输出HTTP头
// 过期时间设置为一个月，如果你的文章不可能变，那将这个值设的更大些
$offset = 3600 * 24 * 30;
// 过期日期，当前时间+ 过期时间
$expire = &#8220;Expires: &#8221; . gmdate(&#8220;D, d M Y H:i:s&#8221;, time() + $offset) . [...]]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_188.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Debian里面配置磁盘限额</title>
		<link>http://hiei.yeax.com/archives_174.html</link>
		<comments>http://hiei.yeax.com/archives_174.html#comments</comments>
		<pubDate>Sun, 16 Mar 2008 11:41:16 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/archives_174.html</guid>
		<description><![CDATA[Debian真是非常好用的服务器操作系统啊，磁盘配额也非常容易实现。
Linux下限制磁盘配额可以按每个组或每个用户来限制，下面以每个用户限制为例说明一下：
实现磁盘配额限制步骤：
1. 内核里面打开了配额的支持，绝大部分发行版都打开的
2. 以配额方式加载文件系统
3.安装配额软件：
4.配置配额
原/etc/fstab的一项：
/dev/hda1&#160; &#160; &#160; &#160;/home&#160; &#160; &#160; &#160;ext3&#160; &#160; defaults&#160; &#160; &#160; &#160; &#160; &#160;1&#160; &#160; &#160; &#160;1
做如下修改：
/dev/hda1&#160; &#160; &#160; &#160;/home&#160; &#160; &#160; &#160;ext3&#160; &#160; defaults,usrquota&#160; &#160; &#160; &#160; &#160; &#160;1&#160; &#160; &#160; &#160;1
如何是对组限制就将usrquota改为grpquota
重新加载文件系统：
mount -o remount,usrquota /home
加载内核模块，并让其开机的时候也会自动加载
modprobe quota_v2
echo 'quota_v2' &#62;&#62; /etc/modules
我们要在启用配额的分区创建文件并且限制root才能读写
touch /home/aquota.user
touch /home/aquota.group
chmod 600 /home/aquota.user /home/aquota.group
现在来安装quota软件：
apt-get install quota quotatool
现在到最后一步了，假设我们要对系统里的某个用户skx进行限制配额：
quotatool -u skx -bq 20M -l [...]]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_174.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>转载： 完全自由软件[WinScp+Putty+Pageant]之Public Key Authentication方式登陆SSHD</title>
		<link>http://hiei.yeax.com/archives_173.html</link>
		<comments>http://hiei.yeax.com/archives_173.html#comments</comments>
		<pubDate>Sat, 15 Mar 2008 09:52:36 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/archives_173.html</guid>
		<description><![CDATA[懒得转贴了，自己到这个网页看吧
]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_173.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 中文全文搜索</title>
		<link>http://hiei.yeax.com/archives_159.html</link>
		<comments>http://hiei.yeax.com/archives_159.html#comments</comments>
		<pubDate>Sun, 22 Apr 2007 15:59:02 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/archives_159.html</guid>
		<description><![CDATA[花了周末整整两天时间和P牛一起合作，终于将漫游的论坛改为全文搜索了，个中辛苦不足为外人道也。
呵呵，其实开玩笑的。一切进行的都很顺利，最大的问题就是需要整理一个好用的词库。我们用了自带的中文词库，发现很不适合漫游使用，后来找了一个拼音加加的词库，一个google拼音的词库，一个搜狗拼音的词库，还有自己人肉整理了一些资料，终于弄了一个100万字的超大词库。
这个全文搜索程序很简单，核心sql 就一行 &#8220;select postid,threadid,title from search where match(title,pagetext) against(&#8216;关键词&#8217;)&#8221;。我这里采用的是双数据库方案，原来的论坛数据库不动，新安装了一个支持中文全文搜索的Mysql。在里面建立搜索专用数据库，自己写了个程序每天增量将帖子加到这个数据库上就好了。具体的实现可以参考 hightman  的网站。
http://myft.twomice.net/show_hdr.php?xname=ILBS301&#38;xpos=4&#38;dname=
http://php.twomice.net/myft/s2.php
]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_159.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ISPConfig 一个非常强大的Linux 虚拟主机控制面板</title>
		<link>http://hiei.yeax.com/archives_157.html</link>
		<comments>http://hiei.yeax.com/archives_157.html#comments</comments>
		<pubDate>Sun, 15 Apr 2007 16:11:02 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[虚拟主机]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/archives_157.html</guid>
		<description><![CDATA[vhcs 开发基本处于停滞状态，今天看到了 ISPConfig, 觉得挺有意思的。有好几个引人注目的优点：
1. 支持的发行版非常多
2. 功能强大
3. 开发社区活跃，文档齐全
ISPConfig
ISPConfig is an open source hosting control panel for Linux. ISPConfig 		      is licensed under BSD license.
Managed Services

Httpd (virtual hosts, domain and IP based)
FTP
Bind (A, CNAME, MX and SPF Records)
POP3 Auto-Responder
MySQL client-databases
Webalizer statistics
Harddisk quota
Mail-Quota
Traffic limits
IP-addresses
SSL
SSI
Shell-access
Mailscanner (Antivirus)
Firewall

Detailed Feature list
System Requirements
Supported Distributions

Mandrake Linux starting from version [...]]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_157.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Debian etch 安装vnc server</title>
		<link>http://hiei.yeax.com/archives_156.html</link>
		<comments>http://hiei.yeax.com/archives_156.html#comments</comments>
		<pubDate>Fri, 13 Apr 2007 06:03:16 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/archives_156.html</guid>
		<description><![CDATA[虽然大部分情况下我们只要用ssh登录linux服务器就好了，但是有时候我们的程序需要在图形界面下运行，这时我们就要用到vnc server这个软件了。在Debian下安装vnc server很简单的，只要几步就可以了：
1. 安装软件
apt-get install tightvncserver tightvnc-java
2. 配置每个用户自己的vnc  server。
启动命令：
vncserver -depth 24 -name aru_desktop -httpport 9001 -geometry 1024&#215;768 :1
参数解释：
1. -depth 24  使用24位颜色，这里一般用16或者24
2. -name aru_desktop  桌面名字，这个参数并非必要，可以随便起个喜欢的名字
3.  -httpport 9001  使用浏览器连接的端口，请用1024以上的端口，如果是多个用户都开vnc server，那每个用户要使用不同的端口
4.  -geometry 1024&#215;768  桌面分辨率,根据要求调整
5. :1    会话数字，同3
第一次运行会要求你输入一个密码，这个密码和你的ssh登录密码是分开的，当然你也可以用同样的密码
关闭命令：
vncserver -kill :1
:1 是会话数字，和启动的会话数字一致
3. 输入法和桌面环境
每个用户的vnc server启动脚本是 ~/.vnc/xstartup
下面是我的启动脚本：
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80&#215;24+10+10 -ls [...]]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_156.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>解决Linux下连接延时</title>
		<link>http://hiei.yeax.com/archives_155.html</link>
		<comments>http://hiei.yeax.com/archives_155.html#comments</comments>
		<pubDate>Thu, 12 Apr 2007 09:30:22 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/archives_155.html</guid>
		<description><![CDATA[Debian默认设置下是开反向域名解析的。我们连接ssh/ftp的时候就会有一个比较明显的延时，大概要等30秒后才能输入账号密码。解决方法有两个：
1. 将客户机IP和域名对应关系加入到 /etc/hosts上
2. 编辑 /etc/nsswitch.conf
找到 hosts  那行，将其改成下面这样：
hosts:          files dns [NOTFOUND=return]
]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_155.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>scim for nokia 770/n800</title>
		<link>http://hiei.yeax.com/archives_153.html</link>
		<comments>http://hiei.yeax.com/archives_153.html#comments</comments>
		<pubDate>Mon, 09 Apr 2007 16:24:18 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/archives_153.html</guid>
		<description><![CDATA[今天终于将maemocjk 的输入法卸载了。因为我找到一个的更好的输入法: scim for maemo.  他有770和N800的版本，由wolfg 移植的。安装 很简单，直接点install 文件就可以了，然后需要重启机器，使用ctrl + 空格i打开输入法。刚才测试了一下，bug还是有不少的，比如要输入目前这个词，老是发现多输入了一个字母的样子，难道是因为我安装的虚拟键盘问题？明天将现在这个虚拟键盘去掉试试。另外当前只有智能拼音输入法，应该将五笔也加进去的。
项目主页
]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_153.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debian 4.0 etch 发布</title>
		<link>http://hiei.yeax.com/archives_152.html</link>
		<comments>http://hiei.yeax.com/archives_152.html#comments</comments>
		<pubDate>Sun, 08 Apr 2007 10:55:07 +0000</pubDate>
		<dc:creator>小飞</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hiei.yeax.com/archives_152.html</guid>
		<description><![CDATA[其实还没有正式宣布发布，但是文件已经冻结了，iso也出来了。
下载地址： http://cdimage.debian.org/debian-cd/4.0_r0/
发布声明应该会在一天内宣布的，当各大主力镜像将iso 镜像完毕，就会正式宣布发布了。
上一个稳定版本Debian 3.1 Sarge  是在 2005年6月6日发布的，距离现在已经快2年了。
Debian  的下一个版本代号为 lenny ，让我们祝愿 lenny 能够顺产吧～
update: 正式发布了
]]></description>
		<wfw:commentRss>http://hiei.yeax.com/archives_152.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
