talkingpumpkin

joined 3 years ago
[–] talkingpumpkin@lemmy.world 3 points 6 days ago

Terrible posting etiquette

Agreed!

Though it's very widespread, sharing a link without a word of comment is as obnoxious as those people who send you emails with no text or subject and only an attachment.

I feel less alone knowing that someone else also hates this practice.

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

IDK if it's the "best" way, but generally I just let ping run for a while and check the statistics at the end

[–] talkingpumpkin@lemmy.world 4 points 1 week ago* (last edited 1 week ago)

Your worth is not determined by abstract internet points.

Sometimes people won't get your message/point and downvote your contributions. The reason might be you not doing a good job at communicating (in my experience, it's usually is that) or it might be them misunderstanding or you might not fit the community you are contributing to (eg. if your political view is not generally accepted in a community).

Don't worry about one of your posts/comments occasionally getting downvoted.

If your contributions get downvoted consinsently (which seems to be the case from what you write? I don't really are enough to go look at your account's history), consider if continuing as you are is of any benefit to you and/or the community and if it's still worth your time.

In case, try seeing if it's a style/tone/manners/respect thing that you maybe want to improve on or if it's just not worth it and it's better to go somewhere else or stop entirely.

There is no law saying we must fit every community (I left communities and even an entire Lemmy instance for that).

Also, this discussion is entirely OT since it has nothing to do with programming, and I am reporting it as such. If it's downvoted or ends up being taken down (I hope so), it's not because of some conspiracy against you.

[–] talkingpumpkin@lemmy.world 1 points 2 weeks ago

Sure thing!

(also, please do post about it when you eventually decide to switch to linux)

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

Does i3 do wayland?

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

Setting up an OIDC provider isn't particularly difficult, but you'll have to run it as a publicly accessible server in order for tailscale to interact with it.

It looks like you can register at netbird.io with email and password.

In your shoes I'd setup that for now, and later look into OIDC or (probably better) into self-hosting nebula (or maybe netbird).

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

No idea what you are talking about... did you get an assignment to implement some CLI program and want ideas for what to do?

If this program was made in a language that supports creating packages for other programs (e.g. Python, Rust, NodeJS), should this program be a ‘package’, or should it be a standalone program that has a simple “setup” script?

I'd assume what you call "packages for other programs" would be plugins? In that case, unless you have a specific existing program you want to write a plugin for, then yours would be a standalone program.

About the "setup script", if you mean that's an installer of sorts, then no, your program must not necessarily have an installer (you or others may write standalone installers or packages for various package managers, but that's another story).

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

Just try and see how it goes - it's not like you can't go back

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

To me it looks like "we believe in our product" companies are an endangered species

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

IDK about the current status of x86 with android, but last time I checked it wasn't good.

Lineage might be your best bet... it supports a few androidtv boxes (most notably the nvidia shield) see https://wiki.lineageos.org/devices/

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

where SyncThing is overkill

I just have a dedicated shared folder between my phone and desktop and drop oneoff stuff there (it's also easier to script this way)

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

For files I use syncthing (also for music/photos/notes/etc... syncing files is IMHO the way to go wherever applicable).

For sending links to my PC (eg. articles linked from podcasts' notes) I used to rely on firefox sync, but I'm starting to distance myself from Mozilla so I am gonna experiment with wallabang.

For sending small notes to myself (stuff that I want to sort or act upon when I get to my PC), I'm using signal's "note to self" but I'm investigating alternatives because signal doesn't mark such messages as unread and so sometimes I forget I've sent some.

 

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 5 months ago* (last edited 5 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 9 months ago* (last edited 9 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 ›