Set up a print server using cups

From Linuxintro
Revision as of 05:48, 3 April 2020 by imported>ThorstenStaerk (→‎Quickstart)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


  • Make sure your printer prints as a local printer
  • Find out your printer's name using the command lpstat
lpstat -p -d
printer Brother_DCP-J140W disabled since Fri 14 Dec 2012 03:13:10 PM UTC -
        Unplugged or turned off
  • Modify /etc/cups/cupsd.conf:
Listen *:631
Listen /var/run/cups/cups.sock

<Location />
Order Deny,Allow
Allow From
Allow From All

<Location /printers/Brother_DCP-J140W>
Order Deny,Allow
Allow From
AuthType None
Allow from All

The (re)start the cups printing service:

/etc/init.d/cups restart



Solution: In /etc/cups/cupsd.conf, add under

<Location />
Allow from

Do the same for the section /admin.

no printer found

No printer is displayed in a KDE application so you cannot select a printer. You are using (e.g.) as print server.
When CUPS listens to it does not listen to the computer's public IP address.
In the KDE print dialog, select "System Options" -> "Cups Server" and enter instead of e.g.


set shared to yes

See also