Today, I will install Ubuntu14.10Server server on my home & ldquo; deprecated & rdquo; laptop, as my own small server (for installation refer to: http://www.linuxidc.com/Linux/2012-05/60147.htm, in the past, the desktop version of the operating system used to configure wireless Internet access through the interface. Due to the lack of redundant network cables, I wanted to use wireless Internet access on Ubuntu.
Today, we will install Ubuntu 14.10 Server Edition on our "obsolete" laptop, as a small Server.
(Installation can refer to: http://www.linuxidc.com/Linux/2012-05/60147.htm)
After the installation is successful, because the operating system on the desktop used to configure wireless Internet access through the interface, due to the lack of redundant network cables, I want to access the Internet via wireless on Ubuntu, the configuration steps are as follows:
1. Generate the wireless Internet access password configuration file
First, enter the root mode (the following commands are performed in the root mode), run sudo su, enter the password, and then enter the following command:
Root @ Ubuntu :~ # Wpa_passphrase SSID SSID_PASS>/etc/wpa_config.conf
// Where the SSID is the SID of the wireless network, such as the TP-LINK_123, SSID_PASS is the password on the Wireless Router
For example, if a wireless network contains a wireless access point named "iamwiff" and the password is 1234, the above command is:
Wpa_passphrase iamwiff 1234>/etc/wpa_config.conf
(The newly installed system may not have the wpa_config.conf file. We can use touch/etc/wpa_config.conf to create this file)
2. Modify the wlan0 interface in the network interface configuration file
Root @ Ubuntu :~ # Vim/etc/network/interfaces
Auto wlan0
Iface wlan0 inet dhcp // note that DHCP is enabled on the Wireless Router
Wpa-conf/etc/wpa_config.conf
3. Restart the network service to make the new settings take effect.
Root @ Ubuntu :~ #/Etc/init. d/networking restart
Or use the reboot command to restart the operating system.
4. confirm whether the operation is successful
As a server, I log on to the server via ssh to check whether the configuration is successful:
(The ssh command used to log on to the server is: ssh username @ IP address, and then enter the password of this username)
The command for viewing is ifconfig-a, and the wlan 0 is displayed. The IP address is the IP address allocated by dhcp. You can bind the gaiip address to the server through the vro. In this way, the IP address of the server will not change, so that we can operate it later.
Alternatively, you can enter ifconfig-a in the command line of the server without going through the East Road to the server.
Use ifconfig-a to check whether the wlan0 interface obtains the IP address. If not, check whether the entered SSID SSID_PASS is correct and whether the DHCP function is enabled on the router.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-11/125213.htm