Appearanceīy editing (or creating if it doesn’t exist) the avahi conf file for afpd, we can make the icon for the Raspberry Pi appear as if it was a Time Capsule as well. Now your Raspberry Pi should appear in Finder, and you should b able to connect to it with the credentials you set up earlier. Now, let’s restart the service: sudo service netatalk restart Note that we’ll use the same user we created earlier with the share. The following section is the AFP share meant for Time Machine. Important here is to change the IP mask so it matches your network I allow access for everyone on my subnet. The Global section contains settings that applies for the entire Netatalk server. Next, it’s time to edit the config file for netatalk: sudo nano /usr/local/etc/afp.conf First we’ll create a user for the time machine share: sudo adduser timeuserĬhange the permissions for the Time Machine drive: sudo chown -R timeuser:timeuser /mnt/cloudcity This will take some time excellent opportunity for a coffee break. configure -with-init-style=debian -with-zeroconf & make & sudo make install First, download the sources from sourceforge. ![]() Netatalk is not available in apt (at the time of writing), so we’ll set it up manually instead. Using version 3 greatly simplifies the setup compared to version 2, which most guides I’ve come across is based on. Netatalk is what handles the actual AFP shares in the network. ![]() sudo apt-get install avahi-daemon libavahi-client-dev libdb5.3-dev db-util db5.3-util libgcrypt11 libgcrypt11-dev Netatalk We’ll also be installing database utils and crypt packages for security. For now, lets mount the configured partitions manually and verify the setup in fstab: sudo mount /mnt/bespinĪvahi is a open source implementation of Apples ZeroConf specification, which is what we’ll be using to announce the availability of the AFP shares in the network. UUID=c10e0de5-f900-3ecb-8780-89b815e02450 /mnt/bespin hfsplus force,defaults 0 0įrom now on you will be able to reboot without having to login and mount the partitions manually. Insert the following, using the information you looked up earlier: UUID=3d6b835f-2632-3319-b4bf-ff23f9dc1260 /mnt/cloudcity hfsplus force,defaults 0 0 In order to get the disk to automount on bootup, edit fstab and insert entries for the new partitions there: sudo nano /etc/fstab Note the last 2 lines of the output these correspond to the partitions created on the external disk, and are what we’ll be configuring for automounting.Ĭreate mount points for your partitions I have 2 partitions, so I created 2 directories to mount the partitions to. ![]() This will output something like the following: /dev/mmcblk0p1: SEC_TYPE="msdos" UUID="3312-932F" TYPE="vfat" Once you’re done, connect the disk to your pi and check the name of your disk. I personally partitioned and formatted the external drive with Disk Utility on my Macbook Pro and just hooked it up to one of the USB ports on the Pi afterwards, but feel free to prepare the disk any way you want. Lets start by installing the needed packages: sudo apt-get install hfsplus hfsutils hfsprogs In order to do that, we need to install HFS packages, and to mount our partitions properly. Prerequisites:įirst of all we need to be able to read and write to HFS+ partitions. This guide will be based on a Raspbian install. The Raspberry Pi is a perfect target for setting up your own wireless backup solutions if you live in a Apple centric environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |