Created
February 16, 2016 22:21
-
-
Save gsiaw/068b24b6f81ab7248d1e to your computer and use it in GitHub Desktop.
Install netatalk 3 for using Time Machine thru raspberry pi 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is how i got my raspberry pi 2 set up to be available for backup via TimeMachine | |
install netatalk 3 | |
--make the OSX recognize non AFP volumes on macbook | |
sudo defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 | |
--on rPi, Install the hfs+ driver. | |
sudo apt-get update | |
sudo apt-get install hfsplus hfsutils hfsprogs | |
---on rPi, install cloud user | |
sudo useradd cloud | |
sudo passwd cloud | |
---on rPi, create TM mount points | |
sudo su - cloud | |
mkdir -p /home/cloud/TM_mounts/<your mount nam> | |
---installed netatalk 3.1.8 with these helpful guides | |
http://netatalk.sourceforge.net/wiki/index.php/Install_Netatalk_3.1.8_on_Debian_8_Jessie | |
https://www.davidschlachter.com/misc/netatalk3rpi | |
http://www.andadapt.com/raspberry-pi-raspbian-hfs-afp-and-time-machine/ | |
had to also install this: sudo apt-get install libtracker-miner-1.0 (missing from official sourceforge guide) | |
then installed fine, with sudo make install | |
afp.conf: /usr/local/etc/afp.conf ---only wrote this up--- | |
extmap.conf: /usr/local/etc/extmap.conf | |
state directory: /usr/local/var/netatalk/ | |
afp_signature.conf: /usr/local/var/netatalk/afp_signature.conf | |
afp_voluuid.conf: /usr/local/var/netatalk/afp_voluuid.conf | |
UAM search path: /usr/local/lib/netatalk// | |
Server messages path: /usr/local/var/netatalk/msg/ | |
-- modify settings for netatalk | |
sudo vi "/usr/local/etc/afp.conf" | |
[Global] | |
hostname = raspberrypi2 | |
zeroconf = yes | |
log file = /var/log/netatalk_3_afpd.log | |
cnid scheme = dbd | |
uam list = uams_dhx2.so | |
save password = yes | |
spotlight = yes | |
dbus daemon = /usr/bin/dbus-daemon | |
[Homes] | |
basedir regex = /home | |
[HiDef_TimeMachine] | |
path = /home/cloud/TM_mounts/HiDef | |
valid users = cloud | |
time machine = yes | |
sudo systemctl enable avahi-daemon (enable to start at boot) | |
sudo systemctl enable netatalk | |
sudo systemctl start avahi-daemon | |
sudo systemctl start netatalk | |
--connect harddrive, and reformat | |
sudo mkfs.hfsplus /dev/sda2 -v TM_HiDef -J -s | |
--had lots of issues with harddrive, and how to mount, these commands help you figure out what to do | |
try this cmd: | |
dmesg | tail | |
try this cmd: | |
df -h ===> /dev/sda2 932G 633M 931G 1% /media/pi/TM_HiDef | |
sudo fdisk -l these also say its mounted | |
sudo mount -l | |
--after connecting usb harddrive | |
lsblk , to see where the device is , its automatically connected to /media/pi/ | |
sudo umount /dev/sda2 | |
then sudo mount -w -o force,umask=0007,gid=1001,uid=1001 /dev/sda2 /home/cloud/TM_mounts/HiDef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment