<?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>Hacklog &#187; Linux</title>
	<atom:link href="http://ihacklog.com/cat/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://ihacklog.com</link>
	<description>荒野无灯weblog</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:30:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Archlinux android udev rule</title>
		<link>http://ihacklog.com/linux/archlinux/archlinux-android-udev-rule.html</link>
		<comments>http://ihacklog.com/linux/archlinux/archlinux-android-udev-rule.html#comments</comments>
		<pubDate>Fri, 06 Jan 2012 08:36:02 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Archlinux]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5295</guid>
		<description><![CDATA[今天更新了下系统，连上手机后不显示”HTC”了。。。 于是加了下udev rule成功搞定。 直接： 1yaourt -S android-udev 重新加载自定义规则： 1sudo udevadm control --reload-rules 1lssub 然后可看到 Bus 002 Device 002: ID 0bb4:xxxx High Tech Computer Corp. 就说明Linux已经成功识别手机了。 参考文档： https://wiki.archlinux.org/index.php...]]></description>
			<content:encoded><![CDATA[<p>今天更新了下系统，连上手机后不显示”HTC”了。。。<br />
于是加了下udev rule成功搞定。<br />
直接：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yaourt <span style="color: #660033;">-S</span> android-udev</div></td></tr></tbody></table></div>
<p>重新加载自定义规则：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> udevadm control <span style="color: #660033;">--reload-rules</span></div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">lssub</div></td></tr></tbody></table></div>
<p>然后可看到</p>
<blockquote><p>Bus 002 Device 002: ID 0bb4:xxxx High Tech Computer Corp. </p></blockquote>
<p>就说明Linux已经成功识别手机了。</p>
<p>参考文档：</p>
<p>https://wiki.archlinux.org/index.php/Android_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)</p>
<p>https://wiki.archlinux.org/index.php/Android</p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=5295";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5295" title="Permanent Link to Archlinux android udev rule" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5295</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2011年04月3日  //  <a href="http://ihacklog.com/php/wordpress/setting-up-favicons-in-ie8-firefox-safari-and-opera.html" title="Setting up Favicons in IE8, Firefox, Safari, and Opera">Setting up Favicons in IE8, Firefox, Safari, and Opera</a> (3)</li><li>2011年05月28日  //  <a href="http://ihacklog.com/software/peazip.html" title="开源带GUI的压缩文档管理器PeaZip">开源带GUI的压缩文档管理器PeaZip</a> (0)</li><li>2010年09月23日  //  <a href="http://ihacklog.com/server/ubuntu-server/nnd-vsftpd.html" title="NND vsftpd郁闷了一天">NND vsftpd郁闷了一天</a> (0)</li><li>2011年04月5日  //  <a href="http://ihacklog.com/software/cool_software_share/notepad-plusplus-portable-version.html" title="Notepad++ 最新绿色版（修正更新）">Notepad++ 最新绿色版（修正更新）</a> (22)</li><li>2010年01月23日  //  <a href="http://ihacklog.com/php/wordpress/wpskills/wordpress-change-domain-name-301-redirect-and-update-database.html" title="wordpress博客更换域名后重定向和更新数据库">wordpress博客更换域名后重定向和更新数据库</a> (2)</li><li>2011年12月18日  //  <a href="http://ihacklog.com/php/habari/habari-0-8-release.html" title="Habari 0.8 正式发布">Habari 0.8 正式发布</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/archlinux/archlinux-android-udev-rule.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Pacman “filesystem: /etc/mtab exists in filesystem”</title>
		<link>http://ihacklog.com/linux/archlinux/pacman-filesystem-etcmtab-exists-in-filesystem.html</link>
		<comments>http://ihacklog.com/linux/archlinux/pacman-filesystem-etcmtab-exists-in-filesystem.html#comments</comments>
		<pubDate>Fri, 06 Jan 2012 05:23:11 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Archlinux]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5289</guid>
		<description><![CDATA[好久没升级了，今天升级时遇到这个错误： error: failed to commit transaction (conflicting files) filesystem: /etc/mtab exists in filesystem Errors occurred, no packages were upgraded. 在官方论坛找到了解决办法： When upgrading to filesystem-2011.12 there will be a conflict with /etc/mtab. ...]]></description>
			<content:encoded><![CDATA[<p>好久没升级了，今天升级时遇到这个错误：</p>
<blockquote><p>error: failed to commit transaction (conflicting files)<br />
filesystem: /etc/mtab exists in filesystem<br />
Errors occurred, no packages were upgraded.</p></blockquote>
<hr />
<p>在官方论坛找到了解决办法：</p>
<blockquote><p>When upgrading to filesystem-2011.12 there will be a conflict with /etc/mtab.<br />
Install the package as follows:<br />
pacman -S filesystem &#8211;force<br />
It is strongly advised to avoid the &#8211;force or -f switch as it is not safe. However, in this particular case it is needed as deleting /etc/mtab manually would break pacman.<br />
The reason for the conflict is that the file used to be generated at boot and hence not owned by any package. Now it is a symlink to /proc/self/mounts owned by filesystem. This change means that initscripts no longer requires write access to the rootfs (though other packages might).</p></blockquote>
<p>@SEE <a href="http://ihacklog.com/l.php?url=https%3A%2F%2Fbbs.archlinux.org%2Fviewtopic.php%3Fid%3D132225" target="_blank">https://bbs.archlinux.org/viewtopic.php?id=132225</a></p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=5289";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5289" title="Permanent Link to Pacman “filesystem: /etc/mtab exists in filesystem”" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5289</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2011年05月31日  //  <a href="http://ihacklog.com/linux/how-to-make-x11-cursor.html" title="X11 cursor 制作方法">X11 cursor 制作方法</a> (0)</li><li>2008年12月25日  //  <a href="http://ihacklog.com/php/skills/discuz%e4%b8%ad%e7%9a%84%e5%88%86%e9%a1%b5%e5%87%bd%e6%95%b0.html" title="Discuz中的分页函数">Discuz中的分页函数</a> (0)</li><li>2011年10月31日  //  <a href="http://ihacklog.com/software/cool_software_share/mind-map-software.html" title="推荐两个思维导图(心智图)软件">推荐两个思维导图(心智图)软件</a> (6)</li><li>2009年06月2日  //  <a href="http://ihacklog.com/php/original/qiguaidecuowucannotredeclareclass.html" title="奇怪的错误Cannot redeclare class ">奇怪的错误Cannot redeclare class </a> (2)</li><li>2010年10月9日  //  <a href="http://ihacklog.com/software/tips/remove-ttplayer-ads.html" title="千千静听5.7 手动去广告">千千静听5.7 手动去广告</a> (8)</li><li>2008年12月31日  //  <a href="http://ihacklog.com/php/%e4%b9%b0%e6%b6%b2%e6%99%b6%e6%98%be%e7%a4%ba%e5%99%a8%e5%bf%85%e8%af%bb%ef%bc%81%e6%95%99%e4%bd%a0%e4%ba%94%e6%8b%9b%e6%b0%94%e6%ad%bb%e5%a5%b8%e5%95%86.html" title="买液晶显示器必读！教你五招气死奸商">买液晶显示器必读！教你五招气死奸商</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/archlinux/pacman-filesystem-etcmtab-exists-in-filesystem.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>登录ssh Access denied</title>
		<link>http://ihacklog.com/linux/ubuntu-desktop/ssh-access-denied.html</link>
		<comments>http://ihacklog.com/linux/ubuntu-desktop/ssh-access-denied.html#comments</comments>
		<pubDate>Sat, 10 Dec 2011 14:33:24 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5081</guid>
		<description><![CDATA[一直好好的，密码也没变。突然不能登录了。 尝试本地登录，也不行。 查看/var/log/auth.log 有如下信息： 123456Dec &#160;9 13:49:59 hacklog-ubuntu sshd&#91;1122&#93;: User 用户名不让你看 from 172.30.16.31 not allowed because not listed in AllowUsers Dec &#160;9 13:49:59 用户名不让你看-ubuntu sshd&#91;1122&#93;: p...]]></description>
			<content:encoded><![CDATA[<p>一直好好的，密码也没变。突然不能登录了。<br />
尝试本地登录，也不行。<br />
查看/var/log/auth.log<br />
有如下信息：</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Dec &nbsp;<span style="">9</span> <span style="">13</span>:<span style="">49</span>:<span style="">59</span> hacklog-ubuntu sshd<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>1122<span style="">&#93;</span></span>: User 用户名不让你看 from 172.30.16.31 not allowed because not listed in AllowUsers<br />
Dec &nbsp;<span style="">9</span> <span style="">13</span>:<span style="">49</span>:<span style="">59</span> 用户名不让你看-ubuntu sshd<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>1122<span style="">&#93;</span></span>: pam_unix<span style="">&#40;</span>sshd:auth<span style="">&#41;</span>: authentication failure<span style="color: #666666; font-style: italic;">; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.30.16.31 &nbsp;user=用户名不让你看</span><br />
Dec &nbsp;<span style="">9</span> <span style="">13</span>:<span style="">50</span>:00 用户名不让你看-ubuntu sshd<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>1122<span style="">&#93;</span></span>: Failed password for invalid user 用户名不让你看 from 172.30.16.31 port <span style="">50957</span> ssh2<br />
Dec &nbsp;<span style="">9</span> <span style="">13</span>:<span style="">50</span>:<span style="">12</span> &nbsp;sshd<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>1122<span style="">&#93;</span></span>: last message repeated <span style="">5</span> times<br />
Dec &nbsp;<span style="">9</span> <span style="">13</span>:<span style="">50</span>:<span style="">12</span> 用户名不让你看-ubuntu sshd<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>1122<span style="">&#93;</span></span>: PAM <span style="">5</span> more authentication failures<span style="color: #666666; font-style: italic;">; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.30.16.31 &nbsp;user=用户名不让你看</span><br />
Dec &nbsp;<span style="">9</span> <span style="">13</span>:<span style="">50</span>:<span style="">12</span> 用户名不让你看-ubuntu sshd<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>1122<span style="">&#93;</span></span>: PAM service<span style="">&#40;</span>sshd<span style="">&#41;</span> ignoring max retries<span style="color: #666666; font-style: italic;">; 6 &gt; 3</span></div></td></tr></tbody></table></div>
<p>后来，翻看了一下sshd_config 文件，发现，是gitosis搞的鬼。<br />
<a href="http://static.ihacklog.com/wp-files/2011/12/fuck-gitosis.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/12/fuck-gitosis-550x290.png" alt="" title="fuck-gitosis" width="550" height="290" class="alignnone size-medium wp-image-5082" /> </a><br />
默认我没加这个选项的，它给加了后，就只允许gitosis这个用户登录ssh了。。。</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AllowUsers gitosis</div></td></tr></tbody></table></div>
<p>果断把剩下的要登录ssh的用户一并加上，登录，熟悉的界面出来了。（ps:这里，多个用户名用空格分开）</p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=5081";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5081" title="Permanent Link to 登录ssh Access denied" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5081</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2009年09月22日  //  <a href="http://ihacklog.com/php/wordpress/wpskills/enable-wordpress-gzip.html" title="开启GZIP,博客访问速度提高不少">开启GZIP,博客访问速度提高不少</a> (9)</li><li>2009年12月13日  //  <a href="http://ihacklog.com/php/skills/php-equal-comparison-operators.html" title=" php中的==与==="> php中的==与===</a> (5)</li><li>2008年12月22日  //  <a href="http://ihacklog.com/memory/%e8%a6%81%e5%ab%81%e5%b0%b1%e5%ab%81%e7%94%b7%e7%a8%8b%e5%ba%8f%e5%91%98%ef%bc%81.html" title="要嫁就嫁男程序员！">要嫁就嫁男程序员！</a> (0)</li><li>2008年12月5日  //  <a href="http://ihacklog.com/software/tips/get-qq-friends-list.html" title="查询对方是否添加自己为QQ好友的方法&#038;一次性获取好友列表的方法">查询对方是否添加自己为QQ好友的方法&#038;一次性获取好友列表的方法</a> (2)</li><li>2009年11月5日  //  <a href="http://ihacklog.com/server/cannot-start-session-without-errors.html" title="Cannot start session without errors错误解决办法">Cannot start session without errors错误解决办法</a> (4)</li><li>2011年06月5日  //  <a href="http://ihacklog.com/linux/archlinux/recomplie-linux-kernel-solve-chinses-words-display-bug-under-console.html" title="编译内核解决console下中文显示问题">编译内核解决console下中文显示问题</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/ubuntu-desktop/ssh-access-denied.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>opera 11.52 在archlinux 下crash问题解决办法</title>
		<link>http://ihacklog.com/linux/archlinux/solution-to-opera-11-52-crash-problem-under-archlinux.html</link>
		<comments>http://ihacklog.com/linux/archlinux/solution-to-opera-11-52-crash-problem-under-archlinux.html#comments</comments>
		<pubDate>Tue, 06 Dec 2011 07:36:30 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Archlinux]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5065</guid>
		<description><![CDATA[系统：archlinux opera每次在关闭时都会crash,100%的crash. About Opera Version information Version 11.52 Build 1100 Platform Linux System i686, 3.1.4-1-ARCH Browser identification Opera/9.80 (X11; Linux i686; U; en) Presto/2.9.168 Version/11.52 1234567cd ~ mkdir build c...]]></description>
			<content:encoded><![CDATA[<p>系统：archlinux<br />
opera每次在关闭时都会crash,100%的crash.</p>
<blockquote><p>About Opera<br />
Version information<br />
Version<br />
11.52<br />
Build<br />
1100<br />
Platform<br />
Linux<br />
System<br />
i686, 3.1.4-1-ARCH<br />
Browser identification<br />
Opera/9.80 (X11; Linux i686; U; en) Presto/2.9.168 Version/11.52</p></blockquote>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> build<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> build<br />
axel http:<span style="color: #000000; font-weight: bold;">//</span>people.opera.com<span style="color: #000000; font-weight: bold;">/</span>ruario<span style="color: #000000; font-weight: bold;">/</span>snapshot<span style="color: #000000; font-weight: bold;">/</span>Opera<span style="color: #000000; font-weight: bold;">/</span>opera-<span style="color: #000000;">11.52</span>-<span style="color: #000000;">1</span>.src.tar.gz<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> opera-<span style="color: #000000;">11.52</span>-<span style="color: #000000;">1</span>.src.tar.gz<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> opera<br />
makepkg <span style="color: #660033;">-si</span></div></td></tr></tbody></table></div>
<p>好了，现在不会再crash了。看来很多时候，还是自己动手，丰衣足食啊。就像我以前遇到的那个slim的问题一样，结果是自己编译源码搞定。<br />
方法来自：<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fblog.sina.com.cn%2Fs%2Fblog_8173506f0100uwnd.html" target="_blank">《opera 11.52 在archlinux 下crash的问题 》</a></p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=5065";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5065" title="Permanent Link to opera 11.52 在archlinux 下crash问题解决办法" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5065</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2010年05月6日  //  <a href="http://ihacklog.com/php/wordpress/plugins/hacklog-downloadmanager.html" title="wordpress下载管理插件Hacklog-downloadmanager v2.1.4">wordpress下载管理插件Hacklog-downloadmanager v2.1.4</a> (315)</li><li>2011年09月15日  //  <a href="http://ihacklog.com/security_optimization/avoid-wordpress-path-exposed.html" title="打造安全博客之——避免WordPress暴路径">打造安全博客之——避免WordPress暴路径</a> (15)</li><li>2009年09月22日  //  <a href="http://ihacklog.com/net/proficient-ip-address.html" title="精通ip地址之ipv4">精通ip地址之ipv4</a> (5)</li><li>2011年08月20日  //  <a href="http://ihacklog.com/memory/hacklog/migrating-from-wordpress-to-habari.html" title="从WordPress迁移到Habari的方法">从WordPress迁移到Habari的方法</a> (4)</li><li>2009年04月9日  //  <a href="http://ihacklog.com/php/wordpress/changingfilepermissions.html" title="Changing File Permissions">Changing File Permissions</a> (0)</li><li>2011年07月6日  //  <a href="http://ihacklog.com/php/yii-php/yii-config-use-ms-sql-server-2005-2008.html" title="Yii连接mssql 数据库配置">Yii连接mssql 数据库配置</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/archlinux/solution-to-opera-11-52-crash-problem-under-archlinux.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Linux下多线程下载工具Myget原是国人所写</title>
		<link>http://ihacklog.com/linux/myget-the-multi-thread-download-tools-under-linux.html</link>
		<comments>http://ihacklog.com/linux/myget-the-multi-thread-download-tools-under-linux.html#comments</comments>
		<pubDate>Tue, 18 Oct 2011 12:47:00 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Myget]]></category>
		<category><![CDATA[下载工具]]></category>
		<category><![CDATA[多线程]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4955</guid>
		<description><![CDATA[这个工具其实很早就听过，只是没怎么对它感兴趣~~~ 今日偶尔间想起这个，于是去看下这个工具还有没有在更新。 去其sf主页才知道，Myget是由国人xiaosuo（网名）开发的，其blog url: http://blog.chinaunix.net/space.php?uid=317451 不过目前他已经不维护这个项目了，有人fork之并将源码托管在github: https://github.com/lytsing/Mytget 喜欢这篇文章吗?请订阅本站 RSS feed 或 作者：荒野无灯 出处：H...]]></description>
			<content:encoded><![CDATA[<p>这个工具其实很早就听过，只是没怎么对它感兴趣~~~<br />
今日偶尔间想起这个，于是去看下这个工具还有没有在更新。</p>
<p>去其sf主页才知道，Myget是由国人xiaosuo（网名）开发的，其blog url: http://blog.chinaunix.net/space.php?uid=317451<br />
不过目前他已经不维护这个项目了，有人fork之并将源码托管在github:</p>
<p>https://github.com/lytsing/Mytget</p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4955";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4955" title="Permanent Link to Linux下多线程下载工具Myget原是国人所写" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4955</a>
            </p>
             </div><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011年10月7日  //  <a href="http://ihacklog.com/linux/archlinux/pdnsd-cache-server-setup.html" title="Linux下用pdnsd做dns缓存服务器">Linux下用pdnsd做dns缓存服务器</a> (5)</li><li>2011年07月22日  //  <a href="http://ihacklog.com/linux/archlinux/multi-route-cause-slow-speed.html" title="最近上网很卡——原来是multi-route的缘故">最近上网很卡——原来是multi-route的缘故</a> (2)</li><li>2011年06月6日  //  <a href="http://ihacklog.com/software/font-manager-for-linux.html" title="font manager for linux">font manager for linux</a> (0)</li><li>2011年06月6日  //  <a href="http://ihacklog.com/linux/chinese-chess-for-linux.html" title="Linux下的中国象棋">Linux下的中国象棋</a> (0)</li><li>2011年06月6日  //  <a href="http://ihacklog.com/linux/linux-game-alienarena.html" title="Linux下一款好玩的游戏：alienarena">Linux下一款好玩的游戏：alienarena</a> (4)</li><li>2011年06月5日  //  <a href="http://ihacklog.com/linux/archlinux/recomplie-linux-kernel-solve-chinses-words-display-bug-under-console.html" title="编译内核解决console下中文显示问题">编译内核解决console下中文显示问题</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/myget-the-multi-thread-download-tools-under-linux.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Archlinux下安装Cisco Packet Tracer 5.3</title>
		<link>http://ihacklog.com/linux/archlinux/install-cisco-packet-tracer-5-3-on-archlinux.html</link>
		<comments>http://ihacklog.com/linux/archlinux/install-cisco-packet-tracer-5-3-on-archlinux.html#comments</comments>
		<pubDate>Wed, 12 Oct 2011 09:38:46 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Archlinux]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4935</guid>
		<description><![CDATA[我下载的是PacketTracer532_Generic_Ubuntu.tar.gz 解压后运行install安装即可。 不过在删除物件时程序会crash,从console 可看出发生了segment fault. 在这里找到了解决方法: 发生此错误的原因是此版本的软件是为debian系列的linux系统设计的， 而在我们的系统上qt库一般是比较新的，发生此错误的原因是pt没有使用它自己的Lib目录下面的库，而是用了系统的。而pt是在老版本的qt库下编译的，因此，调用新版本的qt库难免出错。 The Cr...]]></description>
			<content:encoded><![CDATA[<p>我下载的是<strong>PacketTracer532_Generic_Ubuntu.tar.gz</strong><br />
解压后运行install安装即可。<br />
不过在删除物件时程序会crash,从console 可看出发生了segment fault.<br />
在<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fwww.jayscott.co.uk%2Flinux%2Fslackware-linux%2Fpacket-tracer-5-3-slackware-install-the-crash-and-ugly-fonts%2F" target="_blank">这里</a>找到了解决方法:<br />
发生此错误的原因是此版本的软件是为debian系列的linux系统设计的，<br />
而在我们的系统上qt库一般是比较新的，发生此错误的原因是pt没有使用它自己的Lib目录下面的库，而是用了系统的。而pt是在老版本的qt库下编译的，因此，调用新版本的qt库难免出错。</p>
<blockquote><p>The Crash</p>
<p>Anytime you try to save a project Packet Tracer will segment fault. This happens because Packet Tracer is using the system version of QT which is most likely a newer version of QT than Packet Tracer was compiled against. You can solve this issue by telling Packet Tracer to use its own QT libraries. You Can copy the following file into /usr/local/bin/pt and just run pt from a bash shell to load up Packet Tracer:</p>
<p>#!/bin/bash</p>
<p>export LD_LIBRARY_PATH=”/usr/local/PacketTracer5/lib”<br />
 /usr/local/PacketTracer5/bin/PacketTracer5</p>
<p>Make sure you remember to make the script executable!</p></blockquote>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye bin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>pt<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pt<br />
<span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #ff0000;">&quot;/opt/pt/lib&quot;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>pt<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>PacketTracer5</div></td></tr></tbody></table></div>
<p>再运行，发现提示找不到libpng12 库，于是：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> <span style="color: #660033;">--needed</span> libpng12<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>pt<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libpng12.so.0.46.0 libpng12.so.0</div></td></tr></tbody></table></div>
<p>现在再删除东东，不会crash了，不过从其输出的debug信息依然可以看出有一些warning 错误。</p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4935";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4935" title="Permanent Link to Archlinux下安装Cisco Packet Tracer 5.3" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4935</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2010年09月21日  //  <a href="http://ihacklog.com/software/cool_software_share/msdn-win2003-vol-std-ent-sp1.html" title="MSDN&#8211;Win2003 VOL简体中文企业版SP1">MSDN&#8211;Win2003 VOL简体中文企业版SP1</a> (0)</li><li>2009年08月23日  //  <a href="http://ihacklog.com/linux/ubuntu-desktop/zt-ubuntu-tips.html" title="ubuntu小技巧［转］">ubuntu小技巧［转］</a> (0)</li><li>2008年12月31日  //  <a href="http://ihacklog.com/software/tips/%e3%80%90%e8%bd%ac%e3%80%91%e8%8f%9c%e9%b8%9f%e4%b9%9f%e8%83%bd%e8%bd%bb%e6%9d%be%e5%9c%a8windows%e4%b8%8b%e5%88%b7bios.html" title="【转】菜鸟也能轻松在windows下刷BIOS">【转】菜鸟也能轻松在windows下刷BIOS</a> (0)</li><li>2008年11月27日  //  <a href="http://ihacklog.com/php/wordpress/50-wordpress-theme.html" title="50个精美WordPress免费风格下载 ">50个精美WordPress免费风格下载 </a> (0)</li><li>2008年12月27日  //  <a href="http://ihacklog.com/software/tips/windows-live-writer-2009%e7%bb%bf%e8%89%b2%e6%ad%a3%e5%bc%8f%e7%89%88.html" title="Windows Live Writer 2009绿色正式版">Windows Live Writer 2009绿色正式版</a> (0)</li><li>2010年07月24日  //  <a href="http://ihacklog.com/server/ubuntu-server/bind-9-dumping-master-file-tmp-xxxx-open-permission-denied.html" title="解决Bind 9 dumping master file tmp-XXXX open permission denied问题">解决Bind 9 dumping master file tmp-XXXX open permission denied问题</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/archlinux/install-cisco-packet-tracer-5-3-on-archlinux.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Axel批量下载</title>
		<link>http://ihacklog.com/linux/axel-batch-download-shell-script.html</link>
		<comments>http://ihacklog.com/linux/axel-batch-download-shell-script.html#comments</comments>
		<pubDate>Sat, 08 Oct 2011 21:52:36 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4927</guid>
		<description><![CDATA[Archlinux的童鞋没有的速度装： 1sudo pacman -S --needed axel 多线程支持断点续传的下载工具Axel，不像wget一样可以用-i参数指定从文件读取下载文件URL.不过在linux下面这并不是问题。 axel是物如其名：Accelerator ，加速器，和它相比，wget这种单线程的工具简直是龟速了，上图一张： 这里给出两种方法： 方法一 axel-batch.sh 123#!/bin/sh -e # usage: &#160;./axel-batch.sh the-do...]]></description>
			<content:encoded><![CDATA[<p>Archlinux的童鞋没有的速度装：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> <span style="color: #660033;">--needed</span> axel</div></td></tr></tbody></table></div>
<p>多线程支持断点续传的下载工具Axel，不像wget一样可以用-i参数指定从文件读取下载文件URL.不过在linux下面这并不是问题。<br />
axel是物如其名：Accelerator ，加速器，和它相比，wget这种单线程的工具简直是龟速了，上图一张：<br />
<a href="http://static.ihacklog.com/wp-files/2011/10/axel-the-Accelerator.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/10/axel-the-Accelerator-550x130.png" alt="" title="axel-the-Accelerator" width="550" height="130" class="alignnone size-medium wp-image-4932" /> </a></p>
<p>这里给出两种方法：</p>
<h3>方法一</h3>
<p><strong> axel-batch.sh</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh -e</span><br />
<span style="color: #666666; font-style: italic;"># usage: &nbsp;./axel-batch.sh the-download-url.list</span><br />
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-l1</span> axel <span style="color: #660033;">-n8</span> <span style="color: #660033;">-a</span></div></td></tr></tbody></table></div>
<h3>方法二</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh -e</span><br />
<span style="color: #666666; font-style: italic;"># usage: &nbsp;./axel-batch.sh the-download-url.list</span><br />
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> LINE<br />
<span style="color: #000000; font-weight: bold;">do</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LINE</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; axel <span style="color: #660033;">-n8</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$LINE</span><span style="color: #000000; font-weight: bold;">`</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4927";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4927" title="Permanent Link to Axel批量下载" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4927</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2009年08月8日  //  <a href="http://ihacklog.com/php/one-month-left.html" title="还有一个月假期">还有一个月假期</a> (0)</li><li>2011年02月9日  //  <a href="http://ihacklog.com/php/wordpress/upgrade/%e6%89%8b%e5%8a%a8%e6%9b%b4%e6%96%b0wp-3-04-to-3-0-5.html" title="手动更新wp 3.04 to 3.0.5">手动更新wp 3.04 to 3.0.5</a> (4)</li><li>2010年07月15日  //  <a href="http://ihacklog.com/linux/ubuntu-desktop/how-to-list-installed-packages-in-ubuntu.html" title="列出UBUNTU linux下已经安装的软件包的方法">列出UBUNTU linux下已经安装的软件包的方法</a> (0)</li><li>2009年04月9日  //  <a href="http://ihacklog.com/php/tongguomvcmoshijiangwebshituheluojidaimafenli.html" title="通过MVC模式将Web视图和逻辑代码分离">通过MVC模式将Web视图和逻辑代码分离</a> (4)</li><li>2010年03月28日  //  <a href="http://ihacklog.com/php/original/better-i-feel-lucky.html" title="I feel lucky修改版">I feel lucky修改版</a> (23)</li><li>2010年03月2日  //  <a href="http://ihacklog.com/software/cool_software_share/my-software-on-windows.html" title="我都装了些什么软件之win篇">我都装了些什么软件之win篇</a> (5)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/axel-batch-download-shell-script.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Linux下用hostapd架无线AP</title>
		<link>http://ihacklog.com/linux/archlinux/use-hostapd-to-setup-wireless-access-point-under-linux.html</link>
		<comments>http://ihacklog.com/linux/archlinux/use-hostapd-to-setup-wireless-access-point-under-linux.html#comments</comments>
		<pubDate>Fri, 07 Oct 2011 16:56:02 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[hostapd]]></category>
		<category><![CDATA[无线AP]]></category>
		<category><![CDATA[路由]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4923</guid>
		<description><![CDATA[本文将介绍在linux下面用笔记本无线网卡架设无线AP。 在win7下面用“承载网络”让爪机上wifi真是爽YY啊。 其实linux下面也是可以的，不过得看运气了。正如windows7下面要求你的无线网卡驱动必须支持“承载网“一样。 首先，查看网卡芯片信息： 对于pci网卡： 1lspci 我的是： 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection 对于USB网卡：...]]></description>
			<content:encoded><![CDATA[<p>本文将介绍在linux下面用笔记本无线网卡架设无线AP。</p>
<p>在win7下面用“承载网络”让爪机上wifi真是爽YY啊。<br />
其实linux下面也是可以的，不过得看运气了。正如windows7下面要求你的无线网卡驱动必须支持“承载网“一样。</p>
<p>首先，查看网卡芯片信息：<br />
对于pci网卡：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">lspci</span></div></td></tr></tbody></table></div>
<p>我的是：</p>
<pre>
03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
</pre>
<p>对于USB网卡：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">lsusb</div></td></tr></tbody></table></div>
<p>然后用ifconfig -a 看下你有哪几块网卡。</p>
<p>ethtool这个工具可用来查看网卡的详细信息：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ ethtool <span style="color: #660033;">-i</span> wlan0<br />
driver: iwlagn<br />
version: <span style="color: #000000;">3.0</span>-ARCH<br />
firmware-version: 8.83.5.1 build <span style="color: #000000;">33692</span><br />
bus-info: 0000:03:<span style="color: #000000;">00.0</span><br />
supports-statistics: no<br />
supports-test: no<br />
supports-eeprom-access: no<br />
supports-register-dump: no</div></td></tr></tbody></table></div>
<p>可以看到我的网卡目前用的驱动是iwlagn，此驱动是由intel开发的。<br />
debian wiki 有关于此驱动的描述：<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fwiki.debian.org%2Fiwlagn" target="_blank">http://wiki.debian.org/iwlagn</a><br />
下面一步才是关键：<br />
这一步用于确定你的无线网卡是否支持”master mode”，也就是AP模式，如果不支持的话，下面的你不用看了，基本没戏了。。。</p>
<p>我们先用这个来测试：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> iwconfig wlan0 mode master<br />
Password: <br />
Error <span style="color: #000000; font-weight: bold;">for</span> wireless request <span style="color: #ff0000;">&quot;Set Mode&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>8B06<span style="color: #7a0874; font-weight: bold;">&#41;</span> :<br />
&nbsp; &nbsp; SET failed on device wlan0 ; Invalid argument.</div></td></tr></tbody></table></div>
<p>可以看到这里操作失败了。<br />
还有机会。。。有些新的网卡用的是mac80211 framework，对于这些网卡的话，用iwconfig来测试它是否支持master模式是行不通的。<br />
 因为他们是使用新的 nl80211接口在用户空间通信的.<br />
如果你没有iw这个新的无线网卡配置工具的话，你得先安装一个。<br />
运行</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>iw list</div></td></tr></tbody></table></div>
<p>如果”Supported interface modes”中有AP的话，那么恭喜，你的网卡支持用hostapd来架设软AP.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; Supported interface modes:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">*</span> IBSS<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">*</span> managed<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">*</span> monitor</div></td></tr></tbody></table></div>
<p>可以看到我的杯具了，不支持。。。<br />
还不死心的话，这里有一个列表，列出各种网卡的信息，可以看到 iwlagn的驱动不支持master模式的。。。杯具啊<br />
<a href="http://ihacklog.com/l.php?r=1&#038;url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FComparison_of_open-source_wireless_drivers" target="_blank">Comparison of open-source wireless drivers</a><br />
Intel 无线网卡驱动官方网站：<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fintellinuxwireless.org%2F" target="_blank">http://intellinuxwireless.org/</a></p>
<hr />
<h3><span class="mw-headline" id="Driver_capabilities">Driver capabilities</span></h3>
<p><i>Also see <a rel="nofollow" class="external text" href="http://linuxwireless.org/en/users/Drivers">linuxwireless.org</a></i></p>
<table class="wikitable" style="font-size: 85%; text-align: center; width: 99%;">
<tr>
<th>Driver</th>
<th><a href="http://en.wikipedia.org/wiki/802.11" title="802.11" class="mw-redirect">802.11</a></th>
<th>Bus interface</th>
<th><a href="http://en.wikipedia.org/wiki/Wired_Equivalent_Privacy" title="Wired Equivalent Privacy">WEP</a></th>
<th><a href="http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access" title="Wi-Fi Protected Access">WPA</a></th>
<th><a href="http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access" title="Wi-Fi Protected Access">WPA2</a></th>
<th><a href="http://en.wikipedia.org/wiki/Monitor_mode" title="Monitor mode">Monitor mode</a></th>
<th>Master mode</th>
<th>Ad-Hoc mode</th>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://acx100.sourceforge.net/">acx1xx</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PC_card" title="PC card" class="mw-redirect">PC card</a>, <a href="http://en.wikipedia.org/wiki/USB" title="USB">USB</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://aluminum.sourmilk.net/adm8211/">adm8211</a></td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a></td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://madwifi-project.org/">ath5k</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PC_card" title="PC card" class="mw-redirect">PC card</a>, <a href="http://en.wikipedia.org/wiki/AMBA_High-performance_Bus" title="AMBA High-performance Bus" class="mw-redirect">AHB</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes (since 2.6.31)</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://madwifi-project.org/">ath9k</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a>, <a href="http://en.wikipedia.org/wiki/802.11n" title="802.11n" class="mw-redirect">802.11n</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/AMBA_High-performance_Bus" title="AMBA High-performance Bus" class="mw-redirect">AHB</a>, <a href="http://en.wikipedia.org/wiki/PCI_Express_Mini_Card" title="PCI Express Mini Card" class="mw-redirect">PCI Express Mini Card</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://linuxwireless.org/en/users/Drivers/b43">b43</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/Secure_Digital_card#SDIO" title="Secure Digital card" class="mw-redirect">SDIO</a>&#160;?</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://bcm43xx.berlios.de/">bcm43xx</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PC_card" title="PC card" class="mw-redirect">PC card</a>, <a href="http://en.wikipedia.org/wiki/Cardbus" title="Cardbus" class="mw-redirect">Cardbus</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td>brcmsmac</td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://hostap.epitest.fi/">hostap</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PC_card" title="PC card" class="mw-redirect">PC card</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes<sup id="cite_ref-hostap_wpa_16-0" class="reference"><a href="#cite_note-hostap_wpa-16"><span>[</span>17<span>]</span></a></sup></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes<sup id="cite_ref-hostap_wpa_16-1" class="reference"><a href="#cite_note-hostap_wpa-16"><span>[</span>17<span>]</span></a></sup></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://ipw2100.sourceforge.net/">ipw2100</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a></td>
<td><a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://ipw2200.sourceforge.net/">ipw2200</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://ipw2200-ap.sourceforge.net/">ipw2200-ap</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a></td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://ipw3945.sourceforge.net/">ipw3945</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PCI_Express_Mini_Card" title="PCI Express Mini Card" class="mw-redirect">PCI Express Mini Card</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://www.prism54.org">islsm</a></td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/USB" title="USB">USB</a></td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://intellinuxwireless.org/?p=iwlwifi">iwlwifi</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PCI_Express_Mini_Card" title="PCI Express Mini Card" class="mw-redirect">PCI Express Mini Card</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://intellinuxwireless.org/?p=iwlagn">iwlagn</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a>, <a href="http://en.wikipedia.org/wiki/802.11n" title="802.11n" class="mw-redirect">802.11n</a></td>
<td><a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PCI_Express_Mini_Card" title="PCI Express Mini Card" class="mw-redirect">PCI Express Mini Card</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://linuxwireless.org/en/users/Drivers/libertas">libertas</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/USB" title="USB">USB</a>, <a href="http://en.wikipedia.org/wiki/CompactFlash" title="CompactFlash">CF</a>, <a href="http://en.wikipedia.org/wiki/Secure_Digital_card#SDIO" title="Secure Digital card" class="mw-redirect">SDIO</a></td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://madwifi-project.org/">MadWifi</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PC_card" title="PC card" class="mw-redirect">PC card</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes some issues in HAL, outdoor sensitivity?<sup class="Template-Fact" style="white-space:nowrap;">[<i><a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"><span title="This claim needs references to reliable sources from September 2009">citation needed</span></a></i>]</sup></td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://www.nongnu.org/orinoco/">orinoco</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a></td>
<td><a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PC_card" title="PC card" class="mw-redirect">PC card</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes<sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span>[</span>18<span>]</span></a></sup></td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://linuxwireless.org/en/users/Drivers/p54">p54</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/Cardbus" title="Cardbus" class="mw-redirect">Cardbus</a>, <a href="http://en.wikipedia.org/wiki/USB" title="USB">USB</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://www.prism54.org">prism54</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://linuxwireless.org/en/users/Drivers/rndis_wlan">rndis_wlan</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/USB" title="USB">USB</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://rt2x00.serialmonkey.com">rt2x00</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/USB" title="USB">USB</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes<sup id="cite_ref-18" class="reference"><a href="#cite_note-18"><span>[</span>19<span>]</span></a></sup></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes<sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span>[</span>20<span>]</span></a></sup></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes<sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span>[</span>21<span>]</span></a></sup></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://rtl8180-sa2400.sourceforge.net/">rtl8180</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PC_card" title="PC card" class="mw-redirect">PC card</a></td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://rtl-wifi.sourceforge.net/">rtl-wifi</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/Peripheral_Component_Interconnect" title="Peripheral Component Interconnect" class="mw-redirect">PCI</a>, <a href="http://en.wikipedia.org/wiki/Mini_PCI" title="Mini PCI" class="mw-redirect">Mini PCI</a>, <a href="http://en.wikipedia.org/wiki/PC_card" title="PC card" class="mw-redirect">PC card</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://linux-lc100020.sourceforge.net/">zd1201</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a></td>
<td><a href="http://en.wikipedia.org/wiki/USB" title="USB">USB</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No<sup id="cite_ref-zd1201_wpa_21-0" class="reference"><a href="#cite_note-zd1201_wpa-21"><span>[</span>22<span>]</span></a></sup></td>
<td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No<sup id="cite_ref-zd1201_wpa_21-1" class="reference"><a href="#cite_note-zd1201_wpa-21"><span>[</span>22<span>]</span></a></sup></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://zd1211.wiki.sourceforge.net/VendorBasedDriver">zd1211</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11a" title="802.11a" class="mw-redirect">802.11a</a>, <a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/USB" title="USB">USB</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #FFF; color: black; vertical-align: middle; text-align: center;" class="unknown table-unknown">?</td>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="http://zd1211.ath.cx/wiki/DriverRewrite">zd1211rw</a></td>
<td><a href="http://en.wikipedia.org/wiki/802.11b" title="802.11b" class="mw-redirect">802.11b</a>, <a href="http://en.wikipedia.org/wiki/802.11g" title="802.11g" class="mw-redirect">802.11g</a></td>
<td><a href="http://en.wikipedia.org/wiki/USB" title="USB">USB</a></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span>[</span>23<span>]</span></a></sup></td>
<td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td>
</tr>
</table>
<hr />
<p> <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_surprised.gif' alt=':eek:' class='wp-smiley' />  </p>
<hr />
<p>我的网卡是没戏了，下面的部分给需要的人看吧。。。<br />
看了<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Froylez.heroku.com%2F2011%2F08%2F11%2Fhostapd.html" target="_blank">roylez的文章</a>，他推荐一款支持master模式的网卡Mercury MW150u(MERCURY MW150U 150M无线USB网卡).<br />
看看吧，可能我得买一块这个来喽。。。 <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' /><br />
下面是roylez对此网卡的描述，个人认为很有必要把它摘抄下来供各位参考：</p>
<blockquote><p>这款网卡采用AR9271芯片，Linux下用ath9k_htc驱动（内核自带）。支持AP模式，支持monitor模式。有monitor模式，就可以和aircrack-ng搭配了破解无线网路密码，有AP模式，就可以用来自架AP。ath9k_htc驱动目前不支持150M模式，不过这已经很次要了。卓越27包邮，杀人放火居家旅行必备。另外值得一提的是， 这款网卡还有个马甲是Fast FW150u。</p></blockquote>
<p>如果你用的是Atheros系列的网卡的话，得装Madwifi.<br />
以ubuntu系统为例：<br />
wget http://downloads.sourceforge.net/madwifi/madwifi-0.9.4.tar.gz<br />
tar -xvzf madwifi-0.9.4.tar.gz<br />
cd madwifi-0.9.4<br />
sudo apt-get install build-essential linux-headers-server<br />
sudo make<br />
sudo make install<br />
sudo vim /etc/modprobe.d/madwifi<br />
然后添加下面这行让你的网卡工作在master模式：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">options ath_pci <span style="color: #007800;">autocreate</span>=ap</div></td></tr></tbody></table></div>
<p>热加载此module ：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe ath_pci</div></td></tr></tbody></table></div>
<p>基于mac80211的驱动：<br />
其它几个这里不说了，自己去<a href="http://ihacklog.com/l.php?url=https%3A%2F%2Fhelp.ubuntu.com%2Fcommunity%2FWifiDocs%2FMasterMode" target="_blank">WifiDocsMasterMode</a> 看。<br />
Intel PRO/Wireless (ipwXXXX) series</p>
<blockquote><p>For ipw2100/ipw2200, unfortunately there is no way to use them as AP, but this can be done for ipw3945 and ipw4965, maybe ipw2915 too, which are pretty good cards anyway, using fully open-source iwlwifi drivers, but it can&#8217;t be done with old Intel drivers with closed microcode.</p></blockquote>
<p>下面是安装hostapd了，以archlinux为例：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> <span style="color: #660033;">--needed</span> hostapd</div></td></tr></tbody></table></div>
<p>然后就是配置了，我偷懒直接用roylez的：<br />
安装hostapd，修改/etc/hostapd/hostapd.conf。这是一个WPA-PSK的配置，用hostapd -d /etc/hostapd/hostapd.conf来测试配置是否可用。</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #000099;">interface</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">wlan1</span><br />
&nbsp;<span style="color: #000099;">driver</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">nl80211</span><br />
&nbsp;<span style="color: #000099;">ssid</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">vlad_is_here</span><br />
&nbsp;<span style="color: #000099;">channel</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">6</span><br />
&nbsp;<span style="color: #000099;">hw_mode</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">g</span><br />
&nbsp;<span style="color: #000099;">ignore_broadcast_ssid</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span><br />
&nbsp;<span style="color: #000099;">auth_algs</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span><br />
&nbsp;<span style="color: #000099;">wpa</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">3</span><br />
&nbsp;<span style="color: #000099;">wpa_passphrase</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">xxxxxxxx</span><br />
&nbsp;<span style="color: #000099;">wpa_key_mgmt</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">WPA-PSK</span><br />
&nbsp;<span style="color: #000099;">wpa_pairwise</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">TKIP</span><br />
&nbsp;<span style="color: #000099;">rsn_pairwise</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">CCMP</span></div></td></tr></tbody></table></div>
<p>为无线网卡指定IP</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> wlan0 192.168.100.1 netmask 255.255.255.0</div></td></tr></tbody></table></div>
<p>启动hostapd服务</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>hostapd start</div></td></tr></tbody></table></div>
<p>安装配置dhcp，这里，如果你装了pdnspd 或者 dnsmasq 的话就不用再安装dhcp了。</p>
<p>iptalbes设置nat</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-A</span> POSTROUTING <span style="color: #660033;">-o</span> wlan0 <span style="color: #660033;">-j</span> MASQUERADE</div></td></tr></tbody></table></div>
<p>启用内核转发功能：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysctl.conf<br />
net.ipv4.ip_forward=<span style="color: #000000;">1</span></div></td></tr></tbody></table></div>
<p>要想即时生效的话，直接用下面这句吧(以root身份执行)：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ipv4<span style="color: #000000; font-weight: bold;">/</span>ip_forward</div></td></tr></tbody></table></div>
<p>hostapd docs: <a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fhostap.epitest.fi%2Fhostapd%2F" target="_blank">http://hostap.epitest.fi/hostapd/</a></p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4923";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4923" title="Permanent Link to Linux下用hostapd架无线AP" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4923</a>
            </p>
             </div><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011年07月22日  //  <a href="http://ihacklog.com/linux/archlinux/multi-route-cause-slow-speed.html" title="最近上网很卡——原来是multi-route的缘故">最近上网很卡——原来是multi-route的缘故</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/archlinux/use-hostapd-to-setup-wireless-access-point-under-linux.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux下用dnsmasq做dns cache server</title>
		<link>http://ihacklog.com/linux/archlinux/set-dnsmasq-as-dns-cache-server.html</link>
		<comments>http://ihacklog.com/linux/archlinux/set-dnsmasq-as-dns-cache-server.html#comments</comments>
		<pubDate>Fri, 07 Oct 2011 08:55:49 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[cache server]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dnsmasq]]></category>
		<category><![CDATA[缓存服务器]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4921</guid>
		<description><![CDATA[@依云说这个速度快，我试了下，果然。 目前最新版是2.58 ，可去其FTP下载：http://www.thekelleys.org.uk/dnsmasq/ 12345678sudo pacman -S --needed dnsmasq cd /etc &#91;admin@huangye etc&#93;$ sudo cp -v dnsmasq.conf&#123;,.orig&#125; `dnsmasq.conf' -&#62; `dnsmasq.conf.orig' &#91;admin@huang...]]></description>
			<content:encoded><![CDATA[<p>@<a href="http://ihacklog.com/linux/archlinux/pdnsd-cache-server-setup.html#comment-4835">依云</a>说<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fthekelleys.org.uk%2Fdnsmasq%2Fdoc.html" target="_blank">这个</a>速度快，我试了下，果然。<br />
目前最新版是2.58 ，可去其FTP下载：<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fwww.thekelleys.org.uk%2Fdnsmasq%2F" target="_blank">http://www.thekelleys.org.uk/dnsmasq/</a></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> <span style="color: #660033;">--needed</span> dnsmasq<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc <br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye etc<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-v</span> dnsmasq.conf<span style="color: #7a0874; font-weight: bold;">&#123;</span>,.orig<span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">`</span>dnsmasq.conf<span style="color: #ff0000;">' -&gt; `dnsmasq.conf.orig'</span><br />
<br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye etc<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> dnsmasq.conf</div></td></tr></tbody></table></div>
<p>相比来说，dnsmasq的配置简单多了：</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000099;">resolv-file</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/etc/dnsmasq.resolv.conf</span><br />
<span style="color: #000099;">addn-hosts</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/etc/dnsmasq.hosts</span><br />
<span style="color: #000099;">local</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/localnet/</span><br />
<span style="color: #000099;">no-dhcp-interface</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">eth0</span><br />
<span style="color: #000099;">conf-dir</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/etc/dnsmasq.d</span></div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye etc<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-v</span> resolv.conf dnsmasq.resolv.conf<br />
Password: <br />
<span style="color: #000000; font-weight: bold;">`</span>resolv.conf<span style="color: #ff0000;">' -&gt; `dnsmasq.resolv.conf'</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dnsmasq.d<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dnsmasq.hosts<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>dnsmasq start</div></td></tr></tbody></table></div>
<p>最后，别忘记加入rc.conf DAEMONS,注意要在network后面。</p>
<p>dnsmasq 可从额外的hosts文件读取条目，如可以这样添加正向解析：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;IP地址 域名&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dnsmasq.hosts</div></td></tr></tbody></table></div>
<p>另外，重启dnsmasq可以用SIGHUP（可以在修改hosts文件后，让配置生效）</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">killall</span> <span style="color: #660033;">-s</span> SIGHUP dnsmasq</div></td></tr></tbody></table></div>
<p>查看服务状态：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-tunl</span><br />
tcp &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> 0.0.0.0:<span style="color: #000000;">53</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.0.0.0:<span style="color: #000000; font-weight: bold;">*</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LISTEN <br />
udp &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> 0.0.0.0:<span style="color: #000000;">53</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.0.0.0:<span style="color: #000000; font-weight: bold;">*</span></div></td></tr></tbody></table></div>
<p>再dig 一下，发现稳定在4ms ,我晕，同样的配置，我在一台ubuntu server 10.04 上面dig 是1ms ,在我本地居然在4ms ,囧 <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' />  </p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4921";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4921" title="Permanent Link to Linux下用dnsmasq做dns cache server" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4921</a>
            </p>
             </div><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011年10月7日  //  <a href="http://ihacklog.com/linux/archlinux/pdnsd-cache-server-setup.html" title="Linux下用pdnsd做dns缓存服务器">Linux下用pdnsd做dns缓存服务器</a> (5)</li><li>2010年04月10日  //  <a href="http://ihacklog.com/server/setup-bind-proxy-server-under-windows-7.html" title="Windows下安装BIND作为DNS缓存服务器">Windows下安装BIND作为DNS缓存服务器</a> (11)</li><li>2009年12月1日  //  <a href="http://ihacklog.com/software/cool_software_share/acrylic-win-dns-cache-server.html" title="Acrylic:让你在win一分钟建立DNS缓存服务器">Acrylic:让你在win一分钟建立DNS缓存服务器</a> (3)</li><li>2011年10月3日  //  <a href="http://ihacklog.com/software/tips/how-to-flush-the-dns-cache.html" title="刷新DNS缓存的方法">刷新DNS缓存的方法</a> (2)</li><li>2009年11月4日  //  <a href="http://ihacklog.com/server/using-bind9-setup-cache-and-local-dns-server.html" title="bind9架設域名服务器及配置">bind9架設域名服务器及配置</a> (2)</li><li>2009年06月17日  //  <a href="http://ihacklog.com/software/cool_software_share/pichuliquanzidongpeizhiipdizhiwangguandns.html" title="批处理全自动配置IP地址,网关,dns">批处理全自动配置IP地址,网关,dns</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/archlinux/set-dnsmasq-as-dns-cache-server.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Linux下用pdnsd做dns缓存服务器</title>
		<link>http://ihacklog.com/linux/archlinux/pdnsd-cache-server-setup.html</link>
		<comments>http://ihacklog.com/linux/archlinux/pdnsd-cache-server-setup.html#comments</comments>
		<pubDate>Thu, 06 Oct 2011 19:28:25 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pdnsd]]></category>
		<category><![CDATA[缓存服务器]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4919</guid>
		<description><![CDATA[123sudo pacman -S pdnsd cd /etc sudo cp pdnsd.conf.sample pdnsd.conf 123456789101112131415161718192021222324252627282930313233343536373839404142434445&#91;admin@huangye etc&#93;$ cat pdnsd.conf global &#123; &#160; &#160; perm_cache=1024; &#160; &#160; ca...]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> pdnsd<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> pdnsd.conf.sample pdnsd.conf</div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye etc<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">cat</span> pdnsd.conf<br />
global <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #007800;">perm_cache</span>=<span style="color: #000000;">1024</span>;<br />
&nbsp; &nbsp; <span style="color: #007800;">cache_dir</span>=<span style="color: #ff0000;">&quot;/var/cache/pdnsd&quot;</span>;<br />
<span style="color: #666666; font-style: italic;"># &nbsp; pid_file = /var/run/pdnsd.pid;</span><br />
&nbsp; &nbsp; <span style="color: #007800;">run_as</span>=<span style="color: #ff0000;">&quot;nobody&quot;</span>;<br />
&nbsp; &nbsp; server_ip = eth0; &nbsp;<span style="color: #666666; font-style: italic;"># Use eth0 here if you want to allow other</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;"># machines on your network to query pdnsd.</span><br />
&nbsp; &nbsp; status_ctl = on;<br />
<span style="color: #666666; font-style: italic;"># &nbsp; paranoid=on; &nbsp; &nbsp; &nbsp; # This option reduces the chance of cache poisoning</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># but may make pdnsd less efficient, unfortunately.</span><br />
&nbsp; &nbsp; <span style="color: #007800;">query_method</span>=udp_tcp;<br />
&nbsp; &nbsp; <span style="color: #007800;">min_ttl</span>=48h; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;"># Retain cached entries at least 15 minutes.</span><br />
&nbsp; &nbsp; <span style="color: #007800;">max_ttl</span>=1w; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># One week.</span><br />
&nbsp; &nbsp; <span style="color: #007800;">timeout</span>=<span style="color: #000000;">10</span>; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># Global timeout option (10 seconds).</span><br />
&nbsp; &nbsp; <span style="color: #007800;">neg_domain_pol</span>=on;<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># The following section is most appropriate if you have a fixed connection to</span><br />
<span style="color: #666666; font-style: italic;"># the Internet and an ISP which provides good DNS servers.</span><br />
server <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #007800;">label</span>= <span style="color: #ff0000;">&quot;myisp&quot;</span>;<br />
&nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">ip</span> = 你的ISP的DNS,8.8.8.8; &nbsp;<span style="color: #666666; font-style: italic;"># Put your ISP's DNS-server address(es) here.</span><br />
&nbsp; &nbsp; <span style="color: #007800;">timeout</span>=<span style="color: #000000;">4</span>; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;"># Server timeout; this may be much shorter</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># that the global timeout option.</span><br />
&nbsp; &nbsp; <span style="color: #007800;">uptest</span>=<span style="color: #000000; font-weight: bold;">if</span>; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;"># Test if the network interface is active.</span><br />
&nbsp; &nbsp; <span style="color: #007800;">interface</span>=eth0; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># The name of the interface to check.</span><br />
&nbsp; &nbsp; <span style="color: #007800;">interval</span>=60m; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># Check every 60 minutes.</span><br />
&nbsp; &nbsp; <span style="color: #007800;">purge_cache</span>=off; &nbsp; <span style="color: #666666; font-style: italic;"># Keep stale cache entries in case the ISP's</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># DNS servers go offline.</span><br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #007800;">owner</span>=localhost;<br />
<span style="color: #666666; font-style: italic;"># &nbsp; serve_aliases=on;</span><br />
&nbsp; &nbsp; <span style="color: #007800;">file</span>=<span style="color: #ff0000;">&quot;/etc/hosts&quot;</span>;<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
<br />
rr <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #007800;">name</span>=localhost;<br />
&nbsp; &nbsp; <span style="color: #007800;">reverse</span>=on;<br />
&nbsp; &nbsp; <span style="color: #007800;">a</span>=127.0.0.1;<br />
&nbsp; &nbsp; <span style="color: #007800;">owner</span>=localhost;<br />
&nbsp; &nbsp; <span style="color: #007800;">soa</span>=localhost,root.localhost,<span style="color: #000000;">42</span>,<span style="color: #000000;">86400</span>,<span style="color: #000000;">900</span>,<span style="color: #000000;">86400</span>,<span style="color: #000000;">86400</span>;<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></td></tr></tbody></table></div>
<p>min_ttl我调整为了48h ，最短要48个小时更新一次缓存。</p>
<p>interval=60m ,每60分钟检测一次。<br />
注意，如果你想让同网段其它人也能查询的话，server_ip 的值设置为<strong>eth0</strong> ,如果你只想自己使用的话，填写 <strong>127.0.0.1 </strong>即可。<br />
然后，启动服务：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>pdnsd start</div></td></tr></tbody></table></div>
<p>然后，修改本机DNS配置：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> resolv.conf</div></td></tr></tbody></table></div>
<p>把其它dns全部注释掉,<br />
如果你server_ip 的值设置为<strong>eth0</strong> 的话，nameserver 后面要填写你本机当前的IP地址，经测试，填写127.0.0.1不能工作。否则，你可以添加下面这条：</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">nameserver 127.0.0.1</div></td></tr></tbody></table></div>
<p>现在</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dig</span> ihacklog.com</div></td></tr></tbody></table></div>
<p>第一次：<br />
Query time: 353 msec</p>
<p>其后基本上是：<br />
<strong>Query time: 17 msec</strong></p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4919";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4919" title="Permanent Link to Linux下用pdnsd做dns缓存服务器" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4919</a>
            </p>
             </div><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011年10月7日  //  <a href="http://ihacklog.com/linux/archlinux/set-dnsmasq-as-dns-cache-server.html" title="Linux下用dnsmasq做dns cache server">Linux下用dnsmasq做dns cache server</a> (7)</li><li>2010年04月10日  //  <a href="http://ihacklog.com/server/setup-bind-proxy-server-under-windows-7.html" title="Windows下安装BIND作为DNS缓存服务器">Windows下安装BIND作为DNS缓存服务器</a> (11)</li><li>2009年12月1日  //  <a href="http://ihacklog.com/software/cool_software_share/acrylic-win-dns-cache-server.html" title="Acrylic:让你在win一分钟建立DNS缓存服务器">Acrylic:让你在win一分钟建立DNS缓存服务器</a> (3)</li><li>2011年10月18日  //  <a href="http://ihacklog.com/linux/myget-the-multi-thread-download-tools-under-linux.html" title="Linux下多线程下载工具Myget原是国人所写">Linux下多线程下载工具Myget原是国人所写</a> (3)</li><li>2011年10月3日  //  <a href="http://ihacklog.com/software/tips/how-to-flush-the-dns-cache.html" title="刷新DNS缓存的方法">刷新DNS缓存的方法</a> (2)</li><li>2011年07月22日  //  <a href="http://ihacklog.com/linux/archlinux/multi-route-cause-slow-speed.html" title="最近上网很卡——原来是multi-route的缘故">最近上网很卡——原来是multi-route的缘故</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/archlinux/pdnsd-cache-server-setup.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

