Emby on openflixr

Emby on Openflixr

Recently I switched from Plex to Emby, in my opinion Emby works better and faster, and also supports all the media devices I have in my home (Chromecast, PS4, Phone, Tablet, Pc/laptop)
Since I already have openflixr running, I didn’t wanted to rebuild everything. Instead I decided to run Emby next to Plex, for testing purposes and later on make Emby my primary transcoder.
Check out emby here: Emby – The open media solution

Let’s get started by login in to your Openflixr VM.
If you’re not sure what I’m talking about, take a look at http://openflixr.com
To check out the Emby docs: Emby Server for Linux – Emby

When you’re logged in, you need to add the Emby source to APT. So become root

sudo su

Now let’s add the source, as seen in the emby docs, copy this command:

echo 'deb http://download.opensuse.org/repositories/home:/emby/xUbuntu_16.04/ /' > /etc/apt/sources.list.d/emby-server.list

::MAKE SURE THE REPO IS HTTP, AND NOT HTTPS::

Now you need to add the Key from the repo to your trusted list.

wget -nv https://download.opensuse.org/repositories/home:emby/xUbuntu_16.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update

Now your Apt repositories will update.
After that is finished, you can install Emby:

apt-get install emby-server

This will download and install a lot of dependencies.
After you’re done installing and downloading Emby-server, head over to your openflixr ip, and put in port 8096.
In my case: 192.168.1.20:8096
You will be greeted by a wizard, which is easy to walk trough.

Since I already walked trough the wizard, and don’t want to reinstall everything just for this post, the official guide is here (with pictures) Installation · MediaBrowser/Wiki Wiki · GitHub
The wizard is very self explanatory.

Now for the fun part

So now you have your Emby server running, but still have Plex startup when you click watch. This is because if the reverse proxy in place.

It’s all in the NGINX config.
Let’s open it up and change it.

vi /etc/nginx/sites-enabled/reverse

Now search for Plex, and in particular this line:

location /web {
    auth_basic off;
    proxy_pass http://127.0.0.1:5064;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
location /plex {
    auth_basic off;
    proxy_pass http://127.0.0.1/web;
        }

Because openflixr is used to Plex, and I’m lazy where just going to change that line to emby:

location /emby {
    auth_basic off;
    proxy_pass http://127.0.0.1:8096;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

location /plex {
    auth_basic off;
    proxy_pass http://127.0.0.1:8096/web;

::Also change the WEB line::

Now restart nginx
systemctl restart nginx
After this is done, and you visit your ip or web address and hit watch now you will be greeted by emby.

Great! Enjoy emby on your openflixr host.

Leave a comment

Your email address will not be published. Required fields are marked *