Installing Emby on Ubuntu 15.04 server

I’m creating this because I setup Emby on Ubuntu 14.04 server and then ended up with have the metadata missing. After fighting with it for a few days, I decided to start over and use the latest version of Ubuntu available.

 

After installing Ubuntu 15.04 server, I did the following:

$sudo su –

 

Set static IP address

# vi /etc/network/interfaces

 

Change the section for eth0 to this:

iface eth0 inet static

address 192.168.1.20

netmask 255.255.255.0

gateway 192.168.1.1

dns-nameserver 8.8.8.8 8.8.4.4

saved that and did this:

# ifdown eth0 && ifup eth0

Verify DNS (VERY IMPORTANT!)

# ping google.com

make sure you get a response!

Eh, do system updates

# apt-get update

 

reboot and make sure the stuff changed above is still working.  At some point, Emby started without DNS and was unable to contact a media database to scrape info.  So, it build all the data empty and wouldn’t refresh it unless I manually went into every video metadata and identified it..  yeah.. not going to happen.

 

Mount data server shares using this guide.

Once you have the shares mounted, we will continue.  Once Emby is installed, we will edit the /etc/fstab uid and gid to the emby user that is created during installation.

 

Install Emby

# wget -qO - http://download.opensuse.org/repositories/home:emby/xUbuntu_15.04/Release.key |  apt-key add -
# sh -c "echo 'deb http://download.opensuse.org/repositories/home:/emby/xUbuntu_15.04/ /' >> /etc/apt/sources.list.d/emby-server.list"

# apt-get update
# apt-get install mono-runtime mediainfo libsqlite3-dev imagemagick-6.q8 libmagickwand-6.q8-2 libmagickcore-6.q8-2
# apt-get install emby-server

 

Once the server is installed, vi /etc/passwd and note the uid and gid for the emby user.

emby:x:110:121

 

So, the uid is 110 and gid is 121

So, to make sure the mounts are working, reboot and make sure they are there.  If everything looks good…

 

# service emby-server start

# update-rc.d emby-server enable

 

Now just browse to the server http://192.168.1.20:8096 and add your media.