Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: minidnla ext4  (Прочитано 2008 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Gennadiy007

  • Автор темы
  • Новичок
  • *
  • Сообщений: 28
    • Просмотр профиля
minidnla ext4
« : 10 Июня 2017, 15:47:21 »
Добрый день. Не уверен правильно ли я выбрал раздел форума.
Вобчем установил minidnla

настроил /etc/minidlna.conf на /home/user/shares где находится пару видяшек, minidnla его находит все ОК.

У меня есть другой HDD 3 tb. монтируется в fstab
/dev/sdb4 /media/user/mnt/3TB ext4 rw,nosuid,nodev,relatime,user,data=ordered 0 0
установил параметр media_dir=/media/user/mnt/3TB/shares/Public
перезапуск демона.... minidnla не видит ни одного файла
на всякий поменял владельца папки Public на текущего.
перезапуск демона.... Не помогает
Проверил права на Public - чтение запись.

может кто сталкивался с подобной ситуацией?

Оффлайн Azure

  • Почётный модератор
  • Старожил
  • *
  • Сообщений: 6017
  • Windows10, i3wm on Debian9, Manjaro20.0
    • Просмотр профиля
Re: minidnla ext4
« Ответ #1 : 10 Июня 2017, 16:26:29 »
другой HDD 3 tb
Может просто не успел все перечитать?
В Линукс можно сделать ВСЁ что угодно, достаточно знать КАК !

Оффлайн archuser

  • Активист
  • *
  • Сообщений: 695
    • Просмотр профиля
Re: minidnla ext4
« Ответ #2 : 10 Июня 2017, 17:06:56 »
Gennadiy007, sudo minidlnad -R

Оффлайн DimanBG

  • Старожил
  • *
  • Сообщений: 1316
    • Просмотр профиля
Re: minidnla ext4
« Ответ #3 : 11 Июня 2017, 00:11:58 »
Gennadiy007, в группу minidlna себя добавь.

Оффлайн Gennadiy007

  • Автор темы
  • Новичок
  • *
  • Сообщений: 28
    • Просмотр профиля
Re: minidnla ext4
« Ответ #4 : 11 Июня 2017, 09:46:46 »
Gennadiy007, в группу minidlna себя добавь.
Добавил, не помогает.

sudo minidlnad -R
Это тоже.
Может просто не успел все перечитать?
Прошли сутки, как был 0 видео 0 аудио 0 изображений так и до сих пор.

может есть аналог minidlna  с минимумом плюшек, однако который умеет читать с присоединенного жесткого?

Оффлайн DimanBG

  • Старожил
  • *
  • Сообщений: 1316
    • Просмотр профиля
Re: minidnla ext4
« Ответ #5 : 11 Июня 2017, 11:24:54 »
Gennadiy007, пользователя minidlna попробуй в свою группу добавить.
Прошли сутки, как был 0 видео 0 аудио 0 изображений так и до сих пор.
Что там в логах то? Я не долго этот сервер использовал, уже не помню подробно. У меня с ним ТВ не все файлы видел. Вендор ТВ сказал - plex.
И в сети полно инструкций по установке и настройке minidlna. Да и здесь, на форуме, была тема.

Оффлайн archuser

  • Активист
  • *
  • Сообщений: 695
    • Просмотр профиля
Re: minidnla ext4
« Ответ #6 : 11 Июня 2017, 17:07:31 »
Цитата: archuser от 10 Июнь 2017, 19:06:56
sudo minidlnad -R
Это тоже.
Так базу надо почистить. Каталог задается в переменной db_dir конфигурационного файла /etc/minidlna.conf (по умолчанию /var/cache/minidlna). Просто удалите все содержимое этого каталога и запустите sudo minidlnad -R. Эта команда сразу же заново создаст базу и кэш постеров.
Заодно покажите конфигурационный файл.

Оффлайн Gennadiy007

  • Автор темы
  • Новичок
  • *
  • Сообщений: 28
    • Просмотр профиля
Re: minidnla ext4
« Ответ #7 : 13 Июня 2017, 12:27:43 »
Что там в логах то?
Так базу надо почистить
Сервер остановил, файл базы удалил, лог удалил чтобы новый был, а то там куча всего
Ничего не срабатывает.
Привожу конфиг
# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
# server.
#
# Unless otherwise noted, the commented out options show their default value.
#
# On Debian, you can also refer to the minidlna.conf(5) man page for
# documentation about this file.

# Specify the user name or uid to run as.
#user=media #сюда написал слово media просто от фонаря

# Path to the directory you want scanned for media files.
#
# This option can be specified more than once if you want multiple directories
# scanned.
#
# If you want to restrict a media_dir to a specific content type, you can
# prepend the directory name with a letter representing the type (A, P or V),
# followed by a comma, as so:
#   * "A" for audio    (eg. media_dir=A,/var/lib/minidlna/music)
#   * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
#   * "V" for video    (eg. media_dir=V,/var/lib/minidlna/videos)
#   * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
media_dir=/media/user/mnt/3TB/shares/Public/

# Set this to merge all media_dir base contents into the root container
# (The default is no.)
#merge_media_dirs=no

# Path to the directory that should hold the database and album art cache.
#db_dir=/var/cache/minidlna

# Path to the directory that should hold the log file.
#log_dir=/var/log

# Type and minimum level of importance of messages to be logged.
#
# The types are "artwork", "database", "general", "http", "inotify",
# "metadata", "scanner", "ssdp" and "tivo".
#
# The levels are "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#
# The types are comma-separated, followed by an equal sign ("="), followed by a
# level that applies to the preceding types. This can be repeated, separating
# each of these constructs with a comma.
#
# The default is to log all types of messages at the "warn" level.
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# Use a different container as the root of the directory tree presented to
# clients. The possible values are:
#   * "." - standard container
#   * "B" - "Browse Directory"
#   * "M" - "Music"
#   * "P" - "Pictures"
#   * "V" - "Video"
#   * Or, you can specify the ObjectID of your desired root container
#     (eg. 1$F for Music/Playlists)
# If you specify "B" and the client device is audio-only then "Music/Folders"
# will be used as root.
#root_container=.

# Network interface(s) to bind to (e.g. eth0), comma delimited.
# This option can be specified more than once.
#network_interface=

# Port number for HTTP traffic (descriptions, SOAP, media transfer).
# This option is mandatory (or it must be specified on the command-line using
# "-p").
port=8200

# URL presented to clients (e.g. http://example.com:80).
#presentation_url=/

# Name that the DLNA server presents to clients.
# Defaults to "hostname: username".
#friendly_name=

# Serial number the server reports to clients.
# Defaults to 00000000.
serial=681019810597110

# Model name the server reports to clients.
#model_name=Windows Media Connect compatible (MiniDLNA)

# Model number the server reports to clients.
# Defaults to the version number of minidlna.
#model_number=

# Automatic discovery of new files in the media_dir directory.
#inotify=yes

# List of file names to look for when searching for album art.
# Names should be delimited with a forward slash ("/").
# This option can be specified more than once.
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# Strictly adhere to DLNA standards.
# This allows server-side downscaling of very large JPEG images, which may
# decrease JPEG serving performance on (at least) Sony DLNA products.
#strict_dlna=no

# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#enable_tivo=no

# Notify interval, in seconds.
#notify_interval=895

# Path to the MiniSSDPd socket, for MiniSSDPd support.
#minissdpdsocket=/run/minissdpd.sock

# Always set SortCriteria to this value, regardless of the SortCriteria
# passed by the client
# e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
#force_sort_criteria=

# maximum number of simultaneous connections
# note: many clients open several simultaneous connections while streaming
#max_connections=50

Лог:
[2017/06/13 21:12:58] minidlna.c:1041: warn: Starting MiniDLNA version 1.1.5.
[2017/06/13 21:12:58] minidlna.c:364: warn: Creating new database at /var/cache/minidlna/files.db
[2017/06/13 21:12:58] minidlna.c:1081: warn: HTTP listening on port 8200
[2017/06/13 21:12:58] playlist.c:125: warn: Parsing playlists...
[2017/06/13 21:12:58] playlist.c:259: warn: Finished parsing playlists.
[2017/06/13 21:12:59] inotify.c:198: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [0] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
[2017/06/13 21:14:17] minidlna.c:952: error: MiniDLNA is already running. EXITING.
[2017/06/13 21:17:16] minidlna.c:952: error: MiniDLNA is already running. EXITING.
[2017/06/13 21:17:25] minidlna.c:952: error: MiniDLNA is already running. EXITING.
[2017/06/13 21:17:50] minidlna.c:154: warn: received signal 15, good-bye
[2017/06/13 21:17:51] minidlna.c:1041: warn: Starting MiniDLNA version 1.1.5.
[2017/06/13 21:17:51] minidlna.c:364: warn: Creating new database at /var/cache/minidlna/files.db
[2017/06/13 21:17:51] minidlna.c:1081: warn: HTTP listening on port 8200
[2017/06/13 21:17:51] playlist.c:125: warn: Parsing playlists...
[2017/06/13 21:17:51] playlist.c:259: warn: Finished parsing playlists.
[2017/06/13 21:17:52] inotify.c:198: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [0] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.

Ошибка error: MiniDLNA is already running. EXITING. возникает когда я ввожу команду sudo minidlnad -R, по этому полностью перезапускаю сервис force-reload

Оффлайн saint-denis

  • Активист
  • *
  • Сообщений: 305
    • Просмотр профиля
Re: minidnla ext4
« Ответ #8 : 21 Июня 2017, 22:35:42 »
Если есть иксы - Kodi, нет иксов - Mediatomb (Gerbera) или Plex (не опенсорс, но бесплатный).

 

Страница сгенерирована за 0.031 секунд. Запросов: 25.