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

About these ads

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

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