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.
Before starting with the installation process, ensure that you have the following prerequisites:
Follow the below steps to install Gerbera on Debian latest.
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
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
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
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
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
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.
To start the Gerbera service, run:
sudo systemctl start gerbera
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.
To access the Gerbera web interface, open your web browser and navigate to http://localhost:49152/#/dashboard. You will see the Gerbera dashboard.
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!