Forums How to host rtmp servers: Debian based linux(ubuntu[18.04,19.10,20.04]) debian 9 etc

Viewing 1 post (of 1 total)
  • Author
  • #253
    Donald BiltonDonald Bilton

    There are many Debian based Linux distributions that
    this tutorial should work on. Many Debian repositories have similar sources and the package managers are often the same. If you are unable to use this tutorial for a certain Debian based distribution, please list the distribution and version below and help will be available asap. Section a. and section b are different ways of installing. Please choose one of them.

    A. If you have a graphic user interface, you may simply download the chrooted shell script located at:

    Navigate to your downloads folder. The file should be available in that folder.
    Please right click (the secondary click on a mouse. Some gestures are different) on the file and select allow execution flag. This says to your operating system that this file can be executed. This will need admin privileges, so if there is a flag that allows this, please select.

    Answer the questionnaire inside the script to install your RTMP server to host with

    This shell script installs a chrooted mini os, alpine linux chroot, to keep your system at a minimal modification of its original state and for cross os compatiblity. The only requirements to run this script would be a bash shell and git. Most distributions have these two requirements.

    B. If you prefer terminal only, this section is for you.
    1. This tutorial is for installing rtmp servers on
    Debian based distributions. Particularly, Ubuntu is the tested platform. Auto install scripts have been wrote and are available to be observed and read at
    2. Open up a terminal emulator by pressing ctrl+alt+t or finding your distributions terminal
    Emulator by typing terminal in the gui search.(For windows 10 users, launch the little icon from app store till you are face with a command prompt 😀 )

    Ubuntu terminal

    3. At the shell prompt, copy and paste these commands. Typically, any install commands require sudo if not logged in as a root user. As most distributions have the root account disabled, we will assume sudo will be used. Please include both
    parenthesis in the code snippet

    (cd $home
    sudo apt-get update
    sudo apt-get dist-upgrade -y
    sudo apt-get install git -y
    git clone -b test-ubuntu2
    cd tollstream-RTMP-server
    sudo chmod +x
    sudo ./ 

    4. Answer the questionnaire in the shell script to install the RTMP server that allows you to sell your content on provides free(free works well for small scale servers) and paid accounts through Tollstream is not affiliated with Ngrok. We use Ngrok’s reverse proxy to assist people in port forwarding issues. (Behind firewalls they can’t configure,routers or other, non administrative restrictions. )

    5. Please visit if your are behind nat firewalls that you either don’t have the administration rights to configure, the know how, or the patience. You will want to register for free with Ngrok also let’s you monitor your connections and blacklist ips etc and add other ips to your whitelist such as friends. The free version works for 4 connections from the outside world, and there are paid versions that have no restrictions.

    6. After registration, you will enter the authkey into the terminal to register it with the servers automated script. From that point on, ngrok will be the one giving you urls that are accessible from the internet. You will be accessible from the web from that url. The automated install script will list that url that is accessible from the internet. The automated script then takes your url and username of tollstream, encrypts it, and sends it to for e-commerce assistance.

    ngrok authkey

    Your authkey will be saved in your server and will only need to be entered once.

    7. Your server should be set up and the automated script should list several urls. You should make note of these urls, depending on your desired configuration. I will attempt to explain what these urls mean and how they will be used.

    A) You will receive a url that is accessible from the web if port forwarding was successful. If you port forwarded ,yourself ,and are having connection problems from the outside web, please check to see if you have configured your firewalls properly to port forward tcp 1935.

    B) You will receive a url that was issued from that points to your public ip address and rtmp server. This would be the same as if someone typed in your public ip and attempted to access your server, except it allows for port forwarding behind networks that are not configured for port forwarding.

    C) You will receive a url that assumes that you are running broadcasting software on the same machine as the server is located. This is the url that is considered localhost looking like rtmp://localhost:1935/(app)/(stream key)
    Or rtmp:// key)

    D) You will receive a URL that includes your private IP address of your server so that other devices such as cameras, sell phones, or other networked devices can send their information to the server from within you own network. This means devices that are connected to the same router but have been issued separate private ip. (Every device connected to the same router has a separate private ip and, typically, share the same public IP that is issued by your internet service provider.

    Example. I have Tollstream rtmp server set up on my laptop but I want to use my cell phone that is on the same wifi to send live video to my server.

    8. After running this script, it will update, fetch and install all rtmp dependencies using nginx as the web server. The auto install script will help to install and configure an rtmp server, specifically for use with

    5. Stay tuned for more site progress as it is still under construction. Once all modules are completed, more os support will be available. Happy streaming..

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.