Access Raspberry Pi Files in your OS X Finder
This tutorial will show you how to access your Raspberry Pi files from the Finder application on your Mac running OS X. This project assumes you are connecting to you Raspberry Pi through ssh. If you do not know how to do this, please make sure you have complete this short tutorial first.
1. Update the Raspberry Pi (connected via ssh)
At the start of every project you should make sure you have updated your raspberry pi. I use this script, but you can also just copy and paste each command.
#!/bin/bash -e # First do apt-get update /usr/bin/sudo apt-get update # Then the upgrade /usr/bin/sudo apt-get -y upgrade # Finally rpi-update /usr/bin/sudo rpi-update # Trigger a reboot /usr/bin/sudo shutdown -r
Upgrade your setup
2. Install Netatalk on Raspberry Pi
This allows you to connect from your Mac with a simple command.
sudo apt-get install netatalk
It should take a few minutes to install and once you it has completed you should be able to move on.
3. Get IP Address of the Raspberry Pi
The ifconfig command allows you to see what the IP address is of the Raspberry Pi on the local network. I have highlighted where you can find the ip address in the image below.
4. Run afp command (on your Mac) to connect to the Rasbperry Pi
You now should have two terminal windows open. One on connected via ssh to your Raspberry Pi, and the other just a local shell on your Mac. Run the command below. It should prompt you for a username and password. Enter the credentials you use on your raspberry pi
- Username: pi
- Password: YourPiPassword (use your own password of course)
5. Test it out!
You should now see the raspberrypi in your finder and should be able to access the files on it. I created a test file on my desktop, and then dragged and dropped it in the finder area of the Raspberry Pi. You can now transfer files much easier than using an FTP client or using the SCP command.
Please comment any questions below!