Raspberry Pi for N00bs – Network Share with Samba

Before getting serious with a headless Raspberry, it´s a good idea to set up a folder to be uses as network share in Windows. That is, if you are a Windows user. If you are a Linux user, i expect that you know how to reach your Raspberry. In that case, you would not even read my N00b posts, i guess 😉

Install Samba on your Raspberry Pi

Make sure you update the packages before installing Samba:

Configuration

As usual, all the configuration happens in one file:

First, search for the line “security = user” and uncomment it, so the user has to authenticate himself to reach the Samba shares.

Scroll down to the very last line and add the following:

Of course you have to create that folder on your Raspberry Pi, and give it write permissions for later:

Alright, now you got a writeable Folder already. There are many more options, if you´re interested in the whole deal just check out the official docs: http://www.samba.org/samba/docs/

Especially those Links have been very useful to me:

Samba User

Because we set the security parameter to “user”, we need a valid user authentication when connecting to the Samba share. Instead of creating a fresh user, we can just use the default one (“pi“) for Samba:

This creates a Samba user and requires a password. It´s a good idea to use a different password for the Samba user, of course.

Restart Samba

After changing the configuration, you can either reboot your Raspberry Pi or just restart Samba and test the configuration afterwards:

That´s it for the Raspberry, time to move over to Windows!

Mount in Windows

As long as everything above is set up corretly, this is the easiest part. Open the File Explorer and hit the button to connect a network drive. Sorry that the screenshot is in german, just fill in the data like that:

Samba ShareYou will get asked for authorization data, use “pi” and the Samba password you set before.

From now on you can move files to and from the Raspberry in a very easy way:

Samba Share Windows

One thought on “Raspberry Pi for N00bs – Network Share with Samba

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.