1. 下载raspbian
raspbian网址 https://www.raspberrypi.org/downloads/raspbian/
2. 格式化tf卡
格式化工具 https://www.sdcard.org/downloads/formatter_4/eula_windows/index.html

3. 写入系统镜像
写入工具 https://sourceforge.net/projects/win32diskimager/

4. 初始设置
(1) 开启ssh连接 在tf卡新建ssh文件

(2) 建立连接,用户名pi,密码raspberry
ssh pi@ip_address
The authenticity of host 'ip_address (ip_address)' can't be established.
ECDSA key fingerprint is SHA256:2NujoCiByTabrwE3bPHxzVol5G5pZTZufUyWegxvW+A.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ip_address' (ECDSA) to the list of known hosts.
pi@ip_address's password:
(3) 安装tightvnc
安装tightvncserver
sudo apt-get install tightvncserver
设置密码
vncpasswd
Using password file /home/pi/.vnc/passwd
VNC directory /home/pi/.vnc does not exist, creating.
Password: 
Warning: password truncated to the length of 8.
Verify:   
Would you like to enter a view-only password (y/n)? n
运行vncserver
vncserver
查看ip地址
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.5.5  netmask 255.255.255.0  broadcast 192.168.5.255
        inet6 fe80::247f:3bab:a0bc:e6e8  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:a2:f2:29  txqueuelen 1000  (Ethernet)
        RX packets 613865  bytes 852852444 (813.3 MiB)
        RX errors 0  dropped 52  overruns 0  frame 0
        TX packets 328641  bytes 29262141 (27.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0