安裝 Universal Media Server on CentOS 7

提供Linux技術與網站架設經驗交流、服務與相關問題討論
回覆文章
ssref
系統管理員
文章: 4
註冊時間: 2017-02-28, 00:56

安裝 Universal Media Server on CentOS 7

文章 ssref » 2017-03-02, 11:12

1. Install the dependencies (this only needs to be done once):

UMS requires a Java Virtual Machine to run. Which version depends on which binary package was downloaded.
UMS for Java 7 would need version 7 or newer, UMS for Java 8 would need version 8 or newer.
The most common JVM's to use on Linux is openjdk. Which, if any, of the packages that's available depends on your distro, it's version and what sources are enabled.

Install JVM on Debian/Ubuntu and derivates: Debian 8 need to use backports to install openjdk-8 at the time of writing. It's not possible to cover all the sources needed for the different versions in this document.
If the package isn't found, make sure to run apt-get update to make sure the sources are refreshed.
To install openjdk-7 run:
$ sudo apt-get install openjdk-7-jre
To install openjdk-8 run:
$ sudo apt-get install openjdk-8-jre

To install openjdk-7 run:
$sudo yum install java-1.7.0-openjdk
To install openjdk-8 run:
$sudo yum install java-1.8.0-openjdk


UMS use MediaInfo to get information about media files. It can be run without it, but media handling will suffer as UMS won't have a detailed information available.

$sudo yum install mediainfo

You can optionally install dcraw (to decode raw images from digital cameras) and VLC (to use as a transcoding engine).
Just omit one if you don't want that.
$sudo yum install dcraw vlc

UMS uses tsMuxeR as a transcoding engine. tsMuxeR is 32 bit only, so installation of some 32 bit libraries are necessary on 64 bit platforms if you want to use tsMuxeR as a transcoding engine.

$ sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686 libstdc++.i686

You can optionally install P7Zip, UMS will use it for archives browsing.
$ sudo yum install p7zip

2. Download the tarball:

If wget isn't installed, run: sudo apt-get install wget

wget http://www.fosshub.com/Universal-Media- ... -Java8.tgz

3. Extract the tarball into a ums- directory:

#tar xzvf ums-<version>.tgz
tar xzvf UMS-6.6.0-Java8.tgz

4. Run (UMS should NOT be run as root):

cd ums-<version>
$./UMS.sh

If after that you get again problem, you can run the following debug command line:
cd ums-<version>
$sudo sh -x UMS.sh

5. The user may have to manually copying these files to his profile folder:

UMS.conf
WEB.conf
ffmpeg.webfilters (used for trailers.apple.com and perhaps others)
VirtualFolders.conf
UMS access some files in the ums- directory (the working directory).
Other files will be looked for in ~/.config/UMS

回覆文章

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 5 位訪客