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
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 -O 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 🙂
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
Works great! I downloaded it differently though. I did:
wget https://dl.dropbox.com/s/wjlshn22z80rzpv/simplesamba.sh
and then I ran
sudo bash simblesamba.sh
That way, I could download it without having to shut down my pi or getting out the SD card reader.
Thanks works fine except for typo should be ‘simplesamba’
Where’s the typo please?
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.
We’ve all been noobs – I like to make stuff as simple as I can 🙂
Magnificent script. Thank you!
Works Great 🙂 (p.s the typo is “sudo bash simblesamba.sh” simble should be simple)
Ah – I see where it is now -ta. I’ve now added Jason’s suggestion into the main blog instructions 🙂
This is just awesome! Thanks, worked like a charm.
Ronseal script, cheers!
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)
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.”
It’s now working. Great script but it doesn’t seem to recognize my full hard disk space. How can I fix it? Thanks!
I know nothing about Macs using SMB/CIFS protocol for netowrk file access so I don’t think I can be much help.:(
Thank you very much i’ve been looking for quite some time for a script like this!
It’s awesome. I’m using it pernamently 🙂 . Thx much
I have been struggling with samba (days). Your script worked great (minutes). I just want to thank you for making this available.
Your welcome
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 🙂
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)
press WindowsKey-R to bring up run dialog and type in \\ followed by name of your pi e.g
\\raspberrypi and then press enter