Raspberry Pi (3): Replace ubuntu system, ubuntu server system wifi connection

1. Preparation

  1. Raspberry Pi (support WIFI)
  2. Card reader
  3. A computer (just look at my one)
1. Burning system
  1. The ubuntu official website has provided the Raspberry Pi system https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#1-overview
  2. Download the software, pay attention to 32-bit or 64-bit when choosing the system, and whether it is the desktop version or the server version. I downloaded the desktop version and felt useless, and changed to the server version. Wait after selecting the SD card, and it cannot be interrupted in the middle.
    Insert picture description here
  3. After burning, set wifi according to the document.

Two, ubuntu connection wifi settings

  1. If you are connected to wifi 5G band, you need to set /etc/default/crdathe REGDOMAIN=CN(too pit)
  2. vim /etc/netplan/xxxxxxx.yaml# Different machine file names are different
    . The format of the settings is similar to the one provided by ubuntu above. Also need to pay attention to indent 4 spaces.
    network:
        ethernets:
            eth0:
                dhcp4: true
                optional: true
        version: 2
        wifis:
            wlan0:
                dhcp4: true
                access-points:
                    "你的WFI名":
                        password: "你的WIFI密码"
    
  3. According to the post is
    sudo netplan try
    sudo netplan apply
    
    But it didn't take effect after I tried, and it took effect rebootafter restarting. I've seen many ways to set up wifi, and I'm so confused. I wish you success.

Guess you like

Origin blog.csdn.net/z772532526/article/details/113766132