 Ok, welcome back to the channel everybody, my name is Matt and today I'm going to be doing a tutorial on how to install Ubuntu in VirtualBox. This I'm on Linux right now as my main computer, as my main host, but this should work in Mac and Windows as well, basically the same. So first we'll talk about prerequisites, and these are things that I'm not going to cover in the video, so you should have to know how to do these. First thing you'll need to do is download an ISO, specifically if we're going to do Ubuntu you'd want to do the latest Ubuntu ISO or the LTS, whichever one you choose to install. You'll need to have VirtualBox installed obviously, it's very easily. It's in the Ubuntu repose, it's in the main arch repository, pretty much any repository. I'm pretty sure there's a snap or a flat pack of it, but I might be wrong about that, I'm not sure. I don't use snaps or flat packs, it's pronounced A-U-R. And the big one is you'll have to have virtualization technology enabled on your mother board. Again, this is something that I'm not going to cover in this video, mainly because it's different for every mother board, so you'll have to find out what mother board or computer you have and then do a Google search on how to enable virtualization technology on your particular mother board. Because like I said, it's different for every mother board and every CPU combination. I'm on a rising system, it was just a checkbox in the BIOS, so it wasn't that hard, it was just something that you have to do, otherwise it won't work. Alright, so the first thing you want to do is open up VirtualBox, which I've already done, I have that here. Unfortunately, I can't make this any bigger, so you'll just have to make this full screen or something so you can see the things. So the first thing you want to do is click Machine, and then New, and you'll want to then name the virtual machine you're creating. So I already have one called Ubuntu 2010, I'm just going to call this Ubuntu 2, and then you'll want to, chances are you'll probably just want to keep this machine folder as the default. You want to select Linux from the drop down here, and then the version of Linux that you're installing. So a lot of times it will do this automatically, it's already chosen Ubuntu, make sure you choose the right bit type for it, chances are it's going to be 64 bit, Ubuntu doesn't supply 32 bit ISOs anymore, so 64 bit is the one you want to use. And then check Next. This next one is Memory Size. Now, one gigabyte, which is 1024 megabytes, is never usually enough, so you can either double that, I usually give it close to 6, because I have 64 gigabytes on this machine, so 6 is just 10%. And then check Next again. The next thing you'll want to do is check Create Virtual Hard Disk Now. So this test one here, it's the default selection, you just leave that and hit Next or Create. The next one you want to check is VHD, is the one that you want here. And then you want to make sure dynamically allocated is selected. This basically just means that it will dynamically allocate the hard disk file size, so it doesn't take up your whole hard drive. And then here's where you choose how big your hard drive is going to be, your virtual hard drive is going to be. 10 gigabytes is not really enough, so I usually choose between 20 and 25, just, you know, in the middle, it doesn't really matter. And then hit Create, and you've created your virtual, now there's some things you still have to do. So the next thing is you'll want to go through here and right click and hit Settings, and see if I can get this down there in the center of the, all right. The first thing you want to do is go to, I can't remember, the next one. So you want to make sure your processor has more than one core. So I always put two, that should be fine. The next one is you'll want to go down here, user interface and make sure that show in full screen mode is unchecked. And then you'll also want to go here to display and make sure that the video memory is cranked all the way up. And then to install first, you have to go to Storage, click Empty, and then click this blue CD looking thing over here and then click Create, choose or create virtual optical disc, and that's just going to take you to a file browser. So you're going to hit the ISO that you downloaded, hit Choose, and you see now this, here instead of saying empty, it has the name of the ISO that you downloaded, and hit OK. OK. Now you're ready to go through and hit Start, OK. And then you'll get, here you'll, you just go ahead and start there again, and then it will boot into the live CD and you're ready to install Ubuntu. See if I can make this, it's not going to go full screen until it's into the live disc, and it may not do it until you've installed Guest Adjectives as well, which I may or may not go through at this time. I might do a different video on that, OK. So let's see if, yeah, here we go. This is the full screen, or as good as full screen as you're going to get at this point. Yes, yes. Anyways, this is just a regular Ubuntu install. If you've installed Ubuntu before, you're just, you know, make sure your keyboard works. I always uncheck the updates, because I always do the updates afterwards, because it never does all the updates, and then you do click this one, and you can choose between normal and minimal, continue, and this will take a couple of minutes. Sometimes it depends on how big the disc you made is. You raised this list. When I did this the first time, I had an error. So let's see if this does an error again. Oh, no. Oh, yep. Now, I'm not sure what this error actually does or reason for it, but you just hit OK, and I'm going to have to get out of full screen here. Or I guess I can't get out of full screen here. We'll do this. We'll have to. That error there came up the first, and you just have to restart the VM, which is not letting me do because I'm full screen. I shouldn't do it full screen. All right. Well, you know, there we go. Just power that off. All right. So if it does, if there, if that happens to you, and I'm not excited, I'm not sure what the error means. I think just if I remember right, just restarting it worked fine. I feel like there's a step I'm missing that I used to fix this. That way we're not in full screen anymore. There might have been a setting I missed. I do believe I know how to do this. But actually, you know, the thing I think I changed the last time to fix this was giving it more cores. So I'm not sure why. All right, let's give this a try again. Oops, hit the back button instead of forward. Try again. See if that error comes back up again. If it does, then we'll I'll pause the recording and see what I can do. Install now. Continue. See just restarting it worked. Continue. And then you just type in your usual name. I'm Matthew Everett, where I leave the computer name the same. Okay, and continue. And then it's going to install Ubuntu. Now this takes anywhere between 10 and 15 minutes. Usually sometimes it's quicker than that. Sometimes it's a little slower. Depends on how many cores you allocated it and whether you're not, you're running out on a solid state drive. All sorts of things play into the time. So I'm going to go ahead and cut out the video here. And when we come back, Ubuntu will be installed. Okay. And Ubuntu has been installed. So all you have to do now is just hit restart and it will restart. Here's where things change from normal. So I hardly ever removed the installation meeting when I'm actually starting on actually installing on actual, you know, hardware, but in a virtual machine, you have to do that. So you have to shut the machine down. So go up here and hit close. And then, okay. And then you have to go back over here to your machine, hit settings. And storage and makes where it says, make sure I did the right one. Yeah, I did the right one. Storage. All right. So in yours, very likely, I don't know why mine's not showing it, but this won't stay empty anymore. It'll still have the Ubuntu ISO attached. You'll just have to go over here and make sure you hit not make, make sure you remove it. Okay. Um, and then just hit. Okay. So now that that's done, I'm going to go ahead and show you how to install the guest edition so that you can make it full screen and it'll actually work. Now this works way better if you're not in a tiling window manager to begin with. Um, so mine's going to be look a little wonky, but just deal. You know, yours will probably look a little bit different, but I'll show you how to do, how to do that very quickly. It's easy. I wait for Ubuntu here to start up. And then you enter your password and Ubuntu is going to start up for the first time. And I'm just going to skip next, next done. Okay. So then you want to open a terminal. Okay. And you're going to want to type in, uh, first, you're going to want to make sure your computer, your system's up to date. I already did that. So you'll want to do sudo apt install dash, why that just means it won't ask you to confirm, uh, DKMS and build essential and Linux, oops, Linux, headers, version. And then enter your password. Oops, that's obviously not the right one. I did that again. One of these days I'm going to remember to do, write this down before I just, and that website's completely unreadable. Okay. All right. Here we go. Sorry about that. So we just go back here. Linux dash headers, uh, and then the dollar sign slash, uh, uname dash R. And that's just going to, uh, replace that with the version of the Linux headers that you need for your specific kernel. I forgot. I always forget to do that. That it's not the version, version doesn't do that. It's, that's dumb. So it just goes through and install this stuff. Um, these are just prerequisite or, um, dependencies that you'll need for the guest additions. Now, what the guest additions do is they allow you to basically make it show your clipboard works between your virtual machine, your regular machine. Your mouse works between your virtual machine, your regular machine. And it also, uh, allows you to go full screen and change the, um, change the resolution. So to do that, you want to go up here to the, um, menu and click devices, then insert guest addition CD image. And if you've did the dependencies already, you'll get this little popup. You'll just run. It'll ask you for your password. And then it will go through and do this. Now this will take a couple of minutes, uh, I think, right? I'll probably cut this part out here as well. There's no sense in you having to sit here and wait through all this. And you could just go through and get to the end. Oh, when, here's the end, maybe I won't cut it out. I didn't take that long after all, you just hit return. All right. Now, the next thing I want to do is shut down your machine again. And I do, I'm just going to do it this way. It's just, it's, all right. And then you want to go to here and hit settings and general and advanced. And do both of these here, shared clipboard and drag and drop. You want to use bi directional. That just means you can go through and use your clipboard in your virtual machine. And it will be clappy to your system clipboard and vice versa. Okay. And then you just hit start again. Now, if you remember to turn off your little menu there at the bottom, uh, when, once you're logged in, you should be able to go full screen. And you won't have these huge, you know, great bars along the side. And we'll see if I'm being a liar or if it actually works. So in order to go full screen, once this loads up, he hit right, control and F. And there you go. Full screen. And you have him boot to install. And, you know, things are working here. You know, internet should be working, your email, whatever you need to use. Um, it's the most simple way to install a virtual machine. And that's it. So I want to thank you for watching this video today. If you really liked it, give it a thumbs up, hit the subscribe button, maybe the notification icon. If you're interested in seeing more tutorials, podcasts and, uh, ranting and rantings and ravings for me. Uh, give those buttons a smash. I mean, that's what a YouTuber says, right? Smash the like button. That's one of how many people have actually broken their screens by smashing the like button. Anyways, I'll see you next time.