DEV Community

Cover image for Hitchhiker's Guide to the Arch Linux Installation

Hitchhiker's Guide to the Arch Linux Installation

Jimmy McBride on September 24, 2024

If you're here, you're probably about to embark on your first-ever Arch Linux installation, and let me tell you, that can seem pretty intimidating ...
Collapse
 
webreflection profile image
Andrea Giammarchi

I wonder if I should move into a file as swap ... I am using an encrypted setup (not documented in here, it'd be useful, I could do that too) with an encrypted swap too ... my only concern with the swap as partition a part is that:

  • if encrypted, requires double unlock at bootstrap (done that too via a hook)
  • if I need more swap, I can't resize the file and call it a day

The latter has never been needed so far but I can see it as a strong point to:

  • have to un-luck only the root partition when encrypted
  • have the ability to grow or shrink the swap without causing issues to the root partition too

does this make sense?

Another thing non covered here, grub is cool and everything but efibootmgr also works greatly.

I run on archibold.io/ btw 👋

Collapse
 
jimmymcbride profile image
Jimmy McBride

I've never built an encrypted system. I don't have anything on my PC that's sensitive enough to be worth the effort.... yet! :p

I highly recommend swap file over swap partitions. The flexibility is awesome! I used to create a partition for root and home and swap, and then I'd get stuck in a trap of my own making. Now, the less partitions, the better. Especially for desktop.

Collapse
 
webreflection profile image
Andrea Giammarchi • Edited

I don't have anything on my PC that's sensitive enough to be worth the effort.... yet!

I have work related, GitHub related, password related stuff (any .env file to name one) that are better kept as far away as I can from people potentially stealing my Laptop, as it's my daily driver for everything.

Performance is not noticeably degraded neither but agreed for a static Desktop Rig used occasionally it might not be worth the unlock effort on boot. If interested, it's super trivial to setup encryption on a single drive if it's one only you probably would just need to include encryption dependencies on boot and call it a day, I did write my own hook that gets built with any new linux automatically on any update that requires it.

I might as well write a post about it but I am not sure how many would read it ... although security matters and it's also a plus for Linux to have it the easy way, it's not straight forward at all for Windows machines, Apple gets closer to Linux though.

Thread Thread
 
jimmymcbride profile image
Jimmy McBride

I'd love to read that post and learn more about encryption! If you do, send it my way please. :)

Collapse
 
aditya_075 profile image
Aditya Mhambrey

I wish more people started enjoying Arch and stopped looking at Arch as a cult. Really good article btw!

Collapse
 
jimmymcbride profile image
Jimmy McBride

I agree! 💯 I joke about being a filthy meta slave Arch enjoyer all the time. I do my very best to not judge what other people choose and not push it on anyone. At the end of the day, you should use the distro YOU think is cool, not the disto I think is cool.

I always want to be seen as a kind and understanding Arch Linux enjoyer who does his best to help everyone. I want people to be like, "Maybe Arch Linux users aren't the RTFM toxic elitest I thought they were"

Collapse
 
aditya_075 profile image
Aditya Mhambrey

I really think you should make more Arch Content. Content about Window Managers like i3 and AwesomeWM is a great way to engage people into Arch Linux. It's not even about which Distro you choose anymore when you think about Linux as a philosophy ( Do one thing well ). It's only when you start saying Arch is better than other Distributions, you find yourself in trouble.

Thread Thread
 
jimmymcbride profile image
Jimmy McBride

Yeah! I love this idea. Basically, my philosophy at this moment is:

I want to make niche content that has a large audience. My favorite things are Linux and full stack development. Every dev knows git and every developer can benifit from learning the command line. So I want to make as much content around bash, getting people comfortable in the terminal, how to use git effectively and sprinkling in some stuff I like a lot like arch installs and web tutorials here and there, so show my own personal flavor.

I'd like to get all the foundational content out for free and create a paid subscription where people can get more advanced content and project guides that build off the foundation content I've taught for free.

So I just want to get people into Linux and into the terminal and app development. Then people who align with my "flavor" will find a lot of value in the more exclusive content I post.

Thread Thread
 
aditya_075 profile image
Aditya Mhambrey

Love it! I wish you luck!

Thread Thread
 
jimmymcbride profile image
Jimmy McBride

Tyvm :)

Collapse
 
andrea_from_italy profile image
andrea_fazzi

The process to install arch is instructive and puts in plain sight very important concepts as chroot...
Thank you

Collapse
 
jimmymcbride profile image
Jimmy McBride

Thanks a bunch! That was exactly my goal :)

Collapse
 
zajca profile image
Martin Zajíc

It has been some time since I last install arch on my machine but I had used archinstall, it's just more pleasant especially for beginners and for lazy people.

Collapse
 
jimmymcbride profile image
Jimmy McBride

The main appeal of arch is the minimal install and pacman + AUR. Between pacman and AUR you get access to a lot of packages that are very up to date. Any downstream Linux distro of arch gets this, making thing like Manjaro very nice.

With vanilla Arch though, you get to literally build you OS the way you want it, so there's pride it that, there's learning in that, it's an amazing experience imo.

Also it's a rolling distro! So you just sudo pacman -Syu and your system is updated to next version, no restart required. VS Debian where you have to reinstall your OS once a year and 2ice a year for Ubuntu. Rolling distributions make updating less intrusive than Mac or Windows, static distributions are more disruptive for updates.

This are the main reasons I love Arch. :)

Collapse
 
jimmymcbride profile image
Jimmy McBride

Love this! Thanks a lot. :)

 
cagatay_sunal profile image
Çağatay Sunal

Fedora is not a rolling distro. It has distinct releases.