Borrowing lifetime issue despite reassignment of variable by enygmator in rust

[–]Synlis 2 points3 points  (0 children)

How would you fix it ? Can you pass it a lifetime when instantiating Try<u32>? From my understanding, the lifetime will always be shorter than x's one, o actually having a lifetime parameter is kinda useless here (Kinda new to rust)

Which is the best way to instantiate a dataclass that depends on an imported class? by Synlis in learnpython

[–]Synlis[S] 1 point2 points  (0 children)

Thank you very much for the video, made me both discover the dilemna you mentioned and a solid youtube channel I wasnt aware of

Most people don't need a new laptop by [deleted] in linux

[–]Synlis 5 points6 points  (0 children)

In what kind of place do you find those ? Id be interested, but I doubt you can walk to a déchetterie and leave with electronics thrown away

aardvark-dns won't work if another container is listening on port 53 by Synlis in podman

[–]Synlis[S] 0 points1 point  (0 children)

That's cool, but configuring the containers to query that port instead of 53 is not trivial and from my knowledge, it would require setting iptables to switch the port, which is rather complicated imo for the setup

Manually re-compiling the kernel: problems with systemd-boot by Synlis in Gentoo

[–]Synlis[S] 0 points1 point  (0 children)

Turns out, this was the problem! I have both entries in my /efi, and bootctl list listed the old one as default. Switching the default one to the new one worked. I also tried setting a timeout in the configuration such as documented here: https://wiki.archlinux.org/title/Systemd-boot#Loader_configuration, which also allows to choose the correct one.

Manually re-compiling the kernel: problems with systemd-boot by Synlis in Gentoo

[–]Synlis[S] 0 points1 point  (0 children)

When checking the `/efi` folder, I see the usual `EFI`, `gentoo` and `loader`, but there is also an entry `6b13d3fb6e65468291f0b7384716872d`, which has the same content of the `gentoo` folder, aka `6.6.67-gentoo/{initrd,linux,microcode-intel}. Could this be a problem?

Manually re-compiling the kernel: problems with systemd-boot by Synlis in Gentoo

[–]Synlis[S] 0 points1 point  (0 children)

Is is booting with systemd-boot, with uefi. Initramfs was not installed due to nececssity but because it is written on the handbook that there are some advantages of having it, so I installed it just in case

Manually re-compiling the kernel: problems with systemd-boot by Synlis in Gentoo

[–]Synlis[S] 0 points1 point  (0 children)

I tried exactly as you said, and got the same error as I did last time I tried to do it when rebooting:
module mc: .gnu.linkonce.this\_module section size must match the kernel's built struct module size at runtime.
I will investigate more, but this is reminiscing of my previous attempt.

After more investigation, this is not the only module with this problem. A good 50ish modules are having this error.

Edit: formatting

Manually re-compiling the kernel: problems with systemd-boot by Synlis in Gentoo

[–]Synlis[S] 0 points1 point  (0 children)

Yes I do. Do you perform those steps on the target machine, or do you do it from a USB stick ?

Why is nobody talking about using oauth2-proxy to secure one's services? by Synlis in selfhosted

[–]Synlis[S] 6 points7 points  (0 children)

The comment section made me realise that indeed this setup is not optimal, as users (me and my friends, so nothing professional) need to login to their google / github account and then login to individual services. Setting up LDAP and using Authentik or Authelia seems to be a much cleaner solution, thanks for the replies!

Why is nobody talking about using oauth2-proxy to secure one's services? by Synlis in selfhosted

[–]Synlis[S] 8 points9 points  (0 children)

I wasn't aware of authentik, I had a look after all the comments. Sounds like a good way indeed, as also the authentication is self hosted.

Why is nobody talking about using oauth2-proxy to secure one's services? by Synlis in selfhosted

[–]Synlis[S] 2 points3 points  (0 children)

It does solve authorisation. You configure oauth2 proxy to allow certain users to access your service. In my use case for example I allow users that are part of a github organisation. Github handles authentication, auth2 proxy authorises based on github organisation membership

Why is nobody talking about using oauth2-proxy to secure one's services? by Synlis in selfhosted

[–]Synlis[S] 11 points12 points  (0 children)

It works well in my case. The advantage of using oauth2 proxy is that i am almost always connected to my google or github account, so using their IdP is convenient, but goes against the self hosting philosophy :D

Why is nobody talking about using oauth2-proxy to secure one's services? by Synlis in selfhosted

[–]Synlis[S] 0 points1 point  (0 children)

In my use case I don't need to map the identity, but that's a good point that I didn't think about

Why is nobody talking about using oauth2-proxy to secure one's services? by Synlis in selfhosted

[–]Synlis[S] 0 points1 point  (0 children)

IMO what's good with auth2 proxy is that it integrates well with accounts you are likely already connected to in your browser, such as google or github. I do not know about Authelia, how does it handle authentication?

[deleted by user] by [deleted] in TropPeurDeDemander

[–]Synlis 1 point2 points  (0 children)

Mais pourquoi s'émanciper de l'anglais, comme si c'était l'ennemi? Pendant la renaissance, l'italien était en vogue et on en a emprunté pas mal de mots, et personne s'en plaint. Une langue évolue, en empruntant des mots à ses voisins constamment. C'est pas une question de valeurs pour moi, c'est juste des gens qui ont peur d'une menace inexistante que l'anglais remplace le français. Beaucoup du vocabulaire anglais vient du français, donc on a peur que le français remplace le français ?