GNU FM is a free web-based music community and radio station automation software developed by the GNU Project. It allows users to create their own music community and radio stations with ease. In this tutorial, we will show you how to install GNU FM on POP! OS Latest.
Before installing GNU FM, ensure that you have the following prerequisites:
Ensure that your system is up-to-date:
sudo apt update
sudo apt upgrade
Install the LAMP stack on your POP! OS Latest machine:
sudo apt install apache2 php mysql-server php-mysql libapache2-mod-php
Install the dependencies required to run GNU FM:
sudo apt install php-curl php-gd php-intl libid3-3.8.3v1 libvorbisfile3 libopus0 libmp3lame0 libtheora0 libogg0 libfaad2 libfaac0 libao4 libsndfile1 libmad0 lame flac
Download the latest release of GNU FM from the official website:
wget https://ftp.gnu.org/gnu/gnufm/gnufm-latest.tar.gz
Extract the downloaded file:
tar -xvf gnufm-latest.tar.gz
Move the extracted files to the Apache2 root directory (/var/www/html/):
sudo mv gnufm-* /var/www/html/gnufm
Create a new database with MySQL and grant privileges to the user:
mysql -u root -p
CREATE DATABASE gnufm;
GRANT ALL PRIVILEGES ON gnufm.* TO 'gnufm-user'@'localhost' IDENTIFIED BY 'gnufm-password';
FLUSH PRIVILEGES;
QUIT;
Copy the default configuration file and create a new configuration file:
cd /var/www/html/gnufm
cp -v configure.template.php configure.php
Update the configuration file with your database credentials:
nano configure.php
Update the following lines in the file:
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'gnufm-user');
define('DB_PASSWORD', 'gnufm-password');
define('DB_DATABASE', 'gnufm');
Save and close the file.
Set the required permissions for the following directories:
sudo chown -R www-data:www-data /var/www/html/gnufm/
sudo chmod -R 777 /var/www/html/gnufm/tmp/
sudo chmod -R 777 /var/www/html/gnufm/themes/
Restart the Apache2 service to apply the changes:
sudo systemctl restart apache2
Access the GNU FM web interface by navigating to http://localhost/gnufm in your web browser.
In this tutorial, you learned how to install GNU FM on POP! OS Latest. With GNU FM, you can create your own music community and radio stations with ease. If you have any queries or suggestions, feel free to leave a comment below.
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!