Skip to content

Instantly share code, notes, and snippets.

@todgru
Last active January 19, 2019 03:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todgru/ceb7a4c841b8ab01144b0fe56388928a to your computer and use it in GitHub Desktop.
Save todgru/ceb7a4c841b8ab01144b0fe56388928a to your computer and use it in GitHub Desktop.

Jellyfin setup on Raspberry Pi 3 Debian 9(stretch)

Jellyfin is the open source version of Emby.

install docker

wget -nv -O- https://get.docker.com/ | sh

install jellyfin, run & daemonize

Inspired by https://hub.docker.com/r/jellyfin/jellyfin

docker run -d --restart=unless-stopped --name=jellyfin -p 8096:8096 -v /host/config:/config -v /host/media:/media jellyfin/jellyfin

create service

Inspired by: https://stackoverflow.com/a/39493500

Create systemd service file:

vim /etc/systemd/docker-jellyfin.service

Contents of systemd service file:

[Unit]
Description=Jellyfin docker container
Requires=docker.service
After=docker.service

[Service]
Restart=always
ExecStart=/usr/bin/docker start -a jellyfin
ExecStop=/usr/bin/docker stop -t 2 jellyfin

[Install]
WantedBy=default.target

Finally, enable the service:

systemctl enable /etc/systemd/docker-jellyfin.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment