 Today, I'm going to show you how to install ARTX Linux, most notably with a fully encrypted root directory and home directory, I guess, so you can make sure that your files are nice and safe when you're not using your computer. So ARTX Linux is the Linux distribution that I use. It's based on ARTX Linux. It's basically the same thing as ARTX Linux except for ARTX Linux comes with the much hated SystemD as an init system and what ARTX does is it actually just allows you to choose between some other init systems that I don't know people like to hate less. There are advantages. They're not important for you as a new user It's all gonna be the same and in fact installing installing ARTX Linux and ARTX Linux is basically the same process So really this video is gonna work for an encrypted ARTX setup if you want In fact, even if you don't want to encrypt it You just omit one or two commands and if this video is gonna work for you as well In fact, even if you want to use any of the init systems You know run it open RC again just one or two command differences. So this video will work and also Whether you're installing on legacy grub or legacy boot or UEFI this video will also work So this video is gonna work for everyone even if you don't want to install Linux Maybe this will work for you as well. So anyway, how you traditionally install How do you install Linux distribution? I mean, I assume that most of you guys watching this know how to do this But I'm gonna go to ARTX Linux. We're gonna go to the download tab and the only tricky thing with ARTX is like There are a whole bunch of choices They have all these different ISOs that you can use the one that I'm gonna use is this one right here The ARTX base run it actually technically I'm not gonna use it I'll explain that in a second, but this is the one that I recommend. This is the one that I usually use And so you're gonna want to download that it's a little less than a gig now note Also, if you just want to install Linux, okay, you don't care about encrypted drives You don't care about installing it all manually or anything. Don't need to customize it You could just install it with the desktop environment You could just like install Mate or cinnamon or something like that or XFCE or plasma. You could just you know take one of those And you can put it on your USB drive boot it and you could install it on the computer and it'd be kind of just work-sy But we're gonna do it manually because you know, that's that's a better way you to do it as far as I'm concerned And again, we need we need to be able to encrypt our drives and stuff like that I actually hear that nowadays arch Linux apparently has an arch install script that which is kind of funny Used to be the Arctic's you could you could you know have ARTX Linux installed install itself But arch didn't like refuse to do that Anyway, so that's how I'm gonna said I'm gonna say you should do it I've actually already gone on and Installed or not installed. I've downloaded this where is it? Yeah, so I've gone ahead and downloaded this ISO here So what I'm gonna do actually I have a USB drive here Okay, so traditionally what you do you put the ISO on this USB drive and then you you will be able to Boot off of this USB drive and then wipe the rest of your computer and install Arch on it or ARTX in this case So I'm gonna put this in to put this in my computer Okay, so now Now I should be able to run LS BLK And you'll see that I have so these are all the drives that are attached to my computer This happens to be my main hard drive. This happens to be my Media hard drive that's also attached And this is the USB drive. I just put in notice that it's 3.7 gigabytes so what we're gonna want to do I'm gonna become root here, okay, so what I'm gonna want to do is This SDC. This is our drive. We want to take our ISO file and Copy it on to that. Okay, so I'm gonna use the command DD So I'm gonna say DD our input file is gonna be the artyx The artyx ISO here I can just tab complete that name and then our output file is going to be dev SDC because again when we ran LS BLK SDC is the drive we're gonna want to work on okay, so slash dev slash SDC and I'm also gonna say status equals progress and Block size equals to although neither of those are technically necessary So I'm just gonna run that and it's gonna take a little bit of time What that's doing is it just copying that ISO of a couple gigabytes on to that drive And so what we're gonna do or what you're gonna do is that once that is done You are going to restart your computer with that USB that bootable USB plugged in and you're gonna press a whole bunch of Buttons, I don't know f2 f10 f12. It's different on different computers but you're gonna get a menu where you can choose what device to boot off of you're gonna boot off of that USB and From there you can actually install artyx now obviously in that process. We're gonna be deleting all the hard drive you have on your computer So make sure that you have you're prepared for that you have all your files backed up So this is still taking a little bit of time now. I will note that I am not gonna do that I'm gonna do something a little differently because I want it to be easy to record So I actually have this hard drive that is you know I have a USB to SATA Connector here and I'm actually just gonna install that I'm gonna plug this into my computer as it is right now And I'm gonna install artyx on this hard drive that I can put in another computer And um, I'm glad this is still loading so I can talk about what I'm actually doing. So there is also this Let's see artyx. What is it called? There's a Package on artyx called art tools base and I have this installed and what this is Is it basically takes all the special scripts that are usually in the ISO that you need to install artyx? And it allows you to run them from your own machine So that's like genfs tab and like a pack strap and these these kind of things or base strap It is on artyx or whatever and I think there's an equivalent for arch as well Let me actually double check. So let's say arch I want to say it's like art arch scripts Oh, no, that's that's oh wait. Yeah, I gotta search like foreign packages. I want to say it's like arch scripts It doesn't really matter. I'm just like killing time while this thing is loading It is Uh, what is it? What is it? I know I know it's out here. It's probably oh, yeah arch install scripts Yeah, so that's so either depending on which one you're running you can just install that package and get what you need So I'm probably uh, let's see if there's something else I need to talk about or I might just like stop this while it's loading it wait It doesn't actually matter you need to do this, but I don't because I'm doing this on my own computer So I actually I can just cancel this I'm gonna cancel this Um, actually no, I'm gonna unceremoniously close out of it even though that's bad So we don't actually need this usb drive. I'm gonna pull out pull it out So I'm not using that you do you do you need to do that and once it's loaded mind you you should usually type in sync And that'll kind of load You know any files that haven't or that are in memory that haven't like transferred over so that's good practice So I am now going to install or I'm not I'm now going to put in my hard drive. Okay So note also we've taken out Look at the lsplk. We've taken out that third drive sdc and now I'm going to put in I'm going to plug in my Uh drive that I'm going to install on. Okay. Now what you're doing is you are rebooting off of that usb and Once you've backed all your stuff up now you see now you will see that sdc on my computer is now this 238 gigabyte thingy that I have so this is going to be the thing that we install Artix on okay, so now we boot it up You have logged in when you get into artix type in root as the username and artix as the password And then you'll be able to start. Okay now interestingly enough. I do actually have a little guide here. I mean not a real guide But just like so I don't have to like manually type everything But I will say this obviously the real thing to follow is not even this video But you need to follow the artix linux installation guide on the wiki you can pull that up on another computer Obviously, you can't pull it up on the thing you booted off of And you might want to look at the arch one as well Okay, but I'm not going to look at either of those because I'm basically aside from basically having to memorize I actually have all the important notes here. Okay So the first thing you need to note is whether you have a uefi machine or not So there are really two ways two like there's legacy boot and I always prefer legacy boot if you can install that But a lot of modern machines only have uafi for booting and to know whether you have that or not you want to see You want to type in ls sys firmware efi fvvars Okay, now if you get nothing you don't have uefi. You're not using using uafi But if you do get that you are probably using uefi now I will just say uefi like there are security benefits to it Like there is a reason that people have switched to it nowadays But I just I always recommend avoiding it because honestly like frankly It was really created so it would make it difficult to install linux And so like it made it easier to lock people into using windows machines. So that's a real reason it exists We can all pretend Otherwise, but that's basically why it exists Um either way, uh, just note whether you're using uefi or not and in the installation process that will Uh, you'll there are a couple things you need to do different. Okay, so here's what i'm going to do Firstly, I need to format this drive this sdc because what we want we are going to have a Boot partition and that's going to be unencrypted And that's just going to have the stuff it needs to like start up and know like oh I need to decrypt this other drive and all the data all the operating system data And all your files are going to be an encrypted partition. That's what we're going to do here So i'm going to come root here. You're already root if you logged in as root, but so i'm going to run fdisk On slash dev slash fdc again, make sure you're running it on the right one and not like, you know, something else. You don't want to delete um So we're going to go ahead and delete all the partitions and the data on this drive. Let me actually make myself more opaque here I'm going to type in d it has two partitions. So i'm going to type in d for both of them Or wait, no it only has one never mind So I deleted the partition you might need to type d multiple times for deleting multiple partitions And i'm going to say new to add our boot partition It'll just press enter here Uh press enter here for the partition number and for the first sector for the last sector I'm going to say i'm going to make it one full gigabyte. So i'm actually making this so this is something that uefi and bios People might do differently. I'm just going to say use one gigabyte for this And i'm going to make it i'm going to make things as compatible as I possibly can for everyone, okay So uh because one gigabyte you can spare one gigabyte, frankly So then we're going to make another partition. I'm going to make a new partition again primary Uh, actually you can just press enter through all the rest of this stuff Um and just say yes if it gives you that thing do you want to remove the signature? um So what what we're doing there is we've created one Partition that is one gigabyte and then another partition that is just the rest of the size And once we're done with fdisk, we're going to uh type in w to save that and now we should see Let me move to the top now. We should see our partition as two or our drive has two partitions Okay So the one of the things that different that's different from legacy boot in uefi is that in uefi your boot partition Has to be a fat Partition a fat 32 partition Um, honestly at this point. I kind of just always have my boot Even if i'm using legacy boot, I will just have it as a fat partition Just in case later on I want to move to a uefi machine So i'm now going to format this now i'm going to format this and make with make fs fat F 32 and i'm going to run that on dev sdc one Okay, now this is us putting a file system on that now if you don't i'm going to I'll I'll run this we've now formatted that with a fat partition Hypothetically you could if you wanted to and you're just using legacy Boot you could format that with ext4 or something else But again, like I I like I just formatted as fat even if i'm not i'm not installing for uefi But just in case I want to move to a uefi machine I go ahead and format it as fat Because it's it doesn't really make a big difference if you you just have this one drive on it So this other part so our other partition that's going to be the tricky thing because this is the thing we want to encrypt So how do we encrypt this drive? Um, so I will go ahead and say a couple of people noted. I I did a video on encrypting drives in the a couple days ago and um A lot of people said hey, luke you didn't wipe your drive before you started because when you encrypt a drive It's a good idea actually to do something like, you know Uh, take an input of u random. Let's see you dev u random and uh, just totally blank over Let's say dev sdc2 Okay, that's that's a good thing to do because what you're doing is you're putting Random data over the whole thing that means a people can't look at the stuff that was previously previously on your drive And b it's harder to do meta analysis Like let's say if you're encrypted drive does fall into the hands of the fbi, right? There's there's some amount of metadata that they could figure out about how much of the the stuff How much of this drive is he actually using blah blah blah? Um, so this is something if you want to be super secure. This is something you might want to do But the reason i'm not going to do it is it's going to take a long freaking time It's going to take hours and hours and hours. They're they're quicker commands to do this Um, and i'm i also i'm going to say that there are ways of doing this after you set up the drive Like you i'm just going to do it the normal, you know I guess the normie way And then there are commands that you can run afterwards where you basically create like a massive file on the partition of just random data from dev you random and then delete that Um, so maybe i'll talk about that at the end But i that's all me saying i'm going to skip this step because it's unnecessary and we can basically do it later Even though yes, there are security reasons where you want to do it at some point So anyway, let's install a encrypted partition on this or let's make this a partition encrypted And we do that with a current command crypt setup loop lux format We're going to run that on dev sdc two, okay, so oops, oh not luck format lux format So it's going to ask you are you sure you want to overwrite all of this I'm going to say yes, you're we're going to enter a password for our Partition and i'm going to make mine password. No one's ever going to guess that Now you can change these later on I will say that but I recommend go ahead and choose a good password This is going to take a little bit of time. Um, okay, it took less time than I expected but so now um, we can we want to now that we've Created an encrypted eluxe partition on this we want to decrypt that so we can mount it and install artics on it So what we what we do now is we say crypt setup open we open that partition dev sdc And we also give it a title. It doesn't matter what the title is. I'm going to say law law Um, and then it's going to ask for the password that we just gave it okay So now we have decrypted our drive and you'll see that it is now this thing's lol. Okay, so now um, if if you've installed art or artics before The process is basically going to be the same from this point on once we mount the drives Just like the decrypted we have to do do stuff with like decrypting stuff at the very end and that's very important So we'll we'll talk about that in a second But anyway, let's go ahead and mount these drives So first we want to mount our root and home partition And that is going to be at dev mapper and then whatever you named it lol And i'm going to mount it to mnt. Okay Oh wait, I forgot to make a file system got to do that as well. Uh, so we're going to make File system. I'm going to use btrfs And I am going to run it on dev mapper lol. Okay, so we we created a A lux partition, but we didn't actually put a file system on it. That's why we got that error So now i'm going to do that Now It's going to this is actually going to take a little bit of time. This might take a minute or so um It's just uh that awkward that awkward moment. Do I want to cut the video or do I not want to cut the video? It's just like more extra. Let's see if there's something I can talk about in the meantime Uh, all right, so yeah, I'll go ahead and say actually so for the encryption Um, the only thing that we're going to want to do at the very end to like the tricky thing is we want Our bios we we want when we boot we want artix linux to know that we want to decrypt this drive So we're going to add a couple things at the very end to our mk init cpo And then we're going to add some special things to our grub configuration to let it know. Okay, this is this drive here This is our special encrypted drive. We want to try to decrypt that when we boot You know ask me to give it the password And then mount that mount the decrypted drive So now we have a partition on this thing actually we can now just run the command I tried to run a second ago And mount it to mnt Now we're going to create A directory mnt boot Okay, so now you will see in there There's a boot directory and we're now going to mount dev sdc one to mnt boot Okay, so now both of our drives both of our partitions I should say they are now mounted at the appropriate location and we can actually install this stupid thing We've been talking about installing So, uh, let's let's go ahead and get this little, um These commands i'm going to be running a lot of them. So we might as well have them over here So first thing let's see. So we've done all that Oh, yeah, we might want to go ahead and I usually omit this because I always forget to do it But just for speed you might want to go into pack etsy pacmandi mirror list And this lists out all of the mirrors that you can use for installing Or just getting your packages You may want to move let's say if you're in france You may want to move the french mirrors up to the top So they will be the first ones that you choose. So things go a little faster So just know that things might move a little more snappily if you do that But once you've done that i'm going to actually let's go ahead and make this a little bit more A little bit more opaque. I'm going to go ahead and install all of these packages Okay, now we're going to run the base strap command This is one thing that's different on artix from artix or arch linux because arch linux. It's called like pack strap It's called base strap on Artix, but you're going to want to run that on mnt And then I have a list of packages that i'm going to install I'm going to go ahead and start i'm going to let this go ahead and start running And i'm going to explain in the meantime all the packages that we're installing Um So base and base the base is just like the basic system all the all the tools you need Base the val is going to be necessary for Compiling packages and stuff. Oh, actually, I need to press enter here Um, all those things are installing. Let me actually make that a little smaller. So it looks better or something So I am installing the run it in its system So i'm going to install it and e-log and d run it now. This is something if you want to install open rc Uh or some other in its system because you have an emotional attachment to those you will find Let's see that there are different commands here So open rc you install that and e-log and d open rc or s6 or d in it, you know, you can kind of see the pattern, right? Um, so that's what those are for Um, also, we're going to want to install linux. It's funny You didn't have to use the like you used to be able to just install base and it pulled linux by default um But I remember because I got comments on my last video if they're like, dude, you forgot to install the kernel man You didn't install linux. It's like they used to pull it automatically now. They don't Um, I guess that's that's based because theoretically you could use a different kernel But I don't know if there are actually any other kernels they offer Like if there's what is it canoe herd law? Or like bsd that'd be funny if you could install bsd from artx linux, but anyway linux firmware Um, if you don't really need this file unless you know you need it Well, actually yeah on a modern machine that has some proprietary blobs or something you might need this Uh grub is the boot Um, the you know the boot manager network manager This is going to be for getting I mean, it's what you expect internet and stuff And you also want to have network manager run it or open rc whichever in its system you choose Um, because that's going to auto start it when you boot Now these three packages again, this is a run it specific one But these three are for encrypting and decrypting the drive and we're going to need that when we boot and stuff like that Neo vim and vim, obviously, they're just necessary for editing files And uh effy boot manager, this is something that you're going to need for uefi You don't need that for legacy boots. So I actually didn't include that in the command that I have here So now I think we're actually getting close to uh, wow, that was good timing because I think we're about where we need to be But that's what all of those are and mind you for any of these Like you'll see the commands they give you on the artix linux so wiki They just tell you to install like a couple of these at one point in time Um, and then they tell you to install the other ones with pacman while you're on the machine You can install any of them any of these later on when we're on the main machine Actually, let's do that right now. Okay, because we're anyway. So what we need to do So now we have like this Again, so we have on moot mount. We have like our drives mounted And at this point we can now use the command that they give you art What is it artix charoot? Okay, and we can run that on mnt and give it bash as an option And what that has done is it has now transported us to our newly installed artix linux Drive like part, you know, it's we are now in the new artix linux session We're not in the old previous one of our our main computer So now we can run commands on our newly installed operating system And basically we want to make it bootable so that we can actually boot into it decrypt the drive and all that kind of stuff Now as I was saying any of those packages now that we're on the machine We can just run pacman s if you forgot to install grub you can install grub right now, right? It's just I put everything in one big command. So just know all that stuff So now we do kind of the administrivia of installing like So first set the time zone. Let's go ahead. Actually, let me How big do we want it? We'll want it like this I don't know. Maybe we want it like this because we might have a big command So first we'll set the time zone and how to do that You just in what is it users? share zone info There are a bunch of different locations and stuff that you can you know You want to get your proper time zone mine is going to be america new york And you're going to link that to etsy local time Okay And that should do nothing when you're when you've run it and you should see that you have an etsy local time a Link that is going to your proper time zone. Okay As well, we want to go ahead and update the hardware clock or sync the hardware clock Okay, run that command, which I mean you probably actually don't in real life You probably don't have to run it, but it's just it's always in the wiki. So we run it. It's tradition kids And then as my little guide here says in locale.com Which will not exist yet, but in this file, we are going to add the following content. We're going to add Oh, well, I guess this is going to be specific I'm going to use my language is going my language is going to be english for us But you might want to change that obviously if you're not using a us keyboard and And locality and stuff If you want to see actually probably should have done this one first, but you'll also want to open up locale.gen locale gen Wait, what is it? Oh locale.gen. Excuse me Um, and this is going to have a link of or a list of all the different locales to use And in this file, you are going to want to go to your own. I'm going to go to mine and uncomment it Okay, so we got in us utf 8 and iso Now i've uncommented those you just uncomment whatever you want And then you run the command locale.gen Okay, so all this stuff is you know, make sure you get the right encoding and stuff like that Um, so now you want to name your computer. So let's say I want to name my computer on a crypt You're going to put that in etsy Host name. Okay, so now just to make sure Our host name here is crypt Okay, and at the same time you're going to want to go to etsy hosts And we're going to add some stuff in here The stuff that I list here, which again is on the wiki. You can check it if you don't believe me but This is just a you know for routing your IP addresses properly. So we're going to say local host Actually, do I do I use let's see on my main machine do I use hosts Yeah, I do use that. Okay um, so So i'm just going to copy the way I have it here and then we're going to have a 127.0 0.1 0.1 right? Yeah, and then we're going to say crypt because that's what I named my computer local domain And then crypt again So all that's kind of arbitrary stuff Now we also want to enable the network The network manager so if you don't do this you will boot up into your machine And you'll realize that the network manager is not actually running And you can't get a connection to the internet and you'd have to start that manually and all that kind of stuff So this is uh, I'm going to run this command here But I should say that this is going to be different Depending on this is for people installing for run it if you're using system d on arch It's going to be different But also if you're using like, uh, let's see if there's a they have a little thing about Um Yeah, so they do have this so the command for this is going to be different So open rc. It's going to be rc update add, you know network manager. Don't ignore that commandy. They're using a different thing Um, so for all of these different internet systems that command is going to be different But I'm using the one for run it um and a note here that Usually you link things to when when you're actually using a machine and you want to start a new system You usually link it to run run it service But that doesn't exist like if you have not boot off that machine So you actually link it to a different place when you're first installing it Okay, so now let's create a password. I'm going to say password And I'm going to my password is going to be the word password Does that allow it? Yes, they allowed me to do that excellent a lot of times debbie in machines Like if you're running for a server, they like they won't allow you to do that But uh, I'm going to use the word password Now additionally you can optionally go ahead and do this Um, I'm going to create I'm going to add a user I'm going to say um You want to add them to the the wheel group and we're going to say m in here And that means create a home directory for him and I'm going to name him loop And I'm also going to say let's go ahead and add a password for loop Um, and we're going to say my password is going to be password Okay, so the reason I do that is one thing you might want to think about doing If you're lazy and you don't want to type in so let's let's be totally clear about this When you have an encrypted drive You are going to you're going to boot up your computer It's going to ask for your decryption password and then if you don't change anything It's also going to ask you to log in as your user, right? I actually don't really like that. I like if I'm putting in one password I just want it to log me in automatically like I don't want to have to worry about Putting in another password, especially if I happen to use the same password I mean, it's not a good idea to use the same password But frankly, like if you're decrypting your drive everything is already unlocked Like having a user password is just like kind of like a formality um So one thing you can do is you can go to etsy Run it sv and then go to your tty one Um and go to the comp here. So this is optional I mean, this is like if you if you want it to log you in automatically as your user So you've already put in your password to decrypt your drive Uh one you what you can do is you can go you can go in here and say auto Log in and then give your uh the name of your user or whatever And what this will do is when you log in your or I should say when you decrypt your computer and it boots up You will automatically log in as this user. So you don't have to worry about it So that's one option that you can do if you want I'm actually not going to do this here because we I might do some troubleshooting on this Later on and I might not want that to happen. So anyway, so that's that So now it's kind of the tricky part. I don't want to say the actual tricky part But this is the thing that can be this now we have to think about decrypting our drive So if you're not encrypting your Okay, I guess if you're not encrypting your drive, you can skip this step and go straight to creating a boot You know the boot or the grub config But um, so now we have to decrypt our drive or have linux be able to decrypt our drive when we uh boot up Okay, so first thing we're going to do is we're going to go to making it cpo Dot comf and what we're going to want to add we're going to go to this line that says hooks Okay, and to our hooks here, we're going to add somewhere near the end. I want to say this is a good location, right We're going to put encrypt And lvm 2 now remember crypt setup and lvm 2 those are two things that we actually installed on our computer earlier with that base trap command just make sure you have those installed But we're going to put these here And actually let's go ahead and update that so nk init cp i o And give it the p option and linux. So this there's a chance that this might give an error Um, if we didn't install no, okay, it didn't um, I'll let that run. It'll just take a couple more seconds Just a couple more seconds of awkwardly sitting here So if you don't have if you didn't install the required packages It might give you an error when it tries to do encrypt or lvm, but we already installed those So it's no problem. So now what we're going to do. This is a little tricky So firstly Normally if you type in lsblkf It's going to list out the uuid's of all your devices But because we're on this special artix like We changed root into our installation. It actually doesn't do that So what we want to do now is press control d and we're going to get back We are no longer on our newly installed artix partition We're now on the drive or the usb that we were installing it previously And you'll note when I type lsblkf now you see all this other stuff Okay, now we want all this kind of stuff We're going to we need the uuid's for our encrypted drive to do the to boot properly We're going to need it for our grub config So here's what I'm going to do. I'm going to take the output of this command And I'm going to output it to where we mounted our drives In the file location etsy default grub Now notice be extra careful use two You know, uh, two greater than signs because we want to output it to the file. We don't want to overwrite the file But I'm going to do that Um, and let's see also while I'm in this main partition I think I probably yeah, I mentioned it later on but we'll go ahead and do this now One thing you also want to do is the fstab gen fstab gen You and run that amount and we're going to output this actually. Let's see what it does first So this is the thing that says okay I'm going to look at mount and I'm going to see what drives are mounted here And I'm going to create an fstab for that meaning this is you know We're going to fstab is the file that a linux uses to know where it needs to mount drives Okay, so this fstab gen command gets basically the configuration you have now And so we're going to take the output of that command and we are going to output it to mount etsy fstab Okay, again, this is the fstab on our installation that we're installing Okay, um, so then once everything is decrypted and and uh unlocked and the operating system is starting It will know where to mount the boot drive and whatever other drives. Okay All right, so that's the fstab gen And now anyway, we are going to what was I'm going to do? Okay. Yes So now we've outputted that and we also outputted that weird stuff to the grub the grub The grub configuration file. Okay, so now what we want to do Is we're going to go we're going to go there I'm going to go To the mount directory again. Okay, again, we're going back into our installation and I'm going to open up that file etsy grub Or etsy default grub. Okay, so here's what we're going to do. We're going to do something We're going to go to the bottom of this file and you're going to see all this mess This actually very glitchy mess that will mess up your grub file unless you do something with it But this is the stuff we outputted to this file. So firstly, I'm going to delete most of it. The things that I want are Um, the our partition. We want two things in particular We want the uuid Of the partition the decrypted or the encrypted partition And we want the uuid of the decrypted part of that partition Once we decrypted. So these two lines are the things we need We actually don't even need the uuid for that. We don't need this So I'm going to take these two lines and I'm going to put them up up the top here And I'm going to copy them out actually so they don't cause any issues Because that's important So here's what we're going to do to this Command here. So this grub command linux default. We are going to add these two Things in a particular configuration. We're going to say actually, you know what? I should probably look at my main drive here as a guide because I think Um, because I did this before on the on the um Setup I have here. Okay. So what we're going to do is we're going to make them look like this We're going to take the uuid of the thing we want to decrypt and say crypt device equals uuid And then include that uuid and then we're going to put colon crypt lvm or whatever you want to mount it as Then we're going to say root and this is going to be the uuid of the decrypted partition We're going to say we want that to be treated as the root And so we're going to say root equals uuid and we're going to have that partition This other stuff you can ignore that's not relevant. Okay. So now I've switched that switch the windows here. So we're going to say again um See let me make it so you can actually see it So we're going to say crypt device equals uuid Equals now we're going I'm going to go here. I'm going to copy this um uuid And I'm going to put it there and then as I said you also want to give it a name to mount as this is good Like we mounted ours at uh, or we decrypted it to lulul. So it's dev mapper lulul This is the going to be the name where it's mounted. So it's going to be dev mapper crypt lvm. Okay, that's what that is So we're going to say crypt lvm Okay, so that part is done now we want to say root uuid and this is going to be the uuid of the root partition that is the decrypted partition So I'm going to copy that And I'm going to put that here. Okay, and that doesn't need anything at the end. So we should be done here Okay, so that that's kind of the annoying part Um of setting up booting and stuff like that, but you should be good. You should be good now Now the last part is to install grub Um, or yeah to install install the grub boot lober install the group boot lober Um So what we're going to want to do is type in grub install Okay, and we are going to install it not on sdc one or sdc two, but just sdc Now this is going to be different if you are running a uu uh uui I'm like forgetting like there's so many terms. There's so many like abbreviations. It's so annoying not uuid uefi So you remember at the beginning I told you to do that command Uh to check and see if you have a u u uefi installation Well, this is where it matters as well because for legacy bios We're just going to run grub install on dev sdc whatever c in our case But on uefi you're going to run this slightly different command You're going to specify that you want to ui uh an efi target uh and give it a particular location. Actually, I want to say Uh, maybe you're supposed to change this to just boot. No, I think it's boot uia or boot efi You might want to check the ardyx wiki for that. Either way, this is the other part where uefi is different Okay, that's all you need to know But we are not installing for that. We are installing just for a normal grub So we're just going to run this command installation finish no error reported excellent And for either one legacy bios legacy bios or uefi we are going to create our grub configuration So we're going to say grub make config and we're going to output that to boot grub grub dot cfg great, okay, so and and it's important to note Um that this will actually have since we changed that uh default grub file So every time you reinstall grub or it makes some kind of change it will regenerate this file And it will use these settings that you've specified here um And if you look actually up the this is just for illustrative purposes But if you look at the boot file that we created you will see that it actually puts in this uuid Information that we added right these are going to be part of this is going to be part of the boot information Um, so let me just i'm just looking at it just to make sure everything's correct even though i'm sure that it's correct, right? Okay So now that's done. So we let's see we we have uh grub That knows which drives we want to decrypt We also have the mk. So remember when we did the what is it mk and it cpo? That's just so we start with the modules to decrypt the drive Uh, we should have everything ready. I mean i'm trying to think if there's anything like it this seemed easier than I thought it was Going to be honestly everything should be done Uh, let's see. I restarted the network manager and all that kind of stuff So here's what you're going to do at this point You are going to x out of this or x out of it control d out of that and you're going to type in reboot Um, and you're going to take out your usb drive and you're going to see if it boots by itself And hopefully it will have done that So that's what i'm going to do as well very briefly. I'm going to reboot my computer I'm going to see that I can boot off of this and then I'll come back and give you the final finishing touches All right, here's the moment of truth. We see that the boot. Oh man, this is embarrassing You can like literally see me here. All right, it looks like things are loading though. So that's good, right? So we should have a prompt that asks us for our password to decrypt the drive here Okay, so there we got it. So I'm going to type in I mistyped how embarrassing I should have just had it like one letter Okay Password my super secret password. Okay, great. So that means that it it successfully decrypted to drive So now I'm going to put in my root login, which in my case is root and password, right? Because I'm I'm an elite hacker. Excellent. So that logged in. So I'm also going to run lsblk to check for some things. Look at that So we have our boot drive mounted. That's important if you don't have your boot drive mounted You do need that you will need that even though you booted when you update stuff You will need this boot drive mounted If this doesn't mount automatically you mess something up with your fstab file So go back and gin your fstab And then we'll say ping. What side are we going to ping? I don't know Um wibby wibby.me Okay, so we're just going to check and see if we can connect to the internet. Look at that We're connected to the internet. I'm going to press control c. Let me let me think what else So that means that network manager is properly starting. Is there anything else we need to check? Let's let's check our lang variable Let's check our lang variable That's important. Okay. Yeah, that looks good. Okay, so I'm going to say that basically everything like we're in our system So now I'm going to go back to my graphical environment so I can record in a less awkward way Man, this look how filthy my screen is. Oh my you never notice this when there's like Light on it, but man. I need to clean this up. Also. Look at look at this. Yeah. Yeah, that's right I just wanted it like to be at a good height. So I'm going to reboot this and uh, we are going to I'm going to talk about some more stuff that is important because obviously you don't want to just be using a black screen, right? All right. Well, congratulations on installing your blank screen for a linux installation Now is perhaps the most exciting part of linux installation and I can't guide you through all of that Actually, I do have something to guide you Um, but um in general so now you want to install a graphical environment So usually what you want to do you want to I mean you can go you might know graphical environments already But you can go to the arch wiki Look up desktop environments or window managers window managers are are usually like minimalistic desktop environments like have giant pack You know different suites of software that all come together Um, either way you can look and figure out what you want to do here But I'm going to tell you what I do and what I recommend just because I don't know lots of people do it now Um for years. I have had these scripts which are really a script called larbs I actually now hate this term. In fact, I'm thinking about rebranding it and making it more serious In fact, here's some here's a fun fact even though it has this goofy little thing this goofy fat kid Uh, and his name larbs, which is just like an obese sounding abbreviation that I made as a joke Uh, it actually doesn't even tell you what it stands for because it doesn't stand for anything anymore It just sounds funny But despite the fact that you know, I still have that there aren't literally businesses that now use this as their desktop environment Desktop environment quote unquote Either way, so this larbs is basically a script that just insults the setup that I have here with all the programs I use And the one thing honestly if I can toot my own horn And if I can say that I'm better than like everyone who makes a linux distribution The one advantage that my system has over theirs is that mine is documented, right? So at any time you can type in a super f1 and you will literally get a guide that Runs you through all of the different key bindings and all how everything is mapped and all these crazy things to do And actually on the website larbs.xyz Uh, I'm actually gonna redo a lot of this. I might literally rebrand it and call it something different and like actually try and make it real Um, but like there's actually documentation on all the different stuff that you can use anyway It's super easy to install so well here for examples everything you need to know about editing the status bar and getting what you want Or you know the the email program and all the bindings Whatever anyway if you want to install this This is what I recommend because it's literally easiest. It's easier than all the other stuff and it's better I mean, there's a little bit of you got to learn how to work it once you're in it But I will actually tell you now I have multiple friends who would never use linux before And then started using larbs and that's the only linux they've ever used and they use it as a They they get by so anyway, you can download this script with this command Just c or l to download give it the l and o options And just download it from larbs.xyz the website slash larbs.sh And then just run the script and basically it just runs through the installation for you automatically ignore that It shouldn't have a question marks. It's because i'm in the arched char root environment. I think Um, or actually no, I know why I do this. Um, so anyway Yeah, it basically installs everything automatically for you You just give it a user account and then a password you want for that user It can be a pre-existing account if you want And then, uh, yeah it already exists So basically it just installs all the packages itself For you. You don't have to worry about any of this. I need to fix those question mark things But I think that's only in certain environments But it's annoying me now that it's on a video how embarrassing But yeah, so it installs all the basic programs. It actually goes through do I link to the progs file here? No, I don't Um So yeah, and you'll basically have a windows environment. It looks like Mine and you can you know, it's using dw in and some Minimalists and suckless software. It's also very usable. Everything is like very much at your fingerprint fingertips. Everything is a keybinding So that's what I use. That's what I recommend as a graphical environment But if you don't want to use that you can of course do your research and install any of this other stuff Um, the process is in general like pretty simple. So you can go to a desktop environment Let's say we want to install cinnamon um You would go in you when you would install the program So it would just be pacman s cinnamon And then you usually in the excellent rc in your home directory as your user you can just add Okay, begin when I start run the command start x Start cinnamon and that's how it works, right? So yeah, that's usually usually you type in start x to start the graphical environment um Right, so I mean that but that's the idea of how it works So you can go through the arch wiki you can test out all these different graphical environments Um, if you'd like there there's so many choices like there's all this stuff here Um, honestly, it might be better to start with a window manager if you can fake if you're smart enough to figure that out Some of them are very much not documented. That's again why I recommend mine. Um, so Uh, yeah, so anyway aside from that Uh, check that out Uh, congratulations on your new installation. Uh, that is encrypted. You're a little safer Um, go to larbs.xyz if you want to check out my setup or honestly look at any of my videos to see what it kind of looks like Um Aside from that look at that. I even have like the little um old school web button nowadays Someone made that actually I think I made this one. So anyway, that's it. I'll see you guys next time. Um, Yeah, goodbye