Airsonic is designed to handle large music collections and is optimized for MP3 streaming. It works with any media format that can be streamed over HTTP / HTTPS, including AAC, OGG, WMA, FLAC, APE, and more. This brief tutorial shows students and new users how to easily install Airsonic on Ubuntu 16.04 / 17.10 and 18.04 LTS servers and desktops. For more about Airsonic, please check out its homepage.
Install Java 8
For Airsonic to work, you should have Java installed. To do that, run the commands below. The easiest way to install Oracle Java JDK 8 on Ubuntu is via a third-party PPA… To add that PPA, run the commands below. After running the commands above, you should see a prompt to accept the PPA key onto Ubuntu… accept and continue Now that the PPA repository has been added to Ubuntu, run the commands below to download Oracle Java 8 installer…. the installer should install the latest Java JDK 8 on your Ubuntu machines. When you run the commands above you’ll be prompted to access the license terms of the software… accept and continue. Set Oracle JDK8 as default, to do that, install the oracle-java8-set-default package. This will automatically set the JAVA env variable. Now that JAVA is installed, run the commands below to set its home directory. Then copy and paste the highlighted line below and save the file. After that run the commands below. source /etc/environment When you run echo $JAVA_HOME you should now see the Java home directory.
Download and Configure Airsonic
Now that Java is installed, run the commands below to create the Airsonic home directory and download the Airsonic archived package. After that, create an Airsonic user and give the user access to the /opt/airsonic directory. Then give the user access to that directory. Next, create an Airsonic system service. Run the commands below Then copy the content below into the file and save it. Save the file and exit. After saving the file, run the commands below to reload the system After that, run the commands below to create the aircon default config file. Then paste the content below: Save and exit. Start Airsonic service. Open your browser and browse to the server name or IP address followed by port 8080 You should see the Airsonic login page. username: admin password: admin Enjoy! You may also like the post below: