Raspberry Pi Network File Share Using Samba (SMB)

www.pdf24.org    Send article as PDF   
You can share your Raspberry Pi’s files and folders across a network using a piece of software called Samba, a Linux implementation of the Server Message Block protocol. The following instructions will set your RPi to share its files on your local network and be accessible by Windows.

Samba contains the SMB protocol with support for the Windows naming service (WINS), as well as support for joining Windows workgroups.

A workgroup is defined as a group of computers on a local network that can access each other’s files and folders. Samba-common-bin contains a tool that you’ll need to register users with Samba.

Start by installing Samba:

sudo apt-get install samba samba-common-bin

Once these packages have finished installing, you need to edit the Samba configuration file:

sudo nano /etc/samba/smb.conf

Find the entries for workgroup and wins support, and set them up as follows:

workgroup = your_workgroup_name
wins support = yes

Raspberry Pi Samba

The name of the workgroup can be anything you want, as long as it only contains alphabetical characters, and it matches the name of the workgroup that you want to join.

Scroll down smb.conf until you see a section called Share Definitions, and add this code there:

Raspberry Pi Samba

The path should point to the drive or folder that you want to share. I’ve set ‘only guest’ and ‘public’ to ‘no’ so that Samba prompts for a password when I visit the folder that I’ve shared. This means that when I’m using a Windows PC, I can login to the shared folders on my Pi, and I’ll have the same read/write permissions that user pi has.

Now type this command in a terminal, and enter pi’s password twice:

$ smbpasswd -a pi

If you have a PC or Laptop connected to your workgroup, you should be able to see your Raspberry Pi in Windows Explorer under Network.

Now Restart the Samba Service:

sudo /etc/init.d/samba restart

That is it! Now you can exchange files with the Raspberry Pi with your MS Windows PC or Laptop…

Raspberry Pi Samba

Compiling large programs such as a Linux Kernel, or big libraries like OpenCV, OpenNI directly on your Raspberry Pi will take a lot of time, and sometimes will even fail. So using a cross compiler on your PC and then transferring the files to the Raspberry Pi is a far better alternative. This is made a lot easier with a SMB connection and also means that file transfer via Thumb-drives can be a thing of the past.

Previous Post
Supstronics X300

Give the Raspberry Pi B+ SATA, Wi-Fi, Bluetooth & More..

I have been patiently waiting the release of the new Raspberry Pi B+ Expansion Board from Suptronics, the X300 for the last couple of months.The X300 is Raspberry Pi B+ Expansion ... Read more

Next Post

Introducing the 'ARMinARM' board for the Pi Family

The ARMinARM board is an STM32 ARM Cortex-M3 microcontroller add-on board for the Raspberry Pi Model B+ with a focus on flexibility and hackability, while still being easy to use. ... Read more

Short URL: http://tinyurl.com/jqvj3ur

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Do NOT follow this link or you will be banned from the site!