$ sudo dnf install virt-manager
$ systemctl is-enabled libvirtd
enabled
Start virtual machine manager with gui Create a new virtual machine
Local installation media (ISO image or CD-ROM drive) -> ISO image selection downloaded from here ^ 1
$ sudo dnf install epel-release
$ sudo dnf install java-1.8.0-openjdk
PowerTools repository must be enabled to include mediainfo
$ dnf repolist all
repo id repo name state
AppStream CentOS-8 --AppStream enabled
AppStream-source CentOS-8 --Disable AppStream Sources
BaseOS CentOS-8 --Base enabled
....
PowerTools CentOS-8 --PowerTools disabled
....
$ sudo vi /etc/yum.repos.d/CentOS-PowerTools.repo
....
enabled=0
enabled=1
....
$ dnf repolist all
repo id repo name state
AppStream CentOS-8 --AppStream enabled
AppStream-source CentOS-8 --Disable AppStream Sources
BaseOS CentOS-8 --Base enabled
....
PowerTools CentOS-8 --PowerTools enabled
....
$ sudo dnf install mediainfo
The options DCRaw, VLC, tsMuXeR, P7Zip are reserved because I do not know the contents. Think if something goes wrong.
Download UMS from the official website Universal Media Server
Expand, place in / opt
$ tar -zxvf UMS-9.8.0-x86_64.tgz ums-9.8.0/
$ sudo mv ums-9.8.0/ /opt/
Symbolic link
$ sudo ln -s /opt/ums-9.8.0/ /opt/ums
Create / etc / ums and copy the config file
$ sudo mkdir /etc/ums
$ sudo cp /opt/ums/UMS.conf /opt/ums/WEB.conf /etc/ums
Create user, change file owner
$ sudo useradd -s /sbin/nologin ums
$ sudo chown -R ums:ums /opt/ums-9.8.0/
$ sudo chown -R ums:ums /etc/ums/
Create shared folder, change ownership
$ sudo mkdir /home/ums/Music
$ sudo mkdir /home/ums/Videos
$ sudo mkdir /home/ums/Picture
$ sudo chown -R ums:ums /home/ums/
Service registration file
$ sudo vi /etc/systemd/system/ums.service
[Unit]
Description=Universal Media Server
[Service]
Type=simple
Environment="UMS_PROFILE=/etc/ums/UMS.conf"
User=ums
Group=ums
ExecStart=/bin/bash /opt/ums/UMS.sh
[Install]
WantedBy=multi-user.target
Edit config file
$ sudo vi /etc/ums/UMS.conf
# (Edit only 4 lines)
....
# (Name to display to client)
server_name = xxx xxx xxx
....
minimized = true
....
# Interface name. enp1s0 etc.
network_interface = xxxxxx
....
# Folder to publish
folders = /home/ums/Music, /home/ums/Pictures, /home/ums/Videos
....
Service start, registration
$ sudo systemctl start ums
$ sudo systemctl enable ums
Register the service in the firewall. The port used is 5001, 9001.
$ sudo vi /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>
$ sudo firewall-cmd --add-service=ums --zone=public --permanent
$ sudo firewall-cmd --reload
Create foobar2000_mobile.conf by copying the appropriate files in / opt / ums / renderers / The details are appropriate. Think if something goes wrong.
$ sudo cp /opt/ums/renderers/xxx.conf /opt/ums/renderers/foobar2000_mobile.conf
$ sudo vi /opt/ums/renderers/foobar2000_mobile.conf
----------------------------------------------------------------------------
Profile for foobar2000 mobile.
See DefaultRenderer.conf for descriptions of all the available options.
RendererName = foobar2000-mobile
Use the built-in factory icon
RendererIcon =
============================================================================
This renderer has sent the following string/s:
User-Agent: foobar2000-mobile/1.x
============================================================================
UserAgentSearch = foobar2000-mobile
UpnpDetailsSearch = foobar2000-mobile
Video = false
Audio = true
Image = false
DefaultVBVBufSize = true
H264Level41Limited = false
MediaInfo = true
MuxDTSToMpeg = true
TranscodeAudio = WAV
TranscodeFastStart = true
Supported audio formats:
Supported = f:aiff m:audio/aiff
Supported = f:flac m:audio/flac
Supported = f:m4a|3ga a:alac m:audio/x-m4a
Supported = f:m4a|3ga a:aac-lc|he-aac m:audio/x-m4a
Supported = f:m4a|mp4 m:audio/mp4
Supported = f:mpc m:audio/x-musepack
Supported = f:mp3 m:audio/mpeg
Supported = f:opus m:audio/opus
Supported = f:wav m:audio/wav
Supported = f:wavpack m:audio/x-wavpack
Supported = f:adts a:aac-lc|he-aac m:audio/aac
$ sudo chown ums:ums /opt/ums/renderers/foobar2000_mobile.conf
[https://sourceforge.net/projects/pmsforregza/files/Config/for%20UMS/] (https://sourceforge.net/projects/pmsforregza/files/Config/for%20UMS/) Download REGZA.conf from and place it in renderers
$ sudo mv Downloads/REGZA.conf /opt/ums/renderers/
$ sudo chown -R ums:ums /opt/ums/renderers/
Recommended Posts