Arch Linux: A ℂ𝕠𝕞𝕗𝕪 Install Guide

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi i'm denshi and in today's video i'm going to be doing a proper no-nonsense and calm guide on how to install arch linux now before i begin the installation this is a uefi install this means that this install is going to cover steps that are only compatible with relatively modern computers released in the last four to five years chances are you're probably using a computer that uses uefi so all the steps in here will be perfectly fine for you however if you're in doubt just make sure you see this screen when you turn on your arch linux usb stick when you plug that in and boot from it you should see these options and that's where our install is going to start by pressing enter on the first option or just letting it time out as it does by default now the system will begin booting in that time i want to bring your attention towards the right of the screen where i have the arch linux install guide this is linked in the description for you to follow and it's a very nice well-written text guide on how to install the distribution as you can see the pre-installation section covers downloading the arch linux iso i'm making the assumption that you already have an arch linux bootable usb stick and you've just booted into it you see this screen and you're pulling your hair out because you have no idea what you're doing i'm going to scroll down over here to the keyboard layout option because that's the first thing you're probably going to want to set by default arch linux will use the us keyboard layout now chances are you're probably using that as well but let's say you want to use the italian keyboard layout in that case you can type load keys space i t and press enter and now you have the italian layout i'm going to run load keys us to load the united states one again because i'm using that the next step is going to be connecting to the internet now i hope you do have an ethernet connection for your arch linux install if you have a laptop please stop and take a moment to plug in an ethernet cable if you do not have an ethernet cable available or the ethernet plug on your laptop isn't there or it's broken i guess you're going to have to use wi-fi i'm not going to be covering how to use wi-fi how to set that up because that's not really possible on a virtual machine however if you want to know how it works i will link a guide in the description that explains how to use iwd which is a tool you can use to connect to the internet which is included in the arch linux installer usb so if you run iwctl it will send you straight into their interface and you can type device list as you can see i don't have anything here because i don't have any wi-fi devices so i'm just going to type exit and now we can get on with the install one important thing to know about the terminal is you can type control l to clear the screen this is going to be very useful because the terminal can get quite cluttered and sometimes you just need to clear your terminal anyways to test the internet connection we're going to run a ping command we're going to run ping archlinux.org or any other internet address and as you can see it connects now if you want to stop any command that's running on your terminal all you got to do is type control c and as you can see it stops the command and we're going to do control l to clear the screen again and we're going to scroll down over here to the partitioning part now as you can see the arch linux install guide recommends you use fdisk i do not recommend use fdisk it's not as intuitive as a different tool you can use called cf disks you're running cf disk on your system pressing enter you'll see you'll be asked for a label type now you're on uefi so you should probably type gpt you might not see that screen and instead you might end up on this screen by default while you won't see a single line that says free space you will see a bunch of partitions like this so this is sort of like what a windows partitioning scheme would look like i'm not exactly sure but it looks similar to this assuming you want to delete everything and only use arch linux just go to each one of these little partitions and move your arrow keys the left and right ones to select an option we're going to do the delete options we're just going to press delete and press enter same thing for the next partition we're going to go over to delete and press enter and the same thing for the other ones just press enter and now we've ended up with just this free space and nothing else we're going to press enter and delete 32 gigs or whatever the size of your drive is and type 100 capital m because we're making a 100 megabyte size partition that's going to be our boot partition dev sj1 moving on to the next partition we're gonna make this one four gigs in size now you can make this four gigs or eight gigs or 16 gigs because this is our virtual memory partition it's used by our system to store excess memory whenever the regular system memory fills up if you do not make this partition you're going to end up with a system where as soon as the memory fills up it crashes and of course you don't want that to happen now going down to the lens partition we're going to press enter and press enter again and that will automatically create a partition with the rest of the space on the system now moving your arrow keys to the right option and pressing enter we're going to type yes and press enter and as you can see we've made three partitions now you may have noticed that i didn't fiddle with the partition format over here you see linux file system for each of these three partitions that's because we're going to manually format these from the command line and not from cf disk to do that we're going to want to go to the quit option and press enter now we're going to clear the screen with ctrl l and we're going to run the command lsblk to list our block devices this is a very useful command just to keep a heads up on what's going on with your partitions now over here there's the format the partition section on the archwiki you can look at the commands that i'm going to be using from here the first thing we're going to want to format is our root partition so that's going to be our main partition where all our system files and documents and pictures and home folder is going to be stored that will be devsda3 because as you can see that's the 27.9 gigabyte one we're gonna run mkfs.ext4 ext4 is the linux file system space and then dev sda3 so press enter and as you can see it has formatted it now we're going to do the boot partitions that's the sda1 we're going to want to run mkfs.fat space dash capital f space 32 that's to format it to fat32 which is the required file system then we're going to press space and type dev sda1 and we're going to press enter and there you go we formatted it to fat32 now we want to format sda2 so that's our swap partition this is pretty easy all you got to do is run mk swap space dev sda2 and press enter and there you go we've formatted it as well okay so now we're going to want to start mounting all of our partitions so once again always start with the root partition to make things as clear as possible we're going to run mount dev sda3 and we're going to mount it in forward slash mnt this is just a standard mount directory this is where you're expected to mount the root directory if you're working on a system so we're going to press enter now we're going to want to mount the boot partition however the boot partition is going to be mounted in boot efi which is a directory that does not exist in our root partition as of now so if we want to make it we're going to have to run mkdir space dash p space forward slash mnt forward slash boot forward slash e f i and there you go we've made the m t boot efi directory anyway as you can see sda3 is mounted to forward slash m t but we still need to mount sj1 so running mount dev sd one forward slash m t forward slash boot forward slash efi pressing enter running lsblk again as you can see it's mounted there and now we're going to turn on the swap partition it doesn't have to be mounted anywhere just got to turn it on we're going to run swap on dev sda2 and and there you go we've turned on swap so everyone else be okay again as you can see all three partitions are activated appropriately the root partition is in mnt the swap partition is activated and sda1 our blue partition is an m t boot efi anyways now comes the fun part which is the installation to do the installation of arch linux we have to select the packages we want and install it into mnt so run pack strap space slash m t space and now we gotta pick the packages now i recommend installing the ones that are listed here in the essential packages on the install guide so that's going to be base linux and linux firmware as you can see it says that if you have a newer sound card you might want to get the soft firmware as well for sound cards so we're going to type that in as well sof firmware and we also want a few other things to install the sudo package and all the other kind of packages that we need to compile stuff to install things from the aur which is probably one of the most attractive features in arch linux we need to install base dash devil we're also going to want the grub boot manager which is what we need to actually boot our system without this it wouldn't work and efi boot mgr which is for efi support in grub we're also gonna want a text editor to edit text files on the terminal we're gonna use nano and we're gonna want a network manager for when we reboot the system that's going to be network manager with no spaces okay so that should be all the basic packages we need i'm not going to be running through installing a desktop environment and stuff i'll probably go through that at the end of this guide we're just doing a base install for now so just press enter and it's going to start downloading all those packages and installing them so just give this a minute 10 minutes 20 minutes however long it takes because your internet may be slower than mine you're in it may be faster than mine once it kicks you back to the terminal we're gonna come back to the tutorial and i'm gonna run you through the subsequent steps okay so all the packages have been installed now and we can move on to the next step which is generating the file system tab so if you run gen fs tab mnt as you can see you'll get an output in your terminal that gives you information on the file systems that are mounted there as you can see this is all correct dev sda3 is our root dev sda1 is our boot and dev sda2 is our swap so that's all good but we don't want this on our terminal we want this on a file in our disk so we're going to run that command again just by pressing up on your keyboard you can call back commands that you've already run we're going to press space we're going to type a greater than symbol which sends the output over to a different file and we're going to send it over to mnt etc fstab and press enter and we can check the contents of any file on our system by running cat and then the name of the file so mnt at c fs tab and as you can see it has the same contents as what was outputted to our terminal so not only is this a good way to get the file system tab carried over but it's also a great way to learn about how to redirect output on the terminal which is something very useful if you're looking into making scripts anyways with that out of the way we can finally go and enter our installed system running arch dash ch root or change root slash mnt now we're in our system so as you can see the prompt is no longer colored because we're using the plain bash shell and now we can start configuring everything from the inside one very very important part of setting up your system is setting the time zone all you got to do is run ln this will set up a symbolic link dash sf user share zone info and now you got to select your region in my case it's going to be asia and then dubai you can press tab to auto complete and you'll get some kind of result we're going to want to link this over to etsy local time so pressing enter and now if we run date as you can see just i'm going to check my clock over here yes it is 104 so the time is correct now we're going to want to run hw clock dash dash systohc that just synchronizes the system clock and now we're going to clear the screen again and we're going to do localization now this is another step where a lot of users get stuck on but don't worry i'm going to run you through it clearly and explain what i'm actually doing so we're going to want to run nano remember we installed nano before when we were installing the system etsy locale.gen now by running this you'll be editing a file that contains all the different locales available on your system as you can see i'm using my arrow key to scroll down and we want to scroll down until we find the locale you want now in my case i'm going to be using this one over here en underscore us dot utf-8 space utf-8 so all i want to do is press the delete key to delete that hashtag or just you know go in front of it and delete it and now all we got to do is run ctrl o press enter and ctrl x to exit at c local.js now if you run the locale gen command as you can see it generates still call for n underscore us.utf-8 and there you go we have generated our local we want to specify our locale in etsy locale.com because some programs will be checking this file as well so in this file we want to type lang equals en underscore us and capital letters dot utf in capital l dot utf and capital letters as well dash eight and once again to write and quit you want to run control o press enter and control x now we can set our key map i'm not going to do that because i already have the us keyboard layout but if you wanted to change your keyboard layout on the terminal you would have to run nano etsy vconsole.conf go into here and type keymap and then i don't know equals it or something i'm just going to leave it as us you don't even have to type this because the default is us but i'm going to do it for formalities so control o press enter control x all right so clearing the screen again now we want to specify the host name so nano etsy host name and i'm going to name this computer archie with a capital a control o press enter control x to write and quit okay so that's pretty much everything done that we can look at in this guide the init remfs we don't have to do this because this was already done when we installed the linux package the one thing we do want to do is the root password so run p-a-s-s-w-d press enter and type a password i'm just gonna do one two three four because i'm not actually installing this as a usable system but make sure you pick a good password for your root account so it's gonna ask you to type a password again i'm just gonna type one two three four press enter and there you go all right so you're probably going to want your own personal user on the system rather than using the root user because using the root user for stuff it's not very viable on a home system so to add a user we're gonna have to run user add dash m which means we're gonna make a home directory dash capital g that means we're going to add us to a group and the group's going to be called wheel and you'll see why i'm making that group later and then space dash s space forward slash bin forward slash bash so that specifies the shell we're using we're using bash so we can just use that then space and we got to specify our name i'm just going to call myself denshi so there you go we've added the user now if we run p-a-s-s-w-d denshi you can set your own personal password i'm going to set this to 1 2 3 4 as well so that's the same as my root password although for security reasons you might want to set your root password differently to your user password now we're going to want to set up sudo so you can actually run sudo commands because if i use the su command to switch the denshi user so su denshi and if i try to run something in sudo so let's say i want to run sudo pacman dash capital s y u that's to update the system if i run that it's going to ask me for my password i'm going to type my password in and as you can see it gives me an error then she is not in the pseudoers file this incident will be reported so how do we fix that well first of all i'm going to type exit to exit my regular user and go back to the root user and now i'm going to clear the screen and you're going to want to run editor in capital letters equals nano that's going to specify the editor we're going to use for the next step which is going to be space vi sudo or vsudo so this edits the sudoers file so scrolling down in the suitors file once again we're in nano right to the bottom there's these options over here you want to go and uncomment this option which is percentage wheel all equals brackets all all this lets anyone part of the wheel group which remember we added our user to run pseudo commands so now that we've edited the file we can run control o press enter control x to right and quit i'm going to clear the screen i'm going to switch back to the denshi user and we're going to try to run that sudo pacman syu command again so press enter we're going to type a password in one two three four and as you can see it works this time so just like that we've added our user to the sudoers group so we can now run commands with sudo which you'll see a lot online and online guides and you will need this to install packages as your user now that we've done that comes the last essential steps before we reboot our system the first one is enabling core services so the only one we're going to be enabling today is network manager for managing our networks so system ctl enable network manager make sure you use capital n and capital m press enter and as you can see it enabled it now if you have let's say a display manager like light dm or gdm you're probably going to want to run system ctl enable gdm or light dm but we'll get more into that later when we set up our visual environment in the meantime we're going to want to do the last key step before rebooting and that's setting up our bootloader so remember when we installed grub in efi boot manager there's a command on our system called grub dash install and then specify our disk so in this case it's going to be dev sda we're going to press enter and as you can see it installed group but that's not over yet we still have to configure grub so for that we're going to do grub dash mk config space dash o to send the output over to forward slash boot forward slash grub forward slash grub dot cfg pressing enter it's going to scan for kernels and there you go it installed grub now that error where it tells you about grub disable os prober you can ignore that because we do not have that enabled that's only useful if you're dual booting which we are not doing today anyways typing exit over here will bring us back to the colored prompt so that's on the usb we're going to want to run new mount dash a to unmount all of our drives that are not busy and now we can reboot our system and end up in arch linux i'm going to run reboot and we're going to just cross our fingers and hope it works as you can see we're in grub it's going to send you to the screen as soon as you boot up we're just going to press enter or wait for the timeout as you can see our toolnicks is booting up and here we are we're in the login for archie which remember is the hostname we specified now my username once again is denchi the password is one two three four as we said it before and here we are one thing that we want to check is make sure we have internet connection we set up network manager last time so as long as we have an ethernet cable plugged in we should be able to ping denshi.org and as you can see yeah it pings it so our internet connection is indeed working okay so this is all well and good but how do i set up a graphical environment from here one thing though i'm just going to make the font bigger set font space dash d will double the size of the font on your system so you might want to do that if you're installing on a small screen so as i was saying one last thing we want to do is set up some kind of graphical environment a good graphical environment i recommend is kde plasma so to install that we're going to run sudo pacman capital s plasma which will install all the basic plasma stuff and to boot up into plasma to actually log into it we want to install sddm as well now we're going to press enter and it's going to ask for our password so i'm going to type my password one two three four press enter and as you can see it's gonna ask for the packages you want i'm just gonna press enter because those are perfectly fine same thing for these packages just press enter same thing for this as well just press enter and as you can see it's got a lot to download so we're just gonna press enter and let it start downloading that stuff this might take a while so just give it a second i'm gonna come back when it's finished all right so all the kde plasma packages have been installed now but before we go into kde we want to make sure we've installed all the packages we want so let's say we want a terminal emulator sudo pacman space dash capital s console you have to have a terminal emulator on your desktop environment or you might be locked into it so you can still type commands and and do what you need to do we're also going to want maybe a text editor so that's kate that's the uh kde text editor and maybe a web browser so firefox should do so pressing enter we can start downloading those packages just give it a second and there you go so this should be pretty much everything we need for our little linux desktop experience so to start the linux desktop we're going to start sddm which is our display manager and to do that we're going to run sudo system ctl enable sddm but if we just run this by itself it's only going to enable it at boot we want to start it now so to do that we can run enable dash dash now and then press enter and as you can see it kicks us to the login screen i'm going to type in our login so in this case one two three four it's our password and that's the only user there press enter and we should be booted up into kde here we are there's a kde as you can see we have kate we got firefox and if we go to our application launcher we should be able to find our terminal there we are console and it wouldn't be an arch linux video if i didn't first of all install neofetch and then ran neofetch so i'm just gonna do that for decorative purposes there we are but anyways i've been denchy that was a comprehensive guide to setting up arch linux goodbye [Music] you
Info
Channel: DenshiVideo
Views: 5,318
Rating: 4.9087453 out of 5
Keywords: Denshi, DenshiVideo, ArchLinux, Archlinux install guide, Arch linux install, arch linux 2021, arch linux install guide 2021, arch linux, arch linux install guide, arch linux install, arch linux 2021 install, arch install, btw I use arch, arch btw, arch full install guide, arch kde install, linux arch guide, arch guide, arch 2021 guide
Id: 68z11VAYMS8
Channel Id: undefined
Length: 22min 10sec (1330 seconds)
Published: Sat Sep 25 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.