talkingpumpkin

joined 3 years ago

left/right mouse button

[–] talkingpumpkin@lemmy.world 32 points 2 days ago (1 children)

I don’t know how to create suspense

I must pretty good at that, since I never know if my code is gonna crash until the very end :D

[–] talkingpumpkin@lemmy.world 5 points 3 days ago

If the filesystems seem ok it might be your grub configuration (or whatever bootloader you use)

[–] talkingpumpkin@lemmy.world 3 points 1 week ago (1 children)

Caveat: I only skimmed through the article up to the point below, so I'm probably missing some key point.

I just wanted to comment this specific passage (and the table below it).

When we asked developers what they actually value about coming into the office, the answers were overwhelmingly human. The top response, by a wide margin, was other people [...]

Literally all the other options (except "conference room", which is really "other people" all over again) are things that people have at home too (well, things that are reasonably easy to get at home, assuming that you care about them and that your boss pays from them and/or doesn't woefully underpay you).

Also:

  1. it's not clear whether "other people" actually requires co-presence or if a call/chat suffices to satisfy the point
  2. engineers valuing something doesn't mean that something is worth the cost (or even good for business in the first place)
[–] talkingpumpkin@lemmy.world 1 points 1 week ago (6 children)

If it's a server for self hosting you definitely don't want anything that requires interaction at boot.

There's a project that allows unlocking LUKS with a decryption key retrieved from another machine in your network. I don't recall the name but someone hopefully will.

The idea is that put the key on, say, a raspberry pi zero w that you hide somewhere in your house so that if someone steals your server they don't have the key.

[–] talkingpumpkin@lemmy.world 21 points 1 week ago (3 children)

Since you don't say, I assume you are talking US?

[–] talkingpumpkin@lemmy.world 19 points 1 week ago (3 children)

My NAS is in a node 304 case from fractal design and I can recommend it.

The 304 is mini-ITX/DTX with space for 6 drives.

There is a bigger version for bigger motherboards and more drives, which I would assume is just as good as mine.

[–] talkingpumpkin@lemmy.world 54 points 2 weeks ago (10 children)

Frankly, I don't see where the whole big deal of this story is.

People who don't like codeberg can just go somewhere else (even back to github) and/or found/support an alternative that better suits their needs.

It's not like the world needs to have one git hosting service to rule them all, it's not like there must be free ones (entitled much?), and it's not like whatever service happens to be the new "cool" one must be neutral as to what they host.

BTW, although to my knowledge their policy is not enforced super-strictly, codeberg has never been neutral in this regard — see 1 and 2

[–] talkingpumpkin@lemmy.world 8 points 3 weeks ago (2 children)

No idea, but it's certainly not the intended use of github.

Have you already reported the user (look at their other repos) or should I?

[–] talkingpumpkin@lemmy.world 29 points 3 weeks ago (2 children)

Nice! Now do the same for ipv6 :p

Any way to determine/estimate if the black squares are unused blocks ("give them back!") or just not responding to pings?

[–] talkingpumpkin@lemmy.world 5 points 3 weeks ago

Does this just create a gerontocracy where old members gatekeep forever?

I don't think it determines a gerontocracy (do people really care about upvotes?) and I don't think it solves the problem you're worried about either.

How do you handle the first 30 days when no one has much weight?

You show upvotes as a %, so if a post has +.01/-0 it's still 100% upvoted.

Would this actually prevent the decay, or just slow it down? Is there a simpler/better mechanism I’m missing?

In your scenario, "hardcore" members leave because the signal/noise ratio is so low that the community is not worth following anymore.

That has nothing to do with upvotes and all to do with mods failing to take down meme posts (assuming members don't like memes).

A community is its mods: if they allow low-effort posts (without meaning to) they are not doing their job properly, and that's probably due to the job being too difficult and/or requiring too much effort.

You could look into allowing older members to help moderate, or maybe into allowing mods to flag "trusted" users whose downvotes (possibly unbeknown to the users themself) will result in posts being taken down "for review", or otherwise figure out some other way to help mods out, both when making up the rules (that too takes a lot of effort!) and when moderating posts/comments.

A lemmy/reddit-style community is its mods. Think of how to help them be effective.

 

Here it is https://codeberg.org/gmg/concoctions/src/branch/main/sh-scripts/nixos-rebuild

(if you try it and find any bugs, please let me know)

edit: I didn't realize the screenshot shows just instead of nixos-rebuild... that runs a script ("recipe") that calls nixos-rebuild so the output shown is from the (wrapped) nixos-rebuild

 

I'm trying to get my scripts to have precedence over the home manager stuff.

Do you happen to know how to do that?

(not sure it's relevant, but I'm using home-manager in tumbleweed, not nixos)


edit:

Thanks for the replies - I finally got time to investigate this properly so here's a few notes (hopefully useful for someone somehow).

~/.nix-profile/bin is added (prepended) to the path by the files in /nix/var/nix/profiles/default/etc/profile.d/, sourced every time my shell (fish, but it should be the same for others) starts (rg -L nix/profiles /etc 2> /dev/null for how they are sourced).

The path I set in homemanager (via home.sessionPath, which is added (prepended) to home.sessionSearchVariables.PATH) ends up in .nix-profile/etc/profile.d/hm-session-vars.sh, which is sourced via ~/.profile once per session (I think? certainly not when I start fish or bash). This may be due to how I installed home-manager... I don't recall.

So... the solution is to set the path again in my shell (possibly via programs.fish.shellInitLast - I din't check yet).

47
submitted 6 months ago* (last edited 6 months ago) by talkingpumpkin@lemmy.world to c/selfhosted@lemmy.world
 

I'd like to give my users some private network storage (private from me, ie. something encrypted at rest with keys that root cannot obtain).

Do you have any recommendations?

Ideally, it should be something where files are only decrypted on the client, but server-side decryption would be acceptable too as long as the server doesn't save the decryption keys to disk.

Before someone suggests that, I know I could just put lucks-encrypted disk images on the NAS, but I'd like the whole thing to have decent performance (the idea is to allow people to store their photos/videos, so some may have several GB of files).


edit:

Thanks everyone for your comments!

TLDR: cryfs

Turns out I was looking at the problem from the wrong point of view: I was looking at sftpgo and wondering what I could do on the server side, but you made me realise this is really a client issue (and a solved one at that).

Here's a few notes after investigating the matter:

  • The use case is exactly the same as using client-side encryption with cloud storage (dropbox and those other things we self-hoster never use).
  • As an admin I don't have to do anything to support this use case, except maybe guiding my users in choosing what solution to adopt.
  • Most of the solutions (possibly all except cryfs?) encrypt file names and contents, leaking the directory structure and file size (meaning I could pretty much guess if they are storing their photos or... unsavory movies).
  • F-droid has an Android app (called DroidFS) that support gocryptfs and cryfs

I'll recommend my users try cryfs before any other solution. Others that may be worth it looking at (in order): gocryptfs, cryptomator, securefs.

I'll recommend my users to avoid cryptomator if possible, despite its popularity: it's one of those commecrial open source projects with arbitrary limitations (5 seats, whatever that means) and may have nag screens or require people to migrate to some fork in the future.

ecryptfs is to be avoid at all costs, as it seems unamaintaned.

19
submitted 10 months ago* (last edited 10 months ago) by talkingpumpkin@lemmy.world to c/europe@feddit.org
 

Delusional.

 

A lot of selfhosted containers instructions contain volume mounts like:

docker run ...
  -v /etc/timezone:/etc/timezone:ro \
  -v /etc/localtime:/etc/localtime:ro \
  ...

but all the times I tried to skip those mounts everything seemed to work perfectly.

Are those mounts only necessary in specific cases?

PS:

Bonus question: other containers instructions say to define the TZ variable. Is that only needed when one wants a container to use a different timezone than the host?

 

Prometheus-alertmanager and graphana (especially graphana!) seem a bit too involved for monitoring my homelab (prometheus itself is fine: it does collect a lot of statistics I don't care about, but it doesn't require configuration so it doesn't bother me).

Do you know of simpler alternatives?

My goals are relatively simple:

  1. get a notification when any systemd service fails
  2. get a notification if there is not much space left on a disk
  3. get a notification if one of the above can't be determined (eg. server down, config error, ...)

Seeing graphs with basic system metrics (eg. cpu/ram usage) would be nice, but it's not super-important.

I am a dev so writing a script that checks for whatever I need is way simpler than learning/writing/testing yaml configuration (in fact, I was about to write a script to send heartbeats to something like Uptime Kuma or Tianji before I thought of asking you for a nicer solution).

view more: next ›