Airsonic is a open source, web media streamer which provides access to your music. You can use it to share or listen your music. It can be used to stream multiple players simultaneously. It can handle very large music collections (hundreds of gigabytes).
Airsonic is free software and licensed under the GNU General Public License version 3. The code in this repository(and associated binaries) are free of any “license key” or other restrictions.
Today you will learn that how to setup your own streaming server using Airsonic Media Server.
Install OpenJDK
dnf install java-1.8.0-openjdk-devel -y
Now create a user and directories for airsonic and assign ownership to airsonic user on created directory.
useradd airsonic mkdir /var/airsonic mkdir /var/media_files chown airsonic /var/airsonic chown airsonic /var/media_files
Now download Airsonic .war package using wget command in /var/airsonic folder.
wget https://github.com/airsonic/airsonic/releases/download/v10.2.1/airsonic.war --output-document=/var/airsonic/airsonic.war
Now Allow airsonic to run on system boot using below commands
wget https://raw.githubusercontent.com/airsonic/airsonic/master/contrib/airsonic.service -O /etc/systemd/system/airsonic.service wget https://raw.githubusercontent.com/airsonic/airsonic/master/contrib/airsonic-systemd-env -O /etc/sysconfig/airsonic systemctl daemon-reload systemctl start airsonic.service systemctl enable airsonic.service
Note: You must restart airsonic by running below command every time, whenever you make any changes in airsonic file so new changes can apply.
wget https://raw.githubusercontent.com/airsonic/airsonic/master/contrib/airsonic-systemd-env -O /etc/sysconfig/airsonic systemctl restart airsonic.service
Configure firewall
By default Airsonic uses port 8080 so we have to enable it in firewall using below commands:
firewall-cmd --permanent --add-port=8080/tcp firewall-cmd --reload
You can review and modify any startup settings in /etc/sysconfig/airsonic.
Access Airsonic admin panel
username: admin
password: admin
URL:
http://YOUR-SERVER-IP:8080/airsonic
OR
http://YOUR-DOMAIN:8080/airsonic
MY URL is http://192.168.130.152:8080/airsonic
After login you will be asked to setup airsonic for media files.