How to start samba service, AFP service by raspberry pie
This article will explain in detail how to start samba service and AFP service for raspberry pie. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Samba service
Installation program
Sudo apt-get updatesudo apt-get install samba samba-common-bin
Compile configuration file
Sudo vim / etc/samba/smb.conf# share name [MyStorage] # describes the information comment = MyStorage # the path to the shared file that can be accessed by users valid users = pi,root #. Raspberry pi will automatically mount the external storage device connected to it to the / media/pi/ directory. Path = / home/pi/ # Resource name (non-content) browseable = yes # writable writable = yes # permissions for new files is 664 create mask = 0664 # permissions for new directories are 775 directory mask = 0775
Test the configuration file for errors
Testparm
Add a Samba login account and create a password. You must be an existing user of linux.
Sudo smbpasswd-a pi
Restart the samba service
Sudo systemctl restart smbdAFP service
Install netatalk. Netatalk is an implementation of the free and open source afp protocol on linux and can also be used as a TimeMachine backup service.
$apt-get install netatalk# set shared folder $vim / etc/netatalk/afp.conf [My AFP Volume] path = / home/pi this article on "Raspberry pie how to start samba service, AFP service" ends here. I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.