A small, affordable computer with free resources to help people learn, make things, and have fun
https://forums.raspberrypi.com/
Code: Select all
sudo apt install cups*
sudo usermod -a -G lpadmin in_sympathy
sudo cupsctl --remote-any
sudo /etc/init.d/cups restart
sudo apt-get install avahi-discover
sudo apt install printer-driver-splix
It's not a conflict; the Control Centre Printers plugin is a front-end onto CUPS, so if you add a printer to CUPS by some other mechanism, it will show up in Control Centre. I'd be more concerned if it didn't...in_sympathy wrote: ↑Fri Oct 03, 2025 1:37 amDefinitely there is some conflict with Control Center because as soon as I add a printer on CUPS WebUI - a duplicate of it appears on Control Center.
Can be, but something is badly off - whenever I add my printer on localhost:631 (CUPS WebUI) and share it the following happens:spl23 wrote: ↑Fri Oct 03, 2025 7:21 amIt's not a conflict; the Control Centre Printers plugin is a front-end onto CUPS, so if you add a printer to CUPS by some other mechanism, it will show up in Control Centre. I'd be more concerned if it didn't...in_sympathy wrote: ↑Fri Oct 03, 2025 1:37 amDefinitely there is some conflict with Control Center because as soon as I add a printer on CUPS WebUI - a duplicate of it appears on Control Center.
Code: Select all
cups cups-browsed cups-client cups-common cups-core-drivers cups-daemon
cups-filters cups-filters-core-drivers cups-ipp-utils cups-pk-helper
cups-ppdc cups-server-common libcups2t64:arm64 libcupsfilters1t64:arm64
libcupsimage2t64:arm64 printer-driver-hpcups python3-cups:arm64
python3-cupshelpers
scruss wrote: ↑Sat Oct 04, 2025 10:30 pmis it attached via usb, or wifi? wifi is easier, and all your other devices would find and negotiate without relying on a raspberry pi.
I installed Trixie on a Raspberry Pi 5, and my AirPrint printers were found and configured automatically. I did not have to add packages, configure CUPS, or do anything: they were there in the control panel. (Only thing wrong was that the paper size defaulted to a4).
These were the packages installed in a stock system related to printing:Code: Select all
cups cups-browsed cups-client cups-common cups-core-drivers cups-daemon cups-filters cups-filters-core-drivers cups-ipp-utils cups-pk-helper cups-ppdc cups-server-common libcups2t64:arm64 libcupsfilters1t64:arm64 libcupsimage2t64:arm64 printer-driver-hpcups python3-cups:arm64 python3-cupshelpers
Thanks, I've checked - only 3400W models - ones with a build-in wifi modulescruss wrote: ↑Sun Oct 05, 2025 7:18 amSorry, thought that "can't setup my old Samsung SCX-3400 printer over AirPrint" meant that you wanted to setup the printer over AirPrint, rather than setup your Raspberry Pi to provide an AirPrint shared printer service. All the other SCX-340xW printers are listed as AirPrint-compatible at https://openprinting.github.io/printers/
I wonder if it supports IPP over USB? There's a package for that
Code: Select all
sudo apt install ipp-usbscruss wrote: ↑Sun Oct 05, 2025 4:43 pmmaybe?Code: Select all
sudo apt install ipp-usb
though reading the docs at OpenPrinting/ipp-usb it may be doing the opposite function to what you want. It's hard to tell.
Exactly, glad it's not just me :). Hopefully someone will figure out what's wrong?new! with Trixie :)DataNerd wrote: ↑Sun Oct 12, 2025 6:53 pmI too have struggled to get an AirPrint server set up under Trixie. I tried 3 clean installs thinking I had something wrong in my setup, but no luck. So I did a clean install of bookworm 64 bit LITE on my Pi 3b, ran updates, installed CUPS, set up the printer being sure to check the box to share, and then installed avahi-daemon, BAM it works. I suspect that Trixie is blocking some protocol or something and I don't have the time to troubleshoot the issue, when rolling back to the previous OS worked and the whole setup took less than 5 minutes once I did.
Hey, good find 👍🏻.gingis wrote: ↑Tue Oct 21, 2025 7:14 amfound out that my printer would not print reliably or not at all over USB cable with newer editions of Linux.
after uninstalling "ipp-usb" it was beginning to function reliably with the correct driver from manufacturer.
ipp-usb was somehow inhibiting the use of the correct driver.
Code: Select all
*** Quick install instructions (tested on Debian/Ubuntu only!) ***
While "configure" and "make" may be run as normal user all other commands
need to be run as root.
Configure the build system:
$ autoreconf -if
$ ./configure \
--libdir="/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)" \
--localstatedir=/var \
--prefix=/usr \
--runstatedir=/run \
--sysconfdir=/etc
It should be noted that it's suitable for testing purposes only.
The script configuring the actual Debian package can be found at
https://salsa.debian.org/utopia-team/avahi/-/blob/debian/master/debian/rules?ref_type=heads.
Among other things it also turns on the hardening flags described at
https://wiki.debian.org/Hardening.
Build and install avahi:
$ make
# make install
# ldconfig
Add a user and a group for avahi. (Debian specific)
# addgroup --system avahi
# adduser --system --no-create-home --ingroup avahi avahi
Ask D-Bus to re-read its policies:
# systemctl reload dbus
Now start the Avahi daemon:
# systemctl start avahi-daemon
Optionally start the unicast DNS configuration daemon:
# systemctl start avahi-dnsconfd
To start the two daemons at boot time on Debian based distributions:
# systemctl enable avahi-daemon
# systemctl enable avahi-dnsconfd
If you plan to use avahi-autoipd you have to create the user/group
"avahi-autoipd" much the same way as "avahi".
Code: Select all
sudo apt install printer-driver-splixCode: Select all
sudo usermod -a -G lpadmin (your user)
sudo cupsctl --remote-any
sudo /etc/init.d/cups restart
3. Added my printer using [url]http://localhost:631[/url]
4. [b]The root issue - let's make sure printer gets shared by using proper configs:[/b]
[code]sudo nano /etc/cups/printers.confCode: Select all
Shared YesCode: Select all
sudo nano /etc/cups/cupsd.confCode: Select all
# /etc/cups/cupsd.conf — updated version
LogLevel warn
PageLogFormat
MaxLogSize 0
ErrorPolicy retry-job
# Listen for HTTP and IPP on port 631 (all interfaces)
Port 631
Listen /run/cups/cups.sock
Browsing Yes
BrowseLocalProtocols all
DefaultShared Yes
DefaultAuthType Basic
WebInterface Yes
IdleExitTimeout 60
<Location />
Order allow,deny
Allow @LOCAL
Allow all
</Location>
<Location /admin>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/log>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Current-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
# End of file
Code: Select all
sudo cupsd -tCode: Select all
sudo systemctl daemon-reload
sudo systemctl restart cups.service