FCE_LISTEN(1)

πŸ’– FCE_LISTEN(1) πŸ’–

okay bestie, welcome to the Netatalk AFP Fileserver Manual, but make it cute ✨


🌸 Name 🌸

fce_listen β€” the Netatalk Filesystem Change Events listener application. she listens. that's her whole job. πŸ‘‘


πŸ¦‹ Synopsis πŸ¦‹

fce_listen [-h host] [-p port]

✨ Description ✨

so fce_listen is a lil listener for Netatalk's Filesystem Change Event (FCE) protocol. basically it sits there, vibes, and every UDP datagram it catches coming from the AFP server gets printed straight to stdout. that's it. no notes. 🫢

Note: this utility NEEDS netatalk to be built with FCE support turned on (that's the -Dwith-fce=true meson build option β€” which, good news, is enabled by default πŸ’…). no FCE support, no listening, periodt.

πŸ’œ Options πŸ’œ

  • -h host β€” server hostname or IP address, as in where is the server bestie πŸ“
  • -p port β€” server port number, the lil door number you're knocking on πŸšͺ

πŸŽ€ Examples πŸŽ€

first up: tell netatalk to yeet FCE packets over to a listener chilling on localhost port 58585. pop this in afp.conf:

[Global]
fce listener = localhost:58585
fce version = 2
fce events = fmod,fdel,ddel,fcre,dcre,fmov,dmov,login,logout

then, listen to FCE events on localhost port 58585:

$ fce_listen -h localhost -p 58585
Listening for Netatalk FCE datagrams on localhost:58585...
FCE Start
ID: 1, Event: FCE_LOGIN, pid: 429918, user: nobody, Path:
ID: 2, Event: FCE_LOGOUT, pid: 429918, user: nobody, Path:
FCE Start
ID: 1, Event: FCE_LOGIN, pid: 429924, user: myuser, Path:
ID: 2, Event: FCE_FILE_DELETE, pid: 429924, user: myuser, Path: /srv/afpme/Read Me First copy
ID: 3, Event: FCE_DIR_CREATE, pid: 429924, user: myuser, Path: /srv/afpme/untitled folder
ID: 4, Event: FCE_DIR_MOVE, pid: 429924, user: myuser, source: /srv/afpme/untitled folder, Path: /srv/afpme/My Folder
ID: 5, Event: FCE_FILE_MOVE, pid: 429924, user: myuser, source: /srv/afpme/LICENSE, Path: /srv/afpme/My Folder/LICENSE

look at all those events coming in one after another, no cap, it's giving main character energy fr fr πŸ”₯


🌈 See Also 🌈

  • afpd(8) β€” go say hi πŸ‘‹

and that's the whole page bestie!! this was Netatalk 4.5.1, mwah, stay slaying, drink water, and may your datagrams always arrive πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from
  • fedora 44: netatalk-afptest 5:4.5.1-1.fc44 Β· GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-BSD AND FSFUL AND LicenseRef-Callaway-MIT
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms