Smb Pi 共享 文件夹
Samba
Pi共享文件夹,供电脑访问。
无需副本、同步、版本管理。
Samba is an implementation of the SMB/CIFS networking protocol that is used by Microsoft Windows devices to provide shared access to files, printers, and serial ports.
Installing Samba Support
sudo apt install samba samba-common-bin smbclient cifs-utils
Sharing a Folder from your Raspberry Pi
电脑访问
-
电脑"网络"未看到树莓派设备。
-
可以使用路径访问。
可用资源管理器地址栏,或,"映射网络驱动器"。路径:"raspberrypi\"佳
- 用户名:
smbpasswd -a <用户名>
(例子中是"pi") - 共享名:"/etc/samba/smb.conf"中
[<共享名>]
例子中是"share",为加强在Windows下的辨识,建议更名,如pishare。
- 用户名:
-
使用
sudo systemctl restart smbd更新配置。
出自Sharing files with the Raspberry Pi | The Raspberry Pi Guide (raspberrypi-guide.github.io)
参考
- Sharing files with the Raspberry Pi | The Raspberry Pi Guide (raspberrypi-guide.github.io)
提及sudo systemctl restart smbd、comment。 - How to Setup a Raspberry Pi Samba Server - Pi My Life Up
含对"smb.conf"的参数解释。如"public"、"create/directory mask"。
使用sudo apt-get install samba samba-common-bin,"Map Network Driver"
浙公网安备 33010602011771号