1. 开启ssh服务
a) sudo raspi-configb) Interfacing Options
c) SSH
2. 启动服务
a) sudo systemctl enable sshb) sudo systemctl start ssh
3. 配置wifi
a) vim /etc/wpa_supplicant/wpa_supplicant.conf
b)
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="这里是wifi名称"
psk="这里是wifi密码"
key_mgmt=WPA-PSK
}
4. 配置静态ip
a) vim /etc/dhcpcd.conf
b) 在文件末尾添加(192.168.1.200是设置的静态ip地址)
interface wlan0
static ip_address=192.168.1.200/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1