Raspberry Pi3
1. 烧录系统
用SD Card Formatter进行格式化SD卡,Quick format
1.1. 查看驱动器列表
diskutil list
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *7.9 GB disk2
1: DOS_FAT_32 NO NAME 7.9 GB disk2s1
1.2. 取消SD卡挂载
diskutil unmountDisk /dev/disk2
1.3. 烧录
sudo dd if=img文件路径 of=/dev/disk2 bs=4m;sync
img镜像 https://www.raspberrypi.org/downloads/raspbian/
1.4. 成功
1261+0 records in
1261+0 records out
5289017344 bytes transferred in 725.169614 secs (7293490 bytes/sec)
1.5. 推出设备
diskutil eject /dev/disk2
2. 树莓派上有关配置
2.1. ssh
1 | sudo raspi-config |
重置密码
桌面Preferences -> Raspberry Pi Configuration -> Interface -> enable–ssh / vnc
本电脑
1 | ssh 192.168.0.103 -l pi |
提示输入密码即为配置成功
IP通过树莓派终端sudo ifconfig得到
2.2. 树莓派使用固定IP
网站 192.168.1.1 路由器中设置IP与MAC绑定
2.3. vnc
1 | sudo apt-get update |
本机安装vnc viewer https://www.realvnc.com/en/connect/download/viewer/
输入ip,密码(刚设置的vnc密码)即可查看
2.4. 共享文件
Transmit软件
https://pan.baidu.com/s/1KH-8RmVu8nwc9ivsxqhtXg 密码:o101
输入ip 用户名 密码即可访问