{"id":33324,"date":"2021-02-01T14:43:15","date_gmt":"2021-02-01T14:43:15","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=33324"},"modified":"2021-02-01T14:43:15","modified_gmt":"2021-02-01T14:43:15","slug":"install-setup-universal-media-server-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/02\/install-setup-universal-media-server-ubuntu-20-04\/","title":{"rendered":"How to Install and Setup Universal Media Server in Ubuntu 20.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/02\/ums-logo.jpg\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-full wp-image-33325\" \/><\/p>\n<p>This tutorial is going to show you how to install and setup Universal Media Server in Ubuntu 20.04 Desktop and Server.<\/p>\n<p>Universal Media Server, UMS in short, is a DLNA-compliant UPnP media server allows streaming media files to a wide range of devices including video game consoles, smart TVs, smartphones, and Blu-ray players.<\/p>\n<p><b>1. Install required libraries:<\/b> <\/p>\n<p>Media transcoding is accomplished through packages from AviSynth, FFMpeg, MEncoder, and VLC, you have to first open terminal and run command to make sure these packages installed:<\/p>\n<pre style=\"border:none;\">sudo apt install mediainfo dcraw vlc mplayer mencoder<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/02\/ums-prereqs.png\" alt=\"\" width=\"600\" height=\"148\" class=\"aligncenter size-full wp-image-33326\" \/><\/p>\n<p><b>2. Download Universal Media Server:<\/b><\/p>\n<p>The latest tarballs are available to download at github project page. Select download (run <code style=\"border:none;\">uname -m<\/code> to tell system type):<\/p>\n<ul>\n<li><b>x86<\/b> package for old 32-bit machines.<\/li>\n<li><b>x86_64<\/b> package for 64-bit machines.<\/li>\n<li><b>arm64 \/ armhf<\/b> for Rasperry Pi devices.<\/li>\n<\/ul>\n<p style=\"text-align:center;\"><a href='https:\/\/github.com\/UniversalMediaServer\/UniversalMediaServer\/releases' class='arconix-button arconix-button-large arconix-button-tan' target=\"_blank\" >Download Universal Media Server<\/a><\/p>\n<p>At the moment, the latest release is version 10.0.1. If you&#8217;re running Ubuntu Server, use this command to download it (<i>replace URL in the command if a newer version is available<\/i>):<\/p>\n<pre style=\"border:none;\">wget -c https:\/\/github.com\/UniversalMediaServer\/UniversalMediaServer\/releases\/download\/10.0.1\/UMS-10.0.1-x86_64.tgz<\/pre>\n<p><b>3. Decompress the tarball<\/b><\/p>\n<p>Run following 2 commands will navigate to user&#8217;s Downloads folder, then extract the UMS package <b>\/opt<\/b>, and finally rename result folder from &#8216;<i>ums-10.0.1<\/i>&#8216; to &#8216;<i>ums<\/i>&#8216;.<\/p>\n<pre style=\"border:none;\">cd Downloads<\/pre>\n<pre style=\"border:none;\">sudo tar -zxvf UMS-10.0.1-x86_64.tgz -C \/opt\/ --transform s\/ums-10.0.1\/ums\/<\/pre>\n<p>Skip <code style=\"border:none;color:#000;\">cd Downloads<\/code> if it was downloaded via wget command.<\/p>\n<p>And replace &#8220;<b>UMS-10.0.1-x86_64.tgz<\/b>&#8221; if a newer version was downloaded, also do change version number in &#8220;<b>ums-10.0.1<\/b>&#8220;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/02\/extract-ums.png\" alt=\"\" width=\"600\" height=\"128\" class=\"aligncenter size-full wp-image-33327\" \/><\/p>\n<h4>4. Run UMS as system service<\/h4>\n<p>If everything goes well, you should be able to <b>run the Universal Media Server via command<\/b>:<\/p>\n<pre style=\"border:None;\">\/opt\/ums\/UMS.sh<\/pre>\n<p><b>For Ubuntu Desktop<\/b>, it brings up a setup dialog to choose language, start minimized or not, choose network, and media folder etc.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/02\/ums-setup.png\" alt=\"\" width=\"600\" height=\"277\" class=\"aligncenter size-full wp-image-33328\" \/><\/p>\n<p>Then it offers an user interface with more configurations, log view, and more.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/02\/ums-window.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/02\/ums-window600.png\" alt=\"\" width=\"600\" height=\"354\" class=\"aligncenter size-full wp-image-33330\" \/><\/a><\/p>\n<p><b>For Ubuntu Server without UI<\/b>, edit the <b>.config\/UMS\/UMS.conf<\/b> file for configurations. By default, it steams all files under user home. You can add &#8220;folder = \/PATH\/TO\/MEDIA1,\/PATH\/TO\/MEDIA2&#8221; to set media folder. For more, read the <b>UMS.conf<\/b> file under source tarball.<\/p>\n<p>After starting the server go to <b>http:\/\/server_ip:9001<\/b> in your web browser to check out if the server is working.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/02\/ums-browser.png\" alt=\"\" width=\"600\" height=\"317\" class=\"aligncenter size-full wp-image-33333\" \/><\/p>\n<p><b>To make it run as systemd service<\/b>, open terminal and run command:<\/p>\n<pre style=\"border:None;\">sudo nano \/etc\/systemd\/system\/ums.service<\/pre>\n<p>It will create an empty file and open with nano command line text editor. Paste (<i>Ctrl+Shift+V<\/i>) following lines and <b>change <i>ji<\/i> to your user name<\/b>. Also change memory limit from 500M to another value if you want.<\/p>\n<pre style=\"background:none;\">[Unit]\r\nDescription=Run UMS as Ji\r\nDefaultDependencies=no\r\nAfter=network.target\r\n\r\n[Service]\r\nType=simple\r\nUser=ji\r\nGroup=ji\r\nExecStart=\/opt\/ums\/UMS.sh\r\nTimeoutStartSec=0\r\nRemainAfterExit=yes\r\nEnvironment=\"UMS_MAX_MEMORY=500M\"\r\n\r\n[Install]\r\nWantedBy=default.target<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/02\/ums-service.png\" alt=\"\" width=\"600\" height=\"316\" class=\"aligncenter size-full wp-image-33331\" \/><\/p>\n<p>Save changes by pressing <b>Ctrl+X<\/b>, follow with <b>Y<\/b>, and hit Enter.<\/p>\n<p>Finally run commands to reload systemd daemon, enable and start UMS service. <\/p>\n<pre style=\"border:none;\">sudo systemctl daemon-reload<\/pre>\n<pre style=\"border:none;\">sudo systemctl enable ums.service<\/pre>\n<pre style=\"border:none;\">sudo systemctl start ums.service<\/pre>\n<p>And check the service status via command:<\/p>\n<pre style=\"border:none;\">sudo systemctl status ums.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/02\/ums-service-status.png\" alt=\"\" width=\"600\" height=\"349\" class=\"aligncenter size-full wp-image-33332\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial is going to show you how to install and setup Universal Media Server in Ubuntu 20.04 Desktop and Server. Universal Media Server, UMS in short, is a DLNA-compliant UPnP media server allows streaming media files to a wide range of devices including video game consoles, smart TVs, smartphones, and Blu-ray players. 1. Install [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2020],"class_list":["post-33324","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-media-server"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=33324"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33324\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=33324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=33324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=33324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}