This is the guide I used recently to set up Jellyfin on an Ubuntu server which had already been running Plex.

As a former Plex user I have to say I’m overall much happier with Jellyfin - not only because it’s open source, but streaming quality and responsiveness is better.

[https://jellyfin.org/docs/general/administration/installing.html](Here are the official installation instructions.)