Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sailing:jellyfin [2023/12/05 16:13] – created willy | sailing:jellyfin [2024/02/27 12:37] (current) – removed willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Prev to: [[sailing: | ||
- | Next to: [[sailing: | ||
- | ---- | ||
- | |||
- | Installing JellyFin (Media server) | ||
- | |||
- | JellyFin is an Open Source Media Server that allows you to access all your media from your home network (or from outside, but requires proper network setup) from Android Tv, Apple Tv, any Android device and also in general any Web browser. It will also indicize and scrap metadata and artworks (covers...) for your media. It's free, it does not rely on any centralized server and protects your privacy. There are other solutions, like Plex, which might be easier to setup for remote access maybe, but i don't like them (due to using a centralized access server or in general for not being FOSS) so pick your choice, i will describe my JellyFin setup. | ||
- | Installation phase | ||
- | |||
- | You are lucky here and the JellyFin mediaserver can be easily installed on Gentoo linux: | ||
- | |||
- | > emerge -v jellyfin | ||
- | |||
- | but it is masked at this time of writing, so we need to unmask it: | ||
- | |||
- | > echo www-apps/ | ||
- | |||
- | then we can emerge it. You want to add it to the " | ||
- | |||
- | Configuration phase | ||
- | |||
- | Now, JellyFin Gentoo default setup locates server directories under /var: | ||
- | |||
- | the data folder under /var/lib | ||
- | the cache folder under / | ||
- | the configuration folder under / | ||
- | the logs folder under / | ||
- | |||
- | which i don't like for a few reasons like: | ||
- | |||
- | this will clutter and fill the Gentoo installation disk (/dev/sda) | ||
- | this will NOT survive a /dev/sda disk crash (which is not RAID-1) | ||
- | this will not be consistent: i want to have all database and data in the same RAID | ||
- | |||
- | to fix this, move those to / | ||
- | |||
- | > mv / | ||
- | > mv / | ||
- | > mv / | ||
- | > mv / | ||
- | |||
- | in this case, differently from the *Arr' | ||
- | |||
- | # This is the directory that will hold all Jellyfin data, and is also used as a default base directory for some other paths below. | ||
- | JELLYFIN_DATA_DIR=/ | ||
- | |||
- | # This is the directory where the Jellyfin logs will be stored. | ||
- | JELLYFIN_LOG_DIR=/ | ||
- | |||
- | # This is the directory containing the server cache. | ||
- | JELLYFIN_CACHE_DIR=/ | ||
- | |||
- | # This is the directory containing the server configuration files. | ||
- | JELLYFIN_CONFIG_DIR=/ | ||
- | |||
- | This will move the server data folder on the RAID, there is not need to link them back here. | ||
- | |||
- | Startup phase | ||
- | |||
- | Well, it's time to fire up the server (and set it up for autostart on reboot): | ||
- | |||
- | > rc-update add jellyfin default | ||
- | > / | ||
- | |||
- | This will add the server to your startup and will also start it right now. At this point you should login to it and configure it trough the web GUI. If you are local to the network, you can fire up your browser to http:// | ||
- | |||
- | You should NOT use the server endpoint directly on you home network without a reverse-proxy, | ||
- | Securization | ||
- | |||
- | On the Jellyfin web gui, open the Dashboard and go to Networking. Here set 127.0.0.1 as bind to local network address, and also add /jellyfin as base URL. You will need to restart the service now. You will be able to access the service only from the server with the base URL. Point your browser to http:// | ||
- | |||
- | ---- | ||
- | Next to: [[sailing: | ||
- | |||
- | Prev to: [[sailing: |