Ubuntu – Create a hotspot on Ubuntu 15.04 (single adapter) help!

15.04hostapdhot-spotnetworking

I know there are lots of questions on this type but I cannot find the answer anywhere. On Windows I can use cmd to create a virtual AP and share connection from a local network. However, It seems not to work the same way on Ubuntu (I'm pretty new on Ubuntu, honestly).

I had follow on these two topic :
How do I create a WiFi hotspot sharing wireless internet connection (single adapter)?

and
https://seravo.fi/2014/create-wireless-access-point-hostapd
Although I've tried these many times and ask question several times but the problem seems to be unsolvable.
I would be very appreciated if anybody can help me to create a hotspot step by step. To make sure that my chipset was supported, here's my adapter information:
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
* P2P-client
* P2P-GO

Please help, thanks in advance!

Best Answer

This method:

1- Go to network connection (Edit Connections)
2- Click Add
3- Choose Wi-Fi and click Create
4- Type in Connection name like "UbuntuAP"
5- Type in SSID as you wish
6- Choose Device MAC Address from the dropdown (wlan0)
7- Wifi Security select WPA & WPA2 Personal and set a password.
8- Go to IPv4 Settings tab, from Method drop-down box select Shared to other computers.
9- Then save and close.
10- Open Terminal (Ctrl+Alt+T) and type in the following command with your connection name used in step 4.

sudo gedit /etc/NetworkManager/system-connections/UbuntuAP

11- Find mode=infrastructure and change it to mode=ap
12- Now click on WiFi icon in top right and select Connect to Hidden Wi-Fi Network...
13- Then Select UbuntuAP connection and click Connect.
14- Finish :D

Related Question