You can create a WiFi hotspot in Ubuntu 14.04 or later with an easy and straightforward way. You do not need any additional application or software for that purpose. Ubuntu’s default Network Manager (precisely, GNOME Network Manager) is more than enough for that purpose.
- Click on the Network Manager icon from the top panel.
- You would find Enable Wi-Fi as already checked. Well, uncheck it. Now, your WiFi network is disabled.
- Now, go to Network Manager again and at the end of the list you would find Edit Connections. Click on it.
- Click Add.
- Select Wi-Fi from the drop-down list and click on Create.
- A window will appear. You can change the connection name or keep it like that. That’s up to you.
- Give any name to SSID. Your hotspot would be named after that name.
- Mode would be Infrastructure.
- Click on the drop-down button on the Device MAC address and select your wireless card.
- Go to Wi-Fi Security tab. From there select WPA & WPA2 Personal as the Security type. Set a password.
- Go to IPv4 Settings tab. Select Shared to other computers from the drop-down menu of the Method.
- Click Save.
- Now open terminal (Ctrl+Alt+T) and execute the following:
sudo gedit /etc/NetworkManager/system-connections/name_of_the_wifi_hotspot
Here, replace name_of_the_wifi_hotspot with the name you selected as your Connection Name.
- A file would open in gEdit. Find mode=infrastructure. Replace it with mode=ap.
- Save the file.
- Now check Enable Wi-Fi from the Network Manager icon.
- Your computer should be automatically connected to the WiFi hotspot you’ve just created. If not, then select Connect to Hidden Wi-Fi Network and select your hotspot from the drop-down list.
- Your Wi-Fi hotspot is now ready. Connect your Android phone or other device to the internet through it.