Streama is an open-source media server which allows you to stream your favorite TV shows and movies on your favorite device. In this tutorial, we will discuss how to install Streama on FreeBSD Latest.
Update and upgrade the current packages by running the following commands:
sudo pkg update
sudo pkg upgrade
Install the OpenJDK 8 package by running the following command:
sudo pkg install openjdk8
Download and extract the Streama package from the official website by running the following commands:
sudo fetch https://github.com/streamaserver/streama/releases/download/v1.2.7/streama-1.2.7.war
sudo mv streama-1.2.7.war /usr/local/jetty/webapps/streama.war
sudo mkdir /usr/local/streama
sudo chown jetty:jetty /usr/local/streama
sudo chmod 755 /usr/local/streama
Install the Jetty package by running the following command:
sudo pkg install jetty9
Configure the Jetty server by creating a new configuration file named streama.conf
inside the /usr/local/etc/jetty9/
directory using the following command:
sudo nano /usr/local/etc/jetty9/streama.conf
Paste the following configuration into the file:
## streama
--
# /usr/local/etc/jetty9/streama.conf
# Setup a context for /streama with path /streama
# and root /usr/local/streama
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/streama</Set>
<Set name="war"><Property name="jetty.webapps"/>/streama.war</Set>
<Set name="extractWAR">true</Set>
<Set name="copyWebDir">false</Set>
<Set name="defaultsDescriptor"><Property name="jetty.home"/>/etc/webdefault.xml</Set>
<Set name="overrideDescriptor"><Property name="jetty.home"/>/etc/webdefault.xml</Set>
<Set name="resourceBase">/usr/local/streama</Set>
</Configure>
Save and exit the configuration file by pressing Ctrl + O
and Ctrl + X
respectively.
Restart the Jetty server by running the following command:
sudo service jetty restart
Access the Streama web application by visiting the following URL in your web browser:
http://your-ip-address:8080/streama/
You will be asked to create a new Streama administrator account. Follow the on-screen instructions to finish the installation process.
Congratulations, you have successfully installed Streama on your FreeBSD Latest server or virtual machine!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!