桃之夭夭,灼灼其华

MAC烧录树莓派系统

Word count: 179Reading time: 1 min
2021/03/19 Share
  • 下载树莓派系统
    https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
  • sd卡连接电脑,卸载sd卡
    1
    2
    3
    4
    5
    6
    查看 sd卡名称
    df -lh
    # 卸载sd卡
    diskutil unmount /dev/disk2s1
    # 查看sd 名称
    diskutil list
    1.png
  • 烧录
    1
    sudo dd bs=4m if=2021-01-11-raspios-buster-armhf-lite.img of=/dev/disk2
    2.png
  • 开启ssh
    在sd卡上创建空的ssh文件
    1
    2
    cd /Volumes/boot
    touch ssh
  • 配置无线WiFi
    1
    2
    touch wpa_supplicant.conf
    vi wpa_supplicant.conf
    1
    2
    3
    4
    5
    6
    7
    8
    9
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=GB

    network={
    ssid="wifi"
    psk="password"
    key_mgmt=WPA-PSK
    }
  • 将sd卡插入树莓派,启动树莓派,等2-3分钟
  • 通过路由器查看树莓的域名地址,xshell登录树莓派,初始账号pi/raspberry
CATALOG