Hello! I have a small 1080p monitor. I'm using the KDE System Settings interface to change the "Fonts DPI" value as suggested by the ArchWiki. The default DPI setting (96 DPI) is a bit too small: I struggle at reading text. 128 DPI is a bit too large: everything becomes way too big and too few windo...
My computer broke so I put my hard drive in my sister's until I get a new one. Now she has two disks: hers with her Windows 10 and its ESP partition, and mine with my Arch and my ESP partition. My Arch partition is encrypted with LUKS. I put my hard drive offline in my sister's OS, then added it to...
Every time I install Arch on a new system, I end up spending hours configuring the bootloader. Especially if I want to test a new on, or manage the disk with something different (LVM, LUKS, new filesystems or similar stuff). To test the configuration you need to reboot, and if it fails you may have...
I'm looking for a tool to push my user (and maybe system) configuration online and to update the configuration on a system. Correctly handling conflicts and possible problems. I can self-host my data and/or this tool, if needed. Can you recommend any tool to do that? I needed because I have a lot of...
This is a common problem, I searched and found many results, but most are outdated and no longer work. Sometimes when I try to turn off my computer, it hangs for a few minutes showing: A stop job is running for Session ${n} of user ${user} It's because some process refuses to terminate. I don't reme...
It seems like it's working. Using --force-device-scale-factor=1.16 gives me what I want. Thank you.
It's very weird though. It looks like Chrome based applications support Xft.dpi too, just like the GTK applications do, but only for 96 DPI (scale factor 1) and for 128 DPI (scale factor 1.333). Nothing in between. While with --force-device-scale-factor it's possible to use values in between too.
Would you know whether it's possible to set the scale factor value in an environment variable or configuration file? Having to add it to the command line of every Chrome-based application one by one sounds stupid.
I'm confused since Linux/X.org DPI has been dynamic since the age of CRT monitors.
I'm not sure. According to the ArchWiki most program use xrdb's Xft.dpi. It mentions using the value from xdpyinfo, but it makes it sound like that method is deprecated:
Some programs may still interpret the DPI given by the X server (most interpret X Resources, though, directly or indirectly). Older versions of i3 (before 2017) and Chromium (before 2017) used to do this.
In any case, it doesn't matter to me why these choices were made: I'm happy to manually set Xft.dpi to my favorite value.
The problem is that Chromium doesn't support any value between 97 and 127. I guess it wouldn't support those values even if it computed the DPI automatically from xdpyinfo.
The idea of installing Arch in a VM and then copying it to a disk once everything works is very smart.
However I'd be afraid I might run into a number of new issues... How do you copy the disk image over the network, SSH? If the new machine doesn't have enough RAM (eg. less than 4GB), the disk image may not fit in the Arch Live's in-memory filesystem. And the UUIDs are going to be different and you'll have to fix them...
A midway approach that may work better for me, is to first try an installation in a virtual machine with the new software I'm trying for the first time (luks and rEFInd, in this case), and then do a clean install on the new hardware using the knowledge and experience I made.
EFI, ESP, GPT etc are simple concepts and I understand them well.
What I have problems with is making it work: there are too many alternatives and options and things that could go wrong, and almost no way to debug it or understand what went wrong.
I just installed a Arch with full system encryption (LUKS) and rEFInd. It's the first time I tried these two things. These are issues I ran into:
Initially I placed my initramfs etc (the `/boot/` directory) in a `/arch/` directory on the ESP. `refind-install` found it (it created a `refind_linux.conf` in that directory), but then rEFInd wouldn't show any option to boot Arch.
Eventually I figured out that the location of that directory was a problem: I moved it to `/EFI/arch/` on the ESP and only at that point rEFInd could find it.
This is documented nowhere. I had to blindly try random stuff and had to reboot like 5 times before getting it right.
Then it took me 2 reboots to add all the mkinitcpio hooks I needed. It's a bit confusing having to choose between the `udev` and the `systemd` hooks and for instance I didn't realize that `sd-vconsole` was needed (thought that the default value of us keyboard and default font was OK).
Then it took me a few more attempts to make LUKS work. The documentation is a bit confusing and scattered: `udev` and `systemd` use different parameters and it's not completely obvious to understand what options and values to use.
By mistake I used `rd.luks.name=**UUID=**XXXX=cryptroot` instead of `rd.luks.name=XXXX=cryptroot` (I found the former syntax somewhere on the internet) and nothing was telling me that the syntax/name I had used was wrong. All I could see was that the kernel wouldn't ask me for a password and try to mount a non-existing `/dev/mapper/cryptoor`. It was a friend who spotted the issue after I begged him for help and he compared my options with his.
Do you think I could have figured out and fixed this kind of problems with fewer attempts and reboots, considering that I'm new to both LUKS and rEFInd? How?
I probably had to reboot into the live CD 10 times, and every attempt took me almost 10 minutes (a long wait for the Arch Live to boot, then opening the luks device, mounting the various partitions, chrooting etc without any bash history).
Would you know what's the fastest/easiest way to run a disk (start its bootloader) on a live Arch with QEMU (or anything else)?
I'm not experience with it, but would love to add a section about testing a new bootloader to the Arch Wiki page: I believe it may be useful to anyone installing Arch.
It seems like it's working. Using
--force-device-scale-factor=1.16gives me what I want. Thank you.It's very weird though. It looks like Chrome based applications support
Xft.dpitoo, just like the GTK applications do, but only for 96 DPI (scale factor 1) and for 128 DPI (scale factor 1.333). Nothing in between. While with--force-device-scale-factorit's possible to use values in between too.
Would you know whether it's possible to set the scale factor value in an environment variable or configuration file? Having to add it to the command line of every Chrome-based application one by one sounds stupid.
I'm not sure. According to the ArchWiki most program use xrdb's Xft.dpi. It mentions using the value from xdpyinfo, but it makes it sound like that method is deprecated:
In any case, it doesn't matter to me why these choices were made: I'm happy to manually set
Xft.dpito my favorite value.The problem is that Chromium doesn't support any value between 97 and 127. I guess it wouldn't support those values even if it computed the DPI automatically from xdpyinfo.
The idea of installing Arch in a VM and then copying it to a disk once everything works is very smart.
However I'd be afraid I might run into a number of new issues... How do you copy the disk image over the network, SSH? If the new machine doesn't have enough RAM (eg. less than 4GB), the disk image may not fit in the Arch Live's in-memory filesystem. And the UUIDs are going to be different and you'll have to fix them...
A midway approach that may work better for me, is to first try an installation in a virtual machine with the new software I'm trying for the first time (luks and rEFInd, in this case), and then do a clean install on the new hardware using the knowledge and experience I made.
EFI, ESP, GPT etc are simple concepts and I understand them well.
What I have problems with is making it work: there are too many alternatives and options and things that could go wrong, and almost no way to debug it or understand what went wrong.
I just installed a Arch with full system encryption (LUKS) and rEFInd. It's the first time I tried these two things. These are issues I ran into:
Eventually I figured out that the location of that directory was a problem: I moved it to `/EFI/arch/` on the ESP and only at that point rEFInd could find it.
This is documented nowhere. I had to blindly try random stuff and had to reboot like 5 times before getting it right.
By mistake I used `rd.luks.name=**UUID=**XXXX=cryptroot` instead of `rd.luks.name=XXXX=cryptroot` (I found the former syntax somewhere on the internet) and nothing was telling me that the syntax/name I had used was wrong. All I could see was that the kernel wouldn't ask me for a password and try to mount a non-existing `/dev/mapper/cryptoor`. It was a friend who spotted the issue after I begged him for help and he compared my options with his.
Do you think I could have figured out and fixed this kind of problems with fewer attempts and reboots, considering that I'm new to both LUKS and rEFInd? How?
I probably had to reboot into the live CD 10 times, and every attempt took me almost 10 minutes (a long wait for the Arch Live to boot, then opening the luks device, mounting the various partitions, chrooting etc without any bash history).
Would you know what's the fastest/easiest way to run a disk (start its bootloader) on a live Arch with QEMU (or anything else)?
I'm not experience with it, but would love to add a section about testing a new bootloader to the Arch Wiki page: I believe it may be useful to anyone installing Arch.