Simple Arch Linux Install Guide [2019] Arch Linux complete installation guide


arch linux one of the most versatile
distros out there today and a favorite among power users but it has a
reputation of being really difficult to install more involved yeah but have you
been using linux for a while that isn’t hard at all we’re gonna install it
together so you can see just how easy it is right now now every install is going to be just a
little bit different so my guide assumes a couple of things first is that we’re
installing on an EFI capable system if you’re not sure if your system uses UEFI
don’t worry we’ll be checking when we get into the live environment it also
assumes that we’re gonna use the whole disk instead of breaking up several
partitions for arch it assumes that you’ve downloaded and created a bootable
USB Drive for Arch Linux the download is in the description and last it assumes
that you have at least a little bit of experience working with the Linux CLI
it’s not a hard install but you add a minimum need to be able to replicate my
commands sometimes with minor changes let’s go to a computer so boot off your
arch USB Drive and select the top option in the bootloader a quick note if you’re
following along with this guide and you’re installing in VirtualBox you need
to enable EFI in the virtual machine system settings also when you boot from
the ISO after you select the option in the bootloader it’s gonna hang for like
two or three minutes just ride it out and the kernel will start booting
eventually once we’re into the live environment let’s quick check to make
sure that we’re booted into an EFI environment if you don’t have anything
in that directory or it doesn’t exist you aren’t booted using UEFI let me know
in the comments and i’ll make a video covering the BIOS install also now we
need to check to make sure that we’re connected to the network and have an
internet connection I’m gonna do that by pinging the CloudFlare dns 1.1.1.1 if
you’re installing over Wi-Fi you’ll need to connect to your Wi-Fi first you’ll do
that by finding your Wi-Fi adapter with this and I don’t have a Wi-Fi adapter on
this machine but they look just like this except it’ll start with a W instead
of an e then use the wifi-menu command followed by the Wi-Fi adapter you just
found and it’ll walk you through connecting to the Wi-Fi it’s pretty
straightforward from there next we’ll get the disk set up so that
we can install arch onto it I won’t be covering dual boot here but if that’s
something that you want to see again let me know in the comments I can make that
guide if people want it so we can see what this we have installed on our
system like this the disk here is the one we’re after disk SDA yours may be
named differently and if it is just pay attention for the rest of this guide and
when I use SDA you use whatever disk you’re installing to we’re going to use
a pretty standard disk layout that’s three hundred Meg’s for the efi
partition a swap partition the size of the installed ram so four gigs in my
case and the rest of the drive for the actual arch install
we’ll use cfdisk to partition the drive once we get into this we’re gonna
destroy everything that’s on the drive so if there’s already windows or
something installed on it it’s gonna be gone along with any files when we’re
done so you have been warned so start up cfdisk and choose GPT you
can see my disk is empty but if there’s any partitions here just select them
with the arrows and choose delete for each one
we’ll make the efi partition first so select new for partition size we’ll use
three hundred Meg’s and hit enter now choose type and scroll all the way
to the top and choose efi system now arrow down to the free space and choose
new again and put in the size for your swap partition again I’m gonna be using
4 gigs another common option especially on older machines is to do twice the RAM
size again choose type this time choose Linux swap one last partition to make so
arrow down to the free space and select new and just hit enter to use the last
of the space available on the disk cfdisk defaults to using Linux file system
so we don’t need to choose a type for this one now arrow over to right and
type yes to confirm that you want to erase the disk and create a new
partition layout then choose quit now the partitions are created but we need
to format them to the proper file systems before we can use them for the
efi partition we’ll format as fat32 that’s the first partition so that’s
going to be SDA one for the swap partition which was the
second partition so SDA 2 we will use the make swap command and for the
install partition we’re going to use ext4 and that’s going to be SDA 3 now that the disks are set up we can
actually start installing our arch system we do this by mounting the drive
and then chrooting to it we’ll also need our swap partition enabled so that
it’ll be picked up when we generate the fstab so first let’s enable our swap
partition and then mount SDA three now I’m gonna use a tool called
reflector to generate a mirror list this is optional but I highly recommend it it
can darastically increase the speed of our initial install and we can use the
generated mirrorlist in our final install as well so we need to update our
package list and then install reflector now let’s let reflector generate a
mirror list for us next we use pacstrap to download the
base set of packages arch needs to run and install them to the new systems
partition this can take a few minutes depending on your system and internet
connection while this runs if you want to see more Linux arch or other
technology stuff this would be a good time to hit the subscribe button and if
this has been helpful to you so far a like on this video wouldn’t mean a
lot to me now that the base is installed we need
to generate an fstab which is the file that tells Linux where all of our disks
and partitions are and what they’re used for we just have a couple things to
configure and we’re gonna be done installing arch so let’s chroot into our
new install if you generated a mirror list with me we can first delete the
mirror list in our new install and copy ours over now that we’re in let’s set our hostname and set our locale find all the en-us entries and uncomment
them by deleting the hash at the beginning of the line now generate the conf using this command
and create our locale.conf next we need to set our time zone which
can be a little bit confusing so to start I’ll show you how I’m gonna set
mine for US Central Time first make sure that the local time file doesn’t already
exist sometimes it does so I use this for my time zone because I know that
Chicago is already in my time zone you can find a time zone near you by
first listing the files in the user share zone info directory like this
finding the country you’re in and listing the files in there and then sim
linking the file that’s in your time zone to the Etsy local time file for me
it was Chicago so again I use this command now we’ll set the system Hardware clock
to use UTC update and upgrade the packages in our
new system with pacman there shouldn’t be anything to upgrade but just to be
sure we’ll set the root user password type the passwd command type your
password nothing is going to show while you type and then type it again now
let’s create a non privileged user for regular use let’s install sudo and add the wheel
group to the sudoers so that we can use sudo after we boot into our installation in here uncomment this line and now we only have one step left and
that’s to install our bootloader using pac-man let’s install these packages make the efi directory and mount our efi
partition into there once we have that mounted we can install
grub and generate the config that’s it grubis installed so let’s
exit our live environment remove the install USB and boot into arch so this
is our minimal install of arch I told you it wouldn’t be so bad let me know if
you had any issues down in the comments and check out my channel in the
description for any guides on installing x11 or window managers desktop
environment stuff like that if you want to see more like this hit that subscribe
button and if you thought this video was helpful it like peace

39 Comments

  1. Hi EBT,
    I presently run linux mint on sda and I have a bios , not an efi. I want to keep the mint grub2
    I would like to install arch on another hardisk
    I would certainly like you to make a video with these two constraints ( bios + another hardisk)
    Can I install on a GPT harddrive ( sdx, not sda), which has already been partitioned and formatted with gparted ?
    I would prefer another GPT hardisk, ( which I have), but I can also use another dos partion hard drive
    I would suspect that the arch installation should NOT install a bootloader, since I already have one on Linux Mint ?
    Is that correct ?
    Kind regards from Denmark
    🙂

  2. If possible a guide pos instalation, like themes, how to configure, necessary packages, apps so you wont have problem when trying to download things like chrome xd
    Wonderfull guide i actually took me 17 min to set up while other guides took me a week xD

  3. I wonder if it will be too much to ask for a guide about gpu passthrough 2019 using arch linux host and windows 10 guest, since you were the only one who explained soo perfectly and in less then 20-30+ min like most of guides and doesnt work from the first time hehe

  4. I started out Arch as a side project back in 2015 about I think. I has distro hopping like crazy. Going from Ubuntu to Fedora to openSUSE etc… Every distro I ran into issues. Mint, I didn't like how old the packages were (personal preference). Debian, openSUSE, I ran into dependency hell. Fedora and openSUSE, I ran into lack of media codecs hell. Ubuntu, I didn't like Amazon putting ads in my dash, etc. I looked into Arch as a side project to learn from. At first was scared, but then started looking in the repos and the AUR, and realized that it had all up to date packages, and literally everything I was looking for available for it. Codecs, etc. And no dependency issues like I had run into on other distros. I decided to learn how to install it. Spent many sleepless nights, and many headaches getting it to work but now I run Arch as my daily driver with the possible hop to Manjaro if it breaks and I'm feeling lazy. But I am Arch family for life. My new ThinkPad with Nvidia was a pain to get working in Arch, but once I got it working in January, it hasn't broken on me since. And the last install lasted me Sept-Jan on my old laptop. I wiped it to distro test on it now that I have a new main rig. I don't consider myself a power user. And I am definitely NOT a programmer. So I would add for people thinking about trying it. Don't think you have to be those things to get it working.

  5. I'm having troubles at the mkswap and mkfs part, this is the reddit link where I posted my problem, would you please give me some advice on this?
    https://www.reddit.com/r/archlinux/comments/bf74qn/mkswap_and_mkfs_not_recognizing_my_partitions/

    THanks in advance!

  6. A video with the bios install would be great. The old Chromebook I am trying to convert doesn't have efi firmware. On a side note, even though I couldn't do much of the install, I did watch the rest of your video and its more concise and helpful than other videos I have looked into. Thank you.

  7. Great video on the simple install of Arch Linux. I switched from Linux Mint to Arch about six months ago and haven't looked back since. It's nice being able to be in total control of all aspects of the build, once you get past the slight learning curve there's not much you can't do with Arch. My current set up is Arch with i3 as my window manager, also have the plasma desktop environment that I switch to sometimes. Look forward to more videos from you, maybe one on i3 if you get a chance…

  8. I'm broken at the last part..SAD, but tomorrow I give it a other try. Thanks for the good video, great. Arch4All

  9. This is the best tutorial I've ever seen about this topic, but you should mention that it's necessary install this packages.

    If you want to use *wifi*:
    networkmanager
    netctl wpa_supplicant dialog

    To mount USB/SD cards:
    gvfs

    To mount Iphone:
    gvfs-afc

    To mount Android:
    gvfs-mtp

    If you have a Laptop and you've to use the touchpad:
    pacstrap /mnt xf86-input-synaptics.

    You can install all the packages with (except the package to use the touchpad):
    pacstrap /mnt base base-devel grub os-prober ntfs-3g networkmanager gvfs gvfs-afc gvfs-mtp

  10. hey. thanks. was looking into your guide and found reflector trick useful.

    The only thing I would love to correct here is genfstab. You didn't include output into fstab. try fresh installation and after your

    genfstab -U -p /mnt /mnt/etc/fstab

    check it with "nano /mnt/etc/fstab" ,- it will be empty. You should have used

    genfstab -U /mnt >> /mnt/etc/fstab

    (btw. -p is default , if you check -h it will show you that -p parameter by default so you can just drop it ).

  11. hey dan, if you make arch BIOS installation video in the future, could you also explain how to setup some window manager(maybe i3)?

  12. After rebooting, my computer has no internet and can't resolve any host. The Arch Linux documentation despite being called an 'excellent resource' everywhere offers a LOT of unstructured and unhelpful information. Also the fact that it changes quite frequently adds to the lack of usefulness. Having searched on google and read through the first 10 results (to no avail) I found a thread on the Arch Linux forum marked as [SOLVED]…and the solution is to reinstall and install everything necessary during that process. ^^)
    Maybe tomorrow. I begin to see parallels between a successful Arch Linux installation and the lottery. Lucky all you millionaires!

  13. Simple and straight to the point. But, you should have mentioned about "systemctl enable dhcpd" and stuff like how to save config file (CNTRL O+ CNTRL=X). Not a big deal. But, I have seen people having struggle and getting stuck in nano editor. Especially keys like '^" actually means "CNTRL". Anyways, great tutorial.

  14. I installed it successfully but upon removing the ISO and rebooting….it rebooted into a UEFI shell instead of my newly installed Arch shell. I don't know what to do, Arch kicks my ass every time. I would really like a successful install to DE one of these days.

  15. YES! Finally, I found a Video which helped me out installing Arch Linux. I've been honestly so frustrated lately since everybody just showed on how to install Arch Linux on BIOS/Legacy Systems and not UEFI. But you did 🙂
    Everything works perfectly fine and the System runs very smooth & nice. I am still a beginner in all of this Linux Stuff but I'd definitely say Arch Linux 4 The Win! 😀

  16. I have a Dell laptop. 2018 model and very powerful. When I boot from a usb stick, there are two options, one is legacy and the other is eufi or some shit like that. Am I considered an eufi install or bios? Wtf why is it so hard to install this shit? 😂

  17. Hi sir I am having problems with boot loader on vmware there is a error which says grub minimal and when I try to boot with normal it starts again

  18. Dangit! all I see after rebooting is: GNU GRUB version 2.04 at the top of my screen and then: "grub>" written on the left hand side of the screen. Please help

  19. Hi, I am installing Arch on Oraclle VirtualBox with enable EFI, after command reboot its working fine and I am able to login & access as well
    but when i close virtual box and restart its again boot from ISO when debug i see grubx64.efi missing from /boot/EFI/EFI/grub_uefi/
    and issue gets resolved if i do just this step again
    $ mount /dev/sda1 /boot/EFI“
    $ grub-install –target=x86_64-efi –bootloader-id=grub_uefi –recheck

    Can you please suggest root cause of issue

  20. AWESOME VIDEO! Wish you would have showed how to install XFCE with everything that is needed to boot into XFCE but I think I can figure all that out. Great video…

  21. Hey! I followed your guide but made one big mistake. Instead of mkswap /dev/sdb2, I used mkswap /dev/sda2. This made whole of my hard drive that had data on it into swap. I immediately plugged out the hard drive (sda) out of my machine. How do I recover my data now? I have installed arch on the other SSD (sdb).

Leave a Reply

Your email address will not be published. Required fields are marked *