Running Arch Linux on the Framework Laptop 13
53 points by rubin55 1 year ago | 33 comments- ciupicri 1 year ago
can be combined in one command:systemctl enable gdm.service systemctl start gdm.service
systemctl enable --now gdm.service
- rubin55 1 year agoAh thanks for that, updated!
- Nmi2osv7 1 year agoadditionally this is atomic (well, as in it's one command, it's not atomic internally)
- stingraycharles 1 year agoIn what way is it atomic? “One command” doesn’t have anything to do with being atomic.
- Nmi2osv7 1 year agoyes it does? consider running a bash script, or piping commands over ssh. if you lose the connection only the first command might send. (bash is line and command oriented of course, so this is pretty obvious...)
- Nmi2osv7 1 year ago
- eternityforest 1 year agoI'm not even sure I want to know what nightmare bug would cause someone to consider if that was atomic or not!
- stingraycharles 1 year ago
- rubin55 1 year ago
- kelvie 1 year agohttps://wiki.archlinux.org/title/Framework_Laptop_13
In case those that didn't know, the FW laptop is so popular amongst Arch users that it has its own dedicated Wiki page (and thread on the Framework discus)
- arp242 1 year agoLots of laptop models have their own page on the Arch Wiki; it's not really saying all that much.
For example many ThinkPad models do: https://wiki.archlinux.org/title/Laptop/Lenovo but also a number of ASUS machines: https://wiki.archlinux.org/title/Laptop/ASUS etc.
- 12345hn6789 1 year agoThere really is no correlation between the wiki page and adaption rate. It's because the arch wiki has such depth that there is a page on it :) thank your contributors and maintainers daily.
- arp242 1 year ago
- rubin55 1 year agoI wrote an article about using Arch Linux with the (new, probably as valid for older ones) Framework Laptop 13. Should prove useful to any Linux-running peeps in any case!
- IlPeach 1 year agoThanks for sharing, also running Arch on the Framework (11th gen). I will review and compare some of the conf to mine to see if there's anything interesting I've missed recently.
I was hoping to upgrade but the queues are minimum 3 months for anything and might wait a bit more hoping they'll be able to scale up production (or maybe I'm just dreaming)
- ripley12 1 year agoI just bought a 13th gen Framework and it shipped in 3 days. I think it’s only the AMD models that have the really long waits.
- ripley12 1 year ago
- m463 1 year agoI'm not really familiar with virtualization on a linux laptop - can you run a vm and let your screen/keyboard be hijacked by the VM?
maybe pointers to virtualization ideas?
- rubin55 1 year agoHey, yeah sure! Erm, let's see. So I use libvirt and QEMU/KVM, where libvirt is essentially an api that makes interfacing with QEMU and KVM more consistent and nicer.
Then I use virsh (command-line) and/or virt-manager (gui) to create virtual machines (these in turn talk to libvirt). The machines kan be anything Qemu supports, so you can emulate PA-RISC, Alpha, Mips, ARM, i386, AMD64, you name it. You can then install OS'es on them. There are some freaks out there that have been running Windows NT MIPS and HP-UX 10.20 for PA-RISC on it.
Most of my machines are doing KVM, which essentially is hardware-assisted virtualization. This requires the VM to be AMD64 though.
I currently run 10 virtual machines:
castel (rhel6) - chimera (chimera-linux) - dragon (dragonflybsd6) - falcon (freebsd13) - gygax (guix) - haiku (haiku) - nomon (netbsd9) - seven (win7) - square (winnt) - xenon (alpine)
You have a gui to these things (and SSH of course) through Spice. With the right drivers and agents (not available for all operating systems) you even have automatic guest display resizing, mouse in/out, copy/paste, etc.
- m463 1 year agothank you, that is a lot of hints :)
- m463 1 year ago
- kristofferg 1 year agoVirtualBox runs fine with all features working.
- rubin55 1 year ago
- signa11 1 year agowith all the tdp configuration that you have, may you please share how long does the battery last on a typical usage? thank you!
- rubin55 1 year agoHey, yeah sure, let's see. I started working this morning at 07:45, it's now 13:45. I had a 20 minute video conference call and watched two 15 minute videos on Youtube. At idle, I had ~3 watts, doing small typing things, coding, I had ~5 watts. During the conference call I had ~15 watts and during the Youtube videos powertop reported ~9 watts.
So have been going for 6 hours, definitely some heavier CPU usage during the conference call and youtube videos, current battery is at 33% and indicates (based on my current usage: updating my blog and firefox'ing around) 3 hours and 45 minutes left.
- signa11 1 year agothank you! so generally good enough to _almost_ go through the entire day.
- signa11 1 year ago
- rubin55 1 year ago
- IlPeach 1 year ago
- prabir 1 year agoOver the years I have scripted my arch linux setup. https://github.com/prabirshrestha/simple-arch-installer
- overbytecode 1 year agoi wish there was a way to do this declaratively, like:
“here is the partition structure i want, here is the filesystem, the users, the packages i need installed and the services i need running”
Setting up machines and customizing installations would be a breeze.
- grudg3 1 year agoYou can, I'm going through this exercise now. Look at nixos-anywhere and disko. It's not easy though, NixOS is a rabbit hole.
- bravetraveler 1 year agoAnsible is pretty good at this. A huge library of Python-fu that takes declarative statements on how things should be
Doing some things idempotently can be an interesting challenge
- whalesalad 1 year agoI believe this is the goal of nixos but I haven’t been able to get beyond the syntax.
- grudg3 1 year ago
- overbytecode 1 year ago
- AmpsterMan 1 year agoI'm planning on running Arch on the newer model so thanks for this writeup
- MrBruh 1 year agoHow many hours of battery life with standard use?
- rubin55 1 year agoI have answered to another poster in a bit more detail, but a conservative estimate with moderate to a few moments of heavy usage is ~9 hours. I have done 11+ on pure-coding stints (no video, no games).
- rubin55 1 year ago
- lemper 1 year agojust a simple suggestion: i think it would be easier to the eyes if the command snippets are written in multi-lines.
- rubin55 1 year agoYeah, good point. I wrote them as ``` ``` blocks in markdown, and it doesn't wrap apparently. Will look into if I can tell Jekyll to do something there (would not prefer to escape everything hard-coded to 80 lines or some-such).
Update: Ha! I got this working. I added a "code { white-space: pre-wrap !important;}" css line in the <style> section of my custom html header. Seems to look much better.
- lemper 1 year agothank you very much. I didn't think it'd take so many effort from your part. sorry.
- lemper 1 year ago
- rubin55 1 year ago
- clircle 1 year agoHow is the battery life?
- rubin55 1 year agoI have answered to another poster in a bit more detail, but a conservative estimate with moderate to a few moments of heavy usage is ~9 hours. I have done 11+ on pure-coding stints (no video, no games).
- rubin55 1 year ago