How to create hotspot Wifi in Linux

1. Remove your old version hostapd

Some system may have old version of hostapd, so to make sure everything works fine. We should remove older version, and install new one.

sudo apt-get remove hostapd

2. Download latest version of hostapd from this link

You should consider what your Linux architecture is 64 bit (amd64) or 32 bit (i386). If you’re not sure, you can go to detail of your system to check it.

With 64 bit:


With 32 bit


3. Install the package

Install the package you’ve downloaded.

sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd

4. Install ap-hotspot package.

After install complete, we’ll install another package “ap-hotspot” for this.

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install ap-hotspot

5. Final step.

Configure your wifi hotspot with password and enjoy it. If you want to use this, make sure your wifi card is disconnect to any Access Point. Select your wifi card interface to create hotspot. Normally we will choose “wlan0”.

sudo ap-hotspot configure   // to configure your hotspot
sudo ap-hotspot start       // start hotspot
sudo ap-hotspot stop        // stop hotspot

Here are some result: hotspot.png

If you feel this helpful, please share it! Otherwise, if you’ve got any problem, you can comment below I will answer ASAP.

Leave a Reply

Your email address will not be published. Required fields are marked *