How to Install Airsonic Advanced on Void Linux

Airsonic Advanced is a free and open-source music streaming server that allows you to access your music collection from anywhere with an internet connection. In this tutorial, we will guide you step-by-step on how to install Airsonic Advanced on Void Linux using the command line.

Prerequisites

Before starting with the installation process, ensure that the following prerequisites are met:

Installation Process

Step 1: Update the system

The first step is to update the package repository of Void Linux to its latest version.

$ sudo xbps-install -S

Step 2: Install Java Runtime Environment (JRE)

Airsonic Advanced requires Java to run. If your system doesn’t already have Java installed, you need to install it using the following command.

$ sudo xbps-install -S openjdk11

Step 3: Install MariaDB

Airsonic Advanced requires a database to store music metadata. You can choose any one of the available databases supported by Airsonic Advanced, but in this tutorial, we will use MariaDB.

Install MariaDB by running the following command:

$ sudo xbps-install -S mariadb

Start and enable the MariaDB service using the following command:

$ sudo ln -s /etc/sv/mysqld /var/service/

Then secure the MariaDB installation:

$ sudo mysql_secure_installation

Step 4: Install Airsonic Advanced

You can install Airsonic Advanced using the package manager or by downloading the source code from Github, but in this tutorial, we will use the latter approach.

Download the source code from Github using the following command:

$ git clone https://github.com/airsonic-advanced/airsonic-advanced.git

Navigate to the extracted folder and run the following command to build and install the application:

$ ./gradlew installDist

Step 5: Configure Airsonic Advanced

Create a configuration file for Airsonic Advanced using the sample-file provided in the distribution as a template:

$ cp airsonic.properties.sample build/install/airsonic-advanced/config/airsonic.properties

Open the configuration file in your preferred text editor and modify the following entries accordingly:

server.name = My Airsonic Server
server.context-path = /airsonic

Step 6: Start and Enable Airsonic Advanced

Start the Airsonic Advanced service using the following command:

$ ./build/install/airsonic-advanced/bin/airsonic

Then create a symbolic link to ensure that the service starts automatically on boot:

$ sudo ln -s /etc/sv/airsonic /var/service/

Conclusion

Airsonic Advanced is now installed and ready to use. You can access it using your preferred web browser at http://:4040/airsonic. To login, use the username “admin” and the default password “admin”.

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!