[cups] Can't print remote

Johannes Meixner jsmeix at suse.de
Wed Jan 30 02:00:43 PST 2019


Hello,

On Jan 29 17:41 Vince Radice wrote (excerpt):
> I have two pcs - Vince2 and Carol.  There is a Brother printer 
> connected vis usb to Carol.  Printing from here works fine.
> Carol and Vince2 are on the same network (192.168.0.2 and 192.168.0.22).
> I cannot print from Vince2 to the printer unless I use a usb cable from 
> Vince2 to the printer. When I try to print over the network CUPS 
> responds with "Printer not responding". When I use the usb cable, 
> printing works.

How printing via network with CUPS works depends on
which kind of CUPS version you use.

You do not need a cupsd running on the client machine Vince2
but it won't hurt when a cupsd is running on Vince2.
In particular for nowadays printing via network a cupsd
on the client machine could make things "just work"
automatically - provided the CUPS server setup is right
and some helper stuff like DNS-SD (or cups-browsed for
older CUPS verions) works on the client.

You must have a cupsd running on the CUPS server Carol and
the cupsd on Carol must listen to the outer network and
the cupsd on Carol must accept connections from Vince2.

Then you can print a file from Vince2 via the command
   lp -d print_queue_on_Carol -h Carol.domain file

Additionally and preferably the cupsd on Carol should
announce its print queue(s) (nowadays via DNS-SD)
in the outer network so that client machines in the
network know about the print queue(s) on the server.

Accordingly in Carol cupsd.conf only
   Listen /var/run/cups/cups.sock
is insufficient because that lets the cupsd on Carol listen
only on the local domain socket but not on the outer network

Usually when you print from Vince2 via the cupsd on Carol
on the USB printer at Carol you do not need to set up a
print queue on Vince2 or configure a printer on Vince2.

An alternative (deprecated) setup on client machines is
to let them print only via one single CUPS sever machine
where you specify the CUPS sever in
/etc/cups/client.conf
see
https://www.cups.org/doc/man-client.conf.html
and "Client-only configuration" in
https://en.opensuse.org/SDB:CUPS_in_a_Nutshell

For more information regarding printing via network go to
https://www.cups.org/documentation.html
and there have a look at "Printer Sharing" at
https://www.cups.org/doc/sharing.html
in particular how printing via network should work nowadays.

Additionally you may also have a look at
https://en.opensuse.org/SDB:CUPS_in_a_Nutshell
in particular how printing via network works traditionally.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
Graham Norton - HRB 21284 (AG Nuernberg)


More information about the cups mailing list