天天看點

ubuntu 14.04搭建wifi分享熱點總結

首先你要下載下傳一個hotspot軟體,通過網上制定的位址通常會提示你無法找到該位址,現在我說一下我再搭建改環境的時候的解決方法以及如何搭建成功;

ubuntu14.04安裝配置無線ap

、添加含有ap-hotspot的資源
[email protected]:sudo add-apt-repository ppa:nilarimogard/webupd8
、更新資源
[email protected]:sudo apt-get update
此時可能會提示你執行"sudo dpkg --configure -a"指令,你隻需要按照它的訓示去安裝就可以。
、之前如果安裝了ap-hotsopt或者hostapd的你需要首先将其解除安裝
[email protected]:sudo apt-get remove hostapd
、安裝沒有bug的hostapd版本
我的系統是位,網上很多前輩也介紹了該方法,大家可以借鑒一下,在此向前輩們的付出表示崇高的敬意:
[email protected]:cd /tmp
[email protected]:wget *http://archive.ubuntu.com/ubuntu/pool
/universe/w/wpa/hostapd_1-buntu2_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檔案。
[email protected]:sudo dpkg -i hostapd*.deb
[email protected]:sudo apt-mark hold hostapd
 、 安裝ap-hotspot
[email protected]:sudo apt-get install  ap-hotspot
 、配置 網絡  ap的名字與密碼
 [email protected]:sudo ap-hotspot configure
 [email protected]:/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
[email protected]:/tmp$ 
 、關閉ubuntu的防火牆(如果你啟用了)
[email protected]:sudo ufw disable
  、啟動無線服務(安裝好後最好重新啟動作業系統)
[email protected]:sudo ap-hotspot start 
  (關閉無線:sudo ap-hotspot stop)
  當終端顯示如下時,恭喜你,你的環境已經大獲成功
  [email protected]:/tmp$ sudo ufw disable 
Firewall stopped and disabled on system startup
[email protected]:/tmp$ sudo ap-hotspot start
Please disconnect WiFi before proceeding
[email protected]:/tmp$ sudo ap-hotspot start
Starting Wireless Hotspot...
Wireless Hotspot active
[email protected]:/tmp$ 
           

繼續閱讀