How to Install Airsonic Advanced on Fedora Server Latest

Airsonic Advanced is an open-source media streaming server that allows you to access your music collection from anywhere. In this tutorial, we will walk you through the steps to install Airsonic Advanced on Fedora Server Latest.

Prerequisites

Before proceeding with this tutorial, you will need:

Step 1: Install Required Dependencies

The first step is to install the required dependencies for Airsonic Advanced. Open your terminal and run the following command:

sudo dnf install java wget ffmpeg

The above command installs Java, wget, and FFmpeg.

Step 2: Download Airsonic Advanced

Next, we have to download the Airsonic Advanced from the GitHub repository. Download the latest release by running the following command:

sudo wget https://github.com/airsonic-advanced/airsonic-advanced/releases/latest/download/airsonic.war -O /opt/airsonic.war

The command will download the latest release to the /opt/ directory.

Step 3: Create a Systemd Service File

We need to create a systemd service script to handle the Airsonic Advanced service.

Create a new systemd service file named airsonic.service in the /etc/systemd/system/ directory using your favorite text editor.

sudo nano /etc/systemd/system/airsonic.service

Paste the following content into the file.

[Unit]
Description=Airsonic Advanced media server
After=network.target

[Service]
User=airsonic
Group=airsonic
ExecStart=/usr/bin/java -jar /opt/airsonic.war
Restart=on-failure

[Install]
WantedBy=multi-user.target

Save and close the file by pressing CTRL+X, then Y, then Enter.

Step 4: Create a New User

We need to create a new user named airsonic to run the Airsonic Advanced service.

To create a new user, run the following command:

sudo useradd -r -d /opt/airsonic -s /usr/sbin/nologin airsonic

Step 5: Enable and Start Airsonic Advanced Service

Run the following command to reload the systemd configuration:

sudo systemctl daemon-reload

To start the Airsonic Advanced service and enable it to start automatically at boot time, run the following command:

sudo systemctl enable --now airsonic

You can verify the status of the Airsonic Advanced service by running:

sudo systemctl status airsonic

Step 6: Configure Firewall

If you have a firewall enabled on your server, you need to allow the Airsonic Advanced service to communicate with the outside world.

To allow traffic to the default Airsonic Advanced port (4040), run the following command:

sudo firewall-cmd --add-port=4040/tcp --permanent

Then, reload the firewall configuration:

sudo firewall-cmd --reload

You have successfully installed and configured Airsonic Advanced on Fedora Server Latest. You can now access Airsonic on your web browser via http://your-server-ip:4040.

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!