Setting up Wireless Hotspot on Ubuntu 14.04 (With Video demo)

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:

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

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

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:
https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+files/ap-hotspot_0.3.1-1%7Ewebupd8%7E0_all.deb

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

that’s it..

to start it, run:

sudo ap-hotspot start

and to stop the hotspot, run:

sudo ap-hotspot stop

Video Demo below:

This entry was posted in Stuff for fun and tagged , , , , , . Bookmark the permalink.

7 Responses to Setting up Wireless Hotspot on Ubuntu 14.04 (With Video demo)

  1. Salman Estyak says:

    Hello, I could set up a hotspot by following your tutorial, but I am getting authentication error..

    I don’t think it’s my android Tab’s problem… The wifi connection that has been established doesn’t show any “Security” on my android Tab. Can you help me in this regard, thank you? ^_^

  2. Bimal says:

    Great man! it just worked for me great!! πŸ˜€

  3. jeremyfortunato1@gmail.com says:

    Hello I am having an issue installing the 64 bit version. It says 404 error not found. Typically that is a url issue, could the link have changed in anyway?

  4. Worked Fine for ME πŸ˜€ Thank you

  5. lm says:

    Hello! Thanks for this clear explanation. It works well for me. But…:
    I would like to share wifi to wifi. I.e., I have one dongle that gets the internet over wifi.
    The other that is supposed to somehow relay it. When I try to use ap-hostpot in this configuration, I get:
    sl- ThinkPad:/tmp$ sudo ap-hotspot start
    Please disconnect WiFi before proceeding
    How can I solve this problem please?
    Rgds

Leave a reply to lm Cancel reply