最後更新: 2020-07-17
介紹
mount an afp (AppleShare) filesystem using FUSE
Port: 548/TCP
Install
apt-get install ncurses-dev libreadline-dev libfuse-dev libgcrypt20-dev
mkdir /usr/src/afpfs-ng; cd /usr/src/afpfs-ng
# 0.8.2
wget https://github.com/simonvetter/afpfs-ng/archive/master.zip -O master.zip
unzip master.zip
cd afpfs-ng-master
# 安裝到 /usr/local/bin
./configure && make -j 2 && make install && echo 'done!'
ldconfig
Usage
mount_afp afp://Server/Resource /mnt/point
i.e.
mount_afp -o ro afp://username:[email protected]/share /mnt/tmp
Mounting share from 192.168.88.89 on /mnt/tmp Mounting of volume share from server nas succeeded.
Status
mount | grep '/mnt/tmp'
nas:share on /mnt/tmp type fuse.nas:share (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
afp_client status
# 沒有 mount 東西時
AFPFS Version: 0.8.2 UAMs compiled in: Cleartxt Passwrd, No User Authent, Randnum Exchange, 2-Way Randnum Exchange, DHCAST128, DHX2
# mount
AFPFS Version: 0.8.2
UAMs compiled in: Cleartxt Passwrd, No User Authent, Randnum Exchange,
2-Way Randnum Exchange, DHCAST128, DHX2
Server nas
connection: 192.168.88.89:1536 (active)
using AFP version: AFP3.2
server UAMs: Cleartxt Passwrd, DHCAST128, DHX2 (used)
login message:
type: Netatalk3.1.8
signature: ffffffff...
transmit delay: 0ms
quantums: 1048576(tx) 131072(rx)
last request id: 11 in queue: 0
transfer: 614(rx) 662(tx)
runt packets: 0
Volume home, id 0, attribs 0x0 mounted: No
Volume video, id 0, attribs 0x0 mounted: No
Volume tech, id 0, attribs 0x0 mounted: No
Volume share, id 5, attribs 0x346c mounted: /mnt/tmp
did cache stats: 0 miss, 0 hit, 0 expired, 0 force removal
uid/gid mapping: Login ids (1026/100)
Unix permissions: Yes
Volume Project, id 0, attribs 0x0 mounted: No
Volume photo, id 0, attribs 0x0 mounted: No
Volume music, id 0, attribs 0x0 mounted: No
Volume docker, id 0, attribs 0x0 mounted: No