玩转树莓派(-)树莓派配置

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
2
3
4
sudo apt-get update
sudo apt-get install tightvncserver

vncserver :1 设置密码

本机安装vnc viewer https://www.realvnc.com/en/connect/download/viewer/

输入ip,密码(刚设置的vnc密码)即可查看

2.4. 共享文件

Transmit软件

https://pan.baidu.com/s/1KH-8RmVu8nwc9ivsxqhtXg 密码:o101

输入ip 用户名 密码即可访问

本文结束  感谢您的阅读
  • 本文作者: Wang Ting
  • 本文链接: /zh-CN/2019/09/06/树莓派/
  • 发布时间: 2019-09-06 17:58
  • 更新时间: 2021-10-29 13:56
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!