How to Install GNU FM on Debian

GNU FM is a free software program that allows users to create their own online radio stations. This tutorial will guide you through installing GNU FM on Debian Latest.

Prerequisites

Before starting the installation process, there are a few prerequisites that need to be met:

Step 1: Install Necessary Packages

Open the terminal and run the following command to update and upgrade the system:

sudo apt update && sudo apt upgrade

Once the system is updated, run the following command to install the necessary packages:

sudo apt install apache2 git mysql-server php php-all-dev php-cli php-gd php-mbstring php-mysql php-curl php-xml php-fpm libapache2-mod-php

Step 2: Download and Install GNU FM

Run the following command to download the latest version of GNU FM from the official website:

git clone https://github.com/LibreTime/libretime.git

Once downloaded, navigate to the directory where the files were extracted and run the installation script:

cd libretime
sudo ./install -fiap

This script will prompt you to enter the MySQL root password, and other installation details. Follow the prompts until the installation is complete.

Step 3: Configure Apache

Create a new Apache configuration file for GNU FM by running the following command:

sudo nano /etc/apache2/sites-available/libretime.conf

Add the following content to the configuration file:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName yourdomain.com

    DocumentRoot /var/www/libretime/web
    <Directory /var/www/libretime/web>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Replace yourdomain.com with your own domain name.

Enable the configuration file by running the following command:

sudo a2ensite libretime.conf

Then, disable the default Apache site by running:

sudo a2dissite 000-default.conf

Finally, restart Apache for the changes to take effect:

sudo systemctl restart apache2

Step 4: Access GNU FM

Open a web browser and navigate to http://yourdomain.com. You should be redirected to the GNU FM setup page where you can create your first radio station.

Congratulations! You have successfully installed GNU FM on Debian Latest.

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!