在没有显示器时,给树莓派配置Wi-Fi和SSH

Gao
# 操作系统:Raspbian OS 挂载boot分区 1. 启用ssh 创建ssh文件 2. 配置Wi-Fi 创建文件 `wpa_supplicant.conf` 配置文件内容: ``` country=CN ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev network={ ssid="YOUR_NETWORK_NAME" psk="YOUR_PASSWORD" key_mgmt=WPA-PSK } ``` # 操作系统:Ubuntu Server 挂载boot分区 1. 启用ssh 创建ssh文件 2. 配置Wi-Fi 创建文件network-config, 内容为 `netplan` 格式 ```yaml # This file contains a netplan-compatible configuration which cloud-init # will apply on first-boot. Please refer to the cloud-init documentation and # the netplan reference for full details: # # https://cloudinit.readthedocs.io/ # https://netplan.io/reference # # Some additional examples are commented out below version: 2 ethernets: eth0: dhcp4: true optional: true wifis: wlan0: dhcp4: true optional: true access-points: your_wifi_ssid: password: "your_wifi_password" ``` # Motioneyeos 和raspbian配置相同