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.
- Connect your computer to the internet using a network cable or USB modem or anything that works.
- Enable WiFi on your machine
- Go to Edit Connections
- Add a New Connection
- Select Wi-Fi -> Create
- 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’
- Select Device MAC address from the drop down menu.
- Go to Security tab -> Select WPA 2 – Personal -> Enter Passphrase
- Go to IPv4 tab -> Select method as Shared to other computers -> Click on Save
- 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:
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.