Skip to content

u/emlun

In this archive from Mar 2014 to Apr 2024

4
posts
57
comments
2
media
386
score

I use BTRFS and take an automated snapshot once per day, and use btrfs-send to backup those snapshots (retaining the structural sharing on the remote end, so space consumption doesn't scale proportionally with number of snapshots) to my home server. It's worked really well for close to 2 years now, and I've had use of the backups several times since I started.

It's custom code but I've published it here if you'd like to take a look and be inspired. It's very tailored to my own use case and important parts of it reside externally in my SSH client config and server-side sudoers config, so I'm not much interested in generalizing it to a simple plug-and-play "product", but you're very welcome to fork and modify to your own needs.

1 points
emlunDeleted · saved before deletion

I use BTRFS and take a snapshot once per day, and use btrfs-send to backup those snapshots (retaining the structural sharing on the remote end, so space consumption doesn't scale proportionally with number of snapshots) to my home server. It's worked really well for close to a year now, and I've had use of the backups several times since I started.

It's custom code but I've published it here if you'd like to take a look and be inspired. It's very tailored to my own use case so I'm not much interested in generalizing it to a simple plug-and-play "product", but you're very welcome to fork and modify to your own needs.

1 points

You could however use LVM to map both physical volumes to a single logical volume spanning both drives. But note that this will require erasing both drives first, unless you really know what you're doing.

2 points

Zoom (I have one appointment a week that requires Zoom)

You might be able to run Zoom in the browser instead if you like, this has worked fine for me at least. You need to cancel the xdg-open popup and click the slightly hidden "run in browser" link at the bottom of the page instead.

1 points

I don't remember having any issues with GRUB this summer. Maybe I was just monitoring arch-announce and pre-empted any would-be issues, or maybe I just booted the installation medium and fixed it. You know, because I set this all up to begin with, and I've tweaked it from time to time since, so reinstalling the bootloader and its config is such a not-big deal it barely even registers as a nuisance.

1 points

I've been running (essentially) yes y | pacman -Syu && reboot on my Raspberry Pi server every Sunday morning for one or a few years now and haven't had any problems with this. The actual script has a little more to the script to make the logs a little nicer, and I've also set up automatic download of those logs yo my other machines so I can keep an eye on it and see it's going well, but honestly I've forgotten to check the logs since week three or something.

I don't do this on my workstations though, mostly because I want to decide for myself when I reboot. It's usually not a great idea to keep running without rebooting after a kernel or systemd upgrade - things start breaking in very cryptic and unexpected ways, until you remind yourself that it's because the new kernel modules no longer match the running kernel or whatever.

2 points

Same, been running btrfs for maybe 5 years now with no issues (except that one time Docker filled its partition with snapshots it failed to clean up, but that has also since been fixed). I recently learned how to create, transfer and restore snapshots and have never been happier with my filesystem setup.

1 points

I just encrypt everything, including /boot. One partition per physical drive (except a UEFI partition where needed), each partition block device encrypted, each encrypted block device an LVM physical volume, and then LVM logical volumes within and across those. LVM gives extreme flexibility to resize and rearrange "partitions" on the fly, and having the top-level physical volumes encrypted ensures everything is encrypted all the time (and I don't need to worry about resizing encrypted containers when resizing volumes).

(Okay, maybe /tmp is in RAM and is not encrypted, I don't really care. My threat model does not involve actively probing the machine while powered on, nor dunking the RAM sticks in liquid nitrogen to transplant them to a lab machine.)

2 points

I don't find it particularly funny, if anything the presence of the meme makes me flinch slightly when someone asks what distro I use. I don't use Arch because "it's hardcore" or because I think (sarcastically or not) it makes me better than anyone else, I use it because it's just what I like best.

But still, let's not gatekeep anyone from saying they use Arch. But let's also stop pretending it matters what distro someone chooses to use.

9 points

This is a great introduction, and reflects most of what I do to vet any AUR packages I'm about to install - make sure the source URLs point where they're supposed to, and that the PKGBUILD functions and install scripts don't do anything dubious.

I'll also add that some AUR helpers can help out with the review process. I use yay, which offers to show you the diff of the PKGBUILD and any related files everytime you upgrade a package. For well-written packages this usually means it's just the version and checksums that change between package versions, which makes it very easy to confirm that the new PKGBUILD just pulls new sources from upstream and hasn't introduced anything malicious into the packaging process since your last full review of the package.

1 points

Ok, to be fair it's probably been at least ~6 years since last time I tried, so things may very well have changed since then. I don't remember what my problems were beyond that whatever program it was didn't run.

1 points

Just note that while Steam itself can be easily installed from the official repos, not all games support Linux (and although wine exists, I personally haven't had great results with it). That said, surprisingly many games these days do install and run on Linux just as easily as on Windows - especially indies, but also the occasional AAA surprise like DOOM (2016).

1 points

I realize that quantum computing is still a ways off, but it's nice to be ahem ahead of the curve.

Ed25519 is not quantum resistant, though, so it won't put up much more of a fight than RSA against a quantum computer. No cryptosystem based on integer factorization (RSA) or the discrete logarithm (including all kinds of elliptic curves) will.

17 points

I agree that you shouldn't feel pressured to learn Vim and/or Emacs to be a Real Linux Developer (TM). Use whatever tools work well for you.

That said, here's my opinion: Vim is the better text manipulation interface, Emacs is the better text editor platform. Spacemacs is the best of both worlds.

Like you, I started familiarizing myself with Linux in university. I tried Emacs and loved how efficient it made me without having to touch my Netbook's touchpad. Over time I came into contact with Vim occasionally, especially after I started using Git and its very line-focused hunk editing mode. Eventually I went through :vimtutor and I started preferring Vim's modal interface over Emacs's chord-style key bindings. Used Vim and IntelliJ IDEA at work for a few years until a colleague told me of Spacemacs, which is now my main editor (still using IDEA for Java & friends).

What I've come to recognize is that the defining feature of Vim isn't really any feature in the editor as such - it's the interaction language. Vim doesn't have keyboard shortcuts, it has a programming language that you speak in real time with the editor. It's a fundamentally different paradigm from any other editor. It definitely takes more practice before you learn to speak that language well, compared to learning conventional keyboard shortcuts, but once you're past that threshold it's extremely powerful and you won't want to use anything else.

Emacs instead offers a more conventional editor interface but much more powerful customization and extension capabilities - the "Emacs is a great OS" joke is only a small exaggeration. Vim extensions are written in "vimscript", which I was never motivated enough to bother learning, while Emacs uses Emacs Lisp which is very easy to pick up if you've written any kind of Lisp such as Clojure. It seems to me like Emacs extensions are often of higher quality than their Vim counterparts as a result. Magit, for example, is the only Git interface I've used that beats the command line in many ways, and Emacs veterans often talk about Org mode with dreamy eyes.

My recommendation would be this: if you like the idea of a powerful, specialized real-time computer interaction language, then give Vim a try. Then maybe check out Spacemacs once you feel proficient with Vim. Just know that once you've internalized it, it's difficult to go back. If this seems like too much work or locking you in too much, then go for Emacs. In the end, both are great editors and neither is a bad choice.

12 points

It's not pride as in triumph of achievement, it's pride as opposed to shame.

These people have been - and still are - told that they should be ashamed of who they are. The Pride message is that they should not. If you've ever said something along the lines of "I'm a Nickelback fan, and proud!" you know deep down what the word means in this context.

17 points

Boot from encrypted USB drive, which contained /boot partitions and LUKS headers for multiple machines. This achieved a kind of 2-factor authentication to start up the machines, since the encryption headers were stored off the hard drive.

I set this up my netbook and previous work laptop, but I don't use either of them anymore and I haven't replicated the setup on other machines because honestly it's kind of a pain. But it was a fun hack to do. It's way too much to cover here, but I documented the whole setup here.

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