This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computing:airsonic [2019/12/18 06:19] – created oemb1905 | computing:airsonic [2023/12/25 18:23] (current) – oemb1905 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | sudo apt install tomcat9 | + | ------------------------------------------- |
- | cd / | + | * **airsonic** |
- | nano server.xml | + | * **Jonathan Haack** |
+ | * **Haack' | ||
+ | * **netcmnd@jonathanhaack.com** | ||
- | change port to needed port (8081) | + | ------------------------------------------- |
- | wget https://github.com/airsonic/airsonic/ | + | // |
- | gpg --keyserver keyserver.ubuntu.com --recv 0A3F5E91F8364EDF | + | |
- | wget https:// | + | |
- | gpg --verify artifacts-checksums.sha.asc | + | |
- | sha256sum -c artifacts-checksums.sha.asc | + | |
- | sudo mkdir / | + | ------------------------------------------- |
- | sudo chown -R tomcat: | + | |
- | sudo systemctl stop tomcat9.service | + | 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. |
+ | sudo apt install tomcat9 | ||
+ | cd / | ||
+ | nano server.xml | ||
- | --- // | + | Change port to needed port (8081) |
+ | |||
+ | wget https:// | ||
+ | mv airsonic.war | ||
+ | gpg --keyserver keyserver.ubuntu.com --recv 0A3F5E91F8364EDF | ||
+ | wget https:// | ||
+ | gpg --verify artifacts-checksums.sha.asc | ||
+ | sha256sum -c artifacts-checksums.sha.asc | ||
+ | sudo rm / | ||
+ | sudo rm -R / | ||
+ | sudo rm -R / | ||
+ | sudo mkdir / | ||
+ | sudo chown -R $USER:$USER / | ||
+ | cd / | ||
+ | ln -s / | ||
+ | sudo systemctl stop tomcat9.service | ||
+ | screen | ||
+ | java -jar -Dserver.port=8081 / | ||
+ | < | ||
+ | |||
+ | Once you detach from the screen, this will remain running until reboot. Navigate to: | ||
+ | |||
+ | localhost: | ||
+ | |||
+ | Or, if you need to set up your instance for external access and already set up LAMP or FEMP or something equivalently secure, then you would navigate to: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Personally, I do leverage external access and I use apache and these virtual host configurations: | ||
+ | |||
+ | mkdir / | ||
+ | cd transcode/ | ||
+ | ln -s / | ||
+ | chown -h user:user ffmpeg | ||
+ | ls -alh | ||
+ | < | ||
+ | |||
+ | Okay, so AirSonic is deprecated and now there is AirSonic advanced. You can download the current '' | ||
+ | |||
+ | https:// | ||
+ | wget https:// | ||
+ | |||
+ | Once you run the .war it will create all necessary sub folders. I am still not clear on how to migrate meta-data between instances. The wget above is for the .war that is current as of this post; make sure to always check. Also, if your server stops/ | ||
+ | |||
+ | #!/bin/sh | ||
+ | DATE=`date +" | ||
+ | if | ||
+ | ps -ef | grep "java -jar" > / | ||
+ | tail -n -2 / | ||
+ | then | ||
+ | echo " | ||
+ | else | ||
+ | export TERM=' | ||
+ | su - airsonic << | ||
+ | script | ||
+ | screen -S airsonic bash -c "java -jar -Dserver.port=8081 / | ||
+ | SHT | ||
+ | fi | ||
+ | |||
+ | I tested this and it runs flawlessly. Don't forget these mods when migrating or setting up a new instance. | ||
+ | |||
+ | sudo a2enmod proxy_http | ||
+ | sudo a2enmod proxy | ||
+ | |||
+ | --- // |