Jellyfin
Jellyfin is a free media system (collect, manage, and stream your media). This article will show you how to install and configure Jellyfin on a slot.
You'll need to execute some commands via SSH to use this software. There is a separate guide on how to connect to your slot via SSH. Commands are kept as simple as possible and in most cases will simply need to be copied and pasted into the terminal window (then executed by pressing the Enter key).
Jellyfin meets the standards of open source software (Debian guidelines and OSI definition). Feral wouldn't be possible without open source and would encourage all users to preference open source over closed software.
Table of contents
Installation
Install Jellyfin by logging in via SSH, then copying and pasting the following script:
wget -O ~/install.jellyfin.sh https://bitbucket.org/feralio/wiki/raw/HEAD/src/wiki/software/jellyfin.install.sh && bash ~/install.jellyfin.sh
This script will output a success message alongside the URL to access Jellyfin. Jellyfin will take about five minutes to start up and then present a "Welcome to Jellyfin!" wizard. Jellyfin's own documentation "Setup Wizard Walkthrough" can help answer any wizard-specific questions you might have.
You must complete this wizard immediately to secure Jellyfin.
Required settings
You are encouraged to configure and make Jellyfin your own. You must take the following settings into consideration:
- Library – path
- When picking a library path it can be tempting to select the whole or large parts of the slot. This can trigger a lot of long lasting scans as every file needs to be checked potentially on every change. You should aim to minimise non-media content in any selected library folders.
- Network – Local http port number
- This port should be left the default "7096" as it's used to talk to other parts of your slot.
- Transcoding
- Video transcoding require a lot of CPU. You should minimise the need to transcode by picking video quality that matches what you can stream.
Starting, stopping and restarting
This section covers the Jellyfin process—starting, stopping and restarting it. It also covers checking if the main process is running, in case that becomes necessary.
- start
- You cannot start Jellyfin manually. Wait five minutes for it to auto-restart.
- check running
- pgrep -af jellyfin
- stop
- pkill -x jellyfin
- kill (force stop)
- pkill -9 -x jellyfin
- restart
- pkill -x jellyfin Then wait five minutes for it to auto-restart.
Uninstall
The following SSH commands will uninstall Jellyfin from your slot. You do not need to run them if reinstalling.
rm -rf ~/.config/feral/ns/containers/docs-jellyfin ~/install.jellyfin.sh ~/.nginx/conf.d/000-default-server.d/jellyfin.conf /usr/sbin/nginx -s reload -c ~/.nginx/nginx.conf 2>/dev/null pkill -9 -x jellyfin echo Uninstalled.