Printer Device Overview

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Difficulty
Intermediate
Video Transcription
00:00
>> Hey Cybrarians, welcome back to
00:00
the Linux+ course here at Cybrary.
00:00
I'm your instructor Rob Goelz and in today's lesson,
00:00
we're going to be talking about Printer Devices.
00:00
Upon completion of this lesson,
00:00
you are going to be able to
00:00
understand printing support in
00:00
Linux and explain how printing is managed.
00:00
As we previously covered in Module 11,
00:00
Linux uses the Common Unix Printing System or CUPS.
00:00
CUPS provides an interface for working with any printer.
00:00
It accepts jobs using PostScript,
00:00
and then sends the jobs on to a print queue.
00:00
Now CUPS uses Ghostscript to convert
00:00
PostScript documents into a format
00:00
that's understood by the printer.
00:00
CUPS uses printer configuration and drivers which
00:00
are found in etc/cups.
00:00
The configuration files are found in etc/cups.
00:00
CUPS also acts as a daemon,
00:00
it essentially sits in the background
00:00
and waits to accept print requests.
00:00
If you have to configure the daemon for any reason,
00:00
you can find that in etc/cups/cupsd.conf.
00:00
Now remember this, CUPS
00:00
uses the Internet Printing Protocol,
00:00
IPP, which is built on HTTP and runs
00:00
over Port 631, 631 for CUPS.
00:00
Therefore, you can manage CUPS via a web interface.
00:00
It's built on HTTP.
00:00
For example, if you have a local printer,
00:00
you can go to localhost port 631 in a browser,
00:00
and it will allow you to manage the printer that way,
00:00
it's the easiest printer management method.
00:00
But there are also command-line tools
00:00
that you could use to interact with print queues.
00:00
For example, lpc is
00:00
going to let you manage the print queue,
00:00
stop, start or pause the queue.
00:00
Lpq is going to display the queue status.
00:00
Lpr can allow you to send
00:00
a job to the print queue for the command line,
00:00
and then lprm, well,
00:00
that removes the job from the print queue.
00:00
But with that, we've reached the end of the lesson.
00:00
In this lesson, we covered how printing is supported in
00:00
Linux and how printers are managed in Linux.
00:00
Thanks so much for being here and I look
00:00
forward to seeing you in the next lesson.
Up Next
Manage Printers and Printing
Virtual Lab
Device Bus (Demo)
procfs File System (Demo)
sysfs File System (Demo)
Udev and Rule Locations