Visit the Introduction to Linux & Networking Fundamentals course recordings page
United Arab Emirates - Introduction to Linux
WEBVTT--> Okay, so usually when we first go into a machine, what we always want to do, we always want --> to update it to the latest version, like whatever is here. And what we're going to do, if you're --> in there now, we can do this sudo and then update, if you can see that. So that, just --> that, yeah, sudo update. And what's going to happen is that package managers, what they --> want to do is, this is going to ask the package manager, what the package manager is, that's --> like the software catalog of Ubuntu. And it's got all of the latest versions in it, but --> we don't know what the latest versions are yet. We don't know, they could be out-of-date. --> So it's going to go through and it's syncing our database of what the latest version --> of everything is with this. So we've got that now. And what we want to do is, we can type this, --> apt, and then hyphen, hyphen, list, upgradable, or actually just list, and then hyphen, hyphen. --> Yep. Okay. So we can have a look at this. And what we want to do is, we always want --> to have the latest of everything. Because it doesn't matter what the reason is, whether --> it's a security bug that's already out in the wild, or whether it's just a feature enhancement, --> we want to make sure we've got the latest. And all you guys got today, I can actually --> see it on here, don't need to ask, but, and what we want to do to do that, we want --> to do sudo apt and then upgrade, and then we want to put that minus y in it. --> Well, upgrade will upgrade you to the latest versions. Update will just update whatever --> is there already. So, like, it will just, if there's, say, like, a version 6 instead --> of like a version 5.8 or something like that, if you were working in an environment --> where you're running web servers and everything's so crucial, you'll probably just do update --> because it's not going to, yeah, you're not going to get anything broken. There's not --> going to be anything that you have to worry about unless they're stupid and they kind --> of do that. They're snucking things to break things. But yeah, that's what you always --> want to do. You always want to make sure that you've got the latest version of something. --> Okay, I'm just going to have a look at this. --> So these will kind of take a little bit to go through, and the thing is that any time --> you do this, you could end up with the system broken. So that's where sometimes --> you might want to just do, there's another switch you can do just for security updates, --> which is what you'd want to do if you have a web server or something. But because --> we're starting from scratch with nothing else there, so you want to do, and you --> can see something that's come up here. It might come up with your ones. I'm not sure. --> Yeah, it has. What we have, there's a newer kernel available. You see, it's not going --> to be a big problem. Sometimes you might have compiled your own kernel to run some --> kind of different Wi-Fi or different thing that you've got. This is more for desktops. --> Or this is like, you can see this, 6.5-1017-AWS. AWS has their own kernels, and we don't --> need to go into what the kernel is. Really, kernel is just like the lowest part of the --> operating system, just what kind of runs it. OS, bit of the OS. It's like if, --> nobody probably uses Android phones here, but ROMs, you know, if you put a new ROM --> on your phone, it puts like a bootloader on it. It's not a bootloader, but it's --> the most basic part of it. So what we want to do, we'll do okay. We don't need --> to restart. So we can choose here what services we want to, should be restarted. --> We don't really need to worry about this because we're not doing anything here. --> We might not want to, we might want to do it out of business hours. We might want to --> wait to restart something like a NFS server. NFS server is an extension of your file system, --> like a web disc basically, and if we restart that, it might try to do it gracefully, --> but it might not. So you might make people lose work. But in this environment, what --> we're doing here, we don't have to worry about anything. Yep, so we've got like an --> up-to-date system now, which is a good thing. They can't continuously update all of the --> distribution files that you download from the internet, so they do it like this, --> just like your Mac or your phone updates. So what I'm going to do here, I'm going --> to install, I'm going to install Netcat here. You can do the same thing. Yep, --> apt install Netcat. Yep, it's going to bring up this warning each time. Okay, --> so we'll be able to see back here and see what it actually did. If it didn't, --> yep, it did do that. Okay, so what I'm going to do here, I'm going to start this Netcat. --> We can run it with this NC. Now, this is running here. This is running here. --> It is 12345. That is the port that it's running on. But we won't be able to get to it because --> we've got the firewall there. We need to open this port up. Yep, and that was 12345. --> Yep, so what we want to do here is we want to add it into here. And this is --> where we can just do a custom port. Okay, now what we want to do is in your browser, --> what you can do is you can do this NC and then this IP address here. Yep, just this --> one here. This, if you can see it there, this 18. Yep. Yep, got that. I could put it --> in like a thing. Yep, you've got that 18. What you can do as well instead of that --> is because we've got this host name on here, you could go to something dot, instead --> of using that IP address, you could just use something dot digital signage magazine --> dot dot com. Once we've hooked up like a DNS name, we can use that for anything. Just --> this here, this something dot. And you could actually do that from your Mac as --> well. Mac has Netcat built in. Just having a look at your desktops.