[-] edinbruh@feddit.it 2 points 12 hours ago* (last edited 12 hours ago)

Yes, that was one of the tools I considered before making this. I do not remember the precise detail on why, but much like gnu stow is only good for versioning user dotfiles and not system config. Etckeeper is good for storing either your system config files or user's dotfiles, but not both at the same time. copicat doesn't care what you use it for because you explicitly tell it all the locations and permissions that you want.

[-] edinbruh@feddit.it 4 points 1 day ago

Yeah, it's cool, people are mostly looking for something like your usecase. I got suggested stow or stow-like tools a lot when exploring this. And when they understood what I wanted, they just suggested ansible... Which would work when starting from scratch, but wasn't right for me. I made copicat mostly because I am actually using it, and then decided to make it public because really I didn't find anything like it.

[-] edinbruh@feddit.it 4 points 1 day ago

Say you want to store /etc/ufw/sysctl.conf which is owned by root:adm and has permission 644 in your repo, but also /etc/ntfy/server.yml which is owned by ntfy:ntfy with permissions 664. How do you keep track of this with gnu stow?

[-] edinbruh@feddit.it 9 points 1 day ago

That is a good question. I have considered using gnu stow before building this. But there's a couple of problems with that.

Git doesn't follow symlinks, it stores them as links in the repo, so your only option is to keep the files in the repo, and symlink from the config file location to the repo. This is fine for user config files (like from your .config folder), but if you want to keep system config files (like those from /etc) then the git process needs to run as root to modify those files, because symlinked files share permissions and ownership. And even then, git will always create everything as root because it only tracks permission bits, not ownership, so you will need to constantly fix up ownership of your files.

With this tool instead you explicitly tell it the ownership and permission of files, and it takes care of that for you (it still needs root permissions of course).

35
submitted 1 day ago by edinbruh@feddit.it to c/linux@lemmy.ml

So, some times ago I had this question https://feddit.it/post/22496010 about how to manage my system configuration, storing it on a repository or something.

Many people recommended using ansible to manage the system as a whole, but my system was already up and running, what I wanted instead was something to move around files while fixing up their permissions, so I build a python script for that.

The script grew more refined as time went on, and so now I'm publishing it so anyone can use it.

p.s.: this script is purely python and has no external dependencies!

125
submitted 2 weeks ago by edinbruh@feddit.it to c/egg_irl
[-] edinbruh@feddit.it 92 points 3 weeks ago

at the 33rd round you do

2
submitted 3 weeks ago by edinbruh@feddit.it to c/meshtastic@lemmy.ml

cross-posted from: https://feddit.it/post/23529720

I'm curious about trying meshtastic, and I was planning to buy the Wio L1 Tracker once aliexpress sales start. Though, I have read that the antenna isn't quite great, so I was thinking about buying a better one. Also, I'm buying the pro one instead of the oled kit because for 15 extra euros I get both the battery and the assembled case.

The meshtastic website recommends the gizont 10dbi whip antenna for 868 mhz (I'm in europe). The problem is that the antenna comes in sma-male or in rp-sma-male, and I have no idea what connector the tracker has. I know I could just buy an extra ipex connector, but I'd rather keep the original one, rather than spending extra money, considering I'm not even sure to catch any node in my area.

Another question I have is if it's reasonable to use a 10dbi antenna or if it's too high gain, as I see people use ~6dbi antennas for base stations. I'm in an urban area most of the times, but I also plan on using it for hiking, a couple of time in the summer. I know nothing about radios, so I have no idea of how impactful are these numbers.

16
submitted 3 weeks ago by edinbruh@feddit.it to c/meshtastic@mander.xyz

I'm curious about trying meshtastic, and I was planning to buy the Wio L1 Tracker once aliexpress sales start. Though, I have read that the antenna isn't quite great, so I was thinking about buying a better one. Also, I'm buying the pro one instead of the oled kit because for 15 extra euros I get both the battery and the assembled case.

The meshtastic website recommends the gizont 10dbi whip antenna for 868 mhz (I'm in europe). The problem is that the antenna comes in sma-male or in rp-sma-male, and I have no idea what connector the tracker has. I know I could just buy an extra ipex connector, but I'd rather keep the original one, rather than spending extra money, considering I'm not even sure to catch any node in my area.

Another question I have is if it's reasonable to use a 10dbi antenna or if it's too high gain, as I see people use ~6dbi antennas for base stations. I'm in an urban area most of the times, but I also plan on using it for hiking, a couple of time in the summer. I know nothing about radios, so I have no idea of how impactful are these numbers.

31
OMG! Trumps! (feddit.it)
14

cross-posted from: https://feddit.it/post/23350094

what are your experiences using game controllers with linux, I'm especially interested in the xbox series s controller because it's the one I have, but I'm also interested in other controllers. From my experience the latency is disappointing, but I have no way of proving it.

So, I primarily use this controller in bluetooth mode using xpadneo. There's definitely noticeable latency, but in most games it's fine, I played through a lot of games without bother... until I played Conker: Live and Reloaded. On the infamous race level, it took me like two days to pass it, and I only made some progress when i connected the cable and dropped BT. Even that was fine though, It was just one old game and just one level, there could be a number of things to blame for that. Come hollow knight, as the game got harder after beating Hornet, it quickly became apparent that I couldn't get far without the cable, save for traversing the world, still, not that bad... until I got to fight radiance. It has been extremely frustrating, I tried it for days and eventually I started just doing a few attempts every few days, without any improvement, finding it hard to get to the second phase. Today I visited my parents and in the late evening decided to try it on a windows computer I left here, mind you, the last time I played was more than a week ago. So, I start the game, plug the same controller in, with the same cable, I beat Radiance on the fucking first try, with half health bar left...

It literally happened 10 minutes ago, I'm still riled up, this doesn't make sense, this has to be latency, there is no way I got that better just like that, It is literally impossible.

So, after all that, I need to unfuck the latency of my controller someway... Ok, it's fine on most games, but this situation is... frustrating

10
submitted 1 month ago* (last edited 3 weeks ago) by edinbruh@feddit.it to c/linux@lemmy.ml

what are your experiences using game controllers with linux, I'm especially interested in the xbox series s controller because it's the one I have, but I'm also interested in other controllers. From my experience the latency is disappointing, but I have no way of proving it.

So, I primarily use this controller in bluetooth mode using xpadneo. There's definitely noticeable latency, but in most games it's fine, I played through a lot of games without bother... until I played Conker: Live and Reloaded. On the infamous race level, it took me like two days to pass it, and I only made some progress when i connected the cable and dropped BT. Even that was fine though, It was just one old game and just one level, there could be a number of things to blame for that. Come hollow knight, as the game got harder after beating Hornet, it quickly became apparent that I couldn't get far without the cable, save for traversing the world, still, not that bad... until I got to fight radiance. It has been extremely frustrating, I tried it for days and eventually I started just doing a few attempts every few days, without any improvement, finding it hard to get to the second phase. Today I visited my parents and in the late evening decided to try it on a windows computer I left here, mind you, the last time I played was more than a week ago. So, I start the game, plug the same controller in, with the same cable, I beat Radiance on the fucking first try, with half health bar left...

It literally happened 10 minutes ago, I'm still riled up, this doesn't make sense, this has to be latency, there is no way I got that better just like that, It is literally impossible.

So, after all that, I need to unfuck the latency of my controller someway... Ok, it's fine on most games, but this situation is... frustrating

edit: I think it was steam input. The game was running natively, but I had to use steam input because the controller were broken. I solved by running the game in proton, so I wouldn't need steam input anymore.

18
submitted 1 month ago* (last edited 1 day ago) by edinbruh@feddit.it to c/linux@lemmy.ml

I'm trying to find a better solution to manage configuration files, both user's dotfiles and system files in /etc. I'm running an ubuntu server where I have a bunch services with custom configurations, and systemd drop-in files, but on top of that I also have some scripts and user dotfiles that I need to track.

What I'm doing right now is that I have a folder full of symlinks in the admin user's directory (poor username choice, btw) and I'm using bindfs to mount this directory inside a git repository, this way git won't see them as symlinks, and will version them as regular files. The problem with doing this is that as git deletes and rewrites files, bindfs fails to track the changes and converts the symlink to regular files.

I looked into chezmoi, but that is only meant to track user dotfiles and will refuse to add a file from /etc, that is unless doing some extra work. But even so, chezmoi will not track the user:group of files, so I would still have to manage that manually.

I also looked into GNU Stow, and that would not complain about files from /etc or anywhere, but it similarly will not track permissions and I would have to manage that manually.

I see that some people are using ansible to manage dotfiles, but at that point, it would make sense to just migrate to ansible, except I don't want to rebuild my server from scratch to use ansible. Also it looks like a lot to learn.

Is there a better solution I'm not seeing? Maybe something using git hooks?

Edit:

I ended up using pre-commit and post-merge git hooks to launch a python script. The python script reads from a yaml file where I annotate the file paths and permissions, and then copies to or from the file location to the git repository.

I used the sudoers file to allow the admin user to run this specific script with specific arguments as root without password (because the git commands are run from VS Code and not manually), which is dangerous, be careful when doing that. I have taken special care to make this secure:

  • I used absolute paths for everything, to avoid allowing running from a different pwd as a way to copy different files
  • The script itself is installed in a root-owned location, so an unprevileged user cannot edit it
  • The configuration yaml is root-owned, so an unprevileged user cannot modify which files are copied or their permissions
  • Configuration files that can grant permission are not managed by this script (the yaml, /etc/passwd, /etc/groups, polkit rules, the sudoers file, ...)

Edit 2: you can find the python script here

[-] edinbruh@feddit.it 72 points 2 months ago

That's like... It's purpose. Compilers always have a frontend and a backend. Even when the compiler is entirely made from scratch (like Java or go), it is split between front and backend, that's just how they are made.

So it makes sense to invest in just a few highly advanced backends (llvm, gcc, msvc) and then just build frontends for those. Most projects choose llvm because, unlike the others, it was purpose built to be a common ground, but it's not a rule. For example, there is an in-developement rust frontend for GCC.

[-] edinbruh@feddit.it 72 points 4 months ago* (last edited 4 months ago)

Counterargument:

Admittedly this is a chat app, so there's little to do. But still, it could stretch out a little bit more, maybe open the conversation info panel on the right

944
submitted 4 months ago by edinbruh@feddit.it to c/linuxmemes@lemmy.world
10

Reposting my question here to cast a wider net

139
His man.go (feddit.it)
215
His man.go (feddit.it)
submitted 6 months ago by edinbruh@feddit.it to c/linuxmemes@lemmy.world
[-] edinbruh@feddit.it 74 points 2 years ago

Straightest Griffith interaction.

Also, fuck Griffith

[-] edinbruh@feddit.it 90 points 2 years ago

AI upscaling, I think

[-] edinbruh@feddit.it 92 points 2 years ago

I am a computer scientist after all

[-] edinbruh@feddit.it 106 points 2 years ago

If I get back to 2005 I can easily get more than 10 millions by the time it's 2024 again. Plus all the other perks of restarting your life

[-] edinbruh@feddit.it 78 points 2 years ago

Dude what are you talking about, it was still here less than 15 years ago. The Nintendo Wii literally had an ATI GPU

view more: next ›

edinbruh

joined 2 years ago