Ubuntu14.04 setting up WiFi hotspots
$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install HOSTAPD
$ sudo apt-get install Ap-hotspot
Download 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):
Enter confirm
Detected wlan0 as your WiFi interface. Press ENTER If this is correct or ENTER the desired interface (e.g.-wlan1):
Enter confirm
Enter the desired Access point name or press ENTER to use the default one (Myhotspot):
Enter the name of the WiFi
Enter the desired WPA Passphrase below or press ENTER to use the default one (qwerty0987):
Enter the password for WiFi
$ sudo ap-hotspot start
Starting Wireless Hotspot ...
Wireless Hotspot Active
Ubuntu14.04 setting up WiFi hotspots