Create a Wi-Fi hotspot for Android in Ubuntu 14.04
Ubuntu Network Management provides convenience for creating Wifi hotspots. However, because it uses an ad-hoc network, the Wifi created by Ubuntu cannot be used by the Android system. This article aims to solve this problem.
1. Install AP-Hostpot in Ubuntu
Sudo add-apt-repository ppa: nilarimogard/webupd8
Sudo apt-get update
Sudo apt-get install ap-hotspot
2. Updata for ubuntu 14.04
The hostapd version in Ubuntu 14.04 is 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 it's not upgraded (there are many bugs on hostapd and later 14.04, so if you want to run it perfectly, You have to downgrade hostapd ...)
64-bit:
Cd/tmp
Wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
Sudo dpkg-I hostapd *. deb
Sudo apt-mark hold hostapd
32-bit:
Cd/tmp
Wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb
Sudo dpkg-I hostapd *. deb
Sudo 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 Nic c. wifi name d. Password
Nic attributes can be used with commands
Ifconfig
For query, eth0 is usually used for the wired network card Ubuntu
If the input is incorrect, use the following command to modify it:
Sudo ap-hotspot configure
Restart and end commands:
# Restart
Sudo ap-hotspot restart
# End
Sudo ap-hotspot stop
If the firewall cannot be started, close the firewall and try:
Sudo ufw disable
How to Create a Wi-Fi hotspot in Ubuntu