ap-hotspot is an open source program that allows users to create hotspot on their Ubuntu Machines
ap-hotspot has a dependency called hostapd. hostapd is used to create wireless networks
However the new version of hostapd in Ubuntu 14.04 default repo is buggy.
Hence we will first remove it and then install a previous version which is stable.
Once installed we will place a hold on it so that it doesn’t automatically upgrade itself
To uninstall hostapd:
sudo apt-get remove hostapd
To install non buggy version of hostapd:
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
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
The last line “
sudo apt-mark hold hostapd” will place a hold so that hostapd program doesn’t upgrade itself.
Now we need to install ap-hotspot, for that save this file on your desktop:
Once done, run the file by just double clicking on it and let it install itself using Ubuntu Software Center (You can also install it via terminal if you are familiar of how to do so).
Once installed, run:
sudo ap-hotspot configure
-> Select correct WAN port on which you have working internet connection (in my case ppp0)
-> Select correct wireless LAN port on which you want to setup the hotspot (in my case wlan0)
-> Enter desired hotspot name and password
to start it, run:
sudo ap-hotspot start
and to stop the hotspot, run:
sudo ap-hotspot stop
Video Demo below: