Install ubuntu-server16.0, set WiFi, ubuntuserverwifi
If you want to install a server version for Linux, record the pitfalls below.
1. Select English as the installation language. It may be because of other reasons. I failed to select Chinese as the installation language and succeeded in the last selection.
2: I installed ubuntu in the past. I thought it would be okay to directly overwrite the ubuntu partition later, but it turns out to be a tragedy, it is recommended that all the previous ubuntu partitions be deleted by the friends who covered the idea. It is good to leave only one available large partition. The dual system does not matter. Linux partitions are scattered, windows usually has three CDE disks. If all the Linux partitions are deleted, OK.
3: details how to set up WiFi:
First view their network card information: ordinary people are eth0, and wlan0, but in the ubuntu-server16.0 into the enp4s0 and wlp5s0, is the first pitfall,
ubuntu@ubuntu:~$ ip addr1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: enp4s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 28:d2:44:98:33:2a brd ff:ff:ff:ff:ff:ff3: wlp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 18:cf:5e:00:84:ba brd ff:ff:ff:ff:ff:ff inet 192.168.224.102/24 brd 192.168.224.255 scope global wlp5s0 valid_lft forever preferred_lft forever inet6 fe80::1acf:5eff:fe00:84ba/64 scope link valid_lft forever preferred_lft forever
Ubuntu-server16.0 itself does not come with wpa_supplicant, so the first must practice wired network installation
apt-get install wpasupplicant
Write the Wi-Fi-ssid and password into a configuration file.
wpa_passphrase ssid password > xxx.conf
Edit the network configuration file vi/etc/network/interfaces
source /etc/network/interfaces.d/*# The loopback network interfaceauto loiface lo inet loopbackauto wlp5s0iface wlp5s0 inet dhcpwpa-conf /home/ubuntu/xxx.conf# The primary network interface
There are several methods to obtain the IP Address:
Automatically obtain the IP Address: if not, reboot it first.
dhclient wlp5s0
Or manually obtain the ip Address: if not, reboot it first.
-B
-Fork into background
-c filename
-Path to configuration file
-i interface
-Interface to listen on
wpa_supplicant -i wlp5s0 -c /home/ubuntu/xxx.conf
The road is always smooth, and the road ahead is always rugged.