Running Arch Linux on the Framework Laptop 13

53 points by rubin55 1 year ago | 33 comments
  • ciupicri 1 year ago

        systemctl enable gdm.service
        systemctl start gdm.service
    
    can be combined in one command:

        systemctl enable --now gdm.service
    • rubin55 1 year ago
      Ah thanks for that, updated!
      • Nmi2osv7 1 year ago
        additionally this is atomic (well, as in it's one command, it's not atomic internally)
        • stingraycharles 1 year ago
          In what way is it atomic? “One command” doesn’t have anything to do with being atomic.
          • Nmi2osv7 1 year ago
            yes 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...)
          • eternityforest 1 year ago
            I'm not even sure I want to know what nightmare bug would cause someone to consider if that was atomic or not!
        • kelvie 1 year ago
          https://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)

        • rubin55 1 year ago
          I 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 ago
            Thanks 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 ago
              I 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.
            • m463 1 year ago
              I'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 ago
                Hey, 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 ago
                  thank you, that is a lot of hints :)
                • kristofferg 1 year ago
                  VirtualBox runs fine with all features working.
                • signa11 1 year ago
                  with 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 ago
                    Hey, 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 ago
                      thank you! so generally good enough to _almost_ go through the entire day.
                • prabir 1 year ago
                  Over the years I have scripted my arch linux setup. https://github.com/prabirshrestha/simple-arch-installer
                  • overbytecode 1 year ago
                    i 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 ago
                      You 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 ago
                        Ansible 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 ago
                          I believe this is the goal of nixos but I haven’t been able to get beyond the syntax.
                      • AmpsterMan 1 year ago
                        I'm planning on running Arch on the newer model so thanks for this writeup
                        • MrBruh 1 year ago
                          How many hours of battery life with standard use?
                          • rubin55 1 year ago
                            I 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).
                          • lemper 1 year ago
                            just a simple suggestion: i think it would be easier to the eyes if the command snippets are written in multi-lines.
                            • rubin55 1 year ago
                              Yeah, 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 ago
                                thank you very much. I didn't think it'd take so many effort from your part. sorry.
                            • clircle 1 year ago
                              How is the battery life?
                              • rubin55 1 year ago
                                I 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).