在树莓派上:
- sudo apt-get install samba samba-common-bin
- sudo nano /etc/samba/smb.conf
找到 ############ Misc ############
添加(可以提升文件传输速度,有线连接情况下约10MB/s):
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
找到======================= Share Definitions =======================
把
- read only = yes
改为:
- read only = no
添加用户pi并设置密码
- sudo smbpasswd -a pi
重启:
- sudo service samba reload
Windows上(win10):
此电脑 > 映射网络驱动器 > 输入 \raspberrypi\pi