"Ubuntu" installs Ubuntu Server over a wireless network and connects to the wireless network after the system is started 」

Source: Internet
Author: User

"Ubuntu" installs Ubuntu Server over a wireless network and connects to the wireless network after the system is started 」

 

Shortly after contacting the Ubuntu system, I found that installing Ubuntu Server in a wireless network environment is not user-friendly: During the installation process, select a wireless network card, use a wireless network (select a Wi-Fi network and enter the password ), however, after the system is installed and restarted, the wireless network adapter is not automatically started and connected to the Wi-Fi network selected during installation. This design will bring great troubles to Linux cainiao who are inconvenient to use wired networks...

Because applications such as the graphic interface or Network-Manager cannot be connected to the Network, commands such as ifconfig and iwconfig are also tried. However, iwconfig only supports WEP-encrypted Wi-Fi networks, WPA-PSK encryption is not supported. Finally, you can successfully connect to the WPA-PSK-encrypted Wi-Fi network by configuring the wireless network card through/etc/network/interfaces. The specific method is as follows:

 

1. dynamically connect to a Wi-Fi network

Auto wlan0iface wlan0 inet dhcpwpa-essid Wi-Fi name wpa-psk Wi-Fi password

P.S. If the security authentication method is WEP, change the last two lines:

Wireless-essid Wi-Fi name wireless-key Wi-Fi password

 

2. Connect a Wi-Fi network with a static address

Auto wlan0iface wlan0 inet staticaddress 192.168.1.XXXnetmask 255.255.255.0gateway 192.168.1.1wpa-essid Wi-Fi name wpa-psk Wi-Fi password

P.S. the wireless network card "wlan0" is the name of the wireless network card queried through the iwconfig command, which may be different.

 

Through the above settings, You can automatically start the wireless network card after the restart and connect to the Wi-Fi network encrypted through the WPA-PSK!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.