Auto install a Simple Samba Setup

Following on from a 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

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/

Alternatively (thanks to Jason Powell)

wget -O

and then run

sudo bash

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 🙂

Also, a dialog box pops up that looks like this

-just select press Enter to select No

When it sits there with New SMB password: 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

You may also like...

25 Responses

  1. Jason Powell says:

    Works great! I downloaded it differently though. I did:


    and then I ran

    sudo bash

    That way, I could download it without having to shut down my pi or getting out the SD card reader.

  2. murch says:

    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.

  3. Magnificent script. Thank you!

  4. DGA110P says:

    Works Great 🙂 (p.s the typo is “sudo bash” simble should be simple)

  5. cymplecy says:

    Ah – I see where it is now -ta. I’ve now added Jason’s suggestion into the main blog instructions 🙂

  6. sls1j says:

    This is just awesome! Thanks, worked like a charm.

  7. Ronseal script, cheers!

  8. Tim says:

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

    1. Download the file
    2. sudo nano
    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

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

  9. Oliver Kuy says:

    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.”

  10. Tom says:

    Thank you very much i’ve been looking for quite some time for a script like this!

  11. Martin says:

    It’s awesome. I’m using it pernamently 🙂 . Thx much

  12. Dave Perry says:

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

  13. Ian says:

    Many thanks from me as well. Worked perfectly on a new Raspbian Jessie install. Going to run your VNC script next, hope that’s just as painless 🙂

  14. Dean Jones says:

    Hello, many thanks for the script, on the pi its working and ive checked all the services, they are all functioning correctly but i can’t see the pi on my windows network. (Looking on windows 10)

    • cymplecy says:

      press WindowsKey-R to bring up run dialog and type in \\ followed by name of your pi e.g
      \\raspberrypi and then press enter

  1. 10th August 2012

    […] cymplecy This site is the bee's knees Skip to content HomeAbout ← A Tale of Two Pi Auto install a Simple Samba Setup → […]

  2. 17th August 2012

    […] gevonden online van hoe je dat moet doen, maar ik denk dat het niet eenvoudiger kan worden dan met dit script van ‘cymplecy’. Zeker als je gebruik maakt van de tip in de reacties eronder en kiest […]

  3. 24th February 2013
  4. 28th August 2013

Leave a Reply

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