talkingpumpkin

joined 3 years ago
[–] talkingpumpkin@lemmy.world 2 points 20 hours 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 10 points 20 hours ago (4 children)

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

[–] talkingpumpkin@lemmy.world 8 points 21 hours ago (2 children)

The only one I notice going down is github. I'm planning on making local mirrors of some repos, but, given how much stuff depends on github being up, i doubt it's gonna do much good.

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

They are everywhere. If it goes on like this they are gonna replace our culture with theirs.

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

Why is this relevant in this community?

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

I just feel like I’m supposed to be a rubber stamp on the output.

Nah, your role is not only that. You are also the one who's gonna be blamed if/when things go awry, and the one who'll be called to fix production on a Saturday night :)

Jokes aside (hopefully it's just a joke), I don't see may options... If you think things are gonna get better in time, you can try and endure it. If you don't, you can try and switch to a different job (company and/or position).

The bottom line is you don't enjoy doing what your boss pays you to do.
That the reason for that is the company "AI" policy does not really change this.

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

A "secret" administrator account name is not a second authentication factor: it's just another "something you know", basically the same as using a slightly longer password.

On top of that, account names are generally not treated with the same confidentiality passwords or private keys are treated with: while you can trust that software and collaborators will not leak a password or private key, you cannot make the same assumption about usernames.

[–] talkingpumpkin@lemmy.world 56 points 6 days ago (28 children)

I really appreciate the effort but... how to say it?... it might be useful to make sure you understand a topic before trying to teach it to others :)

Some notes:

Create a Non-Root Administrative User

Not as important as most people think (local privilege escalation is a thing, and it's also quite easy for your user to alias sudo to something that will capture your password the next time you type it).

Basically: if an hostile actor gets a shell on your server, you are fucked anyway.

sudo usermod -aG docker your_username

This is the same as being root. Yep, the very same thing you went that whole length to avoid :)

Automate Maintenance with a System Update Script

Look into unattended upgrades. Also... it's not automation if you have to run a script manually :)

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

Yeah :) I just found it amusing to think of a culturally unbiased name for an holiday that exists because of euro/western cultural hegemony.

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

Winter solstice holiday 😁

edit:

No, not even that: of course it's only winter in the northern hemisphere. I'm starting to wonder if there's a 100% PC way to refer to the xmas holidays.

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

By 2030 AI is gonna completely replace sysadmins as the cause of outages.

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

We ceased using "spyware" to describe software because the category would encompass practically all commercial software. I guess "malware" might be on its way to the same destiny?

 

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.

 

I'm looking for a forgejo cli (something similar to gh for github or glab for gitlab - neither of which I've ever used).

I found one named forgejo-cli and another named fgj but, from a quick look at the source, both seem to save my API key in a plaintext file, which... I just find unacceptable (and, frankly, quite dumb).

Do you know of any others?

 

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

 

I'm not much hoepful, but... just in case :)

I would like to be able to start a second session in a window of my current one (I mean a second session where I log in as a different user, similar to what happens with the various ctrl+alt+Fx, but starting a graphical session rather than a console one).

Do you know of some software that lets me do it?

Can I somehow run a KVM using my host disk as a the disk for the guest VM (and without breaking stuff)?

view more: next ›