Use this script to automate the setup of a live-stream server on Ubuntu 22.04

What the script does, is build a decent live-stream server for you, from scratch, on a machine running on Ubuntu 22.04. The live-stream server will be fully configured and work out-of-the-box, with an RTMP entry to send your stream to, Adaptive bitrate streaming for the viewers in HLS and/or DASH formats. A webpage with a very basic video player is also included, and a simple /stat page can be used to display some data on the live-streams. To top it all off, I included a couple of pointers that will help you on your way in this environment.

Build a Nginx/Ffmpeg adaptive bit rate HLS live-stream server on Ubuntu 22.04

This tutorial is an updated and improved version of a previous tutorial that I wrote. This new tutorial will work 100% on a (fresh) Ubuntu 22.04 system. The tutorial was put together in August 2023. UPDATE: I’ve put together a script that does everything automatically. Check it out here! All throughout this tutorial, I will be using the non-existing domain name: your.hostname.com as an example. You will need to replace …

Really long introduction for a new tutorial

This post is the full introduction that goes together with a new tutorial that I’m posting shortly after this. Initially, this intro was included in the tutorial, until I made it a bit too long by rambling on. I realize this is a long, and perhaps too long post, but it does contain some useful information for anybody who is contemplating building their own live-stream server. If you’re not, you …

Important update notice on a very popular post on this website.

My post on how to create a secure adaptive bit-rate HLS stream with Nginx/RTMP/Ffmpeg on Ubuntu 20.04 is by far the most popular content on my website. About 60% of all visitors come to that page through Google. I have an essential message to everybody who followed this tutorial. You should really edit a couple of lines in your nginx.conf in case you are using adaptive bit rate streams, sooner …

Ant Media Server on Ubuntu 18.04

This short guide will show you how to install Ant Media Server (Community Edition) on a Ubuntu 18.04 VPS server. Ant Media Server is a fork of Red5. The community Edition is free, but it does have it’s limitations that can be unlocked by purchasing a license. It runs on Java so we’re also installing that on our server. The server that I used in this example has Nginx installed …

Fix the Nginx module in Webmin (Ubuntu 18.04)

For a long time now, the Nginx plugin that exists for Webmin did not work after installing it on Ubuntu/Debian. I never got around to figure out how to fix this but today I did. Here’s how to fix the Nginx plugin in Webmin on a Ubuntu server. Now in all honesty I have no idea what step of all the steps below did the trick of actually getting it …

Block all traffic from a Geo-located country with UFW firewall on Ubuntu

Update 30-7-2023 – This post is a bit old. I have written a new article on the subject. Check it out here: https://www.ustoopia.nl/featured/block-countries-based-on-geo-data-with-ufw-firewall/ I was noticing some really strange requests in my web server’s log files on a VPS that I manage. Requests that seem to be focused on finding vulnerabilities or exploits. Turns out, most of the originating IP addresses are from China. Since the VPS is not behind …

How to setup Nginx+RTMP live stream server

IMPORTANT UPDATE! These guides may be outdated. Please see the new guide here: https://www.ustoopia.nl/featured/nginx-rtmp-hls-ssl-videojs-on-ubuntu-18-04/ I made a couple of Youtube video’s with some instructions on how to setup your own private live-stream server using Nginx running on Ubuntu 18.04. . Click on the CONTINUE READING link below to see a copy of the variables that I used in the video’s. You can also find it on my Pastebin if you …

Install MariaDB 10.1 on Ubuntu16.04

I have Ubuntu16.04 servers running and I want to run database engines like MariaDB on it. Normally I would just type sudo apt install mariadb-server and the database system would be up and running in under two minutes. Ubuntu16.04 will install version 10.0 by default, but I want to install a different version. At the very least 10.1. Why 10.1 you might ask? Well because 10.1 was the first release …

Unattended Ubuntu ISO Maker

Just found an awesome script online that I tested today and it works great. It’s a script that allows you to create an ISO for a unattended installation for Ubuntu 16.04.3 LTS. Just made myself one of those ISO’s and I’m going to try to see if I can implement it in my PXE environment. If not, I can always place it on a USB flash drive and boot from …

Adding cloud storage as permanent mount to Ubuntu Server 16.04

Many cloud storage services give you the option to mount your online storage as an extra drive on your operating system. This can be done really easy on any operating system that runs a desktop environment. But I wanted to add my storage as a mounted drive on Ubuntu Server, and it does not use a desktop environment so I use WinSCP and Putty to administrate my server. I did …

Disable IPv6 on Ubuntu 16.04 Permanently

If you want IPv6 disabled permanently on a Ubuntu 16.04 system, here’s a good way to do it. Disabling it like this should keep it disabled permanently, even after performing updates that could potentially enable it again without you knowing it. I haven’t tested it so I’m not 100% certain but if you decide to upgrade Ubuntu to 16.10 or the most recent version, it should still have ipv6 disabled …

How to install MP4Box on Ubuntu 16.04 Headless

“MP4Box is a multimedia packager, with a vast number of functionalities: conversion, splitting, hinting, dumping and others. It can be used for performing many manipulations on multimedia files like AVI, MPG, TS, but mostly on ISO media files (e.g. MP4, 3GP). It is a command-line tool so it can be utilized by scripts like the php script that I want to use. MP4Box is included in the GPAC package.” I want …