Skip to content

u/WiredTangles

In this archive from Mar 2020 to Aug 2022

2
posts
144
comments
1
media
601
score

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.

1 points

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.

6 points

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).

7 points

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:

passwd -l root
4 points

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.

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).

2 points

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).

2 points

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.

17 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.