Linux home server media server

Содержание
  1. DLNA сервер для Linux Debian / Ubuntu на базе MiniDLNA
  2. Содержание
  3. Установка MiniDLNA
  4. Установка Sudo
  5. Настройка MiniDLNA
  6. Запуск MiniDLNA
  7. Сканирование медиа-библиотеки MiniDLNA
  8. Установка MiniDLNA из исходников
  9. Сборка стабильной версии MiniDLNA
  10. Сборка текущей разрабатываемой версии MiniDLNA из Git-репозитория
  11. Установка
  12. Отключение запроса способа отображения файлов: All Files, Folders
  13. Отключение виртуальных папок в MiniDLNA версии 1.1.4 и выше
  14. Отключение виртуальных папок в MiniDLNA версии 1.1.3 и ниже
  15. Ссылки
  16. 12 Best Media Server Software for Linux in 2021
  17. 1. Kodi – Home Theater Software
  18. Kodi Features:
  19. How to Install Kodi in Linux
  20. 2. PLEX – Media Server
  21. Plex Features:
  22. How to Install Plex in Linux
  23. 3. Subsonic – Personal Media Streamer
  24. Subsonic Features:
  25. How to Install Subsonic in Linux
  26. 4. Madsonic – Music Streamer
  27. Madsonic Features:
  28. How to Install Madsonic in Linux
  29. 5. Emby – Open Media Solution
  30. Emby Features:
  31. How to Install Emby in Linux
  32. 6. Gerbera – UPnP Media Server
  33. Gerbera Features:
  34. How to Install Gerbera in Linux
  35. 7. Red5 Media Server
  36. How to Install Red5 in Linux
  37. 8. Jellyfin
  38. How to Install Jellyfin in Linux
  39. 9. Universal Media Server
  40. How to Install Universal Media Server in Linux
  41. 10. LibreELEC – Open Embedded Linux Entertainment Center
  42. OpenELEC Features
  43. How to Install LibreELEC in Linux
  44. 11. OSMC – Open Source Media Center
  45. How to Install OSMC in Linux
  46. 12. Ampache
  47. 13. Tvmobili – Smart TV Media Server [Discontinued]
  48. Tvmobili Features:
  49. How to Install Tvmobili in Linux
  50. 14. OpenFlixr – Media Server [Discontinued]
  51. How to Install OpenFLIXR in Linux
  52. If You Appreciate What We Do Here On TecMint, You Should Consider:

DLNA сервер для Linux Debian / Ubuntu на базе MiniDLNA

Настраиваем домашний DLNA-сервер на базе MiniDLNA, он же ReadyMedia в Linux Debian или Ubuntu Server.

Содержание

Установка MiniDLNA

Простейшим способом установки является, установка пакета из репозитория вашего дистрибутива:

Установка Sudo

Если в вашей системе отсутствует команда sudo, желательно ее установить. Sudo нам потребуется в процессе настройки, для тестирования прав доступа к папкам с медиа-файлами.

Добавляем пользователя в группу sudo:

Выходим из системы и входим заново, чтобы изменение группы вступило в силу.

Настройка MiniDLNA

Правим файл конфигурации:

Как минимум, потребуется задать путь к папке с медиа-файлами, параметр: «media_dir». Также можно задать имя сервера, отображаемое клиентом, параметр: «friendly_name».

В случае если наш DLNA-сервер по совместительству является интернет-шлюзом, также необходимо задать внутренний сетевой интерфейс, параметр: «network_interface».

Параметры в комментариях файла конфигурации содержат значения по умолчанию.

Проверяем параметры init-скрипта /etc/default/minidlna:

Обычно корректировка не требуется. Если файл отсутствует, при первичной установке из исходников, копируем листинг:

Поскольку служба работает под пользователем с ограниченными правами, публикуемые папки и файлы должны быть доступны на чтение для всех пользователей, следовательно, иметь разрешения 644: » rw- r— r— «, для файлов и 755: » rwx r-x r-x «, для папок.

Проверяем доступность для каждой папки, заданной в minidlna.conf, командой:

Если папка недоступна, задаем права доступа:

Вышестоящие папки также должны быть доступны на чтение всем пользователям. Проверяем доступность на чтение каждой папки, указанной в пути. Для вышестоящих папок используем chmod без ключа -R, если не требуется сброс разрешений для всех дочерних файлов и папок.

В качестве альтернативы смене разрешений, можно запустить MiniDLNA от имени пользователя или группы-владельца файлов. Для этого необходимо задать параметры USER и GROUP в /etc/default/minidlna, и сменить владельца папки /var/lib/minidlna командой:

Запуск MiniDLNA

Проверяем, работает ли служба, также смотрим параметры запуска:

Проверяем, слушается ли порт:

В случае успешного старта, лог должен быть примерно следующим:

Если видим: » WARNING: Inotify max_user_watches [8192] is low. «, необходимо увеличить число дескрипторов слежения inotify до 100 000. Для этого в файл /etc/sysctl.conf добавим строки:

Или копипастом команды:

Изменение параметра вступит в силу после перезагрузки системы.

Открываем в браузере http://адрес.сервера:8200, видим количество файлов в библиотеке, начиная с версии 1.1.2, также отображается список подключенных клиентов.

Настройка DLNA/UPnP-AV сервера завершена.

Если вместо сообщений и папок-контейнеров MiniDLNA отображаются знаки вопроса, отключаем локализацию.

Если был установлен пакет:

При установке из исходников:

Перезапускаем MiniDLNA с повторным сканированием библиотеки.

Сканирование медиа-библиотеки MiniDLNA

При появлении ошибок в каталоге, необходимо выполнить повторное сканирование файлов.

Для этого удалим базу Minidlna и перезапустим службу:

Для сканирования медиа-библиотеки при каждом старте системы можно задать ключ запуска: «-R» в параметре DAEMON_OPTS в файле /etc/default/minidlna. Сканирование большой медиа-библиотеки существенно нагружает диск, что может замедлить загрузку системы.

Полное формирование каталога может занять несколько минут. Сканирование папок выполняется в порядке их объявления в конфиге. Файлы из небольших папок, объявленных в конфиге выше, появятся в каталоге в самом начале процесса сканирования. Крупные папки с редко воспроизводимым контентом имеет смысл размещать в конфиге последними.

Установка MiniDLNA из исходников

Дальнейший материал был написан во времена Debian 7 и не тестировался на современных версиях.
Как минимум, инит-скрипты и юнит-файлы берем из deb-пакета.

Устанавливаем сборочные зависимости:

Если при установке зависимостей возникает ошибка: «Невозможно найти пакет с исходным кодом для minidlna». Значит, пакет MiniDLNA отсутствует в вашей версии дистрибутива. В этом случае придется установить зависимости вручную:

Создаем папку для исходников в профиле пользователя и переходим в нее:

Сборка стабильной версии MiniDLNA

Загружаем исходники последней стабильной версии:

С ключом —trust-server-name, будет сохранено исходное имя файла: «minidlna-1.1.4.tar.gz», номер версии может отличаться. Если ключ не указан, файл будет сохранен под именем: «download».

Переходим в папку с исходниками:

Сборка текущей разрабатываемой версии MiniDLNA из Git-репозитория

Для сборки из Git-репозитория, потребуются дополнительные пакеты:

Переходим в папку с исходниками:

Создаем скрипт автоконфигурации:

Установка

Удаляем пакет, если он был установлен ранее:

Устанавливаем собранную версию:

При первичной установке, копируем minidlna.conf в папку /etc:

Читайте также:  Install windows sdk samples

Если скрипт остался от оригинального пакета Debian, достаточно исправить путь к исполняемому файлу, выделенный красным. Если файл отсутствует, копируем следующий листинг:

Для дистрибутивов на базе Debian 6 в init-скрипте необходимо скорректировать параметр PIDDIR, для современных дистрибутивов корректировка не требуется.

Разрешаем запуск скрипта:

Активируем запуск init-скрипта в rc.d:

По умолчанию служба запускается под пользователем minidlna, создаем учетную запись:

Также, при первичной установке, потребуется создать файл параметров init-скрипта (/etc/default/minidlna), рассмотренный далее, в процессе настройки.

При установке из исходников, minidlna.conf требует дополнительной корректировки. В пакете Debian пути по умолчанию были изменены, теперь их необходимо прописать явно.

Задаем путь для хранения базы данных, используем домашнюю папку пользователя minidlna, созданного на предыдущем шаге:

Задаем путь к лог-файлу:

Отключение запроса способа отображения файлов: All Files, Folders

Настраиваем отображение содержимого папок Music, Pictures, Video без промежуточного запроса способа их отображения.

Частично вопрос можно решить установкой параметра: «root_container=B» в minidlna.conf. При этом сам запрос не отключается, но содержимое папок отображается непосредственно в корневом контейнере.

В случае если устройство, в качестве корневого контейнера, отображает свой собственный стартовый экран, корректировка файла конфигурации не даст результата. Для полного отключения запроса способа отображения файлов, придется внести изменения в код программы.

Отключение виртуальных папок в MiniDLNA версии 1.1.4 и выше

Для версии 1.1.4 применяем патч, и добавляем параметр disable_extended_directories=yes в minidlna.conf. Данный патч войдет в состав следующей версии MiniDLNA, для более поздних версий достаточно задать параметр в файле конфигурации.

Получаем и устанавливаем пакет с исходниками, как описано в разделе: «Установка или обновление MiniDLNA из исходников».

Переходим в папку с исходниками:

Загружаем и применяем патч:

Собираем и устанавливаем исправленную версию:

Редактируем файл конфигурации:

Перезапускаем службу с повторным сканированием медиа-библиотеки:

В системах на базе systemd для повторного сканирования потребуется удалить базу данных вручную:

Отключение виртуальных папок в MiniDLNA версии 1.1.3 и ниже

Получаем и устанавливаем пакет с исходниками, как описано в разделе: «Установка или обновление MiniDLNA из исходников».

Переходим в папку с исходниками:

Необходимые константы идентификаторов папок объявлены в scanner.h

Нам необходимо при запросе папок MUSIC_ID, VIDEO_ID и IMAGE_ID, перенаправить клиента в MUSIC_DIR_ID, VIDEO_DIR_ID и IMAGE_DIR_ID соответственно.

Обработка запросов клиента реализована в файле upnpsoap.c.

Сохраняем резервную копию файла:

Активируем поиск (F6), ищем процедуру: «BrowseContentDirectory».

В начале процедуры выполняется разбор SOAP/XML-запроса, затем его обработка и возврат результата.

Разбор запроса завершается формированием отладочного сообщения:

Далее реализован выбор корневого контейнера в зависимости от конфигурационного параметра root_container:

Сразу после этого блока и перед блоком с запросами к БД добавляем код перенаправления папок для видео, музыки и изображений:

В итоге правленный фрагмент должен выглядеть следующим образом:

Собираем и устанавливаем исправленную версию:

Проверяем результат. Папки должны открываться без запроса способа отображения.

Ссылки

Список DLNA-серверов и клиентов в Википедии.

Источник

12 Best Media Server Software for Linux in 2021

A media server is simply a specialized file server or computer system for storing media (digital videos/movies, audio/music, and images) that can be accessed over a network.

In order to set up a media server, you need computer hardware (or perhaps a cloud server) as well as software that enables you to organize your media files and makes it easier to stream and/or share them with friends and family.

In this article, we will share with you a list of the 10 best media server software for Linux systems. By the time you complete this article, you will be able to choose the most appropriate software to set up your home/office/cloud media server powered by a Linux system.

1. Kodi – Home Theater Software

Kodi (previously known as XBMC) is a free and open-source, highly customizable media server software. It is cross-platform and runs on Linux, Windows, macOS; iOS, and Android. It is more than just a media server; it’s an ideal entertainment center software with a fabulous user interface and several other media server software appliances are based on it.

Kodi Home Theater Software

Kodi enables you to play movies/videos, music/audio, podcasts, view images, and other digital media files from your local computer or a network server as well as the internet.

Kodi Features:

  • Runs on a wide variety of devices.
  • It is user-friendly.
  • Supports a web interface.
  • Supports a variety of user-created Add-ons.
  • Supports televisions and remote controls.
  • Has a highly configurable interface via skins.
  • Allows you to watch and record live TV.
  • Supports importing pictures into a library.
  • Allows you to browse, view, sort, filter, or even start a slideshow of your pictures and much more.

How to Install Kodi in Linux

To install Kodi on Ubuntu-based distributions, use the following PPA to install the latest version.

To install Kodi on Debian, use the following command, as Kodi is available in the default “main” Debian repository.

To install Kodi on Fedora use pre-built RPMFusion packages as shown.

2. PLEX – Media Server

Plex is a powerful, secure and fully-featured, and easy-to-install media server software. It runs on Linux, Windows, macOS, and many other platforms.

Plex Home Media Server

It supports almost all major file formats and allows you to organize your media in a central point for easy access. Plex has an easy-to-navigate interface, and a collection of useful apps for a variety of devices: phones, tablets, gaming consoles, streaming devices, and smart TVs.

Plex Features:

  • Supports encrypted connections with multiple user accounts.
  • Allows you to easily pick and choose what to share.
  • Offers parental control functionality.
  • Supports mobile sync which offers offline access to your media files.
  • Supports flinging of video from one device to another.
  • Also supports cloud sync.
  • Supports audio fingerprinting and automatic photo-tagging.
  • Has a media optimizer and much more.
Читайте также:  Windows для lenovo e530

How to Install Plex in Linux

To install Plex in Ubuntu, Fedora, and CentOS distributions, go to the Download section and choose your Linux distribution architecture (32-bit or 64-bit) to download DEB or RPM package and install it using your default package manager.

3. Subsonic – Personal Media Streamer

Subsonic is a secure, reliable, and easy-to-use personal media server and streamer. It runs on Linux, Windows, macOS, and Synology NAS. It is very customizable and supports all major media formats. There are more than 25 supported apps that you can use to stream music directly on your mobile phone.

Subsonic Personal Media Streamer

Subsonic can operate with multiple users and any number of players at the same time. And it allows you to play movies/videos or music/audio files on any compatible DLNA/UPnP devices.

Subsonic Features:

  • Has a highly configurable UI (user interface).
  • Supports secure connections over HTTPS/SSL.
  • Integrates with the best web services.
  • Supports up to 28 languages and comes with 30 different themes.
  • Offers chat features.
  • Allows you to access your server using your own address i.e https://yourname.subsonic.org.
  • Supports authentication in LDAP and Active Directory.
  • Has an integrated podcast receiver.
  • Supports setting upload and download bandwidth limits and lots more.

How to Install Subsonic in Linux

To install Subsonic in Debian/Ubuntu and Fedora/CentOS distributions, you need to first install Java 8 or Java 9 using the following commands on your respective distributions.

Next, go to the Subsonic Download section to grab the .deb or .rpm package and install it using your default package manager.

4. Madsonic – Music Streamer

Madsonic is an open-source, flexible, and secure web-based media server and media streamer developed using Java. It runs Linux, macOS, Windows, and other Unix-like systems. If you are a developer, there is a free REST API (Madsonic API) that you use to develop your own apps, addons, or scripts.

Madsonic Music Streamer

Madsonic Features:

  • Easy to use and comes with jukebox functionality.
  • It is highly flexible and scalable with an intuitive web interface.
  • Offers search and index functionalities with Chromecast support.
  • Has built-in support for your Dreambox receiver.
  • Supports authentication in LDAP and Active Directory.

How to Install Madsonic in Linux

To install Madsonic in Debian/Ubuntu and Fedora/CentOS distributions, you need to first install Java 8 or Java 9 using the following commands on your respective distributions.

Next, go to the Madsonic Download section to grab the .deb or .rpm package and install it using your default package manager.

5. Emby – Open Media Solution

Emby is a powerful, easy-to-use, and cross-platform media server software. Simply install the emby server on your machine running Linux, FreeBSD, Windows, macOS, or on NAS. You can also grab the emby app on Android, iOS, Windows or run the web client from a browser or still use the emby TV app.

Emby Media Solution

Once you have it, it will help you manage your personal media libraries, such as home videos, music, photos, and many other media formats.

Emby Features:

  • A beautiful UI with supports for mobile sync and cloud sync.
  • Offers powerful web-based tools for managing your media files.
  • Supports parental control.
  • It automatically detects DLNA devices.
  • Enables easy sending of movies/videos, music, pictures, and live TV shows to Chromecast and much more.

How to Install Emby in Linux

To install Emby in Ubuntu, Fedora, and CentOS distributions, go to the Emby Download section and choose your Linux distribution to download DEB or RPM package and install it using your default package manager.

6. Gerbera – UPnP Media Server

Gerbera is a free open source, powerful, flexible, and full-featured UPnP (Universal Plug and Play) media server. It comes with a simple and intuitive web user interface for easily configuring your web server.

Gerbera UPnP Media Server

Gerbera has a highly flexible configuration, allowing you to control the behavior of various features of the server. It allows you to browse and playback media via UPnP.

Gerbera Features:

  • It is easy to set up.
  • Supports metadata extraction from mp3, ogg, FLAC, jpeg, etc. files.
  • Supports user-defined server layout based on extracted metadata.
  • Support for ContentDirectoryService container updates.
  • Comes with Exif thumbnail support.
  • Supports automatic directory rescans (timed, inotify).
  • Offers a nice Web UI with a tree view of the database and the file system, allowing to add/remove/edit/browse media.
  • Support for external URLs (create links to internet content and serve them via UPnP to your renderer).
  • Supports flexible media format transcoding via plugins/scripts and much more.

How to Install Gerbera in Linux

To install Gerbera in Ubuntu, Fedora, and CentOS distributions, follow our installation guide that explains the installation of Gerbera – UPnP Media Server in Linux and also shows how to stream media files using Gerbera on your home network.

Alternatively, you can install Gerbera in Linux distributions using:

7. Red5 Media Server

Red5 is an open-source, powerful, and multi-platform media streaming server for streaming live audio/video, recording client streams (FLV and AVC+AAC), remote object sharing, data synchronization, and much more. It is developed to be flexible with an effortless plugin architecture that offers customization for any live streaming scenario.

Red5 Media Server

How to Install Red5 in Linux

To install Red5 in Linux, follow the installation instructions on Github to get started with the server.

8. Jellyfin

Jellyfin is an open-source and free media streaming system that enables you to control and manage the stream of your media. It is an alternative to Emby and Plex, which offers media streaming from a dedicated server to end-user devices through multiple applications.

Читайте также:  Windows для начинающих pdf

Jellyfin – Media Streaming System

How to Install Jellyfin in Linux

Install Jellyfin via Apt repository in Debian-based distributions.

For other Linux distributions, go to the Jellyfin download page and follow the installation instructions.

9. Universal Media Server

Universal Media Server is a DLNA-compatible UPnP media solution that created as a fork of PS3 Media Server. It enables you to stream media files to a wide range of devices that includes TVs, smartphones, gaming consoles, computers, audio receivers, and Blu-ray players.

Universal Media Server

How to Install Universal Media Server in Linux

To install UMS in Linux, you need to download UMS tarball and compile it from the source.

10. LibreELEC – Open Embedded Linux Entertainment Center

LibreELEC is a lightweight Linux-based operating system for setting up your machine as a media server using Kodi. It is built from scratch for the sole purpose of running Kodi media server software.

LibreELEC – Open Embedded Linux

It allows you to organize your movie collections; offers you a picture browser, music and audiobook player, TV and personal video recorder, and a TV show management functionality. It is highly extensible through a great number of addons.

OpenELEC Features

  • Organize your movie collections and play your media with relevant info, subtitles, and fanart.
  • Manually watch all your photos or use a handy slide show with a zoom effect.
  • Browe, watch and record your favorite TV channels.
  • Manage your TV series and keep track of your favorite episodes.
  • Listen to audio files in various formats with artists’ photos and album covers.
  • Easy expandable with Addons.

How to Install LibreELEC in Linux

As we said, LibreELEC is a small Linux-based operating system built from scratch as a platform to turn your computer into a Kodi media center. To install it, go to the LibreELEC download section and choose your Linux distribution to download DEB or RPM package, and install it using your default package manager.

11. OSMC – Open Source Media Center

OSMC is a free open source, simple, easy-to-use, full-featured media server software and media streamer for Linux. It is based on the Kodi media server software. It supports all well-known media formats and a variety of sharing protocols. In addition, it comes with a remarkable interface. Once you have installed it, you get easy updates and apps to use.

OSMC – Open Source Media Center

How to Install OSMC in Linux

To install OSMC in Debian/Ubuntu, Fedora, and RHEL/CentOS distributions, first go to the OSMC release section and download compiled version of OSMC, and install it.

12. Ampache

Ampache is an open-source audio and video streaming media server and file manager that enables you to host and manage your own audio/video collection on your server. It can stream your music and videos to your computer, smartphone, smart TV, or tablet using Ampache’s web interface from anywhere using an internet connection.

Ampache – Music Streaming Server

For Ampache installation, please visit the wiki page.

13. Tvmobili – Smart TV Media Server [Discontinued]

Tvmobili is a lightweight, high-performance, cross-platform media server software that runs on Linux, Windows, and macOS; NAS as well as embedded/ARM devices. It is easy to install and in addition, tvmobili is fully integrated with iTunes and offers amazing support for full 1080p High Definition (HD) videos.

Tvmobili Media Server

Tvmobili Features:

  • Easy to install, high-performance media server.
  • Fully integrated with iTunes (and iPhoto on Macs).
  • Supports full 1080p High Definition (HD) video.
  • Lightweight media server.

How to Install Tvmobili in Linux

To install Tvmobili in Ubuntu, Fedora, and CentOS distributions, go to the Tvmobili Download section and choose your Linux distribution to download DEB or RPM package and install it using your default package manager.

14. OpenFlixr – Media Server [Discontinued]

OpenFlixr is a virtual, flexible, energy-efficient, and fully automated media server software. It uses several other applications to achieve its overall functions, including Plex as a media server (to organizes movies, series, music, and pictures and streams them), Ubooquity for serving comics and ebooks, and a web-based reader. It supports automated downloading and serving of media, encrypted connections, and smart auto-updating.

OpenFLIXR Media Server

How to Install OpenFLIXR in Linux

To install OpenFLIXR, the only thing you need is visualization software such as VirtualBox, KVM, Vmware, etc.

Once you have visualization software installed, Download OpenFLIXR and then import in the hypervisor, power on, and let it sit back for a couple of minutes till installation finishes, after that go to http://IP-Address/setup to setup OpenFLIXR.

Conclusion

In this article, we shared with you some of the best media server software for Linux systems. If you know any media server software for Linux missing in the list above, just hit us up via the feedback form below.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

We are thankful for your never ending support.

Источник

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