Sunday, March 4, 2018

Setting up samba share on raspberry pi

I wanted to have a samba share of the RAID on my raspberry pi, I was able to do it quite quickly using the instructions here:
https://wiki.debian.org/SambaServerSimple

The main thing I had to do that was not in the above instructions: install the package samba-common-bin in order to have smbpasswd; not sure why it wasn't installed by default, perhaps that is a difference between the debian version those instructions and the version of raspbian I'm running.

I ran into an apt-get upgrade error during the process that was probably unrelated but for completeness: it had to do with exim4, fix meant moving all exim4-* from /var/lib/dpkg into a temp location, then running:
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
I was able to connect my mac laptop to it immediately from the finder --> Go --> Connect to Server (command-K), then using this for the server address:
smb://piB/mraid
piB is the address of the raspberry Pi (I've edited /etc/hosts on my laptop to use that) and mraid is the name of the share I configured on the samba server on the raspberry pi in /etc/samba/smb.conf ([ourfiles] in the link above).