3.1 KiB
How to create an AP in Ubuntu 15.04 to connect to Android/iPhone
I tried creating a wireless access point via Gnome Network Manager in 15.04 and was successful. I’m sharing the steps with our readers. Please note: you must have a wifi card which allows you to create an Access Point. If you want to know how to find that, type iw list in a terminal.
If you don’t have iw installed, you can install iw in Ubuntu using the command sudo apt-get install iw.
After you type iw list, look for supported interface section, where it should be a entry called AP like the one shown below:
Supported interface modes:
- IBSS
- managed
- AP
- AP/VLAN
- monitor
- mesh point
Let’s see the steps in detail
- Disconnect WIFI. Get a an internet cable and plug into your laptop so that you are connected to a wired internet connection
- Go to Network Icon on the top panel -> Edit Connections then click the Add button in the pop-up window
- Choose Wi-Fi from the drop-down menu
- Next,
a. Type in a connection name e.g. Hotspot
b. Type in a SSID e.g. Hotspot
c. Select mode: Infrastructure
d. Device MAC address: select your wireless card from drop-down menu
- Go to Wi-Fi Security tab, select security type WPA & WPA2 Personal and set a password
- Go to IPv4 Settings tab, from Method drop-down box, select Shared to other computers
- Go to IPv6 tab and set Method to ignore (do this only if you do not use IPv6)
- Hit the “Save” button to save the configuration
- Open a terminal from the menu/dash
- Now, edit the connection with you just created via network settings
VIM editor:
sudo vim /etc/NetworkManager/system-connections/Hotspot
Gedit:
gksu gedit /etc/NetworkManager/system-connections/Hotspot
Replace name Hotspot with the connection name you have given in step 4
- Change the line mode=infrastructure to mode=ap and save the file
- Once you save the file, you should be able to see the wifi named Hotspot showing up in the list of available wifi networks. (If the network does not show, disable and enable wifi )
- You can now connect your Android phone. Connection tested using Xioami Mi4i running Android 5.0 (Downloaded 1GB to test speed and reliability)
via: http://www.linuxveda.com/2015/08/23/how-to-create-an-ap-in-ubuntu-15-04-to-connect-to-androidiphone/
作者:Sayantan Das 译者:译者ID 校对:校对者ID