


<?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>Wow! Ubuntu &#187; lendylongli</title>
	<atom:link href="http://wowubuntu.com/author/lendylongli/feed" rel="self" type="application/rss+xml" />
	<link>http://wowubuntu.com</link>
	<description>Ubuntu 及 Linux 新闻、技巧、软件及游戏！</description>
	<lastBuildDate>Wed, 16 May 2012 04:19:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Linux 建立 ad-hoc 实现 Wifi 共享，类似 Connectify 功能</title>
		<link>http://wowubuntu.com/ad-hoc.html</link>
		<comments>http://wowubuntu.com/ad-hoc.html#comments</comments>
		<pubDate>Mon, 01 Aug 2011 00:49:08 +0000</pubDate>
		<dc:creator>lendylongli</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[Ad-hoc]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=5005</guid>
		<description><![CDATA[最近在 Ubuntu 里找了很久，也找不到一个可以将无线网卡作 AP 的软件，试了网上很多方法都不行，有些是可以搜到热点，但我的 Android 手机连上去的时候获取不了 ip 地址。研究了几天，昨晚花了一晚时候，去写个脚本，成功的连上了。希望我这个脚本能帮到大家解决问题。 主要是用到 iwconfig 这个无线配置工具，然后用iptable设置NAT规则，使用dnsmasq去分配ip地址。 完整脚本下载地址:https://gist.github.com/1117004 以下是脚本的使用方法: #先加可执行的权限,XXX代表脚本的路径 chmod +x /XXX/XXX/adhoc #运行脚本 sudo  /XXX/XXX/adhoc #停止共享 sudo  /XXX/XXX/adhoc -s #重启动共享 sudo  /XXX/XXX/adhoc -r 注意: 如果运行脚本后，手机或电脑搜不到你的共享，运行重新启动共享命令 sudo  /XXX/XXX/adhoc -r 即可，多次几次就行了。 Update: 根据 Aenon 的提示，其实更简单的办法是直接用NetworkManager，“创建新的无线网络”，就可以了 # 本文采用CC协议进行授权，转载本文请注明本文链接。/ 46 条留言 - Twitter / 微博 / 问答 / 投稿 / 加入我们 wow0slx6bcs721xo1udcc- 高性价比 Ubuntu VPS / 本站架设于 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Finssider2.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Wi-fi 扫描工具 inSSIDer 2 发布 Linux 版本</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-native-notification.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Linux Native Notification：让 Chrome 支持 Linux 原生通知</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20-year.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">庆祝 Linux 20 周岁</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffix-wirless-led.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">解决 Ubuntu10.10 上无线 Led 灯狂闪的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Linux 20周年开发者庆典活动!</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>最近在 Ubuntu 里找了很久，也找不到一个可以将无线网卡作 AP 的软件，试了网上很多方法都不行，有些是可以搜到热点，但我的 Android 手机连上去的时候获取不了 ip 地址。研究了几天，昨晚花了一晚时候，去写个脚本，成功的连上了。希望我这个脚本能帮到大家解决问题。</p>
<p>主要是用到 iwconfig 这个无线配置工具，然后用iptable设置NAT规则，使用dnsmasq去分配ip地址。</p>
<p><strong>完整脚本下载地址</strong>:<a href="https://gist.github.com/1117004">https://gist.github.com/1117004</a></p>
<p><strong>以下是脚本的使用方法:</strong></p>
<p>#先加可执行的权限,XXX代表脚本的路径</p>
<blockquote><p>chmod +x /XXX/XXX/adhoc</p></blockquote>
<p>#运行脚本</p>
<blockquote><p>sudo  /XXX/XXX/adhoc</p></blockquote>
<p>#停止共享</p>
<blockquote><p>sudo  /XXX/XXX/adhoc -s</p></blockquote>
<p>#重启动共享</p>
<blockquote><p>sudo  /XXX/XXX/adhoc -r</p></blockquote>
<p><strong>注意:</strong></p>
<p>如果运行脚本后，手机或电脑搜不到你的共享，运行重新启动共享命令</p>
<blockquote><p>sudo  /XXX/XXX/adhoc -r</p></blockquote>
<p>即可，多次几次就行了。</p>
<p>Update: 根据 Aenon 的提示，其实更简单的办法是直接用NetworkManager，“创建新的无线网络”，就可以了</p>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/ad-hoc.html" title="Permalink">本文链接<a>。/  46  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Finssider2.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Wi-fi 扫描工具 inSSIDer 2 发布 Linux 版本</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-native-notification.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Linux Native Notification：让 Chrome 支持 Linux 原生通知</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20-year.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">庆祝 Linux 20 周岁</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffix-wirless-led.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">解决 Ubuntu10.10 上无线 Led 灯狂闪的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20.html&from=http%3A%2F%2Fwowubuntu.com%2Fad-hoc.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Linux 20周年开发者庆典活动!</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/ad-hoc.html/feed</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
	</channel>
</rss>

