How to install and set up a universal media server on Ubuntu 20.04

This tutorial will show you how to install and set up a universal media server on your Ubuntu 20.04 desktop and server.

Universal Media Server, or UMS for short, is a DLNA-compliant UPnP media server that can stream media files to a variety of devices such as video game consoles, smart TVs, smartphones, and Blu-ray players.

1. Install the required libraries.

Media transcoding is done via AviSynth, FFMpeg, MEncoder, and VLC packages. You must first open a terminal and run the command to verify that these packages are installed.

sudo apt install mediainfo dcraw vlc mplayer mencoder

How to install and set up a universal media server on Ubuntu 20.04

2. Download Universal Media Server.

You can download the latest tarball from the github project page.Select download (execute) uname -m To convey the system type):

  • X86 package for older 32-bit machines.
  • X86_64 package for 64-bit machines.
  • Arm64 / armhf for Rasperry Pi devices.

Download Universal Media Server

At the moment, the latest release is version 10.0.1. If you’re running Ubuntu Server, use the following command to download (replace the URL of the command if a new version is available):

wget -c https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/10.0.1/UMS-10.0.1-x86_64.tgz

3. Unzip the tarball

The following two commands will take you to the user’s download folder, extract the UMS package / opt, and finally rename the result folder from “ums-10.0.1” to “ums”.

cd Downloads
sudo tar -zxvf UMS-10.0.1-x86_64.tgz -C /opt/ --transform s/ums-10.0.1/ums/

skip cd Downloads When downloaded with the wget command.

Also, if a new version is downloaded, replace “UMS-10.0.1-x86_64.tgz”. Also change the version number of “ums-10.0.1”.

How to install and set up a universal media server on Ubuntu 20.04

4. Run UMS as a system service

If all goes well, you should be able to run the universal media server with the following command:

/opt/ums/UMS.sh

For Ubuntu desktops, setup dialogs such as language selection, whether to start minimization, network selection, media folder, etc. are displayed.

How to install and set up a universal media server on Ubuntu 20.04

Then it provides a user interface with more configurations, log views, and more.

How to install and set up a universal media server on Ubuntu 20.04

For Ubuntu servers without a UI, edit the .config / UMS / UMS.conf file for configuration. By default, it steams all files under the user home. You can set the media folder by adding “folder = / PATH / TO / MEDIA1, / PATH / TO / MEDIA2”. Read the UMS.conf file under the source tarball for more information.

After starting the server, access http: // server_ip: 9001 with a web browser to see if the server is working.

How to install and set up a universal media server on Ubuntu 20.04

To run as a systemd service, open a terminal and run the command.

sudo nano /etc/systemd/system/ums.service

Create an empty file and open it in the nano command line text editor. Paste the following line (Ctrl + Shift + V) and change ji to your username. Also, change the memory limit from 500M to another value if necessary.

[Unit]
Description=Run UMS as Ji
DefaultDependencies=no
After=network.target

[Service]
Type=simple
User=ji
Group=ji
ExecStart=/opt/ums/UMS.sh
TimeoutStartSec=0
RemainAfterExit=yes
Environment="UMS_MAX_MEMORY=500M"

[Install]
WantedBy=default.target

How to install and set up a universal media server on Ubuntu 20.04

Press Ctrl + X to save your changes, press Y, and press Enter.

Finally, run the command to reload the systemd daemon, enable and start the UMS service.

sudo systemctl daemon-reload
sudo systemctl enable ums.service
sudo systemctl start ums.service

Then check the service status via the command.

sudo systemctl status ums.service

How to install and set up a universal media server on Ubuntu 20.04

Share this:

  • More
Sidebar