Create Wifi Hotspot in Ubuntu

Hello Friends, Today i am going to show you a little hack of ubuntu to create own WIFI HOTSPOT without using any third party software.

Follow my step by step guide to create wifi hotspot in ubuntu.
Tested on ubuntu 14.04


Step-1: Go to Network Icon on top panel and click on Edit Connections.
Create wifi hotspot in ubuntu

Step-2: Then click the Add button in the pop-up window.
Create Wifi hotspot in ubuntu

Step-3: Choose Wi-Fi from the drop-down menu as your connection type.
Create Wifi hotspot in ubuntu

Step-4: In new window:
a). Type in a connection name anything you want
b). Type in a SSID
c). Select mode: Infrastructure
d). Device MAC address: select your wireless card from drop-down menu.
Create Wifi hotspot in ubuntu

Step-5: Click on Wi-Fi Security tab, select security type “WEP 40/128-bit Key(Hex or ASCII)” and set a password.
Create Wifi hotspot in ubuntu

Step-6: Click on IPv4 Settings tab, In Method drop-down box select “Shared to other computers” option to share networks with other devices.
Create Wifi hotspot in ubuntu

When all done click save button.

Step-7: After above steps done a configuration file created under /etc/NetworkManager/system-connections directory. File name is same to the connection name you typed in step 4.

Now press Ctrl+Alt+T on keyboard to open terminal. When it opens, paste the commands below and hit Enter to edit the configuration file.
(You can use any editor to edit the file like gedit, nano etc. Here i am using vim editor a very powerful command line editor).
sudo vim /etc/NetworkManager/system-connections/iamhotspot
OR
sudo gedit /etc/NetworkManager/system-connections/iamhotspot
OR
sudo nano /etc/NetworkManager/system-connections/iamhotspot
Create Wifi hotspot in ubuntu

Step-8: When the file opened, find out the line “mode=infrastructure” and change it to “mode=ap”.
Create Wifi hotspot in ubuntu
Create Wifi hotspot in ubuntu
Finally save the file.

Step-9: When everything done perfectly, enable WIFI from Network Manager icon on the panel. It should automatically connect to the hotspot you created. But if not, select “Connect to Hidden Wi-Fi Network” and select it from the drop-down box now click on connect.
Create Wifi hotspot in ubuntu
Create Wifi hotspot in ubuntu

Congrats You have done all the steps successfully. Now you can search and connect newly created wifi-hotspot zone on your mobile phone. 🙂

If you like this post please don’t forget to subscribe My Public Notebook for more useful stuff.