Ubuntu14.04 设置wifi热点
2015-04-11 23:24
260 查看
查了一下资料主要有两种方法:
[b]第一步:安装ap-hotspot[/b]
第二步:配置ap-hotspot
第三步:启动wifi
大功告成,现在可以再Android设备上查找到自己发散的wifi了
另外附上几个常用的命令选项:
以前会出现一个一直处于starting...状态的问题,但是,但是尼玛流行的修复方式出了问题了!官网脑残地将hostapd 1.0的deb包删除了,现在的2.x的包尼玛根本不能用。我下载了1.0和2.x版本编译安装还是不行,后来还是用的ubuntu官网的hostapd,居然神奇地可以用了。
解释一下ap-hotspot和hostapd的关系把,其实ap-hostpot是依赖hostapd的,相当于ap-hostpot只是个充当客户端的角色,hostapd才是核心,因此hostapd出了问题ap-hostpot自然也用不了了。
太折腾了。。。。。
需要手动下载源码编译的戳这里 http://w1.fi/cgit/hostap-1/
下载2.x的deb包的戳这里:http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/ 然而这并没有什么卵用。
本文参考了:
http://ubuntuhandbook.org/index.php/2014/02/wifi-hotspot-ubuntu-laptop-android/
/article/2093114.html
[b]第一种:network manager设置[/b]
这种方法配置比较复杂.并且不能给Android手机和iPhone共享.果断放弃(其实我是尝试过的,真的没有用).[b]第二种:使用ap-hotspot,亲测可用[/b]
这种方法配置简单,用起来也方便.[b]第一步:安装ap-hotspot[/b]
$ sudo add-apt-repository ppa:nilarimogard/webupd8 $ sudo apt-get update $ sudo apt-get install hostapd $ sudo apt-get install ap-hotspot
第二步:配置ap-hotspot
$ sudo ap-hotspot configure
Detecting configuration... Detected eth0 as the network interface connected to the Internet. Press ENTER if this is correct or enter the desired interface below (e.g.- eth0, ppp0 etc.): // 回车确认 Detected wlan0 as your WiFi interface. Press ENTER if this is correct or enter the desired interface (e.g.- wlan1): // 回车确认 Enter the desired Access Point name or press ENTER to use the default one (myhotspot): // 输入wifi的名字 Enter the desired WPA Passphrase below or press ENTER to use the default one (qwerty0987): // 输入wifi的密码
第三步:启动wifi
$ sudo ap-hotspot start
大功告成,现在可以再Android设备上查找到自己发散的wifi了
另外附上几个常用的命令选项:
Usage: ap-hotspot [argument] start start wireless hotspot // 打开wifi stop stop wireless hotspot // 停止wifi restart restart wireless hotspot // 重启wifi configure configure hotspot // 配置wifi debug start with detailed messages // dubug模式打开wifi,会显示一些详细的信息
以前会出现一个一直处于starting...状态的问题,但是,但是尼玛流行的修复方式出了问题了!官网脑残地将hostapd 1.0的deb包删除了,现在的2.x的包尼玛根本不能用。我下载了1.0和2.x版本编译安装还是不行,后来还是用的ubuntu官网的hostapd,居然神奇地可以用了。
解释一下ap-hotspot和hostapd的关系把,其实ap-hostpot是依赖hostapd的,相当于ap-hostpot只是个充当客户端的角色,hostapd才是核心,因此hostapd出了问题ap-hostpot自然也用不了了。
太折腾了。。。。。
需要手动下载源码编译的戳这里 http://w1.fi/cgit/hostap-1/
下载2.x的deb包的戳这里:http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/ 然而这并没有什么卵用。
本文参考了:
http://ubuntuhandbook.org/index.php/2014/02/wifi-hotspot-ubuntu-laptop-android/
/article/2093114.html
相关文章推荐
- ubuntu 14.04 设置wifi热点
- ubuntu设置WPA2-PSK的wifi热点(AP)——hostapd+dhcpd
- Ubuntu 14.04 LTS中怎样解决系统设置残缺的问题
- Ubuntu14.04-X64-Server版时区,时间重新设置-tzselect的使用
- ubuntu 14.04 系统设置内好多东西没有了
- Ubuntu_Ubuntu 12.04下设置笔记本成为wifi热点
- ubuntu 14.04/14.10 iptables 防火墙设置
- ubuntu14.04 安装Oracle-jdk-7的设置
- Ubuntu 杂谈(十四) ------ 将PC设置为WIFI热点
- Ubuntu 14.04 LTS root自动登录设置
- Ubuntu 14.04 字体设置
- Ubuntu14.04设置Andriod开发环境
- Ubuntu 14.04 LTS中怎样解决系统设置残缺的问题
- Ubuntu 14.04 设置静态IP
- 解决ubuntu 14.04删除ibus后导致系统设置丢失项目,注销关机不正常的问题
- linux (ubuntu 14.04) 设置静态IP地址(一个网卡一个或多个IP地址)
- Drupal7主题初步设置篇-Ubuntu 14.04 LTS 推荐
- Ubuntu 14.04 Eclipse设置背景色
- Ubuntu14.04建立WiFi热点