0% found this document useful (0 votes)
71 views1 page

Untitled 9

The document discusses printing concepts like filters, devices, drivers, and files and commands related to printing like printcap, lpd, lpc, lpr, and lpq. It provides exercises to create a local print queue, send jobs to it, and define remote printing queues to check associated files and filters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views1 page

Untitled 9

The document discusses printing concepts like filters, devices, drivers, and files and commands related to printing like printcap, lpd, lpc, lpr, and lpq. It provides exercises to create a local print queue, send jobs to it, and define remote printing queues to check associated files and filters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

LinuxIT Technical Education Centre

Printing
__________________________________________________________

5. Exercises and Summary

Term Definitiion
Filter Scripts used to prepare a document before printing
Device Type of connection used to access the printer (e.g parallel, USB or network)
Driver Translates raw or postscript type formats into printer specific instructions such a s PCL

Files

File Description
/etc/printcap Read by the lpd daemon at start up and contains a list of configured printers
/etc/lpd.perms Contains permissions applied to the lpd daemon such as remote access

Commands

Command Description
lpc line printer control program
lpd line printer daemon
lpq print printer queue status
lpr submit files for printing
lprm remove a queued print job
mpage print multiple pages of a document on one page

1. Start printtool and create a new local queue called lp.

2. Customise the device /dev/tty10 as the printer device (remember to


do chmod 666 /dev/tty10 to allow printing on this device). You now have
a virtual printer on your system!

3. Send jobs to the print queue using lpr and pr (pre-formatting tool)

4. With your system’s print tool, define different remote queues:


- a UNIX queue
- a SMB queue
If you are the server, make sure the appropriate rules are defined in /etc/lpd.perms

In each case
- check the /etc/printcap file. Which filter is used? How is the remote host defined?
- check the /var/spool/lpd/ directory.

5. Stop the various printer queues and printers with lpc.

_________________________________________________________________________

130

You might also like