Skip to content

u/northcode

In this archive from Mar 2015 to Oct 2026

13
posts
109
comments
8
media
988
score

The biggest plus for me that I discovered after the fact was that it made me gather all my configuration in one place. Instead of having to know which files to place what, it's all in one git repo and docker/k8s takes care of making sure it ends up in the right place. You can obviously do this with Ansible too if you want to go containerless, but with so many projects being containerized already it's easier to find docker-compose or helm templates for the app you want to run. So now if I need to move to a new machine I don't have to remember how to setup nginx and install the right things and where to configure what, I just run one command to install k8s and then deploy everything from my git repo and it's mostly back to where it was.

1 points

I have yay installed but I've also setup aurutils on my server that automatically builds a list of packages to a pacman repo every day so I can just update them with my other pacman packages. Saves time compiling them during updates and lets me upgrade the same packages on my desktop and laptop without having to needlessly build them twice.

I usually just use yay to test new packages and if I like them I put them in my server repo to auto update.

3 points

As much as I love rust as a language here is why you shouldn't do this:

  1. You sound like a beginner, and 99% of the documentation is written with the standard utils in mind. Meaning if you replace them with rust versions you will not only need to learn how to use the rust version, but also the old version, so you know what to do when reading documentation that uses standard tools.
  2. A lot of the replacements people have written in rust are not as mature as the old tried and true standardized tools. you are more likely to run into bugs or missing features.
    As an example, I tried out a decompression tool in rust and there was a bug in it that ended up deleting my entire download directory. Thankfully it wasn't an important folder.
  3. Rust version doesn't automatically mean faster/better. Most of the time the rust version only matches or has slightly less performance. Usually the only benefit is better ergonomics (like for ripgrep or fd).

If I were you I would stick to the standard tools, and maybe replace one or two things as you go and see what works for you and what doesn't.
When you're ready to try some new tool, you can pick something from this list: https://github.com/unpluggedcoder/awesome-rust-tools

12 points

Snapshots are done per filesystem. So that's no problem.

You should look into a tool like timeshift or snapper, which can manage snapshots for you if you want to use them for backups.

You'll have to reformat, but in practice this isn't that complicated to setup when installing.

Simply use mkfs.btrfs when formatting each drive:

mkfs.btrfs -L root /dev/ROOTPARITITION
mkfs.btrfs -L home /dev/HOMEPARTITION

then mount root to /mnt as usual when installing:

mount /dev/ROOTPARITITION /mnt

Then,for the home drive, since you want snapshots, first mount the partition to /mnt/home, enter it, and create a subvolume with:

mount /dev/HOMEPARTITION /mnt/home
cd /mnt/home
btrfs subvol create @

this will make a subvolume called '@', we'll use this for storing the actual data of /home We have to do this since snapshots require subvolumes. Next we need to unmount the partition, and remount it with the subvolume.

cd /mnt
umount /mnt/home
mount -o subvol=@ /dev/HOMEPARTITION /mnt/home

Now you just continue the arch install as usual, genfstab will generate the correct config for your mounts.

Then if you want to configure snapper: https://wiki.archlinux.org/title/Snapper#Installation

Here's a more in depth tutorial on installing arch with subvolumes and snapshots, they don't do it for /home but the principles are the same. https://www.fastycloud.com/tutorials/kb/install-arch-linux-with-btrfs-snapshotting/

7 points

What do you mean you programmed the keyboard to type "alt 0194"? Does it stimulate multiple key presses? Those don't work on Linux because those shortcuts are a windows thing. Linux uses Ctrl+shift+u https://superuser.com/questions/59418/how-to-type-special-characters-in-linux#59419

But you should really just setup your keymap properly. https://wiki.archlinux.org/title/Keyboard_input Otherwise there's going to be programs you run into that don't support these shortcuts and you get wired behavior.

1 points

Have you used pip to install global python packages before?

You can also check what package owns the files it's complaining about with pacman -Qo /path/to/file (tho it will probably say no one owns those files)

Pacman is complaining because to install those packages it needs to copy those files. But those files already exist, and Pacman doesn't want to overwrite them because it could break something else. So you should figure out why those are there and if you can delete them or not.

Since these are python packages I'm guessing you've installed them with pip earlier instead of Pacman. So they conflict. Usually you have jinja2 if you've been doing flask or Django development.

You'd have to remove the pip version to use the Pacman version instead.

2 points

A package can contain lots of files that go different places. Usually libraries, binaries, assets, config files, shortcuts, service files. These have to go to the correct places so they are read by the things using them correctly. Binaries go somewhere in your path. Config files and assets where the binaries expect them to be. And services in systemd's config directories. You can't "just install it to a folder" because all the files have to go somewhere specific.

But. If the SD card never gets removed you can install arch with LVM, and spread the partition across both the internal storage and the SD card. That way you can use both as if they were one disk, and just have your root system on it. You can do this with any partition except /boot, that has to be a normal one readable by your bootmamager, usually fat32 on UEFI systems since you just use the boot partition as the ESP. If you want you can also only have /var and /usr in the LVM, as that's where the most assets and binaries get put, so they take up the most space.

A warning though: If either the internal storage or the SD card gets corrupted, you loose all the data across both disks, not just the one that failed, so keep backups of important stuff!

There is also unionfs, which I haven't looked into. But it looks like that might not be possible for root partitions. So you would have to do something tricky with the install.

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