Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Sharing a Printer on the Network

20190812 First, check the current status of the CUPS system configuration on the server where the printer is connected and known to be functioning:

$ cupsctl

Notice that _share_printers=0. To enable printer sharing on the server use the command cupsctl.

$ cupsctl --share-printers

$ cupsctl | grep share_printers

When sharing, CUPS will allow printing from other hosts on the same local subnet. On another computer check that the connected printer is now available:

$ lpinfo -v
network dnssd://HL3040CN%20%40%20theano._ipp._tcp.local/cups?uuid=a67769fe-3acb-327c-7ffa-67eeb2bd318b

The printer is identified as HL3040CN_theano, for example, where theano is the name of the host server. The printer may now automatically appear as an option on any print dialogue.

Printers are shared by default from the server but if it is not then share the printer using:

$ lpadmin -p HL3040CN -o printer-is-shared=true

Copyright © 1995-2020 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.