User Tools

Site Tools


computing:airsonic

This is an old revision of the document!



  • airsonic
  • Jonathan Haack
  • Haack's Networking
  • netcmnd@jonathanhaack.com

airsonic


Folks these days would love to be able to stream their own music as effortlessly as Spotify, Apple Music, and other proprietary services, but often do not know how to do so. This tutorial is designed to provide a free software solution for music and media streaming. Before beginning, make sure to setup LAMP/TLS on Debian first, and you can use Apache Survival. I used the AirSonic documentation and some forums, etc., to set up a reverse proxy (on an alternate port 8081) to run an AirSonic media server instance. I should also mention that the media directories I am using are within a Nextcloud data directory. The two services work in unison flawlessly and here are my findings and instructions:

sudo apt install tomcat9
cd /etc/tomcat9/
nano server.xml

Change port to needed port (8081)

wget https://github.com/airsonic/airsonic/releases/download/v10.5.0/airsonic.war
mv airsonic.war /var/airsonic/
gpg --keyserver keyserver.ubuntu.com --recv 0A3F5E91F8364EDF
wget https://github.com/airsonic/airsonic/releases/download/v10.5.0/artifacts-checksums.sha.asc
gpg --verify artifacts-checksums.sha.asc
sha256sum -c artifacts-checksums.sha.asc
sudo rm /var/lib/tomcat9/webapps/airsonic.war
sudo rm -R /var/lib/tomcat9/webapps/airsonic/
sudo rm -R /var/lib/tomcat9/work/*
sudo mkdir /var/airsonic/
sudo chown -R $USER:$USER /var/airsonic/
ln -s /home/nextclouddata/username/files/Music/Masters music
sudo systemctl stop tomcat9.service
screen
java -jar -Dserver.port=8081 /var/airsonic/airsonic.war
ctrl-a-d

Once you detach from the screen, this will remain running until reboot. Navigate to:

localhost:8081

Or, set up a proper reverse proxy web server using apache (or similar server). Here are some examples: https://hc.jonathanhaack.com/oemb1905/haackingclub/tree/master/airsonic

Enjoy, if you want to test, email me and navigate to music.jonathanhaack.com for a test!

Peace all … oemb1905 #freesoftware #gnulinux #debian

oemb1905 2019/12/17 23:54

computing/airsonic.1577672926.txt.gz · Last modified: 2019/12/30 02:28 by oemb1905