 Okay, so it's time. In this video, we are going to install Arch Linux from scratch. This has probably been one of my most requested videos ever. I get it a couple times a week. So I think it's about time to do it. In fact, I should say this is like your tax dollars at work. I actually put this up as a Patreon incentive. One of my first, I think it was like 150 bucks a month and we do an Arch Linux install. So yeah, this is uh, this is that coming to fruition. So I'm gonna take a little bit of time with this just because I think there are a lot of videos out there already on Arch Linux installation. But they're sort of geared to people who are already ready to install Arch Linux in the sense that I think in this video, I want to take a little bit more time, explain a little bit more about what's going on just to make sure everyone's on the same page. And this is gonna be one, I might actually have to break this up into multiple videos but there are gonna be two main parts and that is one is going to be the actual install and the other is going to be configuration of Arch Linux. And that incidentally was another Patreon incentive that was both of them were met in the past month. So that's good. Support me on Patreon. So anyway, the requirements for this all you need is an internet connection. So I'll go ahead and say that Ethernet is preferred. You're gonna want to have a USB drive or a CD drive or something else like that. And you should also have some knowledge of Linux. I am going to be installing this. Well, I'm gonna be formatting the USB drive on a Linux machine already. It's easier if you're already on a Linux machine or an OS X machine. And of course, if you're moving into Arch Linux, it's probably best if you have some knowledge of Linux already. So that's just to be totally clear because I think the install process is not too difficult. You know, I'll try and make it as easy as possible as comprehensible as possible. And I'll even talk about maintaining an Arch Linux system. But I'll just say that you probably should, I mean, you maybe not want to like jump into this directly from Windows. You might want to play around with a Linux machine before that. So anyway, that's all you need. And the end result is going to be, first off, you're gonna learn a whole lot about, well, of course, you're gonna install Arch Linux. You're gonna understand a whole lot of the basic Unix commands and stuff you need. So that comes for free. You're, of course, going to have a computer with Arch Linux on it and nothing else in the sense that. So as I said, in this video, I'm just going to install it and you're going to be able to boot into a computer with Arch Linux. And of course, if you don't know what that looks like, it's going to just be like a blank screen, a blank command prompt. So again, in the next video after this or next part, I'm going to talk about how do you actually go from there? Because that's one of the things that people have a lot of trouble with because there are a lot of different choices you can make. But anyway, so in this video, we're just going to do the basic install. OK, so the first thing you're going to want to do is, of course, go to the Arch Linux website. So here it is. It's just ArchLinux.org. And as you may be able to guess, you will want to go to the download choice. And you're going to want to download in Arch Linux ISO. So you can get it either with Torrent or you can go down to one of their many, many mirrors that they have in different countries to download it. I forget how big it is. It's probably, I don't know, a couple hundred megs, so it might take a little bit. But once you do that, that's all you're going to need. Now, again, as I said, you're going to need an internet connection throughout the entire install just because we're going to be installing packages, not necessarily from the USB drive itself, but you know, or from the ISO itself, but we're going to be downloading them from the internet. OK, so the first thing I'm going to want to do is, so once you've downloaded that, which again might take some time, let's see, where is so mine? I think it's in the download folder here. So we have our Arch Linux ISO. So in order to, so you're going to want to plug in your USB drive. And I should say, if you don't know on Linux, if you want to look at all the devices you have plugged in, just go to the terminal and type lsblk, list all your block devices or whatever it is. I haven't plugged it in yet. Now notice that there's this one device here, SDA. Now, if you don't already know, I'll explain it, but all of your different hard drives are given SDA and then a letter or something like that. So SDA, here is my hard drive. This here, SR0, that is my CD drive. Now, if you have multiple hard drives, you're going to have SDA, SDB, SDC, et cetera, et cetera. So my hard drive here has four different partitions. Again, we'll talk about this in a little bit, but now once I plug this thing in, once I plug my USB drive in, if I put this in and I wait a second, you will see that another, we have SDA and now we have SDB. So SDB, it is now given this USB drive the label. Well, it's not really a label, but it's called it US, or SDB. So that's the important thing you need to know. And you need to make absolutely sure of this for the next part, because taking the ISO and putting it on the USB drive is super easy, but you just want to make absolutely sure that you're dealing with the right device. Now, let me pull that up again. Okay, so here's what you're going to want to do. First, you want to become root, so I'm going to put in my password. And the command we're going to want to use is what's called DD. So if you look, if you type in man, DD, here is DD stands, I think it stands for disk dump. Some people call it disk destroyer because it's a very useful command, but you have to be careful how you use it, as I sort of alluded to before, so I'm going to quit this. So here's what we're going to do. Now, we want to take the ISO file and put it on the USB drive that we just, or yeah, the ISO file we just downloaded and put it on the USB. And we only need one command for that, and that is DD. Then we're going to say if equals, and after if equals, we're going to put the location of the ISO file. Now that stands if is like input, an input file or something like that. So what was that? There was some downloads and then arch Linux. All right, so that's, that's our input file. Now our output location or output file is going to be SDB. So how you write that the actual location on Linux, excuse me, so O F equals slash dev slash SDB. And that's it. So don't run this quite yet. But just make absolutely sure that you were referring you were looking at the SDB drive or whatever your USB drive drive happens to be on your computer. Just if I were to accidentally type in SDA here where SDA is the actual hard drive on my computer. This would wipe my entire drive. So that's why they call it disk destroyer be extra careful with it. So you want to have SDB or whatever it gave your USB drive. So make absolutely sure of this. I'm looking at this right now. So right. So this is 7.5 gigs. That's probably my USB drive. All this is, you know, actually I don't have a very big drive here, but whatever. So anyway, once you do that, another thing you might want to throw in just because it's going to take a little time is status equals progress where progress is in quotation marks. And this is just if you just run it without this, it's going to, you know, transfer all the files, but it's not going to give you any feedback. But if you say status equals progress, it's going to show you as it loads how fast it's loading, how much more it has to go, etc, etc. So now I am absolutely sure this is going to work. So I am going to run this, press enter. And as you see, it's going to be copying it over. So this is going to take a little bit of time, probably a couple minutes. So I'm going to stop the video here and come back once that's done. And then we'll go into booting off the USB drive and actually installing Arch Linux. Okie dokie. So we're back. So mine took, it looks like only a little over three minutes. But anyway, so once you have done that, you can actually take your USB drive out. Well, actually before I do that, I'm going to type in LSBLK again. And you'll see that it, well, we have our SDB still here. It has some partitions on it, which are actually the same thing, same partitions I had before because I actually just had Arch Linux on this before. I just wanted to rewrite it for a lesser of purposes. But anyway, once that's done, I'm going to take this thing out. You don't have to take it out, but I'll just go ahead and say, so let's be clear about what we just did. Ok, the ISO file that you downloaded, that is a little Arch Linux installation that is going to be on this USB drive. So what you're going to be doing just in case, you know, you're not really clear with the concept is we are going to now reboot our computer and basically get into this installation. We're going to be running the operating system that's on the USB drive. That's the thing that we're going to be doing next. Or at least that you're going to be doing next. So I'll go ahead and say that I'm going to be doing things a little bit differently because I want to record comfortably on this nice desktop I actually have here. So I'm going to be installing Arch Linux from this installation already have, which is a little weird. But it's going to be exactly the same as what you're doing. I'll just say. So what you're going to want to do next is plug in your USB and you're going to want to reboot your computer. Now, every computer out there, sometimes they're a little different, but every computer has a way of choosing what you boot off of. And usually it consists in typing, you know, as your computer starts booting up at the very beginning, typing in F2 or F10 or F12 or something. I usually just mash them all because one of them works. I can be bothered, you know, because they're all different on different computers sometimes. But yeah, so once you do that, you will get a boot menu where you can select what to boot off of. And you want to boot off of your USB drive, which if it's plugged in, it will detect. So once you manage to do that, it will start up an Arch Linux installation and you will basically be in a nice blank screen with a command prompt. And that's what we're going to end up at. So that's what you're going to do. I'll go ahead and tell you what I'm going to do. So in case you don't know Arch Linux in the repository, actually, or I think it's the Arch Linux scripts, something like that. So Arch Linux has these Arch install scripts, which if you don't know, it's basically, it just installs all of the files you need to install Arch Linux on your Arch Linux computer. So if you want to do what I'm going to do and install an operating system on another hard drive while you're in Arch, you can use this. But this isn't important for you. I'll just say what I'm going to be doing is I have an extra hard drive here with a nice USB to SATA connector. And I'm going to be connecting this to my own computer. So let me show you how it's going to work for me. So I'll go ahead and say when you boot up on your computer, you are going to the first command you're going to want to run is probably LSBLK, right? So I'm going to run it. I'll go ahead and run it online. Here I have the same hard drive as a dev SDA. This is the hard drive my operating system is on. And you are going to have the hard drive on your computer and the USB drive. Now I'm plugging in this nice little portable hard drive. And if I type in LSBLK, now you will see that this is the hard drive in my computer. And this hard drive here is the one I want to install Arch Linux on. So the one that you want to install Arch Linux on is, you know, the hard drive in your actual computer. It may be dev SDA or SDB, et cetera, et cetera. It can be different things. So just be mindful of it. Look at the drive size. Just make sure you know which one you're going to be looking at. But I'm going to be working on dev SDB. Usually if you're booting off a USB, you're probably going to be working with dev SDA. That's usually what your main hard drive is. Okay, so let's actually get the show on the road. How are we actually going to go about installing Arch Linux? So once you have booted up into your USB drive and once you know which drive you want to install Arch Linux on, you will be all ready. So you're going to have a nice little command prompt with nothing there, which is going to be even more minimalist than what I have right here. Now the first thing you're going to want to do is check to see if you have to have a UEFI system. Now I am going to be, so if you don't know what these words mean, just ignore this part. And I'll tell you what to do. But if you are using a system that requires UEFI, I'm going to be installing Arch Linux for traditional BIOS. So this is not going to be compatible with a computer that uses UEFI and requires it. If you have the choice, I always recommend use a traditional BIOS. There are different reasons for that. UEFI can just be a pain. I know there are some advantages. Someone's going to bother me about this, but I always recommend traditional BIOSes. Now to check to see if you need UEFI, you want to type in lsysfirmware efi, and then I think it's fevars, something like that. Now if I type this in, nothing's happening here. There's no folder directory here. That's because this computer here uses a traditional BIOS and nothing else. Now if you type this command in and you get a bunch of results, like a whole bunch of files show up, you might have a computer that requires UEFI. Now if you do, I'm going to put a link in the description for another install video where they show you how to install it on a UEFI device. But the only thing that's going to be different for you in this installation process is how you partition drives and when you install a bootloader. The rest of this is going to be exactly the same. So if you type this in and you got the same error I got or nothing was there, you can follow exactly what's in this video and not have to worry about it. But just know that that's out there. So anyway, let's go ahead. The first thing you're going to want to do is ping a website. So I'm going to ping my website, my home page, and it looks like I'm getting results. So I'm getting data back. I'm going to control C to stop that. So you want to make sure that you have an internet connection. You can check it with ping. Again, as I said, you probably are going to want to have an Ethernet cord. If you don't, you can run the command Wi-Fi menu. And Wi-Fi menu will actually search all the different Wi-Fi networks and you can choose one and put in a password for one. I always recommend just use Ethernet. It's way easier. You shouldn't have to set anything up if you have Ethernet. Okay, so I'll also go ahead and say another thing you want to do is time date CTL. And we basically want to make sure that our clock is all good. So just run that and that's just the detail you don't have to. But anyway, let's go ahead and get into this. The first thing we're going to do is we want to partition our drive. So I'm going to lsblk again. And the drive that I want to install on is devsdb. So each drive can have different partitions. They're separate sections where you can basically keep different files. They're different sort of, well, I'll put it this way. The reason you want to have partitions is because let's say that I install Arch Linux and something goes terribly wrong with my system. And the drive messes up in a part like totally malfunctions in the root directory or something like that. And if that happens, a lot of times if you just have one drive, that's a lot more problematic if you want to reinstall something or reformat it or fix it. It's always nice to have partitions to divide your system into different partitions and put them basically, it's sort of like having your eggs in different baskets. Now there are other reasons as well. I'll just say it's good form to always have different partitions. So the first thing we're going to do is take our drive and cut it into a couple partitions for all the important things we need in Arch Linux. So we can use the command fdisk for that. So just run fdisk devsdb and just type that in. Now you are in a new command prompt. Now as it says, you can type in m for help and it gives you some of the different commands that you can actually run. So if we type in p, that is going to print out everything that's in our drive right now. So here's our drive, it just has one big, so we're in devsdb. It only has one partition called devsdb1. Now the first thing we're going to do is I'm going to delete that partition. Just type in d and it's going to say it's been deleted. If you have multiple partitions you'll have to press d a couple times for each partition. Now we're going to want to put, well actually I'll type in p again. Now we just have, we have no partitions. So now I'll go ahead to create new partitions you're going to want to press in. I'm going to say the default for primary partition. Then you can give it a number, I'm just going to give it one. First sector, just again press enter, you don't have to worry about that. And then last sector, let me remove this for a second. So this is basically asking for how big you want this partition to be. So this first partition we're going to make, this is going to be our boot partition. This is going to be where all the grub menu and all the important stuff we need for installing. This is where we're going to put that. Now I usually make mine 200 megs. So I'm going to put in plus 200 MB, or excuse me it's just M in this program. And if I run that it's going to, sometimes it'll ask you if you had a previous partition there it's going to ask you to remove the signature. If so just say yes. And then that'll be done. You can press p again and it will print out. You will now see that you have this new partition. It starts at this, it's starting in values are here. This is basically the size, well here's the size and readable format. So that is now our boot partition. So I'm going to do the typical format where you have, usually what you use for Arch Linux is a boot partition, a swap partition, a root partition and a home partition. And I'll explain those as we go on. So we have our boot partition. I'm going to type in again and then I'll go with p for the default. Go with 2 for the default. First sector, just press enter. And this is going to be our swap partition. So this is for when you hibernate your computer or different things like that. There are a bunch of different recommendations about the kind of size you should have for this thing. I'm just going to say, I think the typical rule of thumb is 100 for 50% of your RAM size. So if you have like 8 gigs of RAM, you should have a swap space of 12 gigs or something like that. So that's the size I'm going to go with because I don't have 8 gigs of RAM on this device but it has a potential to have 8 gigs or whatever. So I'm just going to type in plus 12G for 12 gigs. So I'm going to run that. And now if we print our partition table out once again, we will see we now have SDB1 and SDB2. So 2 more to go. Now you know how to do it though. So I'm going to type in in again for new, default value, default value, first sector, default value. Now this third partition, this is going to be the root partition. That is, root isn't just the slash. So this is going to be where all your programs are going to be. And it's safe to have some Linux distributions get away with having less than 10 gigabytes for this. I think that's really pushing it. I would say a consistently safe size is probably 25 gigs. You could probably do more, probably do less. It depends on how much stuff you actually want on your partition. But I would definitely say at least 15 gigs if you're having a normal computer. If you're the kind of person who installs lots and lots of stuff and you just sort of keep it on your computer, you should probably have more than 25 gigs or so. I'm going to put plus 25 gigs. That's going to be enough. And it's asking me to wipe the signature. Just say yes. It may or may not ask for that again. And last but not least, we're going to have the home partition. And the home partition is going to take all the rest of the space. That's going to be where you have all your files. That's going to be where you store all your stuff. Well, it's not the most important partition. Root is probably the most important partition. But home is the most important one to have lots of good space on. So this is where you put all the rest of your space. Again, new partition, P for primary, first sector, just press enter. And for last sector, if you just leave it empty and press enter, it's going to fill it up with all the rest of the space. So now I'm just going to again press Y for yes. And if we print that out again, here we go. We see we have four nice partitions. This is perfect for a good Arch Linux installation. This is the hard part. Don't worry. And it also gives us little warnings just that, you know, all these previous partitions, previous, you know, they're going to be wiped or whatever. So that's that. All right. So once you're done with all this, you have everything, you want to type in W. And W means write. That means it hasn't actually changed anything on your partition. But once you type in W, it's going to write all those changes to, and your hard drive will be reformatted. So I haven't said it explicitly, but in case you don't know, this is going to wipe everything you have on the computer you're dealing with. So which means back everything up. This might be a bad time to tell you that. But yeah, you are going to be wiping over everything else. Now, I will say I mentioned, you know, partitioning. One of the reasons that you want to partition your device, you want to have a separate route and home and stuff like that, is let's say that you don't like something goes terribly wrong with your Arch Linux installation or you, I mean, Arch Linux doesn't actually break all the time. I'm sorry. But let's say you try something really innovative and you totally mess up your user directory or something like that. And if you have different partitions, it's very easily to totally wipe your route partition and go in and just install a new system and not have to move your home partition. All of that stays exactly where it is. But that's one of the reasons you want to partition. Anyway, long digression there. So yeah, just press W and it will overwrite all of your hard drive and that's it. And it takes you back to the typical command prompt, the typical bash command prompt. So I'm going to type in LSBLK once again. So again, on my computer, SDA, this is the actual hard drive, the hard drive in my computer, not the one that I'm installing Arch on. Sdb is the one that I am going to be installing Arch on. And you see now that it has all these nice partitions, 200 megs. Yeah, got our swap partition, our route partition, yada, yada, yada. We got lots of good stuff. Okay, so the next thing we're going to want to do is actually mount everything. So how do we... Well, actually, no, we should make file systems. You got to make file systems. That's super important. So right now we have our drive partitioned, but we have to tell... We basically have to set up file systems on all the ones we need to have file systems. So the typical file system for Linux is ext4. You don't need to know anything about it. You don't need to know anything about file systems. We're just going to do them. So to make file systems, what you want to do is... Well, actually LSBLK again. So the ones that we want to make into real file systems are the boot partition, which is number one, the root partition, and the home partition. These are the partitions that are going to be having files. Now the SWAT partition, this is not going to have a typical file system. So we're not going to be doing anything. We're not going to be making a file system on that. So anyway, to make a file system, it's actually pretty easy. Just type in mkfs.ext4. That's just the command. And then you put in the partition. So slash dev slash sdb1. This is going to be our boot partition. We'll do that. It took just a second. Then we're going to put in three for the root partition. I'm going to run that. Take a little longer because it's a little bigger. Okay. And now the home partition. Hopefully it doesn't take so long that I actually have to stop the video. Oh yeah, I guess we have a really small hard drive here. Or how big is this? Okay, 320 gigs. That might be a little bit of time. All right. I'll be back in a second. Okay, that didn't take quite as long as I thought it was going to take. All right. So anyway, now if we lsblk once again, actually, did I remember to start recording again? Give me a second. Okay. Yeah, it is. Okay. Anyway, so now we have all our different partitions and they all have file systems on them. The last thing we want to do is set up the swap partition. So remember devsdb2, that is going to be our swap partition. Now to do that, all you have to do is say in case swap devsdb2. So now it is a swap partition and you want to say swap on devsdb2. Actually, I don't know if you actually have to put the drive on there, but either way. So that's all you have to do to set up the swap. Okay, so now we have basically, we've now prepared the canvas on which we are going to write Arch Linux. The last part is just putting the canvas up. So now what we want to do is actually take those partitions and put them into the, mount them on the file system so we can actually modify them. So just to be clear, just because you plug a drive in in Linux does not mean, or any other operating system for that matter, does not mean that it's actually able to be modified at the time being, so to speak. So if you see right here, we have mount points. So again, this is my main drive here and you'll see that everything here, so this is mapped to home, this is mapped to root, this is the swap, this is the boot, et cetera. These are all mounted to particular places. Now in order to modify these drives, we have to mount them to a particular place as well. And then we'll be able to install Arch Linux on it, which is really easy. The actual installation is just like one command and then a little bit of configuring, but we're about there. So first, the first thing you want to mount is of course the root partition. So I'm going to mount devsdb3 and I'm going to mount it, the traditional place to mount it is slash mnt. You could mount it anywhere you want, but slash mnt is just tradition. So let's put it this way. So now that we have, let me ls mnt and you'll see that this nice little folder lost and found is there. That's just part of the partition. I think it's metadata or something. I'm not really quite sure. Now, so now we have mounted lsblk. We have mounted our root partition to the slash mnt on our main computer. So now we're going to want to make folders to mount the other drive. So I'm going to make a directory mkdir slash mount slash home. And now if I show it's an mnt again, you'll see that we now have a home folder and I'm also going to make a directory boot. And you'll see great. Now we have a directory boot and we have a directory home. Now what I'm going to do is I'm going to mount the boot and the home partitions to these folders. So I'm going to say mount dev sdb1, which is our boot partition, mount that onto mount slash boot. Okay, that looks good. So then we're going to map sdb4 to mnt slash home. And that's that. Great. So now that that's done, we'll do one last lsblk, which is probably like the 50th we've done. But we'll now see that our file systems are all where they should be, right? So they're all in the mnt area. Okay, so now we're getting to the part where we actually install Arch Linux. In fact, you're really just one command away from having an Arch Linux installation. You have to set up the bootloader too, but technically only one. And that is there's this magical, I'm going to type in manpackstrap, oh, there is no man manual for it, but who cares? Well, you can probably do packstrap. Okay, yeah. So there's this magical command called packstrap on Arch Linux, on your Arch Linux USB. And this is going to basically install an Arch Linux, install Arch Linux wherever you tell it to. So we're going to tell it to install on mnt. We're going to say treat that as our new Arch Linux install. And what we want to tell it to, basically we want to install the base packages, but we can also give it other things to install. So I like to always install base develop, because this package set installs, or it's really a group, I think, installs things like sudo and stuff like that and some development tools for compiling programs that you'll probably end up needing. But you can also go ahead and say, what other programs do I want on my computer? Let's say I want Vim. I'm going to want Vim, because immediately once I get into it, I want to end up using Vim, and it annoys me if it's not there. So you can go ahead and say all the programs you want to install. But once you do that, just press Enter, and it is going to synchronize the database, the Arch Linux database, and it's literally just going to download and install an entire Arch Linux system right on the MNT drive, or the MNT mount point. So you're going to now have Arch Linux on this drive. Now, as it's starting to load, this is going to take a while, so I'm going to have to cut the video off for a second. But once we do this, we'll have the entire Arch Linux on the system, but we're not totally done. We want to install a bootloader, so grub or whatever knows how, your computer knows how to actually load Arch Linux. We're going to want to make an FS tab. I'll explain what that is in a second. And we're also going to want to set up things like your internet access and stuff like that. And the objective is, once you're able to boot into Arch Linux, you have all the basic tools you need to configure whatever you want, just as long as you are totally, you don't have to rely on the USB anymore. That's the thing we're looking at, but we're almost there. So I'm going to cut this video off, and I'll see you in a couple of minutes. Well, it's a couple seconds in your time, but a couple minutes on my side. All right, so once that's done, we have a couple of options of what exactly we can configure next. There are a couple other things we need to do before we can successfully boot into the system. So first, I'm going to go ahead and make an FS tab file. So what exactly is an FS tab file? So let's put it this way. We have all these different partitions. One of them is a root partition. It has all the, you know, all our programs on it. We also have the boot and the home partition, and we, of course, mounted those a little bit ago manually. We manually said, mount the root partition here, mount the home partition here, boot partition there, et cetera, et cetera. Now, of course, when we're booting up an actual machine, you never have to tell Linux to do that. That's something that happens automatically. How does that happen, you might ask? Well, it happens with an FS tab file. Let me go ahead and say, let me pull up another terminal. Let me show you the FS tab on my computer here. Now, if you open up etsy.fs tab, this is basically a little file that just lists out all the different drives that Linux is going to try to load. So here we have our root, here we have our boot, our home, and this down here is our swap. So we want to generate one of these files. Now, of course, you could go find the UUIDs and manually write them out, but screw that. There's one command you can do to just automatically generate them. Now, keep in mind, we've just installed the system. We haven't even changed root into the actual system. We're still in our USB drive. So what I'm going to do here is I have this command genfs tab. I'm just going to run it. It shows you the kind of options you have. Now, if you run genfs tab, and then if I say mn slash mnt, what it's going to do is it's going to look at that mnt directory. And that, of course, is where we mounted all of our different drives. And it's going to say, okay, based on that, I'm going to take all the different things that are mounted here and I'm going to return them. So that's what it's done here. Now, there are two things. So notice what it's outputted. So notice there are two things that are, I guess, wrong here, things we should change. First off, since I have, this isn't going to be a problem if you booted off your USB drive, but since I'm on another computer with another swap drive, I actually have two swap drives here because both of these are on. So sda1, this is the one on my computer now, and sdb2, yeah, so this is the one that I made a couple minutes ago, right? So I'm going to want to remove that, but we'll do that later. The other thing is, right now, it's looking at these drives. It's looking at their address in, if they're devsdb, devsda, whatever, whatever. And the thing about those kind of, locations in the Linux file system is that sometimes they can change depending on what drives you have in your computer. So it's better to use UUIDs. Now, these are commented out, but if we run genfs tab, capital U as an option, that's going to use UUIDs by default, and that's really what we want. Now, what we're going to do is, we're going to take this file, or take this command, and we're going to output it to slashmnt, slashetc, slashfs tab, okay? So just in case you don't know outputting and stuff like that, all we're doing is taking what that command would puke out and puking that into a file. So once we've done that, we're going to actually open up that file again, mnt, etc, fstab, and we will see that all of this stuff that was outputted by that command is now here. Now, I'm also, since as I said, I'm not going to need this here, I'm going to delete that entry, and the only ones left are the ones we actually want for our actual Arch Linux system. So now, when you try and boot Arch Linux with all these partitions, it's going to know what to put where or whatever, you know. It knows where everything goes. Great. So now that's done. Now what we're going to want to do is jump into our actual Arch Linux system we just installed, and we're going to finalize the installation by making it bootable. So you can actually boot into it without a problem. So the command you're going to want to run is ArchTrute, ChangeRoot, and then slashmnt. Now, when you do this, what this is going to do actually I'll just run it. Now it doesn't look like anything changed, but actually something very big happened. That is, before that you were in your USB drive running the commands from your USB drive, and that's all. That's all you were doing. Now you are actually inside of your new Arch Linux installation. If I type ls, I'm actually in the root directory, it's going to show all the files I have there, etc. Or if we now put, so notice the fstab that we just generated is now going to be in our actual directory rather than mount.etc slashetc. So anyway, so now we are now in your Arch Linux installation. So one thing, I'm going to go ahead and install a network manager. That's because by default Arch Linux is not going to detect whatever Ethernet port or whatever you happen to have. Now there are different choices for network managers, but I like a network manager which is my preferred network manager, and yeah that's the name. So if you just type in pacman s network manager that will install network manager. So in case you've never used Arch Linux or Manjaro or any other Arch Linux based distribution before, pacman with the capital s option that means install a package. So I'm going to run that, it's only going to take a second, but I'm going to, it's just going to install the whole thing. So by default, of course, again, if I just rebooted into my computer I wouldn't have internet access. I'd have to manually put that on. So I'm going to install Arch Linux, excuse me, install network manager, and then activate it. And hopefully it doesn't take too much. Okay, I'll guess I'll have. Okay, so once you have network manager installed, you're going to want to tell systemd to automatically start it on startup. So to do that you just type in systemctl enable, and then network manager. And in and in are capitalized. So if you run that it's going to create a bunch of sim links that basically will tell Arch to automatically start network manager whenever you log in. So now you'll have your ethernet's going to work by default and stuff like that. And of course you can throw in wifi stuff as well. I'll talk more about the kind of stuff you can do for that in the video where I talk about configuring Arch, but for right now this will be enough. Okay, so created network manager. Another thing we're going to want to install is of course grub or another bootloader. So I'm going to install grub. Now grub of course is the nice little menu that comes up when you first load a Linux installation or other stuff where you can choose the different operating systems you have. Now you do in fact need it because grub is the thing that goes about detecting all your different partitions and actually deciding which ones which. So it is important to have, it looks like it's installing pretty quickly. Is it? Okay, yeah. So once that's over we're going to want to generate our grub configuration. So the first thing, let me go back to LSBLK again. So again we are, well my machine is, the thing I'm running it on is SDB. You might be doing SDA or whatever. Just be mindful of that. So we're going to, what we're going to want to do is first install grub on that and you do that with the grub install command and then you type in, I had to write this down. Let me double check. Because I always forget how to write this but it's slash slash or hyphen hyphen target equals I3 86 hyphen PC and then we'll put in dev SDB. Now you don't put dev SDB1, just dev SDB. Now run that and it's going to install grub on your, well it's already done. Grub is now installed but we also have to make the configuration file for it and to do that we do grub make config and we're going to output that config to boot slash boot grub and then grub.cfg Actually this might automatically run when you do grub install but that's probably safer to do anyway. So now we have a configuration file, now we have grub. So I think right now if you turned off your computer it would actually boot up successfully. I'm not entirely sure. I think you need to set a locale but we got most of the moving pieces in place. Okay so now we just have to pick up all the pieces, a couple other things that need to be done. So we might as well set a password so, well you're definitely going to want to set a password. So to do that just type in p-a-s-s-w-d and since it's your first password all it's going to do is prompt you to put something in. I'm just going to put something totally non-forgettable and totally not secure. But once you do that you'll finally have a password on your device. So this is going to be the root password since you're running this is root. So when you log in on your new system you're going to use the username root and the password that you just put in. So that's going to be it. Okay so now you have the password. Next thing I'm going to do is I'm going to open up, I'm going to generate our locale. So what you want to do is take Vim or nano or whatever, well maybe we should do nano. Well, now I'm going to use Vim because anyway so and open up locale.gen so locale.gen is a huge list of all of the different you know, different locales you can choose from. There are going to be languages and countries. I'm going to look for en underscore us because I want American English and what you're going to want to do is just uncomment the two lines that are relevant to you. Now once you do that, of course you can choose multiple languages if you need them on your machine. But once you do that just save this file and exit it and then you're going to want to run locale. Or no, yeah, locale.gen. Yeah, okay, that's right. And so what this command is going to do is read the file read that file for lines that are uncommented and create the locales for all of those. Okay, so now that we have our locale there are a couple other things that are sort of language or region specific that we might as well do. So you are going to want to open up en slash locale with an e at the end .conf. Actually I think this should be a new file so there shouldn't already be something here. And you should set your lang variable here. This is pretty important. I'm going to put in so my language is of course English, American English. So I'm going to type in en us .utf8 with .utf8 encoding. And I'm just going to save that. That's just to set your language and stuff like that. You might have to look up, I mean if you speak another language just look up which one you need or your country code or whatever and put it in there. So set that as well. And the other thing you want to set is time zone. Because I'm not, I'm pretty sure you may need to actually manually set it even if you live in what is it like GMT or whatever. But to do that you want to well I'll go ahead and put it this way. So if you look in where is it, I think I wrote it down. This is another thing that I sort of have trouble remembering. Okay so it's user share zone info. Now if you look in there that's where they keep all the time zone information for all the different countries, cities, whatever. So what we're going to want to do is link well I should also say this. So by default there is, I don't think there's file okay yeah. So there's a file etsy slash local time and what we want to do is we want to link that file to the proper time zone we want or whatever. So to do that it's actually pretty simple. It's just one command. So link so Ellen is for establishing links. You can make symbolic links and stuff like that. And we want to make one between user share zone info. And then you're going to pick which zone you want. You can of course tab select to have all these choices. So I am going to want America and of all the possibilities here I am going to want Phoenix because I'm on Phoenix time. You can pick New York or wherever you are. So and that is going to as I said etsy dot or excuse me slash local time. And just run that. And that will basically tell your computer I am in this time zone. So again this is of course is a general thing. If you are using your sister I mean let's say I mean something that happens to me a lot is when I go on a plane somewhere else I got to reset my time zone. This command here is all you have to do just reset it to whatever time zone you want and that's all you have to worry about. So the last thing we're going to want to do is I'm going to set a host name and of course this is going to be the name of your computer. So on this device it happens to be tested. Because this is the computer I test all the stuff on that I'm developing or whatever. But we want to add a name for our computer and to do that you go into etsy what is it host name. This should be a blank file again you can name it whatever you want. Well not whatever you want it should be just one word or something like that. So I'm going to call this maybe I'll just call it arch or arch install or something like that and just save that and that is going to be what your computer looks to this file is what your computer is going to look to as for what it's going to call itself or whatever. Okay so I think at this point we pretty much how we've hit all the spots. So when you reboot your computer well I'll show you how to reboot and everything. So keep in mind you're still in the on okay so well we have to remember we're in a very weird position so we're on the computer we booted off the live device and we went from the live device into the actual hard drive. So if we go here and type in exit or now we're in the actual hard drive but when we type exit now we are back where we originally were in the USB drive. So for safety's sake I guess we can unmount all those drives where you're mounted. So if you type in you mount not unmount you mount and then capital R and then MNT slash MNT that will the R is for recursive that removes what's on slash MNT and everything else. So if we type in LSBLK again you'll see that nothing here is you know mounted. So after that you can pretty much type reboot and once your computer finishes shutting down or whatever you can remove your USB drive and it should boot off of your new Arch Linux install. So I'm going to try it on my device and I'll show you okay so hopefully you rebooted your computer and everything worked out fine. I'll go ahead and show you that mine worked. So if I pull up I actually took a picture of it since I can't really show you it but you know you just log in and password whatever the password you gave it and you should see your nice little hostname here. You should be able to ping stuff. You should have network access since we installed an enabled network manager. So this is all you need to jump to wherever you want whatever kind of configuration you want. You now have a system, a bare bone system to really start installing stuff or doing whatever you want. So now you have installed Arch Linux you now have a machine running Arch Linux now you have two I'm going to put up a couple videos in the future. Now one of them as I mentioned before is what exactly do you do once you get to this point? How do you install a desktop environment? I'm going to put up a video on that pretty soon. I'm also going to put up a video on how to manage an Arch Linux system, how to update it what kind of things you need to check out for and stuff like that. So I'm going to put up that put those things up in a little bit. I will say I would be wasting my time if I didn't make a shameless plug but just because it's there. That is if you don't want to go through configuring and putting up all your own stuff into Arch Linux and you know, figuring out how to do a desktop manager. As you may know, if you're my subscriber I have a configuration script that you can easily run on any fresh install of Arch Linux which you conveniently now have that is as long as you have that of course this is larbs larbs.xyz is the website all you have to do is literally just run these two commands and it will bring up a prompt that will guide you through the installation and it installs basically the setup I have here all the bells and whistles that I use that you see on my channel. So check that out if you want otherwise I'll be putting up videos on Arch Linux, how to configure things as I said in the future but yeah anyway so hope you guys enjoyed it and I'll see you next time