Ums Installation

Reproduced steps to install UMS on CentOS 8.

dnf install epel-release (1)
dnf install java-1.8.0-openjdk (2)
dnf config-manager --set-enabled PowerTools (3)
dnf install mediainfo (4)

Get UMS, from website then:

tar -zxvf UMS-9.8.1-x86_64.tgz ums-9.8.1/
mv ums-9.8.1/ /opt/
ln -s /opt/ums-9.8.1/ /opt/ums

Let’s create config files

mkdir /etc/ums
cp /opt/ums/UMS.conf /opt/ums/WEB.conf /etc/ums

New user and group for ums

useradd -s /sbin/nologin ums
sudo chown -R ums:ums /opt/ums-9.8.1/
sudo chown -R ums:ums /etc/ums/

Directory for ums.

mkdir /data/downloads
chown -R ums:ums /data/downloads/

Create UMS service.

/etc/systemd/system/ums.service/ums.service

[Unit]
Description=Universal Media Server
Wants=network.target
After=network-online.target

[Service]
Type=simple
Environment="UMS_PROFILE=/etc/ums/UMS.conf"
User=ums
Group=ums
WorkingDirectory=/opt/ums
ExecStart=/bin/bash /opt/ums/UMS.sh

[Install]
WantedBy=multi-user.target

Enable and start service.

systemctl daemon-reload
systemctl start ums
systemctl enable ums
/usr/lib/firewalld/services/ums.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>UMS</short>
  <description>Universal Media Server</description>
  <port protocol="tcp" port="5001"/>
  <port protocol="tcp" port="9001"/>
</service>

Enable and reload firewall.

firewall-cmd --add-service=ums --zone=public --permanent
firewall-cmd --reload

Also need to copy logback, set logging, set pid file