I'm pulling my hair out over here trying to expose my printer to AppleTalk.
It worked
exactly once with the
cupsautoadd
parameter ... but I wanted to customize the way the printer name appears in Chooser.
So I tried adjusting the
papd.conf
file according to the manual, and now
papd
absolutely
refuses to start — even if I revert to using
cupsautoadd
.
I have a Raspberry 4 Pi with Debian 12.9 and Netatalk 4.2.0dev. I have already tried setting up Netatalk on a Synology NAS docker container, but I accidentally enabled the container on first boot before configuring the settings, and enabled auto-restart so I got the whole container system in a permanent reboot loop and had to log in via SSH to stop it from running away. And I can't run netatalk it on the Mac because we all know why. So I'm back to the RPi.
I followed
this guide to compile Netatalk for Debian from source. It worked. Netatalk is running and advertising services, and the
nbplkup
command is is able to see other nodes on the network. I'm running an Apple Internet Router elsewhere on the network, and #globaltalk is working normally (i.e.: I can see lots of other zones).
I did not specify a release for netatalk, so
git
pulled from the bleeding edge and gave me 4.2.0dev instead of 4.1.2. Please note: I am a professional sysadmin, but have never worked in a dev-ops capacity, so I do not use github in any meaningful way for software version control, and need a few pointers if this is going to be a "downgrade, recompile, uninstall, reinstall" scenario.
I've tried using
sudo systemctl disable papd
and
enable papd
but it keeps failing to start.
Here is my current
/etc/netatalk/papd.conf
file:
Code:
# PAP print server daemon configuration (Netatalk 4.x)
#
# See the `papd.conf' manual page for examples.
# Uncomment the following line to share all CUPS enabled printers.
cupsautoadd:op=root:
#cupsautoadd@68kradio.ddns.net:op=root:
#O Brother Where Art Thou:\
# :pr=ps:\
# :pd=/etc/cups/ppd/brother-hl-l2380dw.ppd:\
# :op=root:
And here is a snippet of
/var/log/syslog
:
Code:
2025-03-11T22:29:18.935642-07:00 pihole4 systemd[1]: Starting papd.service - AppleTalk PAP printer server daemon...
2025-03-11T22:29:18.965045-07:00 pihole4 papd: Set syslog logging to level: debug
2025-03-11T22:29:18.965356-07:00 pihole4 papd: restart (4.2.0dev)
2025-03-11T22:29:18.965523-07:00 pihole4 papd: CUPS support enabled (2.4)
2025-03-11T22:29:18.966601-07:00 pihole4 systemd[1]: Started papd.service - AppleTalk PAP printer server daemon.
2025-03-11T22:29:20.042853-07:00 pihole4 systemd[1]: papd.service: Main process exited, code=exited, status=1/FAILURE
2025-03-11T22:29:20.043587-07:00 pihole4 systemd[1]: papd.service: Failed with result 'exit-code'.
2025-03-11T22:29:21.223288-07:00 pihole4 systemd[1]: papd.service: Scheduled restart job, restart counter is at 1.
2025-03-11T22:29:21.223548-07:00 pihole4 systemd[1]: Stopped papd.service - AppleTalk PAP printer server daemon.
2025-03-11T22:29:21.240314-07:00 pihole4 systemd[1]: Starting papd.service - AppleTalk PAP printer server daemon...
2025-03-11T22:29:21.265852-07:00 pihole4 papd: Set syslog logging to level: debug
2025-03-11T22:29:21.266160-07:00 pihole4 papd: restart (4.2.0dev)
2025-03-11T22:29:21.266320-07:00 pihole4 papd: CUPS support enabled (2.4)
2025-03-11T22:29:21.267546-07:00 pihole4 systemd[1]: Started papd.service - AppleTalk PAP printer server daemon.
2025-03-11T22:29:21.766404-07:00 pihole4 systemd[1]: papd.service: Main process exited, code=exited, status=1/FAILURE
2025-03-11T22:29:21.766872-07:00 pihole4 systemd[1]: papd.service: Failed with result 'exit-code'.
2025-03-11T22:29:22.973286-07:00 pihole4 systemd[1]: papd.service: Scheduled restart job, restart counter is at 2.
2025-03-11T22:29:22.973499-07:00 pihole4 systemd[1]: Stopped papd.service - AppleTalk PAP printer server daemon.