您的位置:首页 > 其它

ubuntu 14.04搭建wifi分享热点总结

2015-11-30 22:35 381 查看
首先你要下载一个hotspot软件,通过网上制定的地址通常会提示你无法找到该地址,现在我说一下我再搭建改环境的时候的解决方法以及如何搭建成功;

ubuntu14.04安装配置无线ap

[code]1、添加含有ap-hotspot的资源
whw@Y485:sudo add-apt-repository ppa:nilarimogard/webupd8
2、更新资源
whw@Y485:sudo apt-get update
此时可能会提示你执行"sudo dpkg --configure -a"命令,你只需要按照它的指示去安装就可以。
3、之前如果安装了ap-hotsopt或者hostapd的你需要首先将其卸载
whw@Y485:sudo apt-get remove hostapd
4、安装没有bug的hostapd版本
我的系统是64位,网上很多前辈也介绍了该方法,大家可以借鉴一下,在此向前辈们的付出表示崇高的敬意:
whw@Y485:cd /tmp
whw@Y485:wget *http://archive.ubuntu.com/ubuntu/pool
/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb*
极有可能你执行该条命令最后提示你无法链接到该链接,你可以去 http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb去下载*hostapd_1.0-3ubuntu2.1_amd64.deb* 这个比较古老但非常实用的hotspot文件。
whw@Y485:sudo dpkg -i hostapd*.deb
whw@Y485:sudo apt-mark hold hostapd
 5、 安装ap-hotspot
whw@Y485:sudo apt-get install  ap-hotspot
 6、配置 网络  ap的名字与密码
 whw@Y485:sudo ap-hotspot configure
 whw@Y485:/tmp$ sudo ap-hotspot configure 
Detecting configuration...
Detected ppp0 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.):
ppp0是我的拨号宽带,直接enter
Detected wlan0 as your WiFi interface. Press ENTER if 
this is correct or enter the desired interface (e.g.- 
wlan1):
wlan0是我的无线网卡用来做ap的设备,直接enter
Enter the desired Access Point name or press ENTER to 
use the default one (myhotspot):
该处是输入你分享出去的wifi热点的名称:
myhotspot
Enter the desired WPA Passphrase below or press ENTER 
to use the default one (qwerty0987):
该处是设置你分享出去的wifi热点的密码:
qwer1234
whw@Y485:/tmp$ 
 7、关闭ubuntu的防火墙(如果你启用了)
whw@Y485:sudo ufw disable
 8 、启动无线服务(安装好后最好重新启动操作系统)
whw@Y485:sudo ap-hotspot start 
  (关闭无线:sudo ap-hotspot stop)
  当终端显示如下时,恭喜你,你的环境已经大获成功
  whw@Y485:/tmp$ sudo ufw disable 
Firewall stopped and disabled on system startup
whw@Y485:/tmp$ sudo ap-hotspot start
Please disconnect WiFi before proceeding
whw@Y485:/tmp$ sudo ap-hotspot start
Starting Wireless Hotspot...
Wireless Hotspot active
whw@Y485:/tmp$
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: