Skip to content

Installation

Quick Start

Before installing senta-streamer, make sure that ffmpeg is installed on your server.

To start using senta-streamer, you need to download the latest version. After downloading, you can install it on your server.

To start the application, you need to init config:

Terminal window
./senta init

This will create the config file at:

Terminal window
/etc/senta/config.conf

You can edit this file to set parameters such as username, password, port, and stream profiles.

Alternatively, you can specify a custom configuration path:

Terminal window
./senta init /your/custom/path/config.conf

The path will be created if it doesn’t exist, and the config will be saved there.

After that, you can start the application with the command:

Terminal window
./senta config.json

The application will start and you can access the web interface at http://address_your_server:8018 (you can change port in config.json file)

Next you can make senta as demon and set profiles and streams

Set as demon

To create a daemon (or service) in Linux-based systems such as Ubuntu, you can utilize the systemd tool. Here’s how you can create a service for your application:

Create a new service configuration file in the directory /etc/systemd/system/. For example, you can name it senta.service.

Open this file in a text editor and add the following content:

[Unit]
Description=Senta Application
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5
User=root
WorkingDirectory=/root
ExecStart=/path/to/senta /etc/senta/config.conf
[Install]
WantedBy=multi-user.target

Note: /path/to/senta is the path to execute the senta binary file. /etc/senta/config.conf is the configuration file.

Save the file and close the text editor.

Update the systemd service list to detect your new service:

Terminal window
sudo systemctl daemon-reload

Now you can manage your service using the systemctl command. For example, to start the service and configure it to start automatically on system boot, execute the following:

Terminal window
sudo systemctl start senta
sudo systemctl enable senta

Now your application will function as a daemon, automatically restarting in case of failure. You can use systemctl commands to manage this service, such as stop, restart, status, etc.