 All right. Good morning, everyone. I'm gonna be installing Artex Linux in this video. I actually I'm gonna install it here on my desktop. I have a little solid state drive. I have pulled out So this is gonna be Artex Linux installation It's gonna be 95% the same as an Arch Linux installation. In fact, you could probably just watch this video for that I'm specifically gonna be installing for a UEFI system But I think the differences between installing for a UEFI and a legacy BIOS system are pretty much they're pretty close nowadays Now anyway, I'm at artexlinux.org if you want to follow along if you want to install this yourself you can of course go to downloads and Now of course, I am going to be using the base install I'm gonna be installing it from the bottom up So that's gonna be pretty similar to an Arch Linux installation But of course again, if you just want to try Artex You could just download it with a desktop environment pre-installed and it'll have an auto installer So if you want cinnamon XFC plasma, you know, whatever you want I think they had an announcement on their main page that they now have i3 and GNOME ISOs or something like that So you have a lot of choices, but I am going to be installing The base install I'm gonna be installing run it. Okay, and again Artex has three different choices for init systems. You have openrc run it and s6 The installation is going to be identical for all of them except for like one or two commands It's just like what you install and what you do to activate services So I will make notes of all that kind of stuff if you want to follow our follow along on openrc Now there they do have an installation guide on the artex wiki You can check it. I'm not really gonna. I'll hopefully I'll be able to do this from memory, but you know I might refer to this I'll also say so anyway, go ahead and download the ISO if you haven't already and usually you'll want to put it on like a usb drive So I'm going to well, I'll go over to another workspace Now if I run lsblk before I put in my usb drive, you should see I have Two hard drives here. Let me actually put this in Okay, so you see I have sda. That's my main hard drive and sdb That is my media hard drive if I rerun it once I put in the usb. You'll see that sdc is my usb drive So, you know 7.5 gigs. So its file location is going to be slash dev slash sdc Okay Now if you want to go ahead and put that ISO on the usb drive I've already done this and I'm actually going to be doing the install a little differently But if you want to put the ISO on that thing, you can just say dd And give it an input file that is your iso. I have my iso right here in my home directory Give it the output file dev sd whatever it is You got to be careful with this. Obviously, you don't want to run it on the wrong Thing you just want to create a bootable usb. You don't want to overwrite your system So make sure make it make absolutely sure that it is the hard drive you want and you can also give it, you know status equals Progress or something like that if you want to see and anyway run this and it'll take a little bit of time But that'll give you what you want a bootable usb again. I already have it But um now once you have that you can just plug it in your computer Reboot press usually f10 or f2 Or your think pad button or whatever and it'll give you a a BIOS menu and you can choose to boot from the usb And then you can be an installation now. I'm going to be doing things a little differently again I'm just installing it on this hard drive here So i'm going to go ahead and plug this hard drive in and you can in artix you Well, this is the same thing as arch you can actually install these packages Like for example artix Let's see what it's called artix live base And this just gives you it installs on your computer all the install scripts that they use to you know like Base strap like which is their equivalent of pack strap and stuff like that So now I can actually just treat No, it's not gonna load It always takes a second for this solid state drive to load sometimes I'm not quite sure why I think it's the connector, but okay. Yeah, there it is So I'm just going to pretend that I've booted into my live environment because I already have the scripts for doing that And I'm gonna go ahead and start installing this on this You know This new hard drive so anyway that once you boot up onto artix linux using your usb drive You log in with the username root and the password artix Or you could log in as the artix user and then you know Sudo sue or whatever But we're gonna start the installation. So the first thing you really want to do is discover if you're running efi Or legacy boot. Okay. Now. Basically most new machines will have Legit or uefi And in order to find out if you have it just go ls try and look at the contents of the following directory It's sys firmware efi fvvars Okay Now if you see stuff come up, you are using uefi if you don't see stuff come up You are not using uefi. So just keep that in mind You're gonna have to partition things a little differently if you're using one or the other and one or two commands are going to be different Now I actually do not see anything because the computer i'm running on has legacy bios But i'm installing this for a system that does have uefi So i'm actually going to run the uefi installation, but it's again only like one command is going to be different So First thing you want to make sure is that you do in fact have internet. So just ping a website I of course already have you know, I'm on my main computer I always recommend You know hooking up an ethernet port if you don't Have an ethernet port you can use what is it wi-fi menu or whatever. I don't think I have wi-fi menu installed But that should be that should come with the artix iso It might just be one word, but I don't have an install on my computer Um, and that will allow you to pick wi-fi, but I highly recommend using uh ethernet So anyway, let's go ahead and start. So you want to figure out which again Which drive by running lsblk you want to install on i'm going to be installing obviously on dev sdc So the first thing you can do is actually run fdisk On dev sdc Now i'm going to be deleting everything on this hard drive If you only want to delete a single partition or something like that, for example, what I have right here Like this is the on my pre-existing installed operating system, which I think is manjaro This is the boot partition This is the root partition So all the system is installed there and this is the home partition I'm going to delete all of this, but if you know what's what you could only delete The boot and root partitions and install from there or and save the home partition So you don't have to you know back up your files, but i'm going to be deleting everything So once you run fdisk on this just press d to delete a partition Last which one i'm going to say three d again i'm going to say two d again And now partition one is deleted if you press p at any time it'll list your partitions I don't have any But now we're going to add some partitions now. Here's how i'm going to do it It's always especially if you're using uefi you have to partition your drive or at least you have to have a boot partition Some people in other cases will just use everything in the same partition But this is this is what I do pretty much all the time now So first i'm going to type in in to make a new partition And the first one i'm going to make is your boot partition. That's always what you want to have first So partition number i just press enter first sector. I'm just going to press enter Last sector is you're going to tell it how big you want it to be and I am just going to say plus One g i'm going to make it a gigabyte big and that gives you a little bit more wiggle room I think the arcs the ardex wiki recommends like maybe half a gig or something like that But you know I like having a little bit more So i'm just going to say one gig That's fine And it's going to ask you if you already have something pre-installed it'll ask you to remove the signature I'm going to say yes So next so that's one partition. We can press p to view it Now next i'm going to add in two more partitions. The first one's going to be the root partition Okay, so first sector press enter Last sector you're going to enter to the size So this is going to be how we're all of your system like Is like the it's going to be the size of your full system. So you don't want to make it super small I I would say that I usually use 30 gigs I don't know maybe for this example we'll use yeah, we'll use 30. Okay, so 30 g plus 30 g and A lot of distributions this one This is one thing that annoys me about like ubuntu and some distros that automatically partition your drives They'll pick way too little space for you to use I I think you need nowadays you need around 30 or so. So i'm going to say 30 at least and i'm going to say yes to remove that signature if it asks And yeah, because there are some distros that auto install like 10 gigs or something like that like especially if you're Updating your packages and you have a bunch of a big package cache that you want to keep You know you or if even if you just have a lot of programs installed you we want some room anyway So that's our root partition and now i'm going to make a home partition Number three just press enter first sector just press enter and last sector you can just press enter And it will automatically fill up the rest of the space remove that signature and partition it again Or press p to print it and it says okay if we save this the partitions will be wiped That's what we want I'm going to say w to wipe them and of course make sure that you're doing this on the right partition You're not like accidentally doing the you know your media direct your media External drive or something like that or some hard drive you don't want to be doing it on But i'm sure that sdc is what i want I'm going to press w to write so it leaves f disc and now we're back in the shell So now we should see Oops, I mean if we run lsblk, we should see uh, okay Yeah, so we have all this of course i've formatted it exactly how i formatted it before but i wanted to show you You know just in case so the next thing you want to do is start putting file systems on these partitions So we can put files on them. So i'll start with the command mkfs ext4 we're going to make an ext4 partition on dev sdc 3 Okay, now this is an important thing i'm going to format the root and home partitions in uh, ext4 That's nor ext4 is usually what you partition linux part or the file system you put on linux partitions But if you are using uefi if when you run that ls command you solve bunch of stuff You are going to want to use a fat partition for the boot partition If you're using legacy bio so you can run this command on sdc One or whatever your your partition is but i'm going to run this for um Should have started running this because this will take a little bit of time but basically In uefi systems, you have to have a fat system on your Your file system on your boot partition But legacy bios just make everything ext4 and this might take a second so i might have to wait Okay, so home partition is done. So now i'm going to run i'm going to make an ext4 Partition on the uh the root partition, which is sdc2 This will take less time because it's smaller and now if you are again if you're running legacy boot Just run that command on sdc1, but if you're running uh if you're Using uefi you want to say mkfs fat and then say f 32 and so that will install a fat partition on this last one Okay, so now we have all our partitions. We have file systems on them Now what we basically all you do now you mount them in the way that you want and you install the operating system Which is just one command and then you will make a couple changes after that and we'll be done Okay, that's basically all it is So now what i'm going to do is you're going to take your root partition In our case, it's the second one and i'm going to mount that to dev sd Well, no i'm going to mount dev sdc2 To mnt or you could actually mount it wherever But you know we're i'm going to be doing everything at mnt Okay, well don't mount it wherever mount it in an empty directory But so once you've done that we're going to make some directories in that mounting directory one for home And one for boot And now that we've done that we can mount the other two drives So let's mount the boot drive, which is the partition number one mount it In boot And we will mount the home Partition and mount home. Okay, so once we've done that We now see if we run lsblk, we will have everything mounted where it's supposed to be. Okay, so that's great So now we the command you use to install the operating system is base strap So this is the same thing on arch Linux on arch Linux. They call it pack strap But same concept and so here's what you do you tell it where to install the operating system in this case It's wherever we've mounted it. Uh, we of course did it in mnt And then you're going to tell it what to install you are definitely going to want base You are basically definitely going to want base develop that gives you sudo and a bunch of other basic stuff Now i am going to be installing for run it So i'm going to say you have to say run it and e login d run it Now I will say if we go to the installation page Let's see We not configure the base system install a base system They will tell you the different commands you need to run again If you're running just if you want to install artix with open rc You just run you install open rc if you want to install run it You've got to install those two packages that I just wrote out and s6 you got to install s6 and e login d s6 Okay, um, so that's all you got to do Um, additionally, you're going to want to I think they put linux in or no They don't put linux here. They install it later on but we can install it in one command So we can say linux and you will nearly well not nearly certainly, but you'll probably want linux firmware That's if you want to if you have like proprietary A wi-fi driver that you need or something like that. This gives you some proprietary drivers And you could also just install any other program that you want to install right here I'm getting one vim for example, so I might as well put that in There are a couple other programs we'll install once we were in the system, but um, I'm going to go ahead and uh, let's Yeah, I guess I'll go ahead and run this this will actually take a little bit It'll download all the programs. Oh, excuse me and uh, run them all Um and or not run them all but install them all so I I'm going to stop the video for a second And I'll come back when it's done All right, I was off cleaning my kitchen looks like everything is done now So basically now we have an operating system installed We just can't boot to it So we have to set up our boot loader and there are a couple other settings we need to set Now one of the big the main things is when our computer boots up we need to tell it, right? So we've mounted these partitions like this We need to tell it to remount those in the correct position You know, we need to put the home partition in home and the boot partition and boot Uh, when it reboots. So the command you use for that is, um fs tab Uh gen now on if you're installing arch Linux, it's gen fs tab They renamed it for whatever reason on artix But basically if you run that command And give it a location Okay, it's going to generate an fs tab file, which basically is a file that You know tells you how to mount everything when you start up Anyway, we want to give this command some a couple options One of the big ones is capital u This uses instead of like the Device assigned numbers It uses its uuid, which you know, basically sometimes if you start up your computer It might assign a different drive to sda or something like that So we want to run this with you So we use the I mean, obviously these are not going to be sdc when we boot them up on another computer So you definitely want to have the u option and we're going to put that in Or actually we'll Pinned it to mount etsy fs tab, okay So that is inside of our partition now It's going to read that file and start everything up when it begins So I should say I meant to do this beforehand But you should or at least note it beforehand. Um, you are going to want to You might want to change your mirror. Uh, so if you go to pacman D mirror actually, let's do this on the main machine because obviously if we're in the the ISO it's not going to make a difference But let's so now that we have fs tab generated what we want to do is run art tools charoot And this is just like arch charoot or whatever on arch And basically we will run it on mnt and this will put us Into this, uh, you know now we are not running my laptop here We're actually running the installed operating system. We just installed Um, actually I'm in here. It looks like I'm just in shell I want to be bash just so I have you know bash features and stuff like that. So I'm going to run bash Um, okay, so there are a couple things to do now. Uh, let's actually let's do what I said just a second ago So you're going to want to edit etsy wait, what did I say? Oh, yeah mirror pacman d Mirror list. Okay. Now you can I'm editing in vim. I if you don't know what how to use vim use nano But I'm going to edit this file and this actually lists out some artix mirrors like, uh, you know with different locations and stuff You might want to change some stuff around in here. You might want to move For example, this one obviously has us in it. So it's probably in us. So I'll move it up there or something like that um, so this is the file that uh basically you want to have Mirrors that are close to you physically. So like Qinghua University is obviously not close. So, you know, I might want to move that to the bottom This of course is not mandatory, but you'll get slightly quicker speeds when you're You know updating stuff I should have noted that before we ran a base strap because it'll make the install a little faster But you know, it's it's not a big issue. Again, it's just like a time thing Okay, so one thing we want to do is we want to set our time zone so Run, we're going to make a symbolic link in from a user share zone info and you're going to pick your time zone I'm going to say America New York, okay And you're going to put that in slash etsy local time Okay, so that means if I run local time It will loot it will link right to that time zone. So that basically tells you where you uh, your system where you are And you might actually want to update the hardware clock or at least sys to hardware clock That's just to make sure that your system is going off of your computer's timer Okay, so what else? locale.gen I had to write this one down because I always forget locale and stuff like that but open up This file etsy locale.gen and this lists out all the different localizations or whatever and you want to find the one that corresponds to you know that you want so in my case It's english us And i'm going to uncomment both of these and once you do that you're going to run locale Save the file and run locale.gen And that'll take a second It's taking longer than I expected it to and now you're going to want to open up. Uh, what is it? No, you're going to want to do well. Yeah, we'll open up etsy locale.com This should be a new file that you're creating and you're going to manually set in here You're going to say this you're going to say lang equals Whatever your language is in my case. It's going to be en underscore us dot utf Hyphen eight. I think when I did my arch Linux video. I got this wrong because I put like a dot for eight But actually let me see in my notes. Okay under en underscore us dot uft hyphen eight. Okay. Yeah, that looks good So we're going to run that and that should be good Now another thing there are a couple other packages. I want to install so I installed Well, actually I'll I'll just install two right now One is going to be network manager and this is to So to be clear right now, we have an internet connection. Okay, if I if I ping a website Okay, we have an internet connection, but that actually is from that's not in our our operating system where we've installed That's like from it's basically getting that from your computer already So you want to be able to tell you want to tell ardex that you want to start You know that you want to start the wi-fi manager at the whenever you actually boot up So we're going to install network manager now. You could use their minimal or ways of doing this, but I I always just recommend use using network manager and if you are Running a run it you're going to also install network manager hyphen run it. I think that's the name of the package Yes, it is And if you're installing s6, it's going to be network manager hyphen s6 And I think there's also another version for open rc So to be clear network manager is going to let you I mean if we enable this service It's going to let you uh, you know, uh, what was I saying? Um automatically start the internet whenever you boot up. Okay And the run it file. This is just specific to run it again run it is the thing that's going to be starting all system services So we need this file to actually tell it what to do So this will take just a second and I'll come back and when it's done Okay, now that's done The next little step is going to be different if you're using run it or open rc or s6 We want to tell ardex to start network manager whenever we boot up. Okay So if you go to the, uh, insulation page, it should say they should give you an example of this. Okay So yeah, here's an example of, um, basically, well, I'll just run the run it command first. Um Now normally if you want to tell ardex to automatically start a service when you boot up You tell it to do this you say at c run it sv and in this folder You'll see all the things that it can auto start. So we want to start network manager And so normally you're going to link that to run Slash run it slash service now if you run this right now, this is once you get your You know computer all started up and stuff like that on run it This is the command that's going to work But if I run this now, it's not going to work right now because technically this Directory has not been mounted because we're not at we haven't actually booted up in the machine So in the environment in our current environment, the command is going to be a little different You're going to link this to ed see run it. I got a look run Sv deer and then current. Okay, so this will auto start network manager Now normally when you're once we boot into this computer You're going to run a command like this to auto start something on run it just link It's service here to run slash run it slash service and that's it Now if you're running open rc or s6 you have slightly different commands So for example an open rc it'd be rc update add network manager And I think in an m will be capital in that case And s6 they have commands for that as well. That is how you auto start a service So now when once we boot up in this computer again, we haven't set up boot loading yet But once we set up grub and all that stuff when we boot into this computer The network manager should be running by default. So if we're connected to the Ethernet or something we'll have internet. Okay. All right. So a couple of last things Let's go to uh, let's edit the file etsy slash host name This should this file should not exist already So i'm going to name this computer desktop. Okay, because that's going to be my desktop And additionally you're going to want to go to etsy slash hosts. This file should exist already And you know people will type different things in here, but here are the typical defaults You're going to list you're you're going to take the typical, uh, you know ipv4 local address and say local host You're going to say that local host that's the ipv6 Default and then you're going to usually this is what the wiki tells you to do you do One one two seven point zero point zero point one and that is going to go to Whatever you name your computer dot local domain And repeat that name again. Okay But uh people do different things in this file, but you can just do that because that's what the wiki says Okay, so let's go ahead and make our machine bootable so we can actually you know start it up on its own computer I'm going to install some other programs again You could have installed these when you originally ran base trap, but I guess for illustrative purposes I'm dragging it out. You're going to want to install grub If you have if you're going to dual boot or if you want to later install some other operating system You'll also want to install os prober I'm not going to be installing this because I don't need it But that's usually what you need if you're setting up a uh dual boot thing And if you're running uefi again If you ran that command at the very beginning that ls command where you looked at your fevars directory You are going to want to install fe boot manager. Okay So this should not take too much time to download But so if you're just if you're just using traditional boot, you just need grub if you're using uefi You need fe boot manager and remember If we're using uefi, we also created a fat partition. Whereas you don't have to create a fat partition I mean for the boot drive or whatever Okay, so let's see. Uh, yeah, I guess I'll stop this and come back in a second All right, so now we have our bootloader install or well really we have grub and all that installed We have to actually install I don't know. We have to set it up. So here's what you're going to do This command is going to be different if you're running uefi versus legacy boot If you're running legacy boot and again if If you ran that ls command on fevars and you didn't get anything You're running legacy boot. So you're going to want to say target equals 386 386 got to actually type it right PC and then you run that on your uh the whatever drive that you're installing this on In our case, it was dev sdc. It might be dev sda again check with lsblk to see what it is But you're going to run that command. Um, we are installing for a uefi system So we're going to run that means we did have those fevars at the beginning or at least I would have if I was actually running On the machine. I'm installing this for so we're going to say grub install target equals x 86 uh underscore six four hyphen efi okay, and we're going to give it an fe directory directory equals slash boot And we're going to say our boot loader Is uh or boot loader id equals grub I think that has to be capitalized. Okay, so let's run that That'll take just a second. I think uh fe variables are not supported on the system Okay. Yeah, it's no it's no problem. It's just what I thought you can't actually install a uefi boot loader if you're on a legacy BIOS machine So I actually just took my uh took it off went to my desktop computer ran this command Came back here. I actually did a lot of chores. I've been cleaning my house today But I came back here and so now consider this command run uh already run for you so That will actually set up Everything we need except for we need to make a grub config So we want to say grub make config by default this command will just output stuff to the terminal So we want to put it in a particular file We want it in boot Slash grub slash grub cfg So that will generate your grub configuration file and you'll be able to boot now There's one last thing I have not done and that is set a password. So let's set a password with pass wd Um, and I will give it a nice little password here I think arch linux. You don't actually need to set a root password. It will still let you log in But artix does not let you do that. Um, so you do have to set a password Well, you should probably you do well. You should definitely set it for arch anyway. Just set it for something So we have our root account. Uh, we should be able to plug this up It will boot it will have network connection And of course, it's just going to be a plain operating system But then you can start installing whatever you want and well, that's for another video, but let's go check it out right now Just to verify that it works. You can see that our hard drive is attached barely. It is there. It's plugged up Uh, and I have logged in on the system here You can see I've logged in as root and I have pinged my own website notice that sometimes on artix depending on what services you have started you might get like some kind of Output or something right before The log in but you can still log in and I put in my password whatever Um, so yeah, that's that's basically and you now have artix installed The uh, a minimal install the next place to go from here is to install a graphical environment I might do another video on this. I have done a video on the past. I'll link that one Um, and if if not, I'll be doing a video on this pretty quickly But basically you just install some kind of desktop environment or window manager tell artix to start it And then that's it and you're taking care of same thing on arch same thing on any other linux distribution Uh, so yeah, that's about it. Uh, see you guys next time now. I have my desktop back