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