Signup/Sign In
MARCH 27, 2023

How to install gerbera media server in Linux?

    In this article, we will learn how to install Gerbera, a UPnP media server, by which you can stream your digital media over your home network and view it on a variety of UPnP-compatible gadgets.

    Features of Gerbera media server

    • Web UI with a tree view of the database and the file system, allowing you add/remove/edit/browse your media.
    • Extraction of metadata from files that contain MP3, OGG, AAC, M4A, FLAC, wavpack, JPG, and many more!
    • Supports plugins or scripts, highly flexible media format transcoding.
    • Support for media thumbnails. creation of video thumbnails instantly.
    • Create links to internet content and serve them via UPnP to your renderer.
    • Runs on a variety of *nix operating systems, including Linux, BSD, and Mac OS X.
    • Supported (processor architecture) x86, ARM, MIPS, and more platforms!

    Install Gerbera server in Ubuntu/Debian

    To install Gerbera media server in Linux, follow these steps:

    1. First, update your package list by running the following command:
      sudo apt update

    2. Next, install the required dependencies by running the following command:
      sudo apt install build-essential xz-utils curl clang libssl-dev pkg-config git cmake uuid-dev uuid-dev libsqlite3-dev libmysqlclient-dev libmagic-dev libexif-dev libcurl4-openssl-dev libspdlog-dev libpugixml-dev libavutil-dev libavcodec-dev libavformat-dev libavdevice-dev libavfilter-dev libavresample-dev libswscale-dev libpostproc-dev duktape-dev libmatroska-dev libsystemd-dev libtag1-dev ffmpeg wget autoconf

    3. Now, download the Gerbera source code from the official website or using the following command:
      wget https://github.com/gerbera/gerbera/releases/download/v1.4.2/gerbera-1.4.2.tar.bz2

    4. Extract the downloaded archive by running the following command:
      tar -xvf gerbera-1.4.2.tar.bz2

    5. Change to the extracted directory by running the following command:
      cd gerbera-1.4.2

    6. Now, build and install Gerbera by running the following commands:
    cmake . 
    make 
    sudo make install
    
    1. Finally, start the Gerbera media server by running the following command:
      gerbera

    The Gerbera media server should now be running and ready to use.

    Conclusion

    Gerbera media server is a popular open-source UPnP media server that can be easily installed on Linux systems. The installation process involves downloading the source code, installing the required dependencies, and building and installing Gerbera using CMake. Once installed, Gerbera can be easily started and used to stream media to compatible devices on the same network.

    Pradeep has expertise in Linux, Go, Nginx, Apache, CyberSecurity, AppSec and various other technical areas. He has contributed to numerous publications and websites, providing his readers with insightful and informative content.
    IF YOU LIKE IT, THEN SHARE IT
    Advertisement

    RELATED POSTS