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.

Block countries based on Geo data with UFW firewall

I while ago, I wrote this post about how to block all network traffic from-and-to certain countries using UFW firewall based on recent Geo data. The statistics of this website show that this post is still one of the most popular posts here. Many people found their way here through Google searches like: UFW, Geo and Block. If you happen to be one of these people, welcome! You came to …

The god(s) of data-storage

I seem to have somehow upset the god(s) of data storage. It feels like I’m being punished, or at least challenged by them as of recently. Specifically the last three months. It feels like this for me because hard drives have been failing to the left and to the right of me, and even directly in front of me. And all within a crazy short amount of time. This is …

Create a secure adaptive bit-rate HLS stream with Nginx/RTMP/Ffmpeg on Ubuntu 20.04 (2021)

6-8-2023 UPDATE: I wrote a new tutorial, suited for Ubuntu 22.04. Go to the new tutorial. 24-07-2023 UPDATE: Before you read/follow this tutorial, I want to inform you of something important. In case you follow this tutorial, there’s a big chance you won’t be able to get the adaptive streams to work correctly. I don’t know exactly why or what has changed, but I believe the audio codec is no …

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 …

Configuring DNS-Over-HTTPS on RaspberryPi running Pi-Hole

In this article I will show you all the steps you will need to set up DNS-over-HTTPS to Cloudflared on a Raspberry Pi that’s running Pi-Hole on RaspBian Stretch OS. This is called an Argo Tunnel. Now you might think to yourself; What does all this even mean? Let me explain… A Raspberry Pi is a really cheap tiny computer that has very low power consumption. These tiny computers costs …

Public DNS servers 1.1.1.1 and 1.0.0.1

I’ve been using the public Google DNS servers 8.8.8.8 and 8.8.4.4 for several years now. It was once said that using these DNS servers would result in a noticeable speed increase when compared with the DNS servers that your internet provider makes you use. I started using the Google servers and the addresses immediately got stuck in my head, so I haven’t stopped using them since. Until today that is… …

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 …

Add Ubuntu Terminal to Windows 10

Have a look at this page for instructions on how to add a terminal to your Windows 10 in a matter of seconds. I just installed it and I’m very pleased with it so far. Could this mean I will stop using Putty after all these years? I’m not sure yet but I’m going to find out really soon. Here’s a link directly to the Windows Store if you don’t …

Things you should do after installing Raspbian on your Raspberry Pi

Here are a couple of things that you should do after you’ve installed Raspbian on your Raspberry Pi. Installing the Raspbian operating system itself is very easy so I’m not going into that. You can figure that out on your own. This article is just about a couple of things that you should, or could, do after installing the operating system. Click on the “read more” link below to get …

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 …