All right, so this is the lecture, this is where we going to cover cockpit, a cockpit is a server
administration tool sponsored by RedHat focused on providing a modern looking and user friendly interface
to manage and administer servers.
Cockpit is the easy to use integrated glasspool and open Web based interface for your servers.
The application is available in most of the Linux distribution, such as Santos, RedHat, Ubuntu and
Fedorov.
It is installed in RedHat eight by default and it is optionally available in version seven.
If you wanted to go and install from the repository, it can monitor system resources, add or remove
account, monitor system usage, shut down the system and perform quite a few of the task all through
very accessible web connection.
Now you're probably thinking, hey, don't use command line in Linux to perform or manage most of the
function.
And it's a lot easier.
Yes.
For those people who still prefer and would like to use the command line.
Definitely you should.
But this Web interface, if you tried one time, I'm telling you, you're definitely going to fall in
love with this interface because you could access your server.
If it has this web interface running, you could access it from anywhere remotely and you could also
get the terminal within that web interface.
I'll show you once we get into the cockpit application.
OK, so now we are going to cover how we could install, configure and manage this cockpit application.
So the very first thing we have to do is check for network connectivity because we have to go and download
that package from the RedHat or as a repository so we could start a service.
So in order to connect to the Internet, we need to make sure our computers are Linux.
Machines have no connectivity.
And for that very easy thing to do is just simply open up your terminal in your Linux servers and ping
dubbed the Google dot com, or you could ping any websites on the Internet of your choice.
All right.
For that, I have two machines both running side by side.
One is a RedHat seven sorry.
One is RedHat eight and one is Santos seven.
So let me log in to eight.
So we'll go through both one by one.
All right.
So right here on this side, this is my right hand eight and this is my Santos seven.
All right.
So let me move this on this side, OK?
The first thing we have to do is check to see if we have connectivity.
So paying a dub, dub, dub, dub, Google dot com, beautiful.
We are getting their space back and you see sixty five bytes from Google dot com.
It means my machine has internet connectivity.
OK, next here on RedHat eight, I'm going to do the same thing.
Google Dotcom.
OK here.
I'm getting a response to support of my machines both on my Linux servers are up and running.
I'm sorry, not letting the machine up and running, but they are able to connect to the Internet.
All right.
Next thing is install cockpit package as a route.
If you are not logged in as rude, then you have to do Sudoku and then then run the command like youm
slash DNF install cockpit minus Y.
And that command is used for RedHat or Santos operating systems.
If you're using a bunta, you would have to use app dash, get install cockpit.
All right.
So let's go back into a Linux servers, OK, before you go in and do the installation or run the command
of installing cockpit, let's check to see if we already have that package installed.
So I have right here my Linux RedHat eight machine.
I'm going to clear the screen and to check if I had the package install, I would run the command R.P.M.,
which stands for RedHat Package Manager.
It's just a command which will tell you if a package has been installed on your system or not, then
you would use the option.
Q Query all A and then grep type it and grep for Kopacz.
All right, it looks like I do have the package, all the necessary dependent packages, everything
has been installed.
Great.
Now, let me do the same thing for our Santoso seven.
Let's clear the screen r.p.m. dash keyway and graph for.
Cockpit.
OK, I got the job back, I didn't get anything, so it means I do not have that package installed.
So what I will do is I'll run the Anjum install.
Cockpit and minus y, the option I'm giving is because if it's going to ask me any dependency, do we
need to install the other package because it dependent, I want it to answer yes.
OK, it's going to the repository is checking any dependencies, it got into all the dependencies you
saw up there, it started installing right away, it's downloaded and installing.
And the reason it didn't ask me for the confirmation is because I had provided the minus Y option.
All right.
Beautiful.
Everything has been installed, verified.
Good.
Now, I'm going to go check R.P.M. keyway and grep for cockpit to see if that package has been installed.
Beautiful, it is installed, so now both of my servers have the cockpit package installed coming back
to the PowerPoint slide.
Next one is start and enable the service.
So the package is there.
Now we need to start its service, the associated service and the service name is Cockpit.
You could use just a cockpit or cockpit dot service.
So let's go back into our Lennix machine.
So before I start, I wanted to check the status if we have that service already started and running
system CTL status.
Cuthbert.
OK, here you notice that I have the service loaded.
But it is inactive.
It's not running.
OK, so I have to start the service here.
So System CTL.
Start, it has started now.
Check the status people will see right here in this command just wanted to show you and it says Loaded
and its active status is active and running.
Let's do the same thing on seven system.
CTL status.
Nope, it's not loaded and it's not running, so we have to.
Start.
Service, it has started.
Let's check the status bill full right here.
Loaded and it's active and running now.
We wanted to enable it.
So this way, when my computer or my Linux machine restarts, it starts the cockpit service with it.
So I'm just going to hit up Arrow Key and I'm just going to do an able.
OK, for RedHat eight, I have already enabled the service earlier, so next thing we have to do is.
Check the status of the service, we have already checked it system CTL status cockpit to see if it's
up and running.
We did that and the next thing is to access the web interface.
To access it, you have to do a call in one eye to 168 one dot.
This is the IP of your Linux machine calling nine zero nine zero.
So this cockpit application, the Web interface application runs on Port nine zero nine zero.
So let's go into our machines and let's check the I.P. address by typing if config.
And the interface that I have is ENPI zero is three, I could do that in P0 three and you will see the
IP address right here.
If you do not remember the interface three, then you could just simply type if config, sorry if config
and it will show all the interfaces.
But you are looking for the one right here.
So ten to 53, one to 59 for my RedHat eight machine.
Let's clear the screen and let's use it.
Another command IP address here.
I have this ENPI zero S3 and my IP address 10, 253, 1.0, 18.
So one is one 18 and one is 59.
So let's go into our let me close this.
I had that open, so let me go into HTP s colon slash slash 10 253 to one dot eighteen colon nine zero
nine zero hit enter one point eighteen is my red hat etc..
So if I go back into my red hat it's over.
I had ten to fifty one dot eighteen for my s.o.s seven.
I have fifty nine so I could come here, close this and I'll type P.
S.
For secure tend to 53 dot one dot 59 colon nine zero nine zero.
OK, you have to make sure that the firewall is disable on your Linux machine as well, for you to connect
from your desktop machine to your Linux machine.
If you do not want to disable your firewall, you can simply go to application via for Firefox, open
up a Web browser, and you could simply type HTP as colon slash slash localhost or the are the IP address
of this machine, which is 10 to 53 dot one dot 59 colon ninety ninety hit enter and you're going to
see it will take you to that site.
So it means this machine.
If I'm not getting an access from my browser, that means the firewall is running.
So what I could do is I could go into the Linux Center a seven and I could stop the firewall.
So for that I have to do system ctrl stop firewall D.
OK, it has stopped now let's go and refresh, right?
We got that potential security risk message, which means we are accessing through the secure website
for four three.
That's where we're getting this error message.
Click on it fast and click.
Accept risk and continue.
All right.
Beautiful.
So now we have right here, this is our sent a RedHat eight and this is R Santos seven.
All right.
So let's go to Red Hat eight.
First login as yourself I absol if you have a local user or you could just simply log in as route.
Let's try the same thing here, you I'm sure you remember the password, let's log in on both sides.
OK, so here you'll see you'll get a lot of different options, a lot of different tools on the left
hand side.
This is your hostname of your Linux machine and it's telling you running Red Hat Enterprise, Linux
Etat for last login, the health status, the security updates are available.
So if I click on it, it will go fetch this updates and install them and it will give me the health
update and give me the health of my system, the usage, CPU usage, memory usage.
If you want to see detail, history will click on that system.
Information IP sorry, ID uptimes been 16 minutes.
My host name system time domain performance secure and all that information.
You could find it here right from this page.
You could reboot the machine or shut down the machine as well.
Now of course you have to log in as route to do or perform both of these functions.
As a regular user, you cannot you will not get these two options.
All right.
Moving on to the next tab, our next option on our navigation tree here we have logs.
These are the logs that we have available.
If you wanted to see error and above critical only emergency only you could see all of that.
You could modify if you want.
If you just want info.
And above you'll see all these logs, information storage.
This will tell you your storage information and your your device name.
What where is it mounted to?
What's the size.
This is exactly as if you were running D.F. minus H Command.
You will get both of the petition C right here.
It's I skuzzy targets and it tells you the total size of your desk, which is Dev SDK and it tells you
is 20 gig store log.
So you have more information about your storage right here.
You'll also get more information about your reading and writing performance.
Then we'll go to networking on the networking side.
You'll see it showing you both of your interface ENP, S03 and Virtual Adapter.
So you could create a bond if you have to interface or a team, which is both are the same team is just
a newer version.
Or you could create a bridge or add a villain.
This can all be done through this web interface.
Isn't it cool?
Yes, I did find it very cool where you don't have to remember every command.
But of course, if you are command savvy, you could just go in and run the command to create.
You are never bonding.
Are teaming.
Then this is about the containers.
Let's skip that for now, which we'll cover later on.
We'll come to the account.
If you wanted to create more accounts through your system just like that, you could click on Create
New Account.
Right now my Linux machine has only two accounts, which is route and I have so if you have more accounts,
it will show up right here.
All right.
Next is the services.
These are all the services we have running in our Linux machine.
It could take some time while it's loading will go into our Sento seven and we'll see some of the information,
which is pretty much similar to RedHat eight.
So you could get logs here and you could get networking where you have the same option to add a bond,
add a team bridge vilan.
Same thing with the accounts.
I have only two accounts on my S.O.S seven services this will load.
This has loaded pretty fast.
These are all the services that we have running.
But you could manage with System CTL command.
See right here, all of them ends with DOT service.
You could actually right here, click on it and stop and stop the service right from your web interface.
If you go back to RedHat eight and you have right here, see, it's a static enable whichever that you
want it to manage the services, you could do it right here.
Awesome.
Moving down to applications here.
We have a list of applications that we have install or you can remove it.
Diagnostic report.
This is where if you are troubleshooting anything in your computer and you wanted to collect the logs
or configuration files just like S.O.S report, then you will have to create or generate this report
right here by clicking create report.
And this could take anywhere from two minutes to ten minutes, depending on the size of your.
Our system and once you have that report generated, then you could download and send it off to read
had supported, they could take a look.
Then we have Colonel dump information, reserved memory and where is it located?
SC Linux functionality can be pulled from right here.
You could control your SC Linux, how you can assign you can enforce it or disable it or provide permissive
information system software updates right here.
Whatever the updates available to you, you could download and you could install, you can install all
updates in one shot right here, just like as if you're running in Linux Jum install or youm update.
Sorry, Yump update or upgrade.
Then you have subscription.
What is the subscription that you have.
It says the subscription right here, RedHat Enterprise for 86 64.
If I expand it, it will tell me more information when it starts.
What is the status and when it ends.
Now another cool thing is terminal.
This is the terminal.
Let's say if you are if you're using your Web interface, you could run the same command that you were
run on your PUDI or any of the console terminal.
Isn't it cool?
This is also one of the coolest feature of this web interface.
Moving back to S.O.S seven.
Pretty much all.
Everything is the same.
A few of the options are not there for seven that are available in eight.
Then if you want to access the terminal the same way, you come here and access the terminal.
All right.
So spend some time on this web interface.
And this is the newest feature that's been added in a newer version of RedHat eight.
But the good thing is that you could also install that on version seven if you wanted to use it on S.O.S
or RedHat, seven versions.