Rasberry Pi 4 can't connect to WiFi ubuntu server [fixed]
Introduction
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.
root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
root@ubuntu:~#
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
root@ubuntu:~# 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/
root@ubuntu:~# 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
Conclusion
Troubleshooting WiFi connectivity issues on the Raspberry Pi 4 involves a series of methodical steps to identify and resolve potential problems. By ensuring your hardware is set up correctly, verifying network configurations, keeping your software up to date, and examining system logs for errors, you can effectively diagnose and fix most connectivity issues. If the built-in WiFi adapter continues to cause problems, using an external WiFi dongle can be a practical solution. With these troubleshooting steps, you can restore your Raspberry Pi 4’s connection to WiFi, allowing you to focus on your projects without interruption. Thank you for reading the huuphan.com page!
Comments
Post a Comment