Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
computing:airsonic [2019/12/30 04:37] – oemb1905 | computing:airsonic [2022/07/31 21:02] – oemb1905 |
---|
------------------------------------------- | ------------------------------------------- |
| |
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 [[https://wiki.haacksnetworking.com/doku.php?id=computing:apachesurvival|Apache Survival]]. I used the AirSonic [[https://airsonic.github.io/docs/|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 simultaneously hosted within a (see [[https://wiki.haacksnetworking.com/doku.php?id=computing:nextcloud|Nextcloud]] instance on the same localhost. The two services work in unison flawlessly and here are my findings and instructions: | 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 [[https://wiki.haacksnetworking.com/doku.php?id=computing:apachesurvival|Apache Survival]]. I used the AirSonic [[https://airsonic.github.io/docs/|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 simultaneously hosted within a [[https://wiki.haacksnetworking.com/doku.php?id=computing:nextcloud|Nextcloud]] instance on the same localhost. The two services work in unison flawlessly and here are my findings and instructions: |
| |
sudo apt install tomcat9 | sudo apt install tomcat9 |
sudo mkdir /var/airsonic/ | sudo mkdir /var/airsonic/ |
sudo chown -R $USER:$USER /var/airsonic/ | sudo chown -R $USER:$USER /var/airsonic/ |
| cd /var/airsonic/ |
ln -s /home/nextclouddata/username/files/Music/Masters music | ln -s /home/nextclouddata/username/files/Music/Masters music |
sudo systemctl stop tomcat9.service | sudo systemctl stop tomcat9.service |
screen | screen |
java -jar -Dserver.port=8081 /var/airsonic/airsonic.war | java -jar -Dserver.port=8081 /var/airsonic/airsonic.war |
ctrl-a-d | <ctrl-a-d> |
| |
Once you detach from the screen, this will remain running until reboot. Navigate to: | Once you detach from the screen, this will remain running until reboot. Navigate to: |
| |
localhost:8081 | localhost:8081 |
| |
| 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: |
| |
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 | https://domain.com |
| |
Enjoy, if you want to test, email me and navigate to music.jonathanhaack.com for a test! | Personally, I do leverage external access and I use apache and these virtual host configurations: [[https://repo.haacksnetworking.com/oemb1905/haackingclub/tree/master/airsonic|Air Sonic Virtual Host Configuration Examples]]. Also, I will organize this later, but here is how to make sure the transcoder is working: |
| |
Peace all … oemb1905 #freesoftware #gnulinux #debian | mkdir /var/airsonic/transcode |
| cd transcode/ |
| ln -s /usr/bin/ffmpeg |
| chown -h user:user ffmpeg |
| ls -alh |
| <lrwxrwxrwx 1 user user 15 mai 4 19:57 ffmpeg -> /usr/bin/ffmpeg> |
| |
| Okay, so AirSonic is deprecated and now there is AirSonic advanced. You can download the current ''.jar'' files here: |
| |
| https://github.com/airsonic-advanced/airsonic-advanced/releases |
| wget https://github.com/airsonic-advanced/airsonic-advanced/releases/download/11.0.0-SNAPSHOT.20220625052932/airsonic.war |
| |
| 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! |
| |
--- //[[jonathan@haacksnetworking.com|oemb1905]] 2019/12/30 02:28// | --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/07/31 15:00// |