tubbadu

joined 2 years ago
[–] tubbadu@lemmy.kde.social 1 points 1 month ago

This was actually pretty interesting until I found out that Caddy is not yet supported :(

Thank you anyway!

[–] tubbadu@lemmy.kde.social 2 points 1 month ago (1 children)

I already looked into Authelia, and the "problem" I encountered is that it does not support "named policies" (I don't know the actual name): what I mean is to be able to create "only_admin_policy", "only_registered_users_policy" etc, and then in Caddy to be able to say something like this

service1.website.com {
    reverse_proxy container1:1234
    apply_policy only_admin_policy
}
service2.website.com {
    reverse_proxy container2:1234
    apply_policy only_registered_users_policy
}
service3.website.com {
    reverse_proxy container3:1234
}

Instead if I understood correctly (and I would gladly be proved wrong) this is not possible with Authelia, as these policies have to be specified inside Authelia, so I would have two different configurations in two different places instead of having everything in the Caddyfile

I hope I explained well what I mean

thanks for the help!

[–] tubbadu@lemmy.kde.social 2 points 1 month ago (1 children)

How does programmatic access tie into the desire for a login form?

I would like to keep files with "private" information protected from public access, but I would like to access them from a script. An example: i wrote a karaoke application to use with my friends, they have to go to a webpage and select the songs they like, and then the karaoke app connects to the server to get the updated preference file. I would like that the users had a "nice login form" to select their songs, and then I'd like my karaoke app to easily download the file while still keeping it password-protected

[–] tubbadu@lemmy.kde.social 2 points 1 month ago (1 children)

This looks very interesting! I see that it supports users groups, would it be possible to create "named access policies" (like "admin_only_policy", "group_XXX_policy" ecc) and then assign them to the various services directly in the Caddyfile? thank you very much!

 

Hello fellow selfhoster! on my debian server I use Caddy as reverse proxy, and would like to protect some services and files with a password. I would like, however, to be able to access some protected files programmatically, from a script. using Caddy's built-in basic_auth works as intended, but I'd like to be able to use a login form instead of just a browser prompt. This is AFAIK not possible, so I'm looking for alternatives. Any idea?

[–] tubbadu@lemmy.kde.social 2 points 2 months ago (1 children)

wouldn't this take a lot of time? but I can see the advantage, being able to just roll back whatever happened

I'll think about it, thank you very much!

[–] tubbadu@lemmy.kde.social 2 points 2 months ago (1 children)

Wow this is amazing! thank you very much for the super detailed answer! exactly what I was looking for!

[–] tubbadu@lemmy.kde.social 3 points 2 months ago

This is actually very interesting! I'll gladly look into it, thank you very much!

[–] tubbadu@lemmy.kde.social 1 points 2 months ago* (last edited 2 months ago) (1 children)

thanks for the reply! Yes for sure I'm backing up all the /home directory, but I'd like to preserve also important configurations like ssh, cronjob etc, but I don't really know which directories are important for this and which are not

[–] tubbadu@lemmy.kde.social 2 points 2 months ago

thanks for the reply!

How do you plan to restore if the whole drive dies?

good point: I guess if the problem is that I messed something up I may just run the backup script in reverse? if the problem is HW then I'd have to reinstall and then restore the backupped directory probably is there a "standard" way?

 

Hello there! Here's the thing: I got some old HDD for my Debian home server, and now that I have plenty of disk space I want to keep a backup of the OS, so that if something accidentally breaks (either SW or HW) I can quickly fix it.

now the question is: which directory should I include and which should I exclude from the backup? I use docker a lot, is there any docker-specific directory that I should back up?

 

Hello! I'm working with typst files, and would like to write a kate plugin to automatically preview them inside kate. However, the official guide has instructions only for plasma 5. Does anyone have a bare-bones plugin project I can clone and modify, or some tips on how to adapt the files in the official guide in order to work on plasma 6?

Thanks in advance!

 

Hello! Basically, I need to process a very large (4000 lines) file and free ai chatbots like chatgpt aren't able to handle it. I would like to split it into smaller parts and process each part separately. I'm having however a very hard time finding a chatbot with free API. the only one I found is huggingchat, but after a few requests waiting 1 seconds before sending the next one it starts giving rate limit errors.

any suggestion? thanks in advance!

EDIT: I also tried to run gpt4all on my laptop (with integrated graphics) and it took like 2-5 minutes to asnwer a simple "hello" prompt, so it's not really feasable :(

[–] tubbadu@lemmy.kde.social 2 points 6 months ago (1 children)

Yes, it's like a common "protocol". Probably huge music apps like youtube and spotify would never adopt such a thing unless it become really really widespread among other platforms, but just being able to share them across FOSS music players would be amazing imo

[–] tubbadu@lemmy.kde.social 1 points 6 months ago (3 children)

It's actually very very cool, the closest to what I imagined. Yeah sadly it doesn't seem to be FOSS

The main difference with my "idea" is that this one creates a copy of the playlist on each service, so if you want to share it you need to know which player the other person is going to use, or just send him all the links. My idea instead has just a single playlist, accessible with API that can be used by every music player

thanks for sharing this!

[–] tubbadu@lemmy.kde.social 2 points 6 months ago

Yeah something similar to this, with API to access it from any music player app! The features that would make it really appealing (imo) would be:

  • share playlists with friends using different music players
  • cooperative playlists: give edit permission to other users (chosen by you), so that you can create playlists with your friends
  • search playlist: search "rock music" and get all public playlists that matches your search, perhaps even with tags
 

Hello! I was looking for alternatives for Spotify to listen to music and create and share playlists with friends, and found a huge amount of players, both local and streaming, but none of them offered a reliable way to share playlists with friends. So here me out: what if there were a federated, self hostable platform where you can create an account, that provides an API that all the million music app can integrate easily in order to synchronize and share them also with people that uses other apps? Do you think it would work? I believe that if something like this would widespread, huge music companies like Spotify and Youtube wouldn't implement such a thing, but that perhaps would be also a way to "disincentivize" people from using those services!

"Hi friends Me on musicapp1 and Fred on musicapp2 created this cool playlist, hear it out!!"

"Sorry I pay 12$/month for Spotify, I cannot see it"

16
submitted 7 months ago* (last edited 7 months ago) by tubbadu@lemmy.kde.social to c/linux@lemmy.ml
 

Hello everybody! here's the problem: In my EndeavourOS laptop I had a /swapfile, but couldn't take snapshots with snapper because of it (if I understood correctly). So, I created a 16Gb swap partition using GParted from a live USB. Then, I edited /etc/fstab to remove the line about the swapfile and to add the newly created swap partition:

UUID=506d48e6-1cc0-4136-ba55-6f2f187bcdb1   swap           swap    defaults   0 0
# /swapfile                                   none           swap    sw         0 0

I took the UUID from

$ sudo blkid  
/dev/nvme0n1p3: LABEL="swap" UUID="506d48e6-1cc0-4136-ba55-6f2f187bcdb1" TYPE="swap" PARTLABEL="SWAP" PARTUUID="b4543e4e-4623-4317-99aa-086b0e62836e"
...

if I run sudo swapon -a it gets enabled correctly and it all works fine. The problem however is that when I reboot the machine, it gets stuck in the systemd screen saying "a job is running for /dev/disk/etc..." forever, and the only way I have to log in is to boot from a live USB, modify /efi/loader/entries/somethingverylong.conf to add these kernel options:

systemd.swap=0 noresume

and then reboot, and manually enable the swap.

I'm not understanding very well what's happening here. why is the system stuck if I don't add these parameters? how can I solve it?

thanks in advance!

 

Hello everybody! I have the following issue: I have two countainers, let's call them C1 and C2, and they both expose the same port, let's say 1234. I want to route both of them through a gluetun container. to do this, I added

network_mode: container:gluetun

at each container. But they both expose the same port, so there's a conflict. Without routing them though gluetun I can just

ports:
  - 1235:1234

but using network_mode this cannot be done. What can I do? The only thing that comes to my mind is to use two gluetun containers, but I'd rather use a single one

thanks in advance!

 

Hello! My girlfriend bought a new pc, an HP pavilion x360 with the touchscreen, and asked me to install her kubuntu as in her previous non-tablet pc, and so I did. It works very well, except for the fact that I tried really hard without success to setup a virtual keyboard. fcitx5 was already installed, but I couldn't find a way to use it as virtual keyboard, and apparently it does not bundle a UI. i then installed maliit (the one that I use on my EndeavourOS 2in1 laptop flawlessly) but it seems to have a strange bug where it only works once, then after you close it it will never pop up again. I tried the workaround suggested here but it works once every 4 tries and the keyboard pops up but is unable to write anything.

Has anyone achieved to install a virtual keyboard on Kubuntu 24.04? I'd rather not switch to X11 because except for the keyboard, the touch support is way better under wayland

thanks in advance to anyone!

 

Hello! on my home server I currently have jellyfin+arr suite installed, but I have often problems finding downloads, probably because of the torrent indexers I have access to. Because of this, I often find myself watching content on streaming websites because it has not been downloaded on the server.

So I started to consider replacing jellyfin with stremio. I'd like, if possible, to self host it with docker. I tried to follow the instructions here, but I'm a bit confused: if I go to myserver:12470, it says "the connection was reset by the server", while if I go to myserver:11470 I'm just redirected to https://app.strem.io/shell-v4.4/?streamingServer<myserverhere>.

am I doing something wrong? I can't find any guide or similar on how to self host it, so I guess it's not something supported, but if it's the case then what's the point of the docker image? I'd like to be independent on the stremio server, it's the point of self-hosting it

thanks in advance fellow sailors!

 

Hello! My girlfriend's HP laptop running kubuntu 24.04 has this problem: when it's turned off (either from the GUI or poweroff) it discharges overnight, from 100% to 0% in a few days.

I searched the web to look for fixes:

  • wake on lan is disabled in the BIOS
  • USB ports have no settings in the bios, but there's nothing connected to them anyway
  • the system is actually powered off, not sleeping (at least if poweroff actually works)
  • everything, firmware included, is up to date

She doesn't remember having this problem from the beginning, but cannot tell when this started occurring

Did any of you ever encounter this problem? I don't know what else to do, and it's quite annoying.

Thank you for your time!

 

Hello! I have jellyfin+qbittorrent+radarr on my home server, but I can't make it work with hardlinks. When a download finishes, it just copies it to the /movie folder, doubling the disk space. at least, I think that it's just a copy, because the disk space is double and find ./downloads -samefile ./movies/path/to/file.mkv returns no result, meaning if I understand correctly that file.mkv is not hardlinked to any file in the download folder (but it should).

this is the docker compose:

radarr:
    image: lscr.io/linuxserver/radarr:latest
    container_name: radarr
    network_mode: container:gluetun
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Rome
    volumes:
      - ./radarr-config:/config
      - /media/HDD1/movies:/movies
      - /media/HDD1/downloads:/downloads
    restart: unless-stopped

HDD1 hard drive is formatted ext4, that supports hardlinks (in fact I can create them manually), and in the radarr settings the checkbox "use hardlinks instead of copy" is checked.

Ideally I'd prefer softlinks instead of hadlinks, but I don't think there's a way to do it natively, I think I'd need an external script

Any tips? Thanks in advance!

 

Hello! I was wondering if running periodically a script to automatically pull new images for all my containers is a good or a bad idea. I'd run it everyday at 5.00AM to avoid interruptions. Any tips?

EDIT: Thanks to everyone for the help! I'll install Watchtower to manage the updates

view more: next ›