How to Install Gerbera on Debian Latest

Gerbera is an open-source media server that allows users to stream and manage their media files. In this tutorial, we will explain how to install Gerbera on Debian latest.

Prerequisites

Before starting with the installation process, ensure that you have the following prerequisites:

Installing Gerbera on Debian Latest

Follow the below steps to install Gerbera on Debian latest.

Step 1: Update System

It is recommended to update the system before installing any new package. Run the following commands to update your system:

sudo apt update
sudo apt upgrade

Step 2: Install Dependencies

Gerbera required some dependencies to be installed on the system. Run the following command to install the required dependencies:

sudo apt install build-essential automake cmake libjpeg-dev libsqlite3-dev libogg-dev libvorbis-dev libexif-dev libcurl4-gnutls-dev libxml2-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libsystemd-dev

Step 3: Download Gerbera

Now, download the latest Gerbera release from the official website using wget command as shown below:

wget https://github.com/gerbera/gerbera/releases/download/v1.9.2/gerbera-1.9.2.tar.gz

Step 4: Extract Gerbera

After downloading the latest Gerbera release, extract the gerbera-1.9.2.tar.gz file using the following command:

tar xvf gerbera-1.9.2.tar.gz

Step 5: Install Gerbera

Change the current directory to gerbera-1.9.2 and run the following command in the terminal:

cd gerbera-1.9.2
mkdir build
cd build
cmake ..
make
sudo make install

Step 6: Configure Gerbera

After successfully installing Gerbera, you will need to create a configuration file. To create a configuration file, run the following command:

sudo cp /usr/local/share/gerbera/config/config.xml /usr/local/etc/gerbera/

Now, edit the configuration file using the nano editor:

sudo nano /usr/local/etc/gerbera/config.xml

In this file, set the directory path where your media files are stored.

Step 7: Start Gerbera Service

To start the Gerbera service, run:

sudo systemctl start gerbera

Step 8: Verify Gerbera Installation

Run the following command to verify that Gerbera is running on the system:

sudo systemctl status gerbera.service

If Gerbera is running, then you will see the ‘active (running)’ status message.

Step 9: Access Gerbera Web Interface

To access the Gerbera web interface, open your web browser and navigate to http://localhost:49152/#/dashboard. You will see the Gerbera dashboard.

Conclusion

In this tutorial, we have explained how to install Gerbera on Debian latest. Once you have installed Gerbera, you can easily stream and manage your media files from your Debian system.

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!