Prev | Current Page 1281 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

bashrc.
Adding the following line to your .bashrc file, for example, sets your default printer to lp3:
export PRINTER=lp3
TIP
705
Running a Print Server 26
To override the default printer, specify a particular printer on the lpr command line. The following
example uses the -P option to select a different printer:
$ lpr -P canyonps doc1.ps
The lpr command has a variety of options that enable lpr to interpret and format several different
types of documents. These include -# num, where num is replaced by the number of copies to print
(from 1 to 100) and -l (which causes a document to be sent in raw mode, presuming that the
document has already been formatted). To learn more options to lpr, type man lpr.
Listing Printer Status with lpc
Use the lpc command to list the status of your printers. Here is an example:
$ lpc status
hp:
printer is on device 'parallel' speed -1
queuing is enabled
printing is disabled
no entries
daemon present
deskjet_5550:
printer is on device '/dev/null' speed -1
queuing is enabled
printing is disabled
no entries
daemon present
This output shows two active printers. The first (hp) is connected to your parallel port. The second
(deskjet_5550) is a network printer (shown as /dev/null). The hp printer is currently disabled
(offline), although the queue is enabled so people can continue to send jobs to the printer.


Pages:
1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293