How to Install Gerbera on EndeavourOS Latest

Gerbera is an open-source media server software that allows you to stream and manage your media libraries to various devices on your local network. In this tutorial, we will guide you on how to install Gerbera on EndeavourOS Latest.

Prerequisites

Before proceeding with the installation, make sure that your system is up-to-date with the latest patches and updates.

sudo pacman -Syu

Step 1: Install Dependencies

Gerbera has a few dependencies that need to be installed before we can proceed with the installation. Install the dependencies using the following command:

sudo pacman -S cmake libupnp libexif libsqlite3 libcurl libspatialite libmicrohttpd ffmpeg

Step 2: Install Gerbera

Download the latest version of Gerbera from its official website using the following command.

wget https://github.com/gerbera/gerbera/releases/latest.tar.gz

Extract the compressed tarball using the tar command.

tar -zxf latest.tar.gz

Now, change your working directory to the extracted directory.

cd gerbera*

Run the following commands to build and install Gerbera.

mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make
sudo make install

Step 3: Configure Gerbera

Once Gerbera is installed, we need to configure it to meet our requirements. Gerbera configuration files are located in /usr/local/etc/gerbera/ directory.

Edit the gerbera.conf configuration file using a text editor of your choice.

sudo nano /usr/local/etc/gerbera/gerbera.conf

You can change the default values in the configuration file to match your needs.

port = 49152
root-container = "/media"

Save and exit the file.

Step 4: Start Gerbera

Finally, start Gerbera using the following command.

gerbera --config /usr/local/etc/gerbera/gerbera.conf

If everything is ok, you will see the following output on your terminal.

[INFO] - Gerbera - Version: 1.9.3 - UUID: xx-xx-xx-xx
[INFO] - Automatic discovery of network interfaces has been enabled
[INFO] - HTTP Engine Implementation: libmicrohttpd
[INFO] - Server started at: http://192.168.1.10:49152/

Conclusion

In this tutorial, we have explained how to install Gerbera on EndeavourOS Latest. You can now configure Gerbera to serve media files to various devices on your local network.

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!