Linux Container (LXC)

LXC is an open platform for developers and sysadmins to build, ship, and run distributed applications.

In the following section we'll show how to create a LXC instance with USP installed.

Creating an Ubuntu LXC instance

After installation, an instance can be created with the following commandline:

#!/bin/bash

name=test-$(date +%s)

sudo lxc-create -t download -n $name -- -d ubuntu -r trusty -a amd64
sudo lxc-start -n $name -d

Adding your key

The first step is to install the License Key:

sudo lxc-attach -n $name -- echo "YOUR_KEY" > /etc/usp-license.key

where you replace the string YOUR_KEY with the base64 string that is the actual license key.

Install USP

First use the install script to:

  • Install Apache
  • Install Unified Streaming
sudo lxc-attach -n $name -- wget http://repo.unified-streaming.com/install-apache-usp.sh
sudo lxc-attach -n $name -- chmod +x install-apache-usp.sh
sudo lxc-attach -n $name -- ./install-apache-usp.sh -y
sudo lxc-attach -n $name -- rm install-apache-usp.sh

Next is to run the install script from Verifying Your Setup:

sudo lxc-attach -n $name -- wget http://repo.unified-streaming.com/install-tears-of-steel.sh
sudo lxc-attach -n $name -- chmod +x install-tears-of-steel.sh
sudo lxc-attach -n $name -- ./install-tears-of-steel.sh -y
sudo lxc-attach -n $name -- rm install-tears-of-steel.sh

Using a LXC instance

With USP installed you can use it for VOD, Live or Capture purpose like any other USP instance.

For further information LXC see the LXC documentation.