Time
6 hours 20 minutes
Difficulty
Beginner
CEU/CPE
3

Video Description

Linux Printing Servers This lesson covers printing. Participants learn step by step instructions in setting up a print server via an application called the Common Unix Printing System (CUPS) Participants learn step by step instructions in adding a printer to a Linux system and creating a print server. This lesson also covers how to manage printers and how to view printer status and completed jobs.

Video Transcription

00:04
Welcome to cyber Eri I t I'm Greg Stewart. I'm your subject matter expert for Lennox Plus
00:09
So we're coming to the end of module three, the systems administrator module or we're gonna talk about printing.
00:15
So
00:16
in Lennox, especially in a bun to what we're dealing with here,
00:20
you don't want to set up a print server. And the way we set up prints, serving is through a,
00:25
um
00:27
a an application called cups. You're gonna create a cup server.
00:31
And what cup stand for? What cups stands for is the common units printing system cups common UNIX printing system.
00:40
It's really available alone. Requires is an APC. It install cups
00:45
and you're up and running with the cups print server. The beautiful thing about it is it comes with a built in and already configured
00:53
Web interface
00:55
for users to get to. You just have to make some small configuration items in the convict file that will change convict changes in the convict file that will allow it to be a little bit more customized for your end users to feel more comfortable using it.
01:11
So it's it's basically it's all directed through certain directives contained inside the file that you confined in, etc. Cups
01:19
cups d dot com That's your configuration file. It's your master configuration file that you want to ensure that you don't mess up. Otherwise, you're gonna have to install everything and start from scratch because, like I said, it comes
01:33
fairly preinstalled with everything that you need and everything that you need to have it working and up and running. So it's they tried to make it fairly easy for you to get where you need it to be,
01:42
So tons of is built in and where it's not
01:46
understandable, are built in for you. Maybe there's a lot of Compton out
01:49
lines in that file that config file that you can read and give you instructions on. So it's a very helpful tool to use and to set up the print server quickly.
01:59
Uh, and so we're gonna focus on looking at the cups, the dot cups be dot com file configuration file. Okay, and also it's similar to your Apache Apache camp file,
02:12
and what we want to make sure we do prior to editing our configuration file whatsoever is we want to make it back when you make a backup copy of the original file
02:21
and keep it. Keep it tagged as the original file. We're gonna tag it, maybe dot a ridge or something like something that would make it obvious that was the original
02:30
configuration files. We downloaded it
02:32
so that in the case we make a mistake or do something where we need to scramble and backtrack and start from scratch. We can do that, or even if we want to compare the two configuration files,
02:44
we compare the current one that you've been editing and to the original one. You can do that. It's create trouble shooting tool to figure out what's wrong or what's missing.
02:52
So that's just one way we can do it. So to start off, let's actually go out and download and install the cups printed common UNIX printing system.
03:00
So I'm in my command. I'm in my legs desktop. I'm going to blow this up full screen, make it easier to see.
03:10
I'm gonna launch my terminal window
03:15
and let's just blow the terminal window as well. Okay,
03:21
First thing I wanna do is you've got a type suit do. Okay, Another time.
03:25
I'm back out. I haven't been back in it again. Since I've gone through all my final editing and troubleshooting commands, I'm just gonna go back to having a type of student every time for safety sake,
03:35
to get
03:38
install
03:39
cups.
03:40
And it's gonna probably from my password.
03:46
And Amelia's gonna grab the package list and is gonna tell me what is going to get its found the package list
03:52
and saying after this operation 1024 bites of additional this space will be used. I don't care about that. It's 1000 bites. It's, what, one megabyte. So I'm gonna go ahead and quick, okay?
04:04
And start downloading its download your databases and packing everything.
04:11
Oh,
04:13
this is why I love the app. Get command because it makes it simple. You'll actually be clicking out a bunch of stuff
04:18
and that's it. It's done. It's been downloaded and it's actually been installed.
04:23
So now we need to know how to get where we want to go on when it does. Okay, so Cups is gonna manages a server, so it cuts a print server just like you would have won Prince schooler like you'd have in Windows. And it's going to manage the print jobs and Q's and provide network network printing using the standard and poor imprinting protocol.
04:42
And it's gonna offer support for a large range of printers, anything that you can find a driver for out there. If it's not already listed in the file of dry of drivers that are out there,
04:51
you can get everything from dot matrix, which is the beauty of Lennox, because we're reaching way back, you know, dot matrix all the way to the laser and whatever else between
05:00
Okay, so it also is gonna it's gonna it's gonna have support also for your ppd or you postscript printing stuff.
05:06
Okay, it's gonna auto detect your network printers, and it's got a feature. Also. Like I said, it was awesome, which is the Web based configuration administration tool.
05:15
This is what you're gonna use this where your users are actually gonna use to
05:23
make it easier for them to see from a unique perspective, how to search your printer much like you wouldn't windows at printer for Mac.
05:30
So let's go ahead and take a look at, um, have what we've installed.
05:36
We want to go to the configuration. So where it actually gets figured
05:41
and we're gonna have to change directly to get there is the Betsy
05:46
cups.
05:48
C cups, cups d dot com and see cops of school acted cups
05:56
client list. Okay, and so here's our cups directory.
06:00
It's held under etc. Cups.
06:02
Okay, and we're looking at all the different files that are inside of that. And what we're most concerned about is the
06:09
cups d dot com file, which is right here.
06:14
Files gonna contain all of our configuration for our cups printer.
06:18
So right off the bat when I want to do is I want to make a copy of that file
06:24
and set aside. So what I'm gonna do is he's my copy each man C p.
06:29
I'm just gonna keep it in the same directory just to make things easy. Maybe people that create multiple copies and put into multiple different directories for redundancy sake
06:36
where this class I'm just gonna create a single copy of it and added, in this same directory, someone go to seat
06:43
CP for copy cups d dot com
06:46
and I'm going to name it
06:49
Cups the Doc Burrage
06:54
that calls
06:57
permissions. I write. So Sue
07:00
coz
07:00
you knew cpt cups dot com
07:05
cups deed a ridge
07:10
Cool
07:12
family list. Now you can see that I have a cups d dot com file here.
07:16
Okay, And here's a copy I made of the original. So now any and every I mean, we're talking a year down the road when I've made all the edits I have to my cups d dot com file can always look back and see what my original one look like in case something goes wrong or haywire. Do that. So
07:34
a good thing and that actually I think that would be good to do is if you want to
07:40
always just have a default cups tea dot com File a configuration file for your Cup server
07:46
in its original
07:47
unedited state. Then you can just trade it as
07:51
cup. Steve got a rich dotcom, and then you can create another copy. That's cups the dot working or WKMG
08:00
Um, or W K G Ever. You want to make it and dot com and that will know that as your current working copy
08:07
and ah, copy of what you have currently configured so you can compare back to the original,
08:11
um, and make any updates. You need to do it So it's always good to have a couple different copies of the file. See, look and compare
08:18
so that we've made a copy of our configuration file. We can go in and look at some things that need to be edited.
08:26
The file has lots of areas that need to be edited of, You know that
08:30
don't necessarily need to be editor that it could be that could be edited to make it a little bit easier to use.
08:35
So let's open up the file, and we're gonna do that with their favorite file editor. Be I
08:41
curves. Deed are called
08:46
Okay,
08:46
it's open it up and be I hear
08:48
it's taking me to the very first line. You could see anything with a hashtag pound sign is gonna be a commented outlines, doesn't actually get looked at by the cups printer as it's booting up or are
09:01
doing its work
09:01
s So it's This is a bunch of really anything with the hashtag pound is just a set of instructions that are helpful to you understand that managed the
09:09
manage the system.
09:11
So this here, with first thing we're looking at, is on Li. Listen for connections from the local machine.
09:18
What is telling me is this? Listen, local host
09:22
slash six. They're not slashed. But Colin 6 31 So import 6 31 It's gonna only be listening for printing traffic coming across. We don't
09:31
We're not so much concerned about if we're in a network situation and this is our actual service, as opposed to a local machine, we're not running a server here.
09:39
Is
09:41
you wanna you wanna add? Excuse me? You want to add that you need to listen to the actual I P address or fully qualified domain name or host name of the server itself
09:52
so you can listen for traffic that way.
09:54
That way you can
09:56
actually be managing the printing cues and schooler on the actual server itself is supposed to just local machine that you're on the local groups. So that's a good
10:05
good thing that you need to change. I'm not actually gonna change it here, but it is right here.
10:09
Scroll down to it. So listen, local host,
10:16
right? This is my file right here.
10:18
Okay. Uh, this is the configuration point right here That I want change for that.
10:24
Um, share show kal share show shared printers on the local network. This has browsing set is off. But if I want my users to be completely interactive with a printing server, I want to change this to browsing on so they can actually browse all this, shared printers on the local network and find on the game
10:43
example being you work in a building that has three floors countings on the top floor.
10:48
Um, management on the second floor, on the bottom floors. I t were usually on the bottom floor. Marshall. Why?
10:54
But on the top floor of the accounting server and you need to connect to an accounting printer on the top floor.
11:01
So to do that, you won't be able to see all the printers, and you're not gonna be able to do that. That's browsing is set off. You're only able to see the ones that you have I p addresses for in that you connect to.
11:11
So we're gonna change that to actually having browsing shows on so we can see all of the printers in the in the local network.
11:20
Okay, so default authentication time
11:24
again. This will change depending on your solution or year
11:26
central authentication method that you have
11:30
Web interface setting. If this was changed to know, that would mean our Web interface will not not be configured would be shut down,
11:37
which is not good. We want that Web interface. It's really sharp looking at her face and easy to use.
11:41
Restrict access to the server.
11:45
Um, so from specific locations you can put in your specific users you want access to
11:50
access. The admin page is the configuration files, right? So location is admin dot com. For a lot of people, just have the accident figuration file.
12:01
Okay, there's a lot of different fields we can look at here. Okay, Only the owner or administrator can cast off or authenticated job.
12:09
We're going to require the user at owner at system. These are all things that are configured to add specific users in there, so
12:16
their lives you can see there's a lot of fields within the cups system, right cup system and server that you can configure to make it more usable in tow. Manage printing much easier. So let's
12:30
let's minimize our miss minimize our window here and let's go to fire Fox. We'll leave it up was go fire
12:41
someone open up Fire Fox.
12:45
I'm gonna go to my Web server,
12:50
my Web interface, not a Web server. Rooms apologize,
12:54
and it's going to tp
12:58
local host
13:01
CTP
13:05
local host Colon for 6 31 for that printing and admin.
13:11
And now he's He's taking me to my actuals in my cups administration printing page.
13:16
Here I can go and seize all gooey, obviously, and going click at a printer.
13:22
It's gonna ask for the user name and password or being requested. It's one of the configuration sections and my configure my convict file that is required me to put in a password. So
13:33
it's library admiral
13:37
Password.
13:39
Okay, close that.
13:41
But I can add a printer L P T. A serial order hp printer of fax machine.
13:48
Um, here's on my protocols for the other different printers. Let's just just gonna use syrup one.
13:52
And I'm gonna use the Internet printing protocol
13:58
right here, this one, and continue
14:01
in the connection. Here's the host name
14:05
Network printers
14:07
gives me
14:09
all them that we're printing information that I need,
14:11
came back two cubs
14:15
and continue have to enter. You are I don't actually have a printer to enter u L o u R L for
14:22
so I'm just gonna go back,
14:24
go back home, go back to administration.
14:26
I can't find a new printers is where
14:31
we're not gonna see anything here because browsing has showed us off. Okay,
14:35
go back.
14:35
Manage printers.
14:39
Now, what you're seeing here are the printers that are actually on my
14:43
local network of my sudden it that I'm on right here. I'll always be able to see that I'm not able to see anything outside of mountains.
14:50
So here you can see I have. You know, this Konica Minolta set up absent workforce machine set up
14:56
tells me the status is idle. I wanted to connect to those. I could
15:00
give me some more information about it,
15:01
you know, show completed jobs.
15:05
It's going to do that. It's gonna take a while. Someone to skip over that We're going to go back.
15:13
I can manage jobs. It's just gonna be like the print queue.
15:18
Okay.
15:20
And here we can actually edit our configuration file
15:24
from the gooey.
15:26
All right, this is good. However, it's
15:31
it's not like the eye, right?
15:33
I could just type it just like it worried. Weren't Doc which is slightly dangerous, Especially for a convict file. So you want to make sure this is locked down the sections locked down for administrators, which is
15:43
an option inside the convict file.
15:46
So this is a a brief overview of what, um, the cups server is, and you can go and you have a situation where you can open up with a server and actually install one.
16:00
A separate one to server red hat server machine you can use for your cup sprinter. Go ahead and do that. Play around. Didn't try it.
16:07
If you're at work and you have some time downtime to killing, you can spin a clinic server.
16:11
Play with it, see how your printer's show up, see how you can manage the print configuration file.
16:18
But this is just a good overview of what the printing is like inside Lenox. Now
16:22
there's obviously the simple ways to print, but this would be the the cups print server that we're talking about. If I go to settings here,
16:30
I go to settings and printers, click on this
16:34
and takes you in printers. This is just like the same thing you'd see in Windows.
16:38
This is not actually a print server, imagines is as if I'm on a local host going to print to a machine. I could do that my cup server's gonna do. Give me much more flexibility and managing print jobs, cues, permissions, authentication, et cetera.
16:52
So this is been an overview of printing for Lennox, especially in a bun, too, with the cups, your server, the common UNIX printing
17:00
system
17:03
and should be a good starting point for you to learn more about cups and be able to installing. Figure in your own situation. Environment, lab, whatever. Maybe
17:11
so. Thanks for watching and stay tuned for her. Module four Coming up going over the exam preparation.

Up Next

Fundamental Linux Administration

An open-source operating system modelled on UNIX, first released by Linus Torvalds in 1991. Why do I need this Certification? With the increasing popularity of cloud based systems and data centers, organizations need system administrators

Instructed By

Instructor Profile Image
Greg Stuart
Instructor