これは作業録です
- TrueNAS の Plex 使おうかと思ったけど Playlist (.m3u) の扱いが微妙そうだったので見送り
ReadyMedia (MiniDLNA)
- HW
- NUC7CJYH
- その内 OrangePi とかに移すかもしれない
- SW
% uname -a
Linux ubuntu 5.4.0-126-generic #142-Ubuntu SMP Fri Aug 26 12:12:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
% cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
NFS mount
% sudo apt install nfs-common
% sudo mount -t nfs 192.168.2.4:/mnt/main/data /srv
Install
% sudo apt install minidlna
conf
- トラック番号ソート強制
- symlink 有効
diff --git a/etc/minidlna.conf b/etc/minidlna.conf.org
1 diff --git a/etc/minidlna.conf.org b/etc/minidlna.conf
2 index 0c40731..f77ba89 100644
3 --- a/etc/minidlna.conf.org
4 +++ b/etc/minidlna.conf
5 @@ -23,7 +23,7 @@
6 # * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
7 # * "V" for video (eg. media_dir=V,/var/lib/minidlna/videos)
8 # * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
9 -media_dir=/var/lib/minidlna
10 +media_dir=A,/srv/minidlna
11
12 # Set this to merge all media_dir base contents into the root container
13 # (The default is no.)
14 @@ -78,7 +78,7 @@ port=8200
15
16 # Name that the DLNA server presents to clients.
17 # Defaults to "hostname: username".
18 -#friendly_name=
19 +friendly_name=MiniDLNA
20
21 # Serial number the server reports to clients.
22 # Defaults to the MAC address of nework interface.
23 @@ -122,11 +122,11 @@ album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
24 # Always set SortCriteria to this value, regardless of the SortCriteria
25 # passed by the client
26 # e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
27 -#force_sort_criteria=
28 +force_sort_criteria=+upnp:originalTrackNumber
29
30 # maximum number of simultaneous connections
31 # note: many clients open several simultaneous connections while streaming
32 #max_connections=50
33
34 # set this to yes to allow symlinks that point outside user-defined media_dirs.
35 -#wide_links=no
36 +wide_links=yes
管理画面
http://***.***.***.***:8200/
Playlist
- 音楽フォルダと同じ場所に
*.m3u
で突っ込めば OK
Android
- VLC で動作確認 OK