"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!