Install ubuntu-server16.0, set WiFi, ubuntuserverwifi

Source: Internet
Author: User

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.

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.