GNU FM is a free and open-source application that allows you to run your own music streaming service. In this tutorial, we will guide you through the steps of installing GNU FM on your Windows 11 system.
Before installing GNU FM, you need to make sure that your system meets the following requirements:
Firstly, you need to open a command prompt and navigate to the directory where you want to install GNU FM.
cd C:\path\to\directory
Once you are in the directory, run the following command to clone the GNU FM repository from GitHub:
git clone https://github.com/gnufm/gnufm.git
After the download is complete, navigate to the cloned repository directory:
cd gnufm
Before running GNU FM, you need to install its dependencies. To do this, run the following command in the command prompt:
composer install
After the installation is complete, you should see a vendor directory in your GNU FM directory.
GNU FM requires a MySQL database to store its data. You need to create a new database and a user with permissions to access it.
Open the MySQL command prompt and run the following commands:
CREATE DATABASE gnufm;
CREATE USER gnufm_user@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON gnufm.* TO gnufm_user@localhost;
Make sure to replace 'password' with a strong password.
Next, you need to configure GNU FM to use this database. Copy the config/database.yml.dist
file to config/database.yml
and edit it with your MySQL server details:
adapter: mysql2
encoding: utf8
host: localhost
database: gnufm
username: gnufm_user
password: password
run GNU FM, you need to set up a virtual host on your web server. Here is an example configuration for Apache:
<VirtualHost *:80>
ServerName my.gnufm.com
ServerAlias www.my.gnufm.com
DocumentRoot C:\path\to\gnufm\public
<Directory C:\path\to\gnufm\public>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Make sure to replace my.gnufm.com
and www.my.gnufm.com
with your own domain name and the path to your GNU FM directory.
Finally, you can run GNU FM in your web browser by visiting your virtual host domain name. The default username and password are both admin
.
That's it! You have successfully installed GNU FM on your Windows 11 system. Now you can start uploading your own music and streaming it to your audience.
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!