Having a very …fun time trying to install Plex Media server on Bazzite. Can anyone explain what the hell I’m even supposed to be trying to do here?

  • ZWQbpkzl [none/use name]@hexbear.net
    link
    fedilink
    English
    arrow-up
    18
    ·
    3 days ago

    Install jellyfin, both fbackend and frontend

    # pacman -S jellyfin-server jellyfin-web
    

    Start jellyfin

    # systemctl start jellyfin
    

    Usually you’d edit some config file in /etc first but jellyfin is ‘user friendly’ so you log in at http://localhost:8096/ and configure from there.

    Set the service to automatically start at boot

    # systemctl enable jellyfin
    

    View logs of the jellyfin service with (use -fu to watch them). Very useful for debugging issues.

    # journalctl -u jellyfin
    

    The most common issue is that the jellyfin service will run as its own user which might not have permissions to your archive of media.


    Containers

    If you’re installing with containers the easiest to set up is with docker-compose. Basically you write a yaml file that defines all the different services, networks, and most importantly: where the containers can access your host system. I’m not going to explain more because there’s excellent documentation and probably tutorials for exactly your case.

    Quadlets are like a docker-compose file but split into different files, use podman instead of docker, and are managed by systemd. You write each container, volume, and network as its own file in /etc/containers/, run # systemctl daemon-reload and that magically generates .service files and then you can start and manage them like they were a native application.

    Caveat, I’ve only recently dipped my toes into quadlets but I’m already enamored with them. My only gripe is if you get the quadlet files systax wrong you will see no warnings unless you check journalctl. Docker-compose is definitely easier to set up and I do recommend learning with that first. IMO its easier to learn docker-compose before docker.

    Also

    Plex haram

  • krolden@lemmy.ml
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    3 days ago

    Plex is bad mmk use jellyfin

    Also running the server on bazzite will be hell just use debian

  • AK47 [none/use name]@hexbear.net
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 days ago

    A Dockerfile setup will greatly ease this process. LinuxServer.io has an extremely simple to use image.

    Here is their page on general usage of docker-compose.

    Bazzite includes Podman which has full compatibility with Dockerfiles so there isn’t much additional setup other than creating a compose.yaml file, pasting the example config, editing it to match your system, and then running docker-compose up inside that folder from a Terminal.

    This bypasses all of the atomic weirdness and vastly simplifies setup, migration, and backups in the future.

    I don’t personally use Plex but I use A LOT of Docker on a handful of OSs including NixOS, so I know the frustration of immutable filesystems.

    Good luck!

  • SadSadSatellite @lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 days ago

    Check out docker tutorials from simplehomelab. Or just use his script, deployrr. It’ll set everything up for you so you can just choose Plex from a list of available apps.

    • EmmaGoldman [she/her, comrade/them]@hexbear.netOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 days ago

      I truly do not understand how to work with Bazzite’s immutable file structure. I get why it’s good, but it also means I can’t just run a command or open a Debbie or Rippum to install software. I also understand that containerizing the media server is better somehow, but I don’t really get the point nor do I get how to actually do any of that. Like, it’s faster than a VM but why is it actually bad practice to just install and run all this stuff “normally” like I can on Windows?

      Apparently I’m supposed to use a quadlet for plex?

      Presumably I’m also going to have to use containers to set up services like Radarr and Sonarr and Bazarr for automatic torrent and subtitle management?

      • I truly do not understand how to work with Bazzite’s immutable file structure.

        Yep it’s good until it isn’t imo, it’s good for casual users but once you try something with it, it’s a PITA, I personally use CachyOS. Containerizing the media server, in this case, is better insofar they can push an update to the image and instantly update it and all dependencies, it’s a “clean” slate and the program isn’t spread through your filesystem everywhere, it’s configured directly through the yaml file, and it’s replicable so if you send them a bug report they will know you run X version which wont have build differences; though containerization has a small overhead, though if the image is good, it’s largely reliable (I use containers on production servers). Tbh introducing your average Desktop user to running docker/podman containers seems like not a good idea on their part, especially for Desktop apps, I get the dev point though, but it’s in tune with the whole immutability of the systems, while a neat idea for many they personally annoy me

        With Plex you’d do something like:

        # ~/.config/containers/systemd/plex.container
        [Container]
        ContainerName=plex
        Environment=TZ=Your/TimeZone
        Environment=PLEX_CLAIM="<claimToken>"
        Image=docker.io/plexinc/pms-docker
        AutoUpdate=registry
        Network=host
        Volume=/home/user/.config/plex:/config:z
        Volume=/home/user/.cache/plex-transcode:/transcode:z
        Volume=/home/user/Movies:/data:z
        
        # Remove if you don't want autostart
        [Install]
        WantedBy=default.target
        

        Then execute:

        systemctl daemon-reload
        
        # Autostart Plex at boot, if you want
        systemctl enable plex.service 
        
        systemctl start plex.service
        

        Though FYI I’ve never used Plex, this is mostly me doing it mentally, If you need a good resource there is https://wiki.archlinux.org/title/Podman#Quadlet though it’s dense and informative as usually the ArchWiki is. Let me know if you have any issues

      • TheModerateTankie [any]@hexbear.net
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 days ago

        It’s so the software you are trying to run isn’t dependant on the file versions your system software is running on. It prevents dependency hell and is a safeguard against breaking your linux install.