CapillaryUpgrade

joined 1 year ago
[–] [email protected] 6 points 4 months ago (2 children)

My favorite movie is probably Brazil (1985). It's a dystopian movie, but the population is suppressed by absurd amounts a bureaucracy (also the state surveiling and killing it's people). You need to fill out a form to fill out a form, and every screen is tiny, but magnified by a lens to be small instead.

But what I really love about it is the the "terrorist" Archibald Tuttle (who, very much, is not the protagonist); a repair man, who risks execution by the state, zip lining around the city fixing things like the protagonist's air condition.

I think we should all strive to be more like Tuttle in our daily lives.

[–] [email protected] 2 points 6 months ago

Same for me. You can bypass it if you read in a "private browsing" window.

[–] [email protected] 2 points 7 months ago

No problem!

I hacked this together instead of going to sleep, so it might make your deck explode, but maybe it's a starting point for you or someone else:

# home-deck-mounts.mount
#
# Mount units must be named after the destination path, this / replaced by -, like above
#
# This is a template unit.
# That's explained here: https://fedoramagazine.org/systemd-template-unit-files/
# TL;DR: run it like this `[email protected]` if you want to mount the subdirectory "linuxisos" from SHARE_PATH
[Unit]
Description=NetMount %I
After=graphical.target
# This is commented out, because it is implicit for network mounts https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html#Default%20Dependencies
# I keep it here as an example
#After=network-online.target
#Requires=network-online.target

[Mount]
# %i expands to what ever you put after the @ when starting/activating the service
What=10.10.10.99:/mnt/user/%i
Where=/home/deck/mounts/%i
Type=nfs
Options=exec

[Install]
WantedBy=default.target

I couldn't confirm if mount units are allowed to be template units, but if not, just duplicate the service for each path and replace %i.

Say the word if you run into issues!

[–] [email protected] 3 points 7 months ago (2 children)

Don't put yourself down! Using systemd wouldn't make it work "better", it's just more "proper" (and a great tool to know in general!)

Great job and keep going!

[–] [email protected] 9 points 7 months ago (7 children)

This is really cool!

Where did you put the service file?

I don't mean this as critique, but as possible next project, since your solution works perfectly fine. Systemd has some cool features that could make this project have a bit fewer moving parts:

  • a .mount file could replace the mount and unmount script, and handle logging too! (I am pretty sure you would need separate files per mount, though, so "fewer moving parts" might be a bit of a lie, depending on your interpretation)
  • that "After=" setting you used, can also be used to check for network connectivity. IIRC it's "networking.target" on Fedora, at least. You might want to double check the systemd docs if After is the right one for this, as I have a hard remembering the systemd dependency intricacies.

That way you would end up with a .mount file per mounted directory, with logging using journald, and no external scripts.

I really like systemd as it can be a great tool, when you start to break down the complexity of it.

I hope you get well soon and get the best you can from this time.

[–] [email protected] 1 points 7 months ago

Cockpit is great.

It's pretty simplistic. It gives you an overview of your system ressources and handles libvirt VMs and Docker (i think. I used it with Podman, but in this context both should work).

My impression was that the container and VM interfaces were pretty simple, and I wouldn't have liked it as my main interface for those services, but it would be perfect for getting an overview and restarting them!

[–] [email protected] 2 points 7 months ago

Grounded danish plugs don't fit Schuko sockets, but Schuko plugs fit danish sockets (but aren't grounded).

This leads to a staggering amount of ungrounded devices in Denmark, as most are imported and making a variant for such a tiny country isn't profitable.

Fun fact: the danish power plug was created by Lauritz Knudsen, a Danish company who had a monopoly. They are the reason Denmark uses this plug as the only country in the world, and Schuko only became legal to install in houses quite recently, so 99% of houses still use their standard.

LK has since been bought out by Schneider Electric but we are still stuck with our special plug and most imported devices are still ungrounded.

Thanks for listening to my Ted Talk.

[–] [email protected] 6 points 7 months ago (1 children)

Node-Red can do dashboards. I don't know if it does data logging, but I would guess so since it can do dashboards. It also supports MQTT so it should handle ESPHome devices without a problem.

It's made for automations (and great at it) but it can be a minimalist HA hub too.

[–] [email protected] 16 points 7 months ago (18 children)

Hook it up with ChatGPT and you are golden!

[–] [email protected] 8 points 7 months ago (1 children)

I run the built-in automatic rpm-ostree upgrade service every 6 hours.

If you think that's too inefficient, maybe read the docs for shutdown.target and see if you can use that to run an upgrade service before shutdown?

I'm not too experienced with that part of systemd but it seems like it could be a "proper" way to run things on shutdown?

[–] [email protected] 4 points 7 months ago

Use a passphrase (not a password) and a physical security key, like a yubikey. It also supports TOTP or whatever 2fa Proton uses, you just connect it with a laptop or phone and it gives you a key.

A physical key is much more secure than 2fa from a password manager (although both are probably fine)

[–] [email protected] 5 points 10 months ago

Nextcloud doesn't verify your email and has tons of other nice features as well. ProtonDrive (/ProtonMail as another user suggested) probably doesn't or you could use your Proton address for that.

You mention allowing weak passwords are a plus. Please use a weak password, especially without email as 2nd factor.

Have you considered using mnemonics for your passphrase?


Generate a number (i would use around 5) of random words (EFF has a wordlist, humans are really bad at randomness) and link them together using silly images. For example:

  • sparrow
  • window
  • automobile

First, you link sparrow to window: imagine a sparrow trying to break through a window, not just flying into it by accident, no, this sparrow is mad and is set to destroy it.

Second, you link window to automobile: imagine an automobile with huge windows. The car is completely normal sized except every window is at least 3 meters tall. It looks absolutely ridiculous and you feel embrassed that youvhave to drive it everywhere.


Repeat this proces for the rest of the words. It helps remembering them if the image makes you feel something, like making you chuckle or feel angry that you have to deal with this stupid contraption (only in your mind, hopefully)

Also, make sure each "link" is distinct. Eg. Don't make the second link an automobile driving into a window when the sparrow does the same. It will mess up the order and make you jump around between similar mental images.

view more: ‹ prev next ›