Posted
Filed under 맥 (mac)
root로 작업
우분투 18 LTS 에서 테스트 완료
외부에서 접근시 548 포트를 공유기에서 얼어줘야 한다.

$ apt install netatalk

$ mkdir ~/TimeMachine  (적당한 경로)

$ vi /etc/netatalk/afpd.conf (맨 하단 아래 내용으로 변경)
 - -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword


$ /etc/netatalk/AppleVolumes.default (miyu 계정만 접속가능, 디스크500GB 할당)
~/TimeMachine "TimeMachine" options:tm allow:miyu volsizelimit:512000


$ /etc/nsswitch.conf (아래 내용으로 변경)
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns


$ /etc/avahi/services/afpd.service
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=TimeCapsule</txt-record>
</service>
</service-group>


$ service avahi-daemon restart
$ service netatalk restart


참조) https://wiki.ubuntu-kr.org/index.php/%ED%83%80%EC%9E%84%EB%A8%B8%EC%8B%A0_%EC%84%9C%EB%B2%84


2019/08/14 15:27 2019/08/14 15:27