The method for setting up a Wi-Fi hotspot in Ubuntu was completed. Ubuntu14.04Deepin2014 successfully shared the Wi-Fi test.
Method 1: network manager
You can use the network manager that comes with Ubuntu to set it.
Step 1:
Open the network settings of the system and open the network connection. Click the bottom edit link, and then click Add on the right to add a wireless network;
Step 2:
Enter the Link name at will in Wi-Fi.
Enter an SSID, which is the wireless Identification name issued by the computer.
Select Ad-hoc in the mode column;
Step 3:
Switch to the wifi Security tab. In security, select WPA and wpa2. Enter the password in the password.
Switch to IPv4 settings, and select share with other computers in the Method
Switch to IPv6 settings, and select I ignore in the method.
Step 4:
Finally, click Save to save the network. Connect to the network you just created and open the hidden network. Select the network you have created and connect to it. Note that this wireless connection is used to share the network on the current computer, so please connect your broadband or something before that.
OK. This wireless network can be found on other laptops or windows tablets. However, Android mobile phone may never be found. It seems that Android does not support Ad hoc.
So, let's use the second method.
Method 2: ap-hotspot
The specific method is as follows: Use ap-hotspot to create a Wi-Fi hotspot, instead of using Ad hoc. Enter:
$ Sudo add-apt-repository ppa: nilarimogard/webupd8
$ Sudo apt-get update
$ Sudo apt-get install ap-hotspot
$ Sudo ap-hotspot configure // This step will check the ubuntu network and WIFI interface. After confirmation, you will be prompted to configure the hotspot and enter the ssid and password.
$ Sudo ap-hotspot start
Now, the Android phone is successfully identified and connected.
Parameter instructions:Tehero @ tehero-pc:/tmp $ sudo ap-hotspot configUsage: ap-hotspot [argument] start wireless hotspot // start using stop wireless hotspot // stop using restart wireless hotspot // restart configure hotspot // configure and use
After the installation is successful, the configuration process is as follows:Tehero @ tehero-pc:/tmp $ sudo ap-hotspot configureDetecting configuration... detected eth0 as the network interface connected to the Internet. press ENTER if this is correct or enter the desired interface below (e.g. -eth0, ppp0 etc .): // press Enter by default to Detected wlan0 as your WiFi interface. press ENTER if this is correct or enter the desired interface (e.g. -wlan1): // press Enter by default to Enter the desired Access Point name or press ENTER to use the default one (myhotspot ): // Wifi name Enter the desired WPA Passphrase below or press ENTER to use the default one (qwerty0987): // wifi password
Usage:Tehero @ tehero-pc:/tmp $ sudo ap-hotspot startStarting Wireless Hotspot... Wireless Hotspot active appears as above
Highlights:1. Wireless Hotspot active cannot appear, and the default version of Starting Wireless Hotspot... hostapd has bugs.
Solution: Remove hostapd
sudo apt-get remove hostapd
Then:
64 bit
cd /tmpwget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.debsudo dpkg -i hostapd*.debsudo apt-mark hold hostapd
32bit:
cd /tmpwget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.debsudo dpkg -i hostapd*.debsudo apt-mark hold hostapd
"Sudo apt-mark hold hostapd" will prevent the version from being upgraded to a problematic version. Then you need to reinstall the ap-hotspot.2 and the following occurs: Wireless Hotspot activebash: Could y-send: not found
CommandSolution: tehero @ tehero-pc:/tmp $ paiy-send program "Y-send" is not installed yet. Run the following command to install sudo apt-get install libnotify-bintehero @ tehero-pc:/tmp $ sudo apt-get install libnotify-bin.