Auto install a Simple Samba Setup

Updated 21Aug12 V1.1

Following on from previous blog I’ve tried to emulate MrEngmans brilliant concept of providing a single install script that does as much of the work as possible

His idea is to copy a file onto the SD while its plugged into a PC/Mac etc and then put the card into your RPi and issue one simple command

So  this is the file

https://dl.dropbox.com/s/wjlshn22z80rzpv/simplesamba.sh

simply copy it to the SD card while its in your PC/Mac and then put it in your RPi and issue this command

sudo /boot/simplesamba.sh

Alternatively (thanks to Jason Powell)

wget https://dl.dropbox.com/s/wjlshn22z80rzpv/simplesamba.sh

and then run

sudo bash simplesamba.sh

Note-some parts of the script can take a bit of time as the Pi needs to download stuff – just answer Y if asked questions BTW🙂

When it sits there with New SMB passord: showing , enter raspberry as the password and then repeat it.
At the end, you should be able connect to your RPi from windows using username=pi  password=raspberry

Good luck

30 thoughts on “Auto install a Simple Samba Setup

  1. Thank you so much for posting this. And also to Jason Powell for adding the extra tip. It all made it so easy for a Linux noob like me.

  2. If you created a other user on your Raspberry and removed pi the script won’t work.

    1. Download the file
    2. sudo nano simplesamba.sh
    3. Before: “echo “#=== Global Settings” you see smbpasswd -a pi
    4. Change pi to your username
    5. ctrl + o enter ctrl+x
    6. sudo bash simplesamba.sh

    (I’m a linux noob so i took me some time to find out)

  3. Thanks for this script but I’m having write permission issues. I’m using Mac OS Leopard and I’m getting this message everytime I want to write something – “The operation cannot be completed because you do not have sufficient privileges for some of the items.”

  4. I have been struggling with samba (days). Your script worked great (minutes). I just want to thank you for making this available.

  5. Hi
    I am a total noob.
    I installed as described but done know how to use this. My goal is to be able to copy/paste files between RPi and PC hopefully using RPi GUI. I remote desktop into RPi using xrdp and want to share files back and forth.
    How do I use simple samba to transfer files between RPi and PC?
    Thanks!!

  6. your script is very helpful to those newbie’s ever since i stumble on this site, been using this script every time i re-flash and boot my raspberry pi.

    sir cymplecy can you make this simplesamba script. like the one on the OSMC app store (samba) where you can plug any usb device or hdd and will be automatically shared to network.

  7. I have brand new Raspberry pi 3 with latest Jessi install on it. I get this error at the very end.

    Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See ‘systemctl status nmbd.service’ and ‘journalctl -xn’ for details.
    failed!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s