Sometimes, it's nice to be able to access the raspberry pi without having to use SSH and the CLI. If your doing batch file copying or just want to use an editor like Sublime Text 2, it's a lot easier if you can connect to the pi through Finder in OSX (or Nautilus in Ubuntu for that matter).

A very easy way to make your raspberry pi show up in finder under "Shared" is by installing Samba on it.

raspberrypi showing in finder

The process

  1. Connect to your raspberry pi through SSH
  2. Install samba
  3. Configure it to allow read/write access
  4. Add a samba user
  5. Restart samba
  6. Connect from Finder

Install Samba

$ sudo apt-get install samba samba-common-bin
# Installing...

Configure samba

Open the config file in vi

$ vi /etc/samba/smb.conf

Change access to Read/Write so you can add folders and change files from Finder

250:  read only = no

Add root as a samba user

This is done via the smbpasswd binary

$ smbpasswd –a root
# New SMB password:

Restart samba server

$ /etc/init.d/samba stop
$ /etc/init.d/samba start

Connect from Finder

After a few seconds, you should see raspberrypi show up under shared devices on your Mac. You're then able to connect to it with the username/password you just added.

The root folder you're presented with is the user home folder. If you want to start at root level of the SD-card you can change that in the smb.conf file.