
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