You are not logged in.

#1 2024-11-18 07:27:09

mountaintrek
Member
Registered: 2024-02-01
Posts: 38

[SOLVED] Network CUPS printer/scanner without Avahi

I've read a number of posts on the current requirements for setting up a multifunction printer. The post  avahi vs cups indicated they were able to use the printer without Avahi.

I installed an Epson ET-3850 printer on the network using CUPS, ipp, and Avahi. The only package I installed was imagescan. I can print, scan, and use lp commands. 

But I noticed:

1) libreoffice > Printer Settings > Name drop-down shows a printer that is NOT defined in CUPS. I think it is the secure protocol.

2) simple-scan and xsane can not locate the scanner without Avahi, and when Avahi is running the drop-down shows two scanners (escl:https... and epson2:net...).

When I stop Avahi, I can still print, printer dialogs all look good, but scanning fails, "device not found".  In the journal, I see dbus calls to dbus-org.freedesktop.Avahi.service for simple-scan and xsane.

Avahi is way overkill for my environment; The same situation as the poster in the above post. How can I scan without Avahi?  If not possible, how do I restrict Avahi to certain protocols/services?

Last edited by mountaintrek (2024-11-29 07:38:09)

Offline

#2 2024-11-18 08:36:04

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] Network CUPS printer/scanner without Avahi

Offline

#3 2024-11-29 07:03:06

mountaintrek
Member
Registered: 2024-02-01
Posts: 38

Re: [SOLVED] Network CUPS printer/scanner without Avahi

I was able to add a network printer and scanner without avahi.  Adding the printer to CUPS was super easy. Adding the scanner to Sane was trial and error. 

Steps

1. Review settings on printer.

    Make sure the printer is on during this entire process.

    Use the vendors web interface. Double-check available protocols/services, etc.

2. Configure /etc/cups/cupsd.conf

3. Add network printer & pdf printer

    lpadmin -p <name> -D <description> -E -v ipp://<address>/ipp/print -m everywhere -o printer-is-shared=false
    lpadmin -p Virtual_PDF_Printer -v cups-pdf:/ -m CUPS-PDF_opt.ppd -D "Virtual PDF Printer to ${HOME}/PDF directory" -E -o printer-is-shared=false -o media=na_letter_8.5x11in

4. Add network scanner

    Edit the file /etc/sane.d/dll.conf

    Comment all epson lines (epson, epson2, epsonds)

    Edit the file /etc/sane.d/escl.conf.

    Add device \https://xxx.xxx.xxx.xxx]:ppp   (ignore the backslash.)

And that was it.

A couple of things:

    I turned off ivp6 in the printer. That seemed to be the default for escl.

    I originally used the [device] section of the escl.conf file and got a segmentation fault.

    The package sane-airscan works, but I didn't go that route..

Useful commands:

    avahi-browse -a --ignore-local --resolve --terminate  --parsable
    scanimage -L
    trace scanimage -L
    airscan-discover -t
    ipstat -v
    nmap <ip-address-of network-printer>

Useful webpages:

man sane-escl
man airscan
Arch wiki as mentioned above.
OpenPrinting - Printer Applications - A new way to print in Linux

PS: How do I change the title to add solved?

Last edited by mountaintrek (2024-11-29 07:39:54)

Offline

#4 2024-11-29 07:31:34

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: [SOLVED] Network CUPS printer/scanner without Avahi

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Edit:

Your edit wrote:

PS: How do I change the title to add solved?

lol

Last edited by seth (2024-11-29 07:32:07)

Offline

Board footer

Powered by FluxBB