This tutorial will guide you through the process of installing Airsonic Advanced on Ubuntu Server. Airsonic Advanced is a fork of the original Airsonic music streaming software that offers many new features and enhancements.
Before we begin, make sure you have the following:
Airsonic Advanced is a Java application, so you will need to install the JDK (Java Development Kit) on your server. You can do this by running the following command in your terminal:
sudo apt-get update
sudo apt-get install openjdk-8-jdk -y
You can verify that Java is installed by running java -version
.
Next, we need to install some dependencies that Airsonic Advanced requires. You can install them using apt-get:
sudo apt-get install ffmpeg imagemagick -y
Airsonic Advanced runs on Apache Tomcat, so we will need to install Tomcat on our server. Run the following command to install Tomcat:
sudo apt-get install tomcat9 -y
After installing Tomcat, start the service by running:
sudo systemctl start tomcat9
Now we can download and install Airsonic Advanced. Navigate to the directory where you want to install Airsonic Advanced and clone the repository:
cd /opt
sudo git clone https://github.com/airsonic-advanced/airsonic-advanced.git
After cloning the repository, build it using Maven:
cd airsonic-advanced
sudo mvn clean package
This command will create a .war
file in the target
directory. We need to copy this file to Tomcat's webapps
directory:
sudo cp target/airsonic-advanced-*.war /var/lib/tomcat9/webapps/airsonic.war
Before we can start using Airsonic Advanced, we need to configure it. Create a new file named airsonic.properties
in the /var/lib/tomcat9/conf
directory:
sudo nano /var/lib/tomcat9/conf/airsonic.properties
Paste the following configuration into the file:
server.context-path=/
server.http.port=80
server.https.port=443
server.name=example.com
server.context-path=/
spring.profiles.active=prod
airsonic.web.context-path=/airsonic
Replace example.com
with your domain name or IP address.
Restart Tomcat to apply the new configuration:
sudo systemctl restart tomcat9
Airsonic Advanced should now be accessible from your domain name or IP address. Open a web browser and navigate to http://example.com/airsonic
(replace example.com
with your domain name or IP address).
You should see the Airsonic login page. Log in using the default credentials (admin/admin) and you will be prompted to change your password.
Congratulations, you have successfully installed and configured Airsonic Advanced on your Ubuntu Server. You can now stream your music collection from anywhere with an internet connection!
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!