Live data from Hacker News

Installing Arch Linux on a Laptop

giacomo.coletto.io

11–20 of 139 posts

Re: Installing Arch Linux on a Laptop

#11

What's everybody's favorite distribution on the Frame.Work 13? Getting it next week, and toying around with Arch/Debian/Ubuntu/Suse/NixOS/etc in VMs while waiting for it. I think I'll have to throw a coin (or just take Debian).

I'm running SUSE Tumbleweed. Fast package manager, up-to-date versions of just about every package you could want. Never had any driver issues or issues installing.

Re: Installing Arch Linux on a Laptop

#12
I've had the same Arch installation between four laptops over 12 years. Boot from a USB Linux distro and enter command line. Partition the new laptop, setup disk encryption, rsync the file system via USB external enclosure, modify the ftab, crypttab, and refind.conf, reboot. Don't have to re-install any software or re-setup and sync any accounts.

Re: Installing Arch Linux on a Laptop

#13
post #9

What's everybody's favorite distribution on the Frame.Work 13? Getting it next week, and toying around with Arch/Debian/Ubuntu/Suse/NixOS/etc in VMs while waiting for it. I think I'll have to throw a coin (or just take Debian).

Fedora has worked flawlessly for me.

After years on Ubuntu, then Arch I also just recently discovered Fedora as a well polished alternative.

I do love the Arch community. But I feel less motivation to tinker nowdays and Fedora was a pretty nice works out of the box experience so far.

Re: Installing Arch Linux on a Laptop

#14

What's everybody's favorite distribution on the Frame.Work 13? Getting it next week, and toying around with Arch/Debian/Ubuntu/Suse/NixOS/etc in VMs while waiting for it. I think I'll have to throw a coin (or just take Debian).

Not a Framework but a System76 laptop, I got to a point where I couldn't stand any desktops based on Gnome and wanted something more predictable and better documented than PopOS or even Ubuntu.

I'm enjoying AlmaLinux with KDE and not seeing any reason to switch so far, it's rock solid stable and RHEL docs are better than anything aside from maybe Arch. All the dev tools they tend to not have without fail have an `asdf` plugin, or they're written in Rust and `cargo` can install them from source just as easily. KDE might be bloated but not in a way you'd notice with a modern processor and I love the customization options.

Arch is a great option too if you want all the latest and plan to stay on top of upgrading. I like `paru` as a package manager there. Most important thing you can do on Arch is add a quick search shortcut for the Arch Wiki, it's so good I'll reference it for help on any distro.

Re: Installing Arch Linux on a Laptop

#15
I followed a very similar process a couple of years ago (time flies!) and I'm very happy with the results. I'm not even using Arch but Artix Linux but the system runs very smoothly, almost not a single problem updating in years, using all kinds of cutting edge software which is amazing.

On top of what the article mentioned a few tips:

- To achieve really good battery duration I installed powertop (which I run on every boot for auto-adjustment) and thermald which does a great job with Intel CPUs.

- Suspension issues are common, in many cases often was about different part of the system overlapping. I ended up disabling hibernation which I never use anyway, but suspending after closing the lid for me is a must in a laptop.

- Fusuma or something similar is also a must to take advantage of the touchpad.

- Yet another gem, fprintd was a GREAT discovery. First time I autorized a sudo with my finger I couldn't help it but have a big laugh.

PS. Bonus point: This is the second NVidia Optimus laptop that I own and even if Optimus support has gone a long way and now it almost works perfectly out of the box to achieve a really good performance eg in videogames, I use a script to switch between an Nvidia only mode or an Optimus mixed mode.

Re: Installing Arch Linux on a Laptop

#17

I've had the same Arch installation between four laptops over 12 years. Boot from a USB Linux distro and enter command line. Partition the new laptop, setup disk encryption, rsync the file system via USB external enclosure, modify the ftab, crypttab, and refind.conf, reboot. Don't have to re-install any software or re-setup and sync any accounts.

Same, but with Debian for almost 20 years. Don't remember how I did it before, but the last few migrations were just `dd if=/dev/sda.old of=/dev/sda.new` and then gparted to enlarge the root partition to fill out the new disk.

Re: Installing Arch Linux on a Laptop

#18

This is the step-by-step process I followed to install Arch Linux on my laptop with the following features: - Wayland - Plasma 6 - Plymouth - PipeWire - LVM on LUKS - Unified Kernel Image - TPM PIN unlock - Secure Boot Let me know what you think!

Nice write-up! My install process is slightly different (I suspect everyone who uses Arch ends up having their own little procedure built up over the years that varies slightly, since the flexibility is part of the appeal), so I'll try to focus on substantive feedback rather than feedback on hyper-specific choices that don't matter:

* For something as nebulous as specific cryptographic settings, I think it's worth elaborating on _why_ you pick the settings you did for `cryptosetup`. I'd imagine it's probably very possible for someone to pick a bad set of arguments that either degrade security or don't improve it but make it much slower. I suspect you didn't do this though, so as someone who just uses the defaults that `cryptsetup luksFormat` uses, I'd be super interested to hear how you decided on the options you used!

* It looks like you linked to another post explaining your use of `yay` as a pacman wrapper/AUR helper, but I'd worry that a lot of people this guide would be useful too (i.e. newer people to Arch) would be confused when they try to follow it and suddenly run into the issue where they don't have anything called `yay` installed or know how to install it (since it's not something you can get from the default repos). From what I can tell, the only two AUR packages you reference in this post are `plymouth-git` and `plymouth-theme-arch-breeze-git`. Maybe for the purposes of this post, you could stick with `plymouth` and `breeze-plymouth` in the main repos (and possibly link to the section of your other article where you detail AUR stuff)?

* The stuff about how to configure secure boot is super interesting; I've never found it worth the hassle and just turn it off on all of my machines, so I wasn't aware of all of the tooling available like `sbctl` and `sbsigntools`. A standalone post on how to configure secure boot on Linux would definitely be worthwhile!

* I love the section on the specific packages for each GPU combination. This is definitely something where a lot of people will benefit from a concise list rather than having to comb through the details in the wiki (which are useful when you need them! but often you just want the packages to install)

* For unmounting all of the stuff post-install, you can use `umount -a /mnt` to recursively unmount all of the nested mounts. Super small change, but it's nice not to have to type all of it!

Re: Installing Arch Linux on a Laptop

#19

What's everybody's favorite distribution on the Frame.Work 13? Getting it next week, and toying around with Arch/Debian/Ubuntu/Suse/NixOS/etc in VMs while waiting for it. I think I'll have to throw a coin (or just take Debian).

I've been using Void Linux for the last 1.5 years because I wanted an Arch-like experience but without systemd. I haven't had any unsolvable problems.

"I haven't had any unsolvable problems."

That sentence can have a lot of meanings, when one thinks that everything is possible with enough effort ..

Re: Installing Arch Linux on a Laptop

#20
post #13
post #9

Earlier quoted context omitted.

Fedora has worked flawlessly for me.

After years on Ubuntu, then Arch I also just recently discovered Fedora as a well polished alternative. I do love the Arch community. But I feel less motivation to tinker nowdays and Fedora was a pretty nice works out of the box experience so far.

I set up Fedora for family but I still use Arch myself, because there is no good alternative to AUR on Fedora and there are more packages that I need for software development.

Sometimes Arch saves so much time, that even the infrequent necessary manual maintenance after updates makes it worth it.

And even when trying to run stuff on distros other than Arch, I frequently look up instruction on Arch Wiki and in AUR PKGBUILDs.

Post reply on HN