Ubuntu's network management makes it easy to create WiFi hotspots, but because it uses the Ad-hoc network, the WiFi it creates doesn't make it available to Android. This text is to solve this problem
1.Install Ap-hostpot in Ubuntu
sudo add-apt-repository ppa:nilarimogard/webupd8sudo apt-get updatesudo Install ap-hotspot
2.Updata for Ubuntu 14.04
The HOSTAPD version in Ubuntu 14.04 are buggy and doesn ' t work properly. To get Ap-hotspot to work with HOSTAPD in Ubuntu 14.04, you need to downgrade HOSTAPD and use apt-to-hold the package so I T ' s not upgraded(HOSTAPD has a lot of bugs on 14.04, so you have to downgrade the HOSTAPD if you want to run it perfectly ... )
64-bit:
CD/tmpwget http://Archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_ 1.0-3ubuntu2.1_amd64.debsudo dpkg-i hostapd*. Debsudo apt-mark hold HOSTAPD
32-bit:
CD/tmpwget http://Archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_ 1.0-3ubuntu2.1_i386.debsudo dpkg-i hostapd*. Debsudo apt-mark hold HOSTAPD
3.Usage
To start Ap-hotspot, use the following command:
sudo ap-hotspot start
Follow the prompts to enter a. Wired NIC B. Wireless card C.wifi name D. password
Nic properties can be used with commands
Ifconfig
To inquire, generally wired network cards on Ubuntu for eth0
If the input error can be modified with the following command:
sudo ap-hotspot Configure
Restart command and End command:
#重启 sudo ap-hotspot restart# end sudo ap-hotspot stop
If it fails to start, close the firewall and try:
sudo ufw disable
Goodluck. Turn from (here)