this post was submitted on 15 Feb 2024
44 points (94.0% liked)

Selfhosted

40329 readers
421 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

How to set jellyfin server flatpak to start automaticly when system boots up?

I was doing this earlier wit deb version, but now with flatpak i dont know how to do it.

I installed it via popshop on linux pop os and now i have icon in my apps meny but its anoying to start it manualy every time i restart my pc..

top 13 comments
sorted by: hot top controversial new old
[–] qaz@lemmy.world 11 points 9 months ago* (last edited 9 months ago) (2 children)

There are several options:

  • Create a systemd service

+: Can launch application without logging in

-: Requires learning how to add a systemd service

  • Autostart application on startup

+: Easy

-: Requires logging in before it starts

  • Use system Docker container

+: Quite easy

-: Works without logging in

  • Use Podman container with systemd-service

+: Doesn’t require root permissions

I recommend going with Docker because Flatpak isn’t really meant for server applications.

[–] sudneo@lemmy.world 6 points 9 months ago

Just a small note: docker can also run rootless for a while. The configuration is slightly convoluted, but can be done.

[–] synae@lemmy.sdf.org 3 points 9 months ago

Oh no you forgot kubernetes!

[–] aBundleOfFerrets@sh.itjust.works 6 points 9 months ago (1 children)

Use the instructions in the docs for making a service file but replace the jellyfin binary with the flatpak binary (with the jellyfin run arguments)

[–] batman654987@lemmynsfw.com 1 points 9 months ago (1 children)

Sounds complicatad but i will try it. Tnx for answer!

[–] owen@lemmy.ca 3 points 9 months ago

It's much more chill than you think. Leave more comments if you want help

[–] gnuplusmatt@reddthat.com 4 points 9 months ago (1 children)

I'd have thought it was less hassle to use the jellyfin OCI container in either docker or podman. podman will even generate the systemd service file for you

[–] batman654987@lemmynsfw.com 1 points 9 months ago (2 children)

Isnt docker kind of virtualisation? Is it realy required for this? I would expect flatpak to have a way of autostarting software.. 🤔🤷‍♂️

[–] richmondez@lemmy.world 8 points 9 months ago

Docker and Flatpack are both containerization technologies and work in similar ways under the hood. Docker is more geared towards running headless services that other systems access while flatpack is more geared towards desktop gui applications that are interacted with from the same system they run on.

[–] gnuplusmatt@reddthat.com 8 points 9 months ago

Docker/podman are not virtualisation, they are containerisation. The system groups all the processes into a namespace and executes them on the same host/kernel as the base system. There is no overhead of virtualisation as its not creating virtual hardware or running a whole OS. Its more like the flatpak you're already running than a vm

[–] freedumb@programming.dev 2 points 9 months ago* (last edited 9 months ago)

If you install GNOME Tweaks, you can add it to your startup apps easily through Tweaks..

[–] possiblylinux127@lemmy.zip 2 points 9 months ago

I think you may be doing this wrong. Maybe you should consider containers?

[–] batman654987@lemmynsfw.com 1 points 9 months ago

Thank you all for answers <3 I will try it and report if i need help.

lemmy is realy an awsome forum!