Skip to Main Content
Linux System Administration
book

Linux System Administration

by Tom Adelstein, Bill Lubanovic
March 2007
Intermediate to advanced content levelIntermediate to advanced
304 pages
11h 12m
English
O'Reilly Media, Inc.
Content preview from Linux System Administration
Print Services
|
185
In the next window, “Device URI for,” enter the device URI. “BrotherHL1440-2” is
connected to Philadelphia on Windows 2003, so you must enter the “guest” user-
name and hostname:
smb://guest@philadelphia/brotherhl1440-2
At this point, you have to select the printer driver. You should also print a test page.
On your Linux client, open the CUPS interface, and you should see the printer.
Linux clients on the LAN can now use this printer.
Controlling Print Queues from the Command Line
You can ssh to a remote Linux print server and use CUPS commands to control print
queues. CUPS CLI commands usually require root privileges.
Let’s take a brief look at those commands:
lpc
Allows various forms of control over printers. With lpc status, you can see a list
of available queues and the status of each.
lpstat
Displays a list of jobs queued for printing on the system’s printers. You can use
various options to modify this command’s output.
lpq
Displays the status of the current queue or the queue specified with the -P
queue
option.
Figure 8-13. Adding Windows printers
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux System Administration

Mastering Linux System Administration

Christine Bresnahan, Richard Blum
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9780596009526Supplemental ContentCatalog PageErrata