Jellyfin

From SlackWiki
Revision as of 15:34, 1 January 2022 by Wigums (talk | contribs)
Jump to navigation Jump to search


jellyfin

Jellyfin is a Free Software Media System that puts you in control of managing and streaming your media. It is an alternative to the proprietary Emby and Plex, to provide media from a dedicated server to end-user devices via multiple apps. Jellyfin is descended from Emby's 3.5.2 release and ported to the .NET Core framework to enable full cross-platform support.


Installation Process

Create a directory in /opt for jellyfin and its files, and enter that directory.

mkdir /opt/jellyfin

cd /opt/jellyfin


Download the latest generic Linux build from the release page. The generic Linux build ends with "linux-amd64.tar.gz". The rest of these instructions assume version 10.4.3 is being installed (i.e. jellyfin_10.4.3_linux-amd64.tar.gz). Download the generic build, then extract the archive:


wget https://github.com/jellyfin/jellyfin/releases/download/v10.4.3/jellyfin_10.4.3_linux-amd64.tar.gz
tar xvzf jellyfin_10.4.3_linux-amd64.tar.gz


Create a symbolic link to the Jellyfin 10.4.3 directory. This allows an upgrade by repeating the above steps and enabling it by simply re-creating the symbolic link to the new version.


ln -s jellyfin_10.4.3 jellyfin

Create four sub-directories for Jellyfin data.


mkdir data cache config log

Due to the number of command line options that must be passed, it is easiest to create a small script to run Jellyfin.

nano jellyfin.sh


Then paste the following commands and modify as needed. (i didnt have to modify anything)

#!/bin/bash
JELLYFINDIR="/opt/jellyfin"
FFMPEGDIR="/usr/share/jellyfin-ffmpeg"
$JELLYFINDIR/jellyfin/jellyfin \
 -d $JELLYFINDIR/data \
 -C $JELLYFINDIR/cache \
 -c $JELLYFINDIR/config \
 -l $JELLYFINDIR/log \
 --ffmpeg $FFMPEGDIR/ffmpeg


Assuming you desire Jellyfin to run as a non-root user, chmod all files and directories to your normal login user and group. Also make the startup script above executable. (i run it as root. if you choose to run it as root omit the chown command)

chown -R user:group *
chmod u+x jellyfin.sh


Finally you can run it. You will see lots of log information when run, this is normal. Setup is as usual in the web browser.


./jellyfin.sh &

in your browser go to

localhost:8096

and set up as you wish