Ubuntu14.04 设置wifi热点

时间:2021-11-24 19:05:22

Ubuntu14.04 设置wifi热点

$ sudo add-apt-repository ppa:nilarimogard/webupd8

$ sudo apt-get update

$ sudo apt-get install hostapd

$ sudo apt-get install ap-hotspot

下载 hostapd_1
http://pan.baidu.com/s/1qW5MqT2

$ sudo dpkg -i ~/Downloads/hostapd_1.0-3ubuntu2.1_amd64.deb

$ 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的密码

$ sudo ap-hotspot start

Starting Wireless Hotspot...
Wireless Hotspot active