talkingpumpkin

joined 3 years ago

fstrim is most probably already handled.

If you are adding a btrfs disk to an existing install you might want to check if there's a systemd unit that runs btrfs scrub: run systemctl list-units '*btrfs*' and see what it prints.

For btrfs balance... I read that you generally don't want to run it (it can be pretty IO intensive) unless you added/removed disks or are troubleshooting. My tumbleweed does have a service that boils down to running btrfs balance weekly though (with values far below your 50; see sources available at https://github.com/kdave/btrfsmaintenance)

[–] talkingpumpkin@lemmy.world 12 points 1 day ago (4 children)

how is my maintenance script?

Most probably, unnecessary :)

Doesn't your distro have systemd units that run that stuff on a timer for you on?

[–] talkingpumpkin@lemmy.world 7 points 2 days ago* (last edited 1 day ago)

OP you hit "submit" a bit too early: the release is scheduled for tomorrow :)

see https://github.com/NixOS/nixpkgs/issues/567567

edit: release has been postponed to dec 3rd

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

Nope. Writing portable playbooks is hard, and testing them is harder

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

What does ip rule show print before and after you run that ip rule add command?

Does the ip rule add actually change anything meaningful in how your traffic is routed?

PS: LLMs can be great learning tools but it looks to me like you are not asking yours the right questions.

[–] talkingpumpkin@lemmy.world 1 points 4 days ago

I meant when the company closes down the source code :)

IANAL but AFAIK when a company goes down its IPs goes to the creditors (together with any other assets): it doesn't disappear or go to the government.

Anyway, even excluding practical legal liabilities, that nobody will sue you for something does not make it legal and that (regardless of one's personal moral stance on the matter) would be a real problem for a FOSS project that want to attract volunteer contributors.

(sorry, I misclicked and deleted the other reply)

[–] talkingpumpkin@lemmy.world 7 points 4 days ago (1 children)

Generally speaking (IDK if this applies to your tool), the issue is that by making easy things easier one makes hard things even harder.

[–] talkingpumpkin@lemmy.world 26 points 4 days ago (8 children)

I understand that ssh config may seem complicated to a newbie (it isn't).

The healthy reaction should be to read the f. manual and learn (it's not hard), not to ask an LLM to code some slop app that makes easy things easier.

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

I'd love to use nebula, but the android app is not FOSS (the source is available on github but it's not licensed as FOSS, meaning people can't fork it if/when the company closes it down).

A few days ago i stumbled upon https://rayfish.xyz/, which (PSA) looks promising at first sight, but it tuns out to be AI slop :(

[–] talkingpumpkin@lemmy.world 2 points 6 days ago

My stuff isn't on github either.

The problem is a lot of tools rely on github and/or use github as the source of truth for their dependencies and that if I'm working with a tool that's hosted on github, its documentation is often hosted on github too.

[–] talkingpumpkin@lemmy.world 11 points 6 days ago (4 children)

I thought this would be an article on how to customize grub, but... is it just you bragging, OP?

 

I'll copy the whole announcement here for those who don't want to click:

I regret to inform everyone that my copy of QBittorrent escaped its sandbox last night and downloaded a whole bunch of content owned by major corporations, and then my copy of Jellyfin broke containment and added those unfortunately-downloaded media files to its various libraries. I'm conducting an internal investigation to figure out how this happened, which will involve consuming these media files until the answers become apparent. Thank you for your cooperation during this trying time.

 

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 10 months ago* (last edited 10 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 1 year ago* (last edited 1 year 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 ›