树莓派无显示器配置

刷入镜像

使用win32diskimager(Win)或 Etcher(Ubuntu)将镜像刷入SD卡。

配置 sshWIFI

在boot分区创建以下文件 ssh wpa_supplicant.conf

配置wpa_supplicant.conf

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="WiFi-SSID"
psk="pwd"
key_mgmt=WPA-PSK
priority=1
}

key_mgmt为WIFI加密方式,“WPA-PSK,WPA2-PSK”都填“WPA-PSK”。
priority为优先级。network可填写多个。连接隐藏WiFi时需要指定该值scan_ssid=1更多参数


####默认配置 默认账号:`pi` 默认密码:`raspberry`

sudo raspi-config

更换国内源

配置 /etc/apt/sources.list

deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
#deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

不要更改 /etc/apt/sources.list.d/raspi.list。此为系统源文件,第三方源里找不到的都从里边的官方源找,比如最新的驱动。

原文地址:https://www.cnblogs.com/srczhang/p/11684524.html