In this tutorial, How to connect to WiFi ubuntu server on Rasberry Pi 4. Today, I buy Rasberry PI 4 new and install ubuntu 20.04 LTS.
[email protected]:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
[email protected]:~#
after finish, Rasberry Pi 4 no identify ip address of wilfi. :D.
Rasberry Pi 4 can't connect to WiFi ubuntu server [fixed]
The first, check network interface your system.
ll -la /sys/class/net/
Create new file config for wifi " /etc/netplan/wlan.yaml"
apply configure and reboot
netplan apply
The result, as below
[email protected]:~# ll -la /sys/class/net/
total 0
drwxr-xr-x 2 root root 0 Jan 1 1970 ./
drwxr-xr-x 74 root root 0 Jan 1 1970 ../
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth0 -> ../../devices/platform/scb/fd580000.ethernet/net/eth0/
lrwxrwxrwx 1 root root 0 Jan 1 1970 lo -> ../../devices/virtual/net/lo/
lrwxrwxrwx 1 root root 0 Apr 1 2020 wlan0 -> ../../devices/platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1/net/wlan0/
[email protected]:~# cat /etc/netplan/wlan.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
renderer: networkd
wifis:
wlan0:
dhcp4: no
dhcp6: no
addresses: [192.168.1.113/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1, 8.8.8.8]
access-points:
"SSID name":
password: "xxx password of SSID"
Reboot your rasberry PI 4 with reboot command
reboot
You have fixed Rasberry Pi 4 can connect to wifi on Ubuntu 20.04