I use TAP networking for the guest and firewall rules to allow forwarding/masquerading on the host. Your host's wireless interface acts like a router for the guest.
If you want, I can post my script that handles setup.
I believe the wiki-search program is installed. It might be wiki-search-html, I can't remember exactly. If it's not part of the package, it's part of one of them and you can use pacman to search for it.
It's possible that Discord releases an update that requires a packaging change. I'd rather wait a little bit for every update than have an unusable package while the maintainer fixes it.
Unless the LTS kernel gives you something that the stable one doesn't, just use the latest version. Same can be said for things like *-git packages too. Unless you really need the absolute latest features which arents available in the latest release, you're better off just going with the stable package.
I completely understand your point. However, that is not the purpose of the linux-lts package. The point of the LTS kernel is to have one which is supported for longer than a typical stable release.
Most people end up using it as a fallback kernel. So yes, it defeats the purpose of a fallback kernel if the latest stable kernel and the fallback one are the same major version. However, it does not defeat the purpose of an LTS kernel, since it will still be supported for its declared time frame. linux-lts acting as a good fallback is simply a nice side-effect, not the main purpose.
Because 5.10 is the latest LTS kernel, and Arch updates the repo packages when an upstream release is available. It doesn't matter whether or not linux and linux-lts are both 5.10.x (from a packaging perspective).
It may. Many distros do, but a lot also have an option to set a root password when installing. I prefer not to rely on defaults, which are subject to change, so I gave the command. Plus it applies to all distros.
Don't give out your root password to anyone, ever, for any reason.
A much better option is to not even have a root password. You'll only be able to use root via sudo(1) or doas(1). The only situation where this could be problematic is if something fails during the boot process and you aren't able to login as your user. Obviously, in this situation, never give out your regular user's password either.
To lock the root user, run the following command as root after checking the manual to see what it really does:
I don't think "zswapfc" is a thing. SwapFC, however, is. SwapFC (from what I can tell) automatically allocates and activates swap files (and vice versa). If you're using disk-backed swap (which you would be with SwapFC), then you should use zswap instead of zram. But to answer your question, yes, you can use zram with SwapFC, because SwapFC is just a method of dynamically creating/destroying swapfiles. It would be no different than if you were to use zram with a static swapfile. Zram would act as one swap device, and SwapFC would create some other swap devices, so you'd have multiple swap devices at once.
zram is a compressed RAM-based swap device. Instead of swapping to a file/partition, memory is swapped to this compressed region.
zswap is similar, but this compressed RAM-based swap is only used as a cache for a disk-based swap device. E.g. when a page of memory is swapped out, it goes to the compressed memory region. Once that region is full, pages start to be written to the swap file/partition.
You might now be able to see why zram + zswap simultaneously is a bad idea. zswap would be used as a compressed RAM-based cache for the compressed RAM-based swap. So you'd be losing performance compared to just zram, since the swapped pages would be compressed into zswap, then decompressed and transferred to zram, where they are then compressed again and stored.
Also, if you use zram and a normal swap device (or SwapFC), then zram is one swap device which uses compressed memory as the storage backend, and the swap file/partition is another swap device, which uses the disk as a storage backend. So you'd have one fast swap device (zram) and one or more slow swap devices (the files/partitions). Zswap is a better option because it uses the fast compressed-memory cache when possible, and only writing to disk when the cache is full. This also improves SSD lifetime, because it lowers the number of disk reads/writes.
Basically, only use zram if you don't already have a swap device.
Disclaimer: I couldn't find anything relating to SwapFC other than from the README of systemd-swap. What I've written above is just based on the one-line description of SwapFC, as well as prior knowledge of zswap and zram (obtained from the Linux Kernel docs).
Right. But if it falls back to ~/.ssh (or checks that first), then there wouldn't be a problem. Another (IMO better) option is to have some sort of configuration option in the system-wide /etc/ssh/ssh_config. Or it could be specified using an environment variable, like GnuPG's $GNUPGHOME (although this might not be possible because the daemon doesn't have the user's environment).
Thanks. Their response is pretty disappointing. They refuse to change it only because it's been ~/.ssh forever. Even though it would be fairly easy to check $XDG_CONFIG_HOME/ssh if it exists, but use ~/.ssh otherwise.
It usually is a trivial change. For isync/mbsync, I added 3 lines and that was it. Of course this doesn't include documentation changes, which would be way more than the code change itself.
sudoedit makes a writable copy of the file in /tmp, meaning your editor runs as your normal user. when the editor closes, it copies the temporary file to the actual destination.
sudo vi runs vi as root, which could be dangerous depending on how you've set things up.
The other benefit of sudoedit (or sudo -e) is that since the editor runs as your current user, it uses your normal editor configuration, not the root user's configuration.
Without passthrough, the graphics experience depends on which driver you choose. If you use the standard QEMU VGA driver, you'll get bad performance. If you use the VirtIO or QXL drivers, you'll get much, much better performance.
I use TAP networking for the guest and firewall rules to allow forwarding/masquerading on the host. Your host's wireless interface acts like a router for the guest.
If you want, I can post my script that handles setup.
I believe the
wiki-searchprogram is installed. It might bewiki-search-html, I can't remember exactly. If it's not part of the package, it's part of one of them and you can use pacman to search for it.It's possible that Discord releases an update that requires a packaging change. I'd rather wait a little bit for every update than have an unusable package while the maintainer fixes it.
For future reference, https://status.archlinux.org monitors the status of all Arch services.
just fyi, it's likely generated by
cowsay(1), just with a different "cow" than the defaultMaybe if you're running Arch on a server and you want security updates for the kernel but not actual version bumps.
Unless the LTS kernel gives you something that the stable one doesn't, just use the latest version. Same can be said for things like
*-gitpackages too. Unless you really need the absolute latest features which arents available in the latest release, you're better off just going with the stable package.IIRC there are several
linux-lts*packages in the AUR for specific kernel versions. You can also always build your own kernel from source.I completely understand your point. However, that is not the purpose of the
linux-ltspackage. The point of the LTS kernel is to have one which is supported for longer than a typical stable release.Most people end up using it as a fallback kernel. So yes, it defeats the purpose of a fallback kernel if the latest stable kernel and the fallback one are the same major version. However, it does not defeat the purpose of an LTS kernel, since it will still be supported for its declared time frame.
linux-ltsacting as a good fallback is simply a nice side-effect, not the main purpose.Arch uses the stable kernel, not the mainline one. 5.11 is the latest tag in the mainline branch, not the latest stable release.
Because 5.10 is the latest LTS kernel, and Arch updates the repo packages when an upstream release is available. It doesn't matter whether or not linux and linux-lts are both 5.10.x (from a packaging perspective).
This is incorrect. OP asked for POSIX sh, not bash.
Really what's wrong is just running -Sy without -u
It may. Many distros do, but a lot also have an option to set a root password when installing. I prefer not to rely on defaults, which are subject to change, so I gave the command. Plus it applies to all distros.
A much better option is to not even have a root password. You'll only be able to use root via
sudo(1)ordoas(1). The only situation where this could be problematic is if something fails during the boot process and you aren't able to login as your user. Obviously, in this situation, never give out your regular user's password either.To lock the root user, run the following command as root after checking the manual to see what it really does:
I don't think "zswapfc" is a thing. SwapFC, however, is. SwapFC (from what I can tell) automatically allocates and activates swap files (and vice versa). If you're using disk-backed swap (which you would be with SwapFC), then you should use zswap instead of zram. But to answer your question, yes, you can use zram with SwapFC, because SwapFC is just a method of dynamically creating/destroying swapfiles. It would be no different than if you were to use zram with a static swapfile. Zram would act as one swap device, and SwapFC would create some other swap devices, so you'd have multiple swap devices at once.
You might now be able to see why zram + zswap simultaneously is a bad idea. zswap would be used as a compressed RAM-based cache for the compressed RAM-based swap. So you'd be losing performance compared to just zram, since the swapped pages would be compressed into zswap, then decompressed and transferred to zram, where they are then compressed again and stored.
Also, if you use zram and a normal swap device (or SwapFC), then zram is one swap device which uses compressed memory as the storage backend, and the swap file/partition is another swap device, which uses the disk as a storage backend. So you'd have one fast swap device (zram) and one or more slow swap devices (the files/partitions). Zswap is a better option because it uses the fast compressed-memory cache when possible, and only writing to disk when the cache is full. This also improves SSD lifetime, because it lowers the number of disk reads/writes.
Basically, only use zram if you don't already have a swap device.
See this AskUbuntu answer for more info.
Disclaimer: I couldn't find anything relating to SwapFC other than from the README of systemd-swap. What I've written above is just based on the one-line description of SwapFC, as well as prior knowledge of zswap and zram (obtained from the Linux Kernel docs).
https://wiki.archlinux.org/index.php/Creating_packages
Right. But if it falls back to
~/.ssh(or checks that first), then there wouldn't be a problem. Another (IMO better) option is to have some sort of configuration option in the system-wide/etc/ssh/ssh_config. Or it could be specified using an environment variable, like GnuPG's$GNUPGHOME(although this might not be possible because the daemon doesn't have the user's environment).That's a good point. I didn't think about other programs.
Thanks. Their response is pretty disappointing. They refuse to change it only because it's been
~/.sshforever. Even though it would be fairly easy to check$XDG_CONFIG_HOME/sshif it exists, but use~/.sshotherwise.Why is SSH a wont-fix? Can you point me to where OpenSSH announced/discused that?
It usually is a trivial change. For isync/mbsync, I added 3 lines and that was it. Of course this doesn't include documentation changes, which would be way more than the code change itself.
sudoeditmakes a writable copy of the file in /tmp, meaning your editor runs as your normal user. when the editor closes, it copies the temporary file to the actual destination.sudo virunsvias root, which could be dangerous depending on how you've set things up.The other benefit of
sudoedit(orsudo -e) is that since the editor runs as your current user, it uses your normal editor configuration, not the root user's configuration.Oh ok. I haven't experienced that when running MacOS under QEMU/KVM.
Without passthrough, the graphics experience depends on which driver you choose. If you use the standard QEMU VGA driver, you'll get bad performance. If you use the VirtIO or QXL drivers, you'll get much, much better performance.