1.
树莓派安装samba
sudo apt-get install samba
2.
设置一个公共目录
cd /;sudo mkdir share;sudo chmod 777 share
sudo vim /etc/samba/smb.conf
在最后添加:
[share]
comment = pi share
path = /share
browseable = yes
read only = no
writable = yes
public = yes
3.这样就能在windows的”网络“中找到raspberrypi
share目录是有777权限的
如果要在windows中编辑pi上的文件,要用noteopad++,选择utf-8 without BOM