Creating WiFi Hotspot on your Linux machine

Getting tired of those 30 minutes trial using Connectify, I decided it was time to beat the heat using Linux power. Creating a wifi hotspot on Linux is super easy once you get the hang of it, however I had to search the Internet for quite some time before setting it up. This short tutorial will save you the trouble, so lets get started.

I came across an open source project called ap-hotspot but I was unable to make it work so if you manage to make it work please leave a comment.

Another great tool which works flawlessly is KDE Connection Manager and all you need to do is click New -> Wireless (shared) -> fill in the details -> Good to Go!

An issue which I came across was that KDE Connection Manager seems to have some problems working with Unity and Gnome so I would recommend the next method if you’re using these desktop environments.

  1.  Connect your computer to the internet using a network cable or USB modem or anything that works.
  2.  Enable WiFi on your machine
  3.  Go to Edit Connections
  4.  Add a New Connection
  5.  Select Wi-Fi -> Create
  6.  Enter a connection name -> Enter the SSID -> Select the mode as ‘Infrastructure’ for hotspot or ‘Ad-hoc’ for an ad-hoc network. For this tutorial, stick with ‘Infrastructure’
  7.  Select Device MAC address from the drop down menu.
  8.  Go to Security tab -> Select WPA 2 – Personal -> Enter Passphrase
  9.  Go to IPv4 tab -> Select method as Shared to other computers -> Click on Save
  10. Now we need to edit the configuration file created, which will be named as Hotspot or any other name you specified:

            sudo vim /etc/NetworkManager/system-connections/Hotspot

11. Go to line number 8 and change infrastructure to ap, so the new line no. 8 should read as:

           mode=ap

12. Save the file, restart your wifi (disable and enable) and BOOM!!! Your Hotspot is ready to roll. P. S. Check out another post on the same topic here.

You may also like...