2 videos 📅 2024-06-03 09:00:00 America/Detroit
9:19
2024-06-10 10:35:25
16:05
2024-06-10 17:41:27

Visit the Introduction to Linux & Networking Fundamentals course recordings page

United Arab Emirates - Introduction to Linux

                WEBVTT

00:00:15.780 --> 00:00:25.900
Okay, so usually when we first go into a machine, what we always want to do, we always want

00:00:25.900 --> 00:00:35.380
to update it to the latest version, like whatever is here. And what we're going to do, if you're

00:00:35.380 --> 00:00:45.480
in there now, we can do this sudo and then update, if you can see that. So that, just

00:00:45.480 --> 00:00:51.260
that, yeah, sudo update. And what's going to happen is that package managers, what they

00:00:51.460 --> 00:00:57.680
want to do is, this is going to ask the package manager, what the package manager is, that's

00:00:57.680 --> 00:01:03.440
like the software catalog of Ubuntu. And it's got all of the latest versions in it, but

00:01:03.440 --> 00:01:07.760
we don't know what the latest versions are yet. We don't know, they could be out-of-date.

00:01:08.540 --> 00:01:14.720
So it's going to go through and it's syncing our database of what the latest version

00:01:14.720 --> 00:01:24.540
of everything is with this. So we've got that now. And what we want to do is, we can type this,

00:01:25.200 --> 00:01:34.860
apt, and then hyphen, hyphen, list, upgradable, or actually just list, and then hyphen, hyphen.

00:01:39.600 --> 00:01:51.780
Yep. Okay. So we can have a look at this. And what we want to do is, we always want

00:01:51.780 --> 00:02:00.280
to have the latest of everything. Because it doesn't matter what the reason is, whether

00:02:00.280 --> 00:02:05.120
it's a security bug that's already out in the wild, or whether it's just a feature enhancement,

00:02:05.320 --> 00:02:10.600
we want to make sure we've got the latest. And all you guys got today, I can actually

00:02:10.600 --> 00:02:15.960
see it on here, don't need to ask, but, and what we want to do to do that, we want

00:02:15.960 --> 00:02:24.440
to do sudo apt and then upgrade, and then we want to put that minus y in it.

00:02:31.640 --> 00:02:38.600
Well, upgrade will upgrade you to the latest versions. Update will just update whatever

00:02:38.600 --> 00:02:45.560
is there already. So, like, it will just, if there's, say, like, a version 6 instead

00:02:46.100 --> 00:02:53.340
of like a version 5.8 or something like that, if you were working in an environment

00:02:53.340 --> 00:02:58.760
where you're running web servers and everything's so crucial, you'll probably just do update

00:02:58.760 --> 00:03:04.020
because it's not going to, yeah, you're not going to get anything broken. There's not

00:03:04.020 --> 00:03:07.720
going to be anything that you have to worry about unless they're stupid and they kind

00:03:07.720 --> 00:03:13.440
of do that. They're snucking things to break things. But yeah, that's what you always

00:03:13.440 --> 00:03:17.060
want to do. You always want to make sure that you've got the latest version of something.

00:03:18.940 --> 00:03:20.900
Okay, I'm just going to have a look at this.

00:03:30.160 --> 00:03:37.540
So these will kind of take a little bit to go through, and the thing is that any time

00:03:37.540 --> 00:03:44.460
you do this, you could end up with the system broken. So that's where sometimes

00:03:44.460 --> 00:03:48.880
you might want to just do, there's another switch you can do just for security updates,

00:03:49.420 --> 00:03:52.560
which is what you'd want to do if you have a web server or something. But because

00:03:52.560 --> 00:03:56.380
we're starting from scratch with nothing else there, so you want to do, and you

00:03:56.380 --> 00:03:59.900
can see something that's come up here. It might come up with your ones. I'm not sure.

00:04:00.000 --> 00:04:09.600
Yeah, it has. What we have, there's a newer kernel available. You see, it's not going

00:04:09.600 --> 00:04:16.040
to be a big problem. Sometimes you might have compiled your own kernel to run some

00:04:16.040 --> 00:04:22.320
kind of different Wi-Fi or different thing that you've got. This is more for desktops.

00:04:22.880 --> 00:04:34.220
Or this is like, you can see this, 6.5-1017-AWS. AWS has their own kernels, and we don't

00:04:34.220 --> 00:04:38.540
need to go into what the kernel is. Really, kernel is just like the lowest part of the

00:04:38.540 --> 00:04:44.240
operating system, just what kind of runs it. OS, bit of the OS. It's like if,

00:04:44.500 --> 00:04:50.400
nobody probably uses Android phones here, but ROMs, you know, if you put a new ROM

00:04:50.400 --> 00:04:54.720
on your phone, it puts like a bootloader on it. It's not a bootloader, but it's

00:04:55.540 --> 00:05:02.360
the most basic part of it. So what we want to do, we'll do okay. We don't need

00:05:02.360 --> 00:05:09.960
to restart. So we can choose here what services we want to, should be restarted.

00:05:11.560 --> 00:05:16.040
We don't really need to worry about this because we're not doing anything here.

00:05:16.640 --> 00:05:22.040
We might not want to, we might want to do it out of business hours. We might want to

00:05:22.040 --> 00:05:31.100
wait to restart something like a NFS server. NFS server is an extension of your file system,

00:05:31.720 --> 00:05:37.020
like a web disc basically, and if we restart that, it might try to do it gracefully,

00:05:37.020 --> 00:05:41.920
but it might not. So you might make people lose work. But in this environment, what

00:05:41.920 --> 00:05:47.420
we're doing here, we don't have to worry about anything. Yep, so we've got like an

00:05:47.420 --> 00:05:53.160
up-to-date system now, which is a good thing. They can't continuously update all of the

00:05:53.160 --> 00:05:58.180
distribution files that you download from the internet, so they do it like this,

00:05:58.720 --> 00:06:05.120
just like your Mac or your phone updates. So what I'm going to do here, I'm going

00:06:05.120 --> 00:06:15.620
to install, I'm going to install Netcat here. You can do the same thing. Yep,

00:06:16.160 --> 00:06:29.440
apt install Netcat. Yep, it's going to bring up this warning each time. Okay,

00:06:29.560 --> 00:06:33.120
so we'll be able to see back here and see what it actually did. If it didn't,

00:06:33.120 --> 00:06:50.400
yep, it did do that. Okay, so what I'm going to do here, I'm going to start this Netcat.

00:06:51.040 --> 00:07:03.100
We can run it with this NC. Now, this is running here. This is running here.

00:07:03.120 --> 00:07:10.340
It is 12345. That is the port that it's running on. But we won't be able to get to it because

00:07:10.340 --> 00:07:19.700
we've got the firewall there. We need to open this port up. Yep, and that was 12345.

00:07:21.480 --> 00:07:32.640
Yep, so what we want to do here is we want to add it into here. And this is

00:07:32.640 --> 00:07:48.380
where we can just do a custom port. Okay, now what we want to do is in your browser,

00:07:48.460 --> 00:07:57.780
what you can do is you can do this NC and then this IP address here. Yep, just this

00:07:57.780 --> 00:08:11.240
one here. This, if you can see it there, this 18. Yep. Yep, got that. I could put it

00:08:11.240 --> 00:08:18.080
in like a thing. Yep, you've got that 18. What you can do as well instead of that

00:08:18.580 --> 00:08:24.100
is because we've got this host name on here, you could go to something dot, instead

00:08:24.100 --> 00:08:29.140
of using that IP address, you could just use something dot digital signage magazine

00:08:29.140 --> 00:08:39.840
dot dot com. Once we've hooked up like a DNS name, we can use that for anything. Just

00:08:39.840 --> 00:08:51.180
this here, this something dot. And you could actually do that from your Mac as

00:08:51.180 --> 00:09:06.120
well. Mac has Netcat built in. Just having a look at your desktops.