![]() In it the "pihome" folder will be the folder you've shared. If you select "Network" in windows explorer device "RASPBERRYPI" should be found (it may take a minute or two to appear). How To Configure Samba To Share Directories On Raspberry Pi sudo nano /etc/samba/smb.conf A small Note from smb.conf: Add min protocol SMB2. For completeness, here is how the NAS device is set up: I have a raspberry pi 4 with two USB drives attached. I think the samba is up and running (connecting to the. If we need to get the hostname, we can obtain it with hostname -I. There are tons of tutorials on setting up samba on the Raspberry Pi and I tried out quite a few. With this command, we can set the password. If you want to permit read only access change writeable to "No"įinally add the pi user by typing this command and entering the pi's password twice: To control the access to this folder, I add a user and a password. Once installed and configured correctly, files on the Raspberry Pi can be shared. Search for the workgroup line (normally at the top) and if necessary set it to match your workgroup (if you don't need it set then it can just be left as default, works fine for us not changed)īelow it you'll find the wins support line, if there is a # at the start of the line remove it to stop it being commented out and then ensure it is set to "yes", so you should have:Īdd a section at the bottom which contains the settings for the share:Ĭhange path as required ( "path=/" is fine if you want access to the entire drive). To use a Raspberry Pi as a file server, a service, named Samba is available. My RetroPie installation already serves up a Samba share - so my goal was to throw an additional folder in there that mounts to an external drive. First we need to install Samba Set a password for Samba where username should be replaced with your username (maybe pi). Over this past weekend, I finally setup a network share via Samba on my Raspberry Pi with an old external USB hard drive I had laying around. ![]() Samba contains the SMB protocol, support for the Windows naming service (WINS), and support for joining Windows workgroups. Samba-common-bin contains a tool that you'll need to register users with Samba. Tested on Raspbian Buster on a Raspberry Pi 4. ![]() Sudo apt-get install samba samba-common-bin The following instructions will set your RPi to share its files on your local network and be accessible by Windows. NAS: This is the name of the share (What you will see in file explorer) Comment: This is a comment for the associated for share. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |