BubbleUPNP Install Guide

  • Thanks to @shadowzero and his excellent Serviio Install Guide, I've been happily using Serviio for a couple years. However, I recently was given a ChromeCast, but was frustrated by it's inability to stream content from the local network. After some searching, I came across BubbleUPNP which does exactly what I needed, but was a bit of a pain to install. I documented all my steps and am sharing it here in case it may be of use to anyone else.


    BubbleUPNP Install Guide
    Requirements: a UPNP server (anything should work, I use Serviio) BubbleUPNP, Java 8.x, Android Phone
    Pre-Installaion:

    • Check for Java

      Code
      java -version


      If it's installed you'll get output similar to below and can skip installing Java and go immediately to step 1

      Zitat

      java version "1.8.0_72"
      Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)


    • add the Java 8 repository, then install the Java 8 runtime

      Code
      echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
      echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
      apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
      apt-get update
      apt-get install oracle-java8-installer
    • Set Oracle Java 8 as the default on the system:

      Code
      apt-get install oracle-java8-set-default

    Installation:

    • The first step is to download BubbleUPNP:

      Code
      wget http://www.bubblesoftapps.com/bubbleupnpserver/BubbleUPnPServer-distrib.zip


      Then unzip it:

      Code
      unzip BubbleUPnPServer-distrib.zip -d bubbleupnp


      You'll also need ffmpeg in the BubbleUPNP directory for it to function properly:

    • Code
      wget http://www.bubblesoftapps.com/bubbleupnpserver/core/ffmpeg_linux.zip


      ffmpeg needs to be unzipped as well:

      Code
      unzip ffmpeg_linux.zip -d bubbleupnp
    • Move BubbleUPNP to a better location than your home directory:

      Code
      mv bubbleupnp /usr/local/bubbleupnp
    • And make things executable:

      Code
      chmod +x /usr/local/bubbleupnp/ffmpeg
      chmod +x /usr/local/bubbleupnp/ffprobe
      chmod +x /usr/local/bubbleupnp/launch.sh
    • You don't want services running as root (security risk!), so we'll create a new user that will only be responsible for running BubbleUPNP:

      Code
      useradd -s /usr/sbin/nologin -d /usr/local/bubbleupnp -r -M -U bubbleupnp
    • our new user needs to own the folder in order to do it's job:

      Code
      chown -R bubbleupnp:bubbleupnp /usr/local/bubbleupnp
    • It's time to create our startup script. Open nano (or the text editor of your choice):

      Code
      nano /etc/init.d/bubbleupnp


      and paste in the following:


      Save it (Ctrl-o) and exit (Ctrl-x) the‭ editor.
      If you've made any changes to usernames, directories, etc, please ensure you make the necessary changes in the script as well.

    • This script needs to be executable:

      Code
      chmod a+rx /etc/init.d/bubbleupnp


      And root needs to own it:

      Code
      sudo chown bubbleupnp:bubbleupnp /etc/init.d/bubbleupnp


      It needs to be added to startup:

      Code
      sudo update-rc.d bubbleupnp defaults
    • The moment of truth! Let's start the service:

      Code
      service bubbleupnp start
    • Did it work? Let's make sure it's running:

      Code
      service bubbleupnp status
    • Time to configure the server!
      http://<server>:58050

    3 Mal editiert, zuletzt von MorgothQ () aus folgendem Grund: corrected an error in the init script. Thanks @Chickenbaum!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!