快轉到主要內容

Raspberry Pi 4 (Ubuntu) configure auto connect to wifi

·142 字
Computer-Science Raspberry PI Wi-Fi Ubuntu
目錄

How to make ubuntu auto connect to wifi in raspberry pi 4?


Google said…
#

When you google 「raspberry pi 4 ubuntu auto wifi」…
Most people said:

Find the file /etc/wpa_supplicant/wpa_supplicant.conf, edit it, add the following setting:

1network={
2  ssid="Your-Wifi-SSID"
3  psk="Your-Wifi-Password"
4}

Then save it, put the sd card back into raspberry pi, turn on the power, it’s working!


If not working
#

If the solustion above working to you, then conguatulations.

But if it’s not working on your case as mine, try the following method, that is working in my case:

Find the config file /etc/netplan/50-cloud-init.yaml, edit it to the following setting:

 1network:
 2  ethernets:
 3    eth0:
 4      dhcp4: true
 5      optional: true
 6  version: 2
 7  wifis:
 8    wlan0:
 9      dhcp4: true
10      optional: true
11      access-points:
12        "Your-Wifi-SSID":
13          password: "Your-Wifi-Password"

Don’t forget to save, then try again.

Alpaca
作者
Alpaca
No one can stop my feet.

相關文章

Linux + Win 雙系統卻不見 Grub 開機選單?
·1691 字
Computer-Science Windows Ubuntu Grub

安裝了 Linux + Windows 的雙系統,但卻不見開機選單?放心,很多人跟你一樣。

Ubuntu 18 如何顯示電量百分比?
·308 字
Computer-Science Ubuntu Gnome
Simply setting up a Proxy Server with SSH
·344 字
Computer-Science SSH

Did you know that SSH can make your host as a proxy server?

How to use GnuPG to sign files and messages?
·1769 字
Computer-Science Cryptography PGP

用 GnuPG 簽署、驗證、加密、解密 你的檔案及訊息。

How to use GnuPG to generate PGP key?
·1393 字
Computer-Science Cryptography PGP

怎麼使用 GnuPG 生成 PGP 金鑰?

《SQL Basics-03》UPDATE、ALTER、DROP
·907 字
Computer-Science SQL Database

一些基礎常見的 SQL 語法。