如何在Ubuntu下建立虚拟wifi热点供Android、Kindle……使用?

2011-11-08 15:33:15 +08:00
 gujiaxi
补充:win7下呢?
12773 次点击
所在节点    问与答
35 条回复
mingming
2012-03-31 19:17:21 +08:00
ubuntu 12.04 网络设置里面有个按钮直接做热点,可是我的veer搜不到就是。不知道android 的了。
gujiaxi
2012-03-31 19:25:00 +08:00
@mingming 不支持ad-hoc
G_virus
2012-03-31 22:13:35 +08:00
当初某同学问过我同样的问题,然后给他搜出了hostapd。我自己因为没有无线网卡所以没有测试过,不过据他说似乎可用,仅供lz参考一下吧。
aristotle9
2012-03-31 22:24:40 +08:00
aristotle9
2012-03-31 22:26:57 +08:00
如果各数据显示都正常但是不能上网,网络断一下再连就可以了.kindle touch实测.
vven
2012-03-31 23:34:10 +08:00
@aristotle9 一路设置到最后,现在是grep "hostapd is running" ... FAIL 错误,悲催啊
aristotle9
2012-04-01 00:02:55 +08:00
@vven sudo hostapd -d 查看具体的错误信息是什么.
lowstz
2012-04-01 00:11:21 +08:00
vven
2012-04-01 00:27:29 +08:00
@aristotle9
每次都显示这个,查不到错误日志啊

hostapd v0.6.10
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi> and contributors

usage: hostapd [-hdBKtv] [-P <PID file>] <configuration file(s)>

options:
-h show this usage
-d show more debug messages (-dd for even more)
-B run daemon in the background
-P PID file
-K include key data in debug messages
-t include timestamps in some debug messages
-v show hostapd version
aristotle9
2012-04-01 00:34:00 +08:00
@vven sudo hostapd -d /etc/hostapd/hostapd.conf试这个,指定配置文件运行.默认的配置文件是在/etc/init.d/hostapd里改的:DAEMON_CONF=/etc/hostapd/hostapd.conf
vven
2012-04-01 00:37:37 +08:00
@aristotle9

Configuration file: /etc/hostapd/hostapd.conf
nl80211 not found.
nl80211 driver initialization failed.
wlan0: Unable to setup interface.

难道网卡不支持?
aristotle9
2012-04-01 00:44:13 +08:00
@vven 我这边网卡没插也是显示这个信息的.是硬件或者驱动的原因.
toothpaste
2012-04-01 00:46:26 +08:00
其实能不能创建真正的ap(非ad-hoc),要看网卡驱动是否支持master模式,可以看看wiki这个[link][1] 来确定哪个型号是否支持


[1]: http://en.wikipedia.org/wiki/Comparison_of_open-source_wireless_drivers
vven
2012-04-01 00:46:49 +08:00
@aristotle9 看到有的帖子说hostapd 0.6太老换了0.8,不知道是不是这个原因
aristotle9
2012-04-01 00:48:01 +08:00
按照https://help.ubuntu.com/community/WifiDocs/MasterMode
看看自己的网卡支不支持master模式

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/21000

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX