Serviio media server linux

Serviio Wiki

User Tools

Site Tools

This installation is based on 18.04.2 LTS, Minimal Edition and 20.04 Netboot (but this should work for any version of Ubuntu 18.04 — 20.04, or any desktop variant). At the time of the updating this document (July 1, 2020), the newest version of Serviio is 2.1.

Please read the entire procedure before installing so you are familiar with the process before “taking on the terminal”.

This was tested using an Intel i5-4th Generation computer with 16GB of RAM

Since the Minimal install also doesn’t contain the packages of its big brothers, this will give you the information you need to install all the packages required to run Serviio from a Ubuntu Minimal 18.04 (or Ubuntu Server) installation. The process is the same on the other Ubuntu variants, but some of the software packages will be pre-installed.

1. Download and Install Ubuntu 18.04 — 20.04. (Any variant will work with this guide: Ubuntu Desktop, Minimal, Netboot, Server, Lubuntu, Kubuntu, Mint, Bodhi, etc.).

2. Make sure you have all the updates by running the following two commands at least once:

You will need it later as an active account. Pass the following command to enable root login:

It will ask for your user password, followed by the new submission for the password for root, and a confirmation of that password.

4. Install a few things. (Some of these will already be installed if you have a desktop variant, of which Ubuntu will warn you and then install the rest, but all are recommended if you installed Ubuntu Netboot or Server.) Run the following commands:

It will take a while to download and install. The command will install a package for network metrics, the software to bind file types, executables, and repositories, the Java Runtime Environment, the video transcoder, picture decoder/thumbnailer, and file downloader, as well as all their dependencies.

5. Installing Serviio.

a. Change to the directory where you will be installing Serviio.

b. Download the Serviio software.

c. Extract the software.

d. Create a soft link to the Serviio directory.

e. Have the root user on your computer take ownership of the Serviio files.

f. Run the following command to start Serviio.

g. Go to a browser to test and make sure Serviio is running by going to the following web page. (You can use the “ifconfig” command on the Linux machine to find the IP address if you do not know it.) Replace (IPaddress) with the Serviio machine IP address while attached to the same network. If you see the console page, you have done well…

If you have a graphical desktop on your computer, you can also open the Serviio console from the command line.

h. Remove the installation file.

i. Next, we need to create a service to make sure Serviio starts when the machine reboots. Enter the following command to create a file named serviio.service in the system service directory:

j. Put in the following information:

Читайте также:  Нет wlan0 kali linux virtualbox

Hit ctrl+o to save the file and ctrl+x to exit the editor.

k. Enable the Serviio Service with the following commands, executed in order:

After running the enable command, it should tell you that the OS added the service to the multi-user target.

l. Run the “sudo reboot” command to reboot and make sure the Serviio service starts correctly.

Congratulations! Serviio is installed.

Again, you should be able to access the console using:

Источник

How to Install Serviio a DLNA Media server in Linux

Serviio is a free DLNA media server. It allows you to stream your media files (music, video or images) to any DLNA capable device on your network, this can include TVs, Blue-ray players, Smartphones, other computers, etc. Unlike other media servers like Plex or XBMC that focus more on the DLNA part and it does so greatly.

I personally run it on my home server sharing 1 TB of media to 3 TVs, 2 tablets, a few smartphones and it works flawlessly.

Install Serviio

You will need to make sure you have installed Java version 6 or greater on the system (you can do so using the command «java -version») and the ffmpeg package.

You can download the Linux package from Serviio download page, you can use wget to do this and decompress it:

Then I suggest renaming the folder and move it to a location you desire, I choose /usr/local/share/:

Making Serviio run at boot time

To make it run at boot time you will have to create a file in /etc/init/ named serviio.conf with the following content:

And it will run the server during boot time.

You can also stop and start the service running the following commands:

and check it’s status with

Sharing media with Serviio

Now you can run the console with the following command:

In the first tab of the console you will see a list of devices on your network, while the Generic profile works well on most devices, since this application is focused on DLNA it has a number of profiles you can select, those profiles offer the best settings for that particular device.

For example the device with the IP address 192.168.1.201 is a Samsung TV, so I selected the appropriate Samsung TV profile for my model as you can see on the orange row:

Next go to the Library tab, here using the Add Local or Add path (for remote content) you can add content to share with other devices on your local network:

There are 5 check boxes on each line, the first 3 boxes identify the content as video, audio or photo files, the next is meta data (it tells the media server to download information about this media files from the internet, like thumbnails and movie information) and the next will tell Serviio to continue scanning that folder for updates.

Now you can access the service remotely, for example on my Samsung TV, when I press the Source button the DLNA servers will show like this:

From there you can access all the video, audio and photo files you shared, it will look something like this:

Serviio is a great service to have on your home network, it doesn’t spend a lot of resources and it does the job of sharing media files flawlessly so uou can just enjoy the content on any of your devices.

Источник

Media Streaming Server

Generic

Installation

Configuration

Console

My device doesn’t see Serviio

This could be caused by you having multiple network cards / interfaces on the machine and Serviio using wrong one. Select the right network card in the ‘Bound IP address’ field in Network Settings section in the console or pass the system variable serviio.boundAddr including the Serviio server’s IP address when starting the server.

Also make sure that TCP port 8895 and UDP 1900 are open in your firewall.

If you are on a Linux based OS, make sure you set up multicast routes properly.

There have been problems with some routers’ IGMP settings. Turning IGMP proxy off resolved the issue.

How to start/stop/restart the Serviio service on Windows

Serviio (by default) runs as a Windows service on Windows machines and is started automatically when the machine boots up. Locate the Serviio service and perform the operation you require (click Start, click Run, type services.msc, and then click OK)

Читайте также:  Поменять папку сохранения скриншотов mac os

How to start/stop/restart the Serviio service on OSX

Serviio (by default) runs as a daemon (run by root) on OSX machines and is started automatically when the machine boots up. You can run these commands in Terminal to perform the commands:

sudo launchctl load -F /Library/LaunchDaemons/org.serviio.server.plist

stop the server

sudo launchctl unload /Library/LaunchDaemons/org.serviio.server.plist

How to uninstall Serviio on OSX

To uninstall Serviio from your OSX machine, you have to stop the Serviio daemon, stop the Serviio-Console application. Remove the ServiioConsole from your Applications folder. Then remove the server by executing these commands in Terminal:

sudo rm -rf /Library/Application\ Support/Serviio
sudo rm /Library/LaunchDaemons/org.serviio.server.plist
rm -rf

Where is Serviio installed

Serviio is installed, by default, in these locations

  • Windows - c:\Program Files\Serviio
  • OSX - /Library/Application Support/Serviio

My Windows Serviio service doesn't start for a user with no password

To run the Windows service under a user with no password you have to change the default security setting in Windows:

  1. Open Local Security Policy under Control panel / Administrative tools
  2. Select Security Settings / Local Policies / Security Options
  3. Find policy Accounts: Limit local account use of blank passwords to console logon only
  4. Change its value to Disabled

If you have a Home edition of Windows, the above settings will not be available. You will have to edit your registry instead (using regedit.exe), although it is recommended for experienced users only. Find key

and change its value from 1 to 0.

Alternatively you can run the service under another user or the Local System account (it might cause problems with file sharing and FFmpeg execution) or change your current user to have a password.

My files (on remote drive) are not scanned

Make sure the user that runs Serviio server/service has got access to the shared folders. If you are on Windows, check that the user running the Windows service has got access. To run the service as a different user go to Services (from the Windows Control Panel → Administrative Tools or typing "Services.msc" in the Run command on Start menu), select Serviio, right-click -> Properties, Log On tab, enter the user's details and restart the service.

To access a NAS device the exact same set of credentials must be created on the NAS device. The Windows credentials must be a local user and not a domain user. The user must have "Run As Service" rights. The remote path must be entered as a UNC path in the Serviio Console (e.g. \\server\folder)), mapped drive letters will not work since the user running the Serviio service is not aware of your mapped drives.

Cannot share a folder on external drive or Downloads folder (OSX Catalina)

OSX Catalina introduced tight security constraints for software running on your Mac. This results in you having to manually allow Serviio access to your resources. If you want to add a shared folder that is now restricted (e.g. Downloads, Desktop, a remote drive), follow these steps:

  • go to the Serviio console, add a Shared folder and click Browse (you will not see the restricted folders at this moment)
  • in your operating system, go to System Preferences -> Security & Privacy -> Provacy -> Full Disk Access
  • there should be an unselected java entry (this is Serviio)
  • click the lock at the bottom, enter your password and select the checkbox
  • go back to the Serviio console, add a Shared folder and click Browse (you should now see all your folders and remote drives)

My files with accents in their names are not detected

If you are on a Linux based OS, make sure your system locale / default character set is set to UTF-8. Examples on how to make this work for Linux are provided in the forum here and here.

What to do when playback stutters

The quality of media streaming may depend on a few main variables

  • the quality of your home network - wired network is always preferable, especially for streaming HD videos. If you are on a wireless network, make sure the signal is strong, the device is located within a reasonable distance of the router, and that the WiFi channel you are using is being used by as few of your neighbours as possible. It is also always a good idea to invest in a quality router, designed for high bitrate operation.
  • the power of the computer running Serviio - this only relates to transcoded videos, which might require considerable resources from your PC to be able to play smoothly, especially CPU. If your computer has multi-core CPU, you can assign additional CPU cores to the transcoder in the console.
  • the way the file has been encoded - some high quality video files might be 'too much' for your device with its limited processing power and memory and you might experience stuttering in fast moving scenes
Читайте также:  Как сделать папку users windows 10

Are there other Console User Interfaces available?

Apart from the Serviio Console, you can now use a few others.

Why my videos don't appear in Movies or Series category?

If you can see your videos in the Folders category, but not in Series or Movies category, it's due to the descriptive metadata being missing. Make sure you name your file according to the rules and also confirm the metadata exists on one of the online databases.

Some files won't play on Linux

It is possible the file needs to be transcoded. Check your Serviio log file for any FFmpeg errors. Make sure your FFmpeg is up-to-date, ideally built from sources provided on the Download page.

You might find some information on how to build FFmpeg on the Wiki.

How do I watch a video from a website?

Serviio supports watching online videos and listening to online audio files. You can add live stream addresses, RSS feeds (for example your favourite podcasts) or content from complex websites, like YouTube. You will have to install plugins for some feeds and all the complex websites in order to access the content.

Can I access the Console or MediaBrowser via HTTPS?

You can access the Console securely on

You can access the MediaBrowser securely on

You will need to make sure that you have these ports open in your firewall (Serviio will not do that automatically for you).

Please note that viewing video over https in MediaBrowser is extremely CPU intensive and you might experience stuttering.

How to upgrade Serviio to the latest version?

If you are upgrading to the latest version and want to keep all your settings and media library entries, do not uninstall your current Serviio version - a simple installation over the current one will do.

Windows
  1. Simply run the installer and use the same installation location of your current version
Linux
  1. Stop Serviio server and console
  2. remove all folders inside the installation folder, apart from library and plugins
  3. copy files from the Serviio installation archive over the current installation
  1. Simply run the installer and use the same installation location of your current version

Note: This only works for upgrading, not downgrading.

How to setup Serviio Pro for access from the internet

You have to setup your router to enable access you your Serviio server from outside your network. Follow the setup guide.

How to access the console from a different machine than the server

Simply open your favourite web bowser and enter this URL:

Make sure that port 23423 is open on the server machine.

How to pass system properties to Serviio

System properties are provided to the server in the form of -D

Windows
  • If you use the Windows service to run the server edit file user.vmoptions (located in the config directory) and add the property there (each property per new line)
  • If you use serviio.bat to run the server edit the file and add the variable to JAVA_OPTS property.
Linux

Edit file serviio.sh and add the variable to JAVA_OPTS property.

Edit file /Library/Application Support/Serviio/bin/serviio.sh and add the variable to the executable command.

What do the colored dots in renderers list mean?

These represent the status of devices on your network. Green means the device is currently on. Red means the device is currently off. Amber means the device doesn't provide the means to figure out whether it's on or not.

Источник

Оцените статью