Jump to content

Emby Install on Clean Raspbian 8 (Jessie) - Make it sticky


Recommended Posts

I am a seasoned Linux/Unix guy... so I wont ramble :)

 

Following the "guide" from https://emby.media/linux-server.html

"

Install Emby Server using the Emby Open Build Service:
Stable Release Channel
Beta Channel
Dev Channel (Unstable)"

Those are not really instructions.

And even if you know enough to add the apt sources, you end up with better instructions that would look like this:

https://akosresch.wordpress.com/2016/05/11/installing-emby-server-on-raspberry-pi-3/

But regardless of the path I take... I cant get rid of the unresolved dependencies:

The error I get is common:

               Depends: libembysqlite3-0 but it is not installable

               Depends: embymagick but it is not installable
 
So...
I solved it.. and I did not have to resort to symlinking other library versions or other hacks.. it is a clean install.
 
I wont waste anybody's time with all the things I tried...
 
Go ahead and add the apt repository:
apt-key add - < Release.key
echo 'deb http://download.opensuse.org/repositories/home:/emby/Debian_8.0/ / ' >> /etc/apt/sources.list.d/emby-server.list 
 
apt-update 
 
The missing packages are available here:

https://build.opensuse.org/project/show/home:emby

Browse under the Opensuse folder:

http://download.opensuse.org/repositories/home:/emby/openSUSE_Factory_ARM/armv7hl/

or from http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04/

Get the files and install them manually.

Agree to any dependencies.

and now apt-get install emby-server

 

BOOM!

Emby server now installs and works

Such a huge waste of time looking in forums and trying crazy solutions.

I hope this helps folks who dont have a custom install... and are trying to stick with a full distro for an Emby installation.

 

CHEERS!  Have a sunny side up kind of day :)

  • Like 2
Link to post
Share on other sites
albercuba

Thanks a lot @@cachaca. Just one question.

 

What do you mean with "Agree to any dependencies." ?

 

Because when I run

sudo dpkg -i *.deb

all dependencies fail (as usual with dpkg) , so after that I have to run

sudo apt-get -f install

My setup is almost ready now :P
 

Thanks again

Edited by albercuba
Link to post
Share on other sites

I did fail to emphasize that the Mono libraries have to be available as well.

 

So

1 - Install Raspbian

 

2 -  add the apt repository:

apt-key add - < Release.key
echo 'deb http://download.open...mby/Debian_8.0/ / ' >> /etc/apt/sources.list.d/emby-server.list 
 
3 - add Mono repositories
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
 

4 - download and install the 2 missing packages 

http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04/armhf/

(libemby.. and embymagi..)

 

5 - install emby server

apt-get install emby-server

 

BOOM

 

:)

Link to post
Share on other sites
zigzagtshirt

@@cachaca  Thanks for sharing!

 

How's it running for you?  Does it crash at all?  Are you using RP2 or 3?  

 

Months ago I had tried putting my server on the RP2 but the server kept crashing every 45 minutes (even if nothing was playing).  I gave up troubleshooting.  I'm going to try again soon with the RP3.  

Link to post
Share on other sites

well.. I have done a fair amount of tinkering.. 

Testing the setup now for stability.

 

A specific trait of the Raspberry is its limited RAM.. running out of memory can happen at different times.

 

So.. I installed Monit.. and I just restart it.  It happens in moments of high system demand.. 

As of now, here are the services I have on the Raspbian install:

- Emby

- Samba/File Share

- Tranmission (bit torrent daemon)

- Retropie (for them games :) )

 

You can check my other posts.. I did succeed in compiling an OMX enabled ffmpeg... but I could not bring myself to run emby as root. (a requirement given the state of the OMX extension to ffmpeg)

 

Right now.. I am getting used to the setup.. but so far so good.

 

I did customize emby a tad.. shrinking its memory footprint.  It is also worth mentioning that your initial setup will be rife with faults (and process re-starts) from emby.  Why?  Because you are adding your library of a bazillion movies, and you cant leave the Raspberry alone :)

 

Seriously... add your folders, tell Emby to scan it.. and go away for the weekend.

 

If you are just interested in Emby.. there are plenty of easy to add distros out.. you can have an emby server up in less than 30 minutes.

 

Have a super duper sunny side up kind of day

  • Like 1
Link to post
Share on other sites

Oh.. RP3...You asked

 

Default settings for swapfile is messed up as well.

You have to increase the size and reduce the swapiness.. default is 60.. WAY too aggressive.  20 is a good value for our measilly 1Gig of RAM.

 

Gotta remember.. mono is a huge library web.. makes it really difficult to save ram... but you can reduce the heap size.

ffmpeg will max your CPU.. hard.. you SHOULD have a heatsink... particularly if you overclock.  My CPU was hitting 75-80C with transcoding operations.

 

best of luck to you

Edited by cachaca
  • Like 1
Link to post
Share on other sites
  • 1 year later...

I did fail to emphasize that the Mono libraries have to be available as well.

 

So

1 - Install Raspbian

 

2 -  add the apt repository:

apt-key add - < Release.key
echo 'deb http://download.open...mby/Debian_8.0/ / ' >> /etc/apt/sources.list.d/emby-server.list 
 
3 - add Mono repositories
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
 

4 - download and install the 2 missing packages 

http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04/armhf/

(libemby.. and embymagi..)

 

5 - install emby server

apt-get install emby-server

 

BOOM

 

:)

Thanks for that!

I followed your indications and encountererd a problem installing (dpkg -i embymagi...) as it requested a bunch of other packages (no problem to install them) and libwebp5. This last pacakge could not be installed so I had to wget http://ftp.de.debian.org/debian/pool/main/libw/libwebp/libwebp5_0.4.1-1.2+b2_armhf.deb and install manually too.

Hope it helps!

Link to post
Share on other sites

Another good reference is to use DietPI.  During the setup, there is an option to install Emby server (3.5.2.0) from the dietpi-config system and it'll install all dependencies, create the emby group and user, etc.  I've upgraded to the latest emby beta and haven't had any issues.

I used this guide to do the install and configuration.. https://www.smarthomebeginner.com/setup-emby-server-with-raspberry-pi-3/

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...