Arch Linux Installation Guide 2024: An Easy to Follow Tutorial
Вставка
- Опубліковано 1 чер 2024
- Arch Linux is one of the best rolling-release distributions around, but sometimes it can be a challenge to install. In this video, Jay will walk you through not one but TWO methods of installing Arch Linux. The first method will feature arch-install, which is geared more toward beginners. During the second half of the video, Jay will walk you through the manual method - which is perfect for control freaks (you know who you are).
If this video helped you run Arch, consider showing your support by buying an "I run Arch" shirt! ➜ learnlinux.link/arch-shirt
Official blog post for this video ➜ learnlinux.link/arch-guide
Brand LPI Linux Essentials Course Available
Now just $44.99 for a limited time! ➜ learnlinux.link/lpi-course
➜ learnlinux.link/lpi-course
Check out the Linux Shop
In the official shop, you'll find Shirts, hats, stickers, bags and more!
➜ merch.learnlinux.tv
5% discount on LPI exam vouchers
After you finish Jay's new course, get 5% off an LPI exam voucher here:
➜ learnlinux.link/lpi-voucher
Become a Patron
Show your support for Learn Linux TV on Patreon and get access to exclusive perks!
➜ learnlinux.link/patron
Become a Channel Member
Show your support for Learn Linux TV here on UA-cam and get access to exclusive perks!
➜ learnlinux.link/member
Mastering Ubuntu Server: 4th Edition
Jay's latest book covers everything you need to know in order to master Ubuntu Server. It's available here:
➜ ubuntuserverbook.com
Linux Gear and Kits
Check out Jay's choice of hardware products, audio/video equipment, and more.
➜ learnlinux.link/amazon
Grab an awesome Pi-powered KVM
Support Learn Linux TV and grab yourself a TinyPilot KVM here:
➜ learnlinux.link/tinypilot
Note: Royalties and/or commission is earned from each of the above links
Time Codes
00:00 - Intro
01:40 - Tutorial disclaimers and etc
03:50 - Downloading the ISO image
05:43 - Some considerations before we install
07:39 - Connecting Arch Linux to WiFi
10:48 - Enabling SSH to make installation easier (optional)
12:33 - Installing Arch Linux via the "archinstall" Method
24:19 - Installing Arch Linux via the manual method
25:08 - Partitioning our Disk
32:13 - Formatting our partitions
33:11 - Setting up an encrypted partition
34:32 - Configuring LVM
41:31 - Installing required packages
42:06 - Generating the fstab file
43:10 - Using arch-chroot to finish our installation
43:53 - Setting up users
45:28 - Installing additional packages
47:36 - Enabling SSH
47:56 - Installing a Linux kernel
50:09 - Installing a GPU driver
53:19 - Generating Ram Disk(s) for our Kernel(s)
55:07 - Configuring the locale, GRUB, etc
*Video Specific Links*
• Official blog post for this video ➜ learnlinux.link/arch-guide
• Locale documentation ➜ wiki.archlinux.org/title/locale
Full Courses from Learn Linux TV
• Linux Essentials Certification Workshop ➜ learnlinux.link/lpi-course
• Linux Crash Course series ➜ linux.video/cc
• Learn how to use tmux ➜ linux.video/tmux
• Learn how to use vim ➜ linux.video/vim
• Bash Scripting Series ➜ linux.video/bash
• Proxmox VE Cluster Full Course ➜ linux.video/pve
• Learn Ansible ➜ linux.video/ansible
Learn Linux TV on the Web
• Main site ➜ www.learnlinux.tv
• Community ➜ community.learnlinux.tv
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ thehomelab.show
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-ass...
Disclaimer
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.
#ArchLinux #Linux_tutorial #Linux - Наука та технологія
Great timing. I've been planning to install Arch and wanted to go through the full manual process, very grateful for this tutorial.
I use Arch, btw❤
He said the thing!
I use Arch, BTW Too!
I run Qubes, btw 🤓
I use it .... but for my real work, I run FreeBSD. 🤓
@@setoman1I shave me pubes, btw
A couple points were missed in this video:
1. swap file/ partition was not created (needed to support RAM and hibernation)
2. os-prober was not enabled in grub config for dual-booting PCs.
I'm walking through this at the moment, and had questions about swap. How should I do this? Just create another partition with my desired swap size and flag it as type swap in fdisk?
@@Got_It_From_Ebay yup, just create a partition with desired space, I usually then just format it with "mkswap /dev/partition" and right after "swapon /dev/partition"
is that not cover in 54:00 ?
@@ethanalvarez-xf3ws The ram disk in this scenario is more like an environment that gets loaded in order to launch the rest of your system. Swap space in linux is more like a pagefile in Windows, it's used to juggle memory allocation when necessary - and as non-volatile (sleep) memory.
By far the clearest and most straightforward manual install of Arch that I've seen. Very high quality content.
Used the manual method and it worked like a charm. Excellent, clear and concise instructions, no bs. Thanks Jay!
When I first installed Arch Linux, I installed it thanks to your video. thank you.
Usta ben direkt installarch komutuyla kurdumda çok alakasız bir şey kurdu ya, Masaüstü olmayan saçma sapan bi dağıtım kurdu.
@@Alucard.c ben bu kanaldaki uzun video ile kurdum. Archinstall ile kurmuyordu, her seyi manuel kendisi kuruyor. En son da masaustu ortamini kuruyor
@@ilkerylmaz ustam ben arada sırada siber işleriyle uğraşıyorum, linux u tam olarak ne için kullanıyoruz? ben genelde her işimi windowsda hallediyorum. Toollar cart curt var diye kali kullanıyordum, geçen arch linux'u pirinçleyen(rice) birini gördüm çok hoşuma gitti. gerekli toolları buna da kurarım diye denedim de. Çok saçma bir şey kurdu
Thanks for updating the title of the old video. I was just about to refer back to it, and wouldn't have known there's a new version otherwise.
I'm daily driving arch since 2020 and it hasn't been possible without your old videos about arch installation and setup videos. Learned lots of topics from your videos like syncthing, ssh, proxmox and more... ❤❤❤
THANK YOU, THANK YOU SO MUCH IT TOOK ME 17 HOURS OF PURE WORK TO GET THE SYSTEM RUNNING AND NOW THANKS TO YOU IT FINALLY WORKS!
I'm so in love with arch that I'm watching an install tutorial just for the love of the game
gl playing video games on linux lol and fixing bugs
@@pikachusolu1606 i play games on linux every day without any problems. Steam games works great.
@@pikachusolu1606 on linux because we're past the age of playing video games, kid
I'm installing arch because I like messing with computers and fixing the bugs@@pikachusolu1606
uhm actually you can play games.@@pikachusolu1606
Jay, excellent job as always, thanks for the update, we just need a post-installation to complete.
I've been using mostly Arch for a month now due to this video. Thanks Jay!
Which I could upvote this more than once, amazing guide.
Thank you!
Been subscribed for a while now, and somehow I missed this one lol
Another great video! Keep it up
Tried the archinstall first and it worked without any issues. Just for fun, I then did the manual install and changed my DE packages.
I have no idea if the system is running better/worse now, but I do know that I feel much more accomplished having customized my system for me
thank you so much i have faced huge issues with the 2021 installation method
you are the best
Thanks - a very approachable tutorial for Arch Linux and the archinstall script makes it so easy.
Hey Jay, i want to send you my appreciation for your hard work. You've helped me tremendously! Your work is truly a gem for those of us learning how to be proficient on the Linux side of computer science.
I love your content. I'm having so much fun learning linux
Installing it on a laptop. I had used arch many years ago using the old method. Used the simple method this time. Easy peasy!
Setting up Arch is getting easier day by day. I don't see any reason to hear Arch is for advanced users anymore. Arch is for everyone!
I was following your Arch video you had put in 2021 just TODAY and installed it a few hours back! Will check this one out to see if there's anything else I can do
For me it was like two days ago, kind of regret it now
why ?@@umbracus
These tutorials are great. Thanks so much for making all this content.
Man , I didn't know there was a manual. You're the best linux teacher I have seen on yourube btw. Thank you.
There's the arch wiki, which is an alternative manual to installing arch linux. But if you prefer a well explained video, you sure can do that!
This video is awesome, thank you very much for explaining everything you do
If you are going to install it to legacy BIOS (not UEFI) system, you need to make this things different:
1. in fdisk boot partition should be regular linux partition (code 83)
2. tag it as a bootable partition with "a" command in fdisk
3. format it into ext4 (instead of FAT) with mkfs.ext4 , also mount it to /mnt/boot after mounting root partition
4. when generating grub config your target should be different: --target=i386-pc
Also creating dedicated NVM partition for /home is not mandatory, you can just create /root partition for entire system. And if you prefer KDE Plasma over gnome, please make sure you installing it as your user (not as root). To do so make sure you can use sudo as your user and run "su your_user", then install kde
I don't even plan to use Linux, but it's fascinating watching this hard process... kudos!
BEST LINUX CHANNEL IN THE ENTIRE WORLD. PERIOD.
I swear I love this guy. Always positive to help us noobs. Great guy no doubt.
new people if you have a lot of disk space, make sure you partition more than 30gb like he shows for root. I did 800GB since I have a huge space. great tutorial subbed
Your guide inspired me to finally take a serious stab at installing Arch on my desktop!
I already triple boot Windows, Arch and Ubuntu on my laptop, and I'm happy to say that I've now managed to crack the code on my desktop too. I had previously tried several times to install Arch from a chroot in my Ubuntu system, but I just couldn't make it work.
I had to struggle quite a bit with BIOS, grub, efi and stuff like that to make everything behave like I wanted it to. Arch now owns the MBR on sda, and everything will be OK unless Windows somehow manages to mess things up. The Ubuntu OS I had originally planned to use as a dev environment, but now that I've Arch up and running I'm moving all my code there. Development is just so much nicer when you have access to the bleeding edge stuff.
Ubuntu is now basically there to function as a nice environment to boot into for chroot if I mess up my Arch system.
Jay is of the go to channels on YT for Linux.
Sweet. I just installed it today. Will look to see what I can learn. 😊
Best arch linux guide ever!
I ran into an NTP issue where archinstall hangs indefinitely. This is documented as issue #2144 and has workarounds. This was caused primarily due to restrictions on LAN restrictions and an external firewall which could not easily be adjusted in a timely manner. The workaround was to manually define /etc/systemd/timesyncd.conf to use the internal NTP servers, restart systemd-timesyncd, and then restart archinstall. There is also a "--skip-ntp" command line option you can pass to archinstall, though I have not tested it.
There is also a Arch Linux live distribution with desktop. It is called "Nepu Linux" and is build and maintained by eworm, one of the core Arch Linux developers. When your hardware runs within Nepu Linux, it will with a basic Arch Linux installation.
Linux is NOICE !!
It's my 2nd installation today both done side by side your instructions. I messed the first time, part due to lack of sleep, part due to panick because of realising I'm gonna lose my entire data on my PC and part due to hurry leaving Microsoft Windows [~10 years of my OS].
I screwed up the first time (back when I was using his older tutorial). No biggie (I expected to blow stuff up) ... just started over. He does good tutorials.
Best ever guide to installation of arch linux
Love it❤
Nice video. I heard installing Arch was supposed to be difficult but the video makes it look straightforward.
Very detailed videos, thank you!
Great video thanks, as newbie to linux. Only issues i had is because using VMware on mac, could not copy or paste those long commands in terminal, tried all workarounds, maybe SSH to it from mac would have been better but video was i think aimed at Native linux box. Also sudo did not work for user in wheel group but fixed this. Brilliant and good way to learn.
Jay you are my fav but I'm gonna resent you a little bit because you uploaded this right after I already installed arch hahaha. Great video as always tho
very help step by step guide tyvm for this
Excellent video, thanks!
You are the coldest man on UA-cam dude.
Very useful video, THX Jay.
Wow that archinstall script is the smoothest experience ever! Thank you for the video! Definitely helped demystify the process!
If you are installing kde you may have to run sudo -Sy archinstall, believe the archinstall script that is downloadable still has a weird issue with the plasma-wayland packaging
That is so helpful, thank you! Which second hand notebook, for office purposes, not multimedia or gaming, can be recommended for arch, given a larger than average need for security?
Really excellent guide Jay! Wanted to install arch again so this was perfect! But maybe I missed it but, what audio drivers are installed here? If I want Pipewire do I need to install it after? Thanks and keep it up!
Jay, Wonderful tutorial (as usual) !!! My two remarks are: 1. you forgot to define a swap partition 2. Edit /etc/locale.conf
and declare LANG=en_US.UTF-8
This prevent gnome language problem
How u do swap part and is it needed?
During the manual installation I didn't get the reasoning behind the second partition...
The 'Carbon' laptop features an UEFI board which is booted via the first partition.
So outlines the Arch WIKI UEFI partition schemes as well (EFI system and e.g. '/')...
Have I missed a part that explains the additional boot partition, e.g. in relation to the logical volume management ?...
The latter a welcome suggestion to achieve full device encryption with optional hibernation.
Thanks for the video mate! Ive got about a year experience with linux and could not install successfully following the wiki…
Hey LLT, first of all, thank you for this amazing tutorial. Really in depth and informational. I have some queries and I was hoping you'd be able to clear them.
1) I noticed that you formatted it in Linux file system, Linux file system, LVM in fdisk. Is it fine if I do EFI of 1 gig, a swap of 16 gigs and the rest to Linux file system? Because I noticed that you didn't do it in the manual installation section.
2) I also noticed that you have used LVM to create virtual partitions. I would like to know, is it necessary to use LVM and partition it and then mount it? Or can I just mount the partitions that I have obtained when making them using cfdisk?
The reason is because I can't see some of these steps in the Arch wiki.
Hey thanks a whole lot for this awesome guide. I'm wondering though... you mentioned around 16:00 that reinstalling Arch without touching the user data (in /home) is a common thing to do. To do that, do you just do this again but select no in that "create a separate partition for /home" setting? thanks again this video is a huge help
Thanks!
Great video! And the next video “writes itself”! I had a look at enabling SecureBoot on Arch, and then my eyes glazed over and my brain started overheating… Would you do a video on that next?
This is amazing!
Can you do a guide on how to install KDE with btrfs through Arch?
For the disk partition section 26:00, is it possible to create the x3 specific partitions without affecting other partitions in the drive.
At 27:28 when u say "if ur device identifier is something like /dev/sda, then ur not going to type sda1 or sda2 just sda" Here I assume this is only if u want to install the distro in the complete drive, however if ur intention wasto install it in a specific partition then I assume u can use the specific partition path /dev/sdax ? 🤔
Sorry for the probably obvious answer to my question but at 30:50, if I would choose to list all (type L to list all), how would I choose the type or just leave the menu that comes with it?
Thanks in advance.
Hi, I really appreciate your video, and I am wondering if there is a reason why you did not create a Swap partition.
Instructions unclear, accidentally installed gentoo
I used your older tutorial to install Arch on my laptop. My only (very minor) regret is using LVM, but it has not actually caused problems (I just think I didn't need it). I am building a new machine (total beast; 512G RAM, RADEON 7900XTX, etc). I will either do EndeavorOS or follow your tutorial here.
In case I decide not to install gnome, how should I configure my internet connectivity via wifi? I will install NetworkManager and enable it. How can I configure NetworkManager to automatically connect to my wifi network? I have seen people use iwd and iwctl and setting iwd as the NetworkManager for the backend - is this the recommended approach? What are other approoaches :) ? Thank you!
In my opinion, the video should have more closely followed the Arch wiki section on pacstrap and pacman package installation. For example, the wiki suggests pacstrapping the base and linux packages. Then chroot in to install the rest using pacman. While the video way works, there is value in following the wiki closer. Thanks.
Thank you!
One thing I learned from this video: archinstall allows you to add a desktop environment.
Great Video. But you forgot the timezone - ^^ - But it can be set in the finished ArchLinux DesktopEnviroment. Thanks for sharing your mind-set.
Nice content. Subscribed.
i now use arch btw❤
For reinstalling, is it possible to reset the hard drive to an arbitrary point in this process and start from there? Eg. keep file system but reinstall everything after thst
I've installed arch manually a lot of times over the last couple of years. I've never heard of or used 2 1G partitions (boot and EFI). I only create one single 1G partition formatted as vfat and it sets up and installs via UEFI just fine. What's the purpose of the separate partitions for boot and EFI?
I wish the other video / blogpost was not taken down for the info it had especially about non uefi systems
I followed along twice in the last two days, still messing something up somewhere in the process. But I have a question, could I skip the whole encryption section, and instead of lvm, simply use ext4 to format my root and home partitions?
you are a good instructor
hey jay do you have any solution for the HP Victus series brightness problem where it is stuck to lowest level as its highest and the lowest is absolute black
Thanks man
Always awesome instruction. I was disappointed with not explaining the manual install. If all anyone is doing is blindly following then they'd probably be better off with the "scripted installation" is it ArchInstall. Maybe, next time you refresh the Arch install video kindly consider a full explanation on the manual method.
Thanks again for the caring & quality content.
He does explain the manual install
Help! In the manual method, the grub-install step gave me an error "no EFI directory found". I double checked everything and confirmed the mount points. Then searched the internet and added another argument: --efi-directory=/boot/EFI
This installed grub.
But grub is not detecting Arch Linux.
Just install it yesterday 🙂
Perfect timing!!!
Great instruction.
Thanks. I got a few snippets that aren’t in the Arch Wiki.
Thank you Jay! I always wanted to try out Arch . Installed it on my proxmox ve
very clear 👏👏👏
Brother,
Can you tell me that, does Arch linux supports the entire screen magnifier feature?
Is there a way to connect hotel wifi by using iwctl? As many of you know public wifis such as hotels need a login info. (No ethernet connection btw) I already have the user info but how can i connect it? Lynx? Iwconfig? How?
Such a king!
Could please do a serie of videos and hyprland how to configure it from basic to advanced, how to make it like professionals do , it's really helpful, beautiful customizable and lightweight
Super noob question. Followed the tutorial perfectly but at 58:00, when we mounted the 1st partition, good so far. Before exiting chroot environment, I accidentally umount -a before exiting the environment. I assume that since we immediately unmounted everything in root, it is most likely ok? Please if someone can let me know and tell me if I screwed up in the final 3 minutes, that would be great lol.
Hello I was wondering how you get your timeout screen to be an old firewall style?
Best tutorial on the net!
16:37 The only option available here was grub. When I reboot, it throws me to the gnu Grub command line. Is there any way for me to fix this?
Nice thing about arch is it only installs what you ask for and nothing else.
Hello,
I have Hp Spectre X360. I've been using Fedora but unfortunately, The Bluetooth adapter is always grayed although it works on windows 11 on the same machine.
* I've tried different Linux distros but the same issue persists on.
If I isssue the command:
sudo systemctl status bluetooth
I get it active but when I issue the command:
bluetoothctl power on
I get the message: "no default controller avaliable".
* So I'm intending to try Arch Linux hoping that Bluetooth will work on it.
* Can I install Arch Linux in a dual boot with windows? Why should Arch Linux wipe the whole drive before installation rather than spanning the free available space?
Thank you so much. You are really amazing. keep up the good work.❤
installing arch by hand was fun the first few times but now I just use endeavors as it's much quicker
I love Arch, ran it for a long time, but now I’m using Manjaro for the same reason. The manual install is cool, but I’m now old enough to not care about “bragging rights”, I just want something that works. :D
Does Arch Linux installation is the same for Arch Strike?
Thank you in advance!
I recently install arch Linux, the installation was succefully done , but after I turn back on the laptop it won't login , it goes straight to the Aptio setup utility. O booting setup. Do I need to reinstall the Arch Linux?
what does the step at 59:14 do exactly? I setup a different locale so im a little hesitant to procede
Great video, but something I would like to point out for people who has more than on nvme connected to their computer, in this case on my laptop. Is that instead of using the nvme # use its UUID, because these number changes after an update/boot/etc. Thus when that happens luks wont be able to find the right drive! It happened to me twice already.
help so much!
Any chance we can get a video or series on an auto unattended script install method for Ubuntu iso images? For USB iso installations on hardware.