暗无天日

=============>DarkSun的个人博客

把Orange Pi打造成影音云存储服务器

运用MiniDLNA这款软件,可以把Orange Pi变成一个家庭影音云存储设备,从而将电影、音乐分享给局域网中其他用户。

安装MiniDLNA

sudo apt install -y minidlna
Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree... 67%

Building dependency tree... 92%

Building dependency tree       

Reading state information... 0%

Reading state information... 0%

Reading state information... Done
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core libavcodec-ffmpeg56 libavformat-ffmpeg56
  libavutil-ffmpeg54 libbluray1 libexif12 libfontconfig1 libfreetype6 libgme0
  libgsm1 libid3tag0 libjpeg-turbo8 libjpeg8 libmodplug1 libmp3lame0 libnuma1
  libopenjpeg5 libopus0 liborc-0.4-0 libschroedinger-1.0-0 libshine3
  libsnappy1v5 libspeex1 libssh-gcrypt-4 libswresample-ffmpeg1 libtheora0
  libtwolame0 libva1 libvpx3 libwavpack1 libwebp5 libx264-148 libx265-79
  libxvidcore4 libzvbi-common libzvbi0
Suggested packages:
  libbluray-bdj opus-tools speex
Recommended packages:
  libaacs0 va-driver-all | va-driver
The following NEW packages will be installed:
  fontconfig-config fonts-dejavu-core libavcodec-ffmpeg56 libavformat-ffmpeg56
  libavutil-ffmpeg54 libbluray1 libexif12 libfontconfig1 libfreetype6 libgme0
  libgsm1 libid3tag0 libjpeg-turbo8 libjpeg8 libmodplug1 libmp3lame0 libnuma1
  libopenjpeg5 libopus0 liborc-0.4-0 libschroedinger-1.0-0 libshine3
  libsnappy1v5 libspeex1 libssh-gcrypt-4 libswresample-ffmpeg1 libtheora0
  libtwolame0 libva1 libvpx3 libwavpack1 libwebp5 libx264-148 libx265-79
  libxvidcore4 libzvbi-common libzvbi0 minidlna
0 upgraded, 38 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 9,855 kB of archives.
After this operation, 29.9 MB of additional disk space will be used.

0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Connecting to ports.ubuntu.com (91.189.88.150)]
                                                   
Get:1 http://ports.ubuntu.com xenial/main arm64 libexif12 arm64 0.6.21-2 [64.4 kB]

                                                   
0% [1 libexif12 14.1 kB/64.4 kB 22%]
                                    
1% [Working]
            
Get:2 http://ports.ubuntu.com xenial/universe arm64 libgsm1 arm64 1.0.13-4 [25.4 kB]

1% [2 libgsm1 12.3 kB/25.4 kB 48%]
                                  
2% [Working]
            
Get:3 http://ports.ubuntu.com xenial/main arm64 libjpeg-turbo8 arm64 1.4.2-0ubuntu3 [86.3 kB]

2% [3 libjpeg-turbo8 40.5 kB/86.3 kB 47%]
                                         
3% [Working]
            
Get:4 http://ports.ubuntu.com xenial/main arm64 liborc-0.4-0 arm64 1:0.4.25-1 [109 kB]

3% [4 liborc-0.4-0 19.5 kB/109 kB 18%]
                                      
4% [Working]
            
Get:5 http://ports.ubuntu.com xenial/universe arm64 libschroedinger-1.0-0 arm64 1.0.11-2.1build1 [265 kB]

5% [5 libschroedinger-1.0-0 11.6 kB/265 kB 4%]
                                              
7% [Working]
            
Get:6 http://ports.ubuntu.com xenial-updates/main arm64 libnuma1 arm64 2.0.11-1ubuntu1.1 [18.0 kB]

7% [6 libnuma1 18.0 kB/18.0 kB 100%]
                                    
8% [Working]
            
Get:7 http://ports.ubuntu.com xenial/main arm64 fonts-dejavu-core all 2.35-1 [1,039 kB]

8% [7 fonts-dejavu-core 12.0 kB/1,039 kB 1%]
13% [7 fonts-dejavu-core 692 kB/1,039 kB 67%]                      202 kB/s 42s
17% [Working]                                                      202 kB/s 40s
                                                                               
Get:8 http://ports.ubuntu.com xenial-security/main arm64 fontconfig-config all 2.11.94-0ubuntu1.1 [49.9 kB]

17% [8 fontconfig-config 5,313 B/49.9 kB 11%]                      202 kB/s 40s
18% [Working]                                                      202 kB/s 40s
                                                                               
Get:9 http://ports.ubuntu.com xenial-security/universe arm64 libavutil-ffmpeg54 arm64 7:2.8.11-0ubuntu0.16.04.1 [150 kB]

18% [9 libavutil-ffmpeg54 18.4 kB/150 kB 12%]                      202 kB/s 40s
19% [Working]                                                      202 kB/s 39s
                                                                               
Get:10 http://ports.ubuntu.com xenial/universe arm64 libmp3lame0 arm64 3.99.5+repack1-9build1 [111 kB]

20% [10 libmp3lame0 18.9 kB/111 kB 17%]                            202 kB/s 39s
21% [Working]                                                      202 kB/s 39s
                                                                               
Get:11 http://ports.ubuntu.com xenial/universe arm64 libopenjpeg5 arm64 1:1.5.2-3.1 [89.8 kB]

21% [11 libopenjpeg5 18.7 kB/89.8 kB 21%]                          202 kB/s 39s
22% [Working]                                                      202 kB/s 38s
                                                                               
Get:12 http://ports.ubuntu.com xenial/main arm64 libopus0 arm64 1.1.2-1ubuntu1 [135 kB]

22% [12 libopus0 8,387 B/135 kB 6%]                                202 kB/s 38s
24% [Working]                                                      202 kB/s 38s
                                                                               
Get:13 http://ports.ubuntu.com xenial/universe arm64 libshine3 arm64 3.1.0-4 [24.7 kB]

24% [13 libshine3 16.8 kB/24.7 kB 68%]                             202 kB/s 38s
24% [Working]                                                      202 kB/s 38s
                                                                               
Get:14 http://ports.ubuntu.com xenial/main arm64 libsnappy1v5 arm64 1.1.3-2 [15.6 kB]

25% [14 libsnappy1v5 15.6 kB/15.6 kB 100%]                         202 kB/s 37s
25% [Working]                                                      202 kB/s 37s
                                                                               
Get:15 http://ports.ubuntu.com xenial/main arm64 libspeex1 arm64 1.2~rc1.2-1ubuntu1 [42.3 kB]

25% [15 libspeex1 0 B/42.3 kB 0%]                                  202 kB/s 37s
26% [Working]                                                      202 kB/s 37s
                                                                               
Get:16 http://ports.ubuntu.com xenial-security/universe arm64 libswresample-ffmpeg1 arm64 7:2.8.11-0ubuntu0.16.04.1 [41.2 kB]

26% [16 libswresample-ffmpeg1 36.9 kB/41.2 kB 90%]                 202 kB/s 37s
27% [Working]                                                      202 kB/s 37s
                                                                               
Get:17 http://ports.ubuntu.com xenial/main arm64 libtheora0 arm64 1.1.1+dfsg.1-8 [148 kB]

27% [17 libtheora0 20.5 kB/148 kB 14%]                             202 kB/s 37s
29% [Working]                                                      202 kB/s 36s
                                                                               
Get:18 http://ports.ubuntu.com xenial/universe arm64 libtwolame0 arm64 0.3.13-1.2 [44.0 kB]

29% [18 libtwolame0 5,549 B/44.0 kB 13%]                           202 kB/s 36s
29% [Working]                                                      202 kB/s 36s
                                                                               
Get:19 http://ports.ubuntu.com xenial-updates/universe arm64 libva1 arm64 1.7.0-1ubuntu0.1 [39.7 kB]

29% [19 libva1 0 B/39.7 kB 0%]                                     202 kB/s 36s
30% [Working]                                                      202 kB/s 36s
                                                                               
Get:20 http://ports.ubuntu.com xenial/main arm64 libvpx3 arm64 1.5.0-2ubuntu1 [562 kB]

31% [20 libvpx3 52.4 kB/562 kB 9%]                                 202 kB/s 36s
35% [Working]                                                      202 kB/s 33s
                                                                               
Get:21 http://ports.ubuntu.com xenial-security/main arm64 libwavpack1 arm64 4.75.2-2ubuntu0.1 [62.0 kB]

35% [21 libwavpack1 14.1 kB/62.0 kB 23%]                           202 kB/s 33s
36% [Working]                                                      202 kB/s 33s
                                                                               
Get:22 http://ports.ubuntu.com xenial/main arm64 libwebp5 arm64 0.4.4-1 [159 kB]

37% [22 libwebp5 17.4 kB/159 kB 11%]                               202 kB/s 33s
38% [Working]                                                      202 kB/s 32s
                                                                               
Get:23 http://ports.ubuntu.com xenial/universe arm64 libx264-148 arm64 2:0.148.2643+git5c65704-1 [505 kB]

39% [23 libx264-148 49.2 kB/505 kB 10%]                            202 kB/s 32s
43% [Working]                                                      202 kB/s 30s
                                                                               
Get:24 http://ports.ubuntu.com xenial/universe arm64 libx265-79 arm64 1.9-3 [391 kB]

43% [24 libx265-79 8,779 B/391 kB 2%]                              202 kB/s 29s
47% [Working]                                                      202 kB/s 28s
                                                                               
Get:25 http://ports.ubuntu.com xenial/universe arm64 libxvidcore4 arm64 2:1.3.4-1 [158 kB]

47% [25 libxvidcore4 10.3 kB/158 kB 7%]                            202 kB/s 28s
48% [Working]                                                      202 kB/s 27s
                                                                               
Get:26 http://ports.ubuntu.com xenial/universe arm64 libzvbi-common all 0.2.35-10 [32.5 kB]

49% [26 libzvbi-common 32.5 kB/32.5 kB 100%]                       202 kB/s 27s
49% [Working]                                                      202 kB/s 27s
                                                                               
Get:27 http://ports.ubuntu.com xenial/universe arm64 libzvbi0 arm64 0.2.35-10 [205 kB]

49% [27 libzvbi0 0 B/205 kB 0%]                                    202 kB/s 27s
51% [Working]                                                      202 kB/s 26s
                                                                               
Get:28 http://ports.ubuntu.com xenial-security/universe arm64 libavcodec-ffmpeg56 arm64 7:2.8.11-0ubuntu0.16.04.1 [3,612 kB]

51% [28 libavcodec-ffmpeg56 8,043 B/3,612 kB 0%]                   202 kB/s 26s
64% [28 libavcodec-ffmpeg56 1,507 kB/3,612 kB 42%]                 202 kB/s 18s
81% [Working]                                                       202 kB/s 8s
                                                                               
Get:29 http://ports.ubuntu.com xenial-security/main arm64 libfreetype6 arm64 2.6.1-0.1ubuntu2.3 [267 kB]

81% [29 libfreetype6 20.5 kB/267 kB 8%]                             202 kB/s 8s
84% [Working]                                                       202 kB/s 6s
                                                                               
Get:30 http://ports.ubuntu.com xenial-security/main arm64 libfontconfig1 arm64 2.11.94-0ubuntu1.1 [117 kB]

84% [30 libfontconfig1 17.3 kB/117 kB 15%]                          202 kB/s 6s
85% [Working]                                                       202 kB/s 6s
                                                                               
Get:31 http://ports.ubuntu.com xenial/universe arm64 libbluray1 arm64 1:0.9.2-2 [103 kB]

85% [31 libbluray1 8,562 B/103 kB 8%]                               202 kB/s 6s
87% [Working]                                                       202 kB/s 5s
                                                                               
Get:32 http://ports.ubuntu.com xenial-security/universe arm64 libgme0 arm64 0.6.0-3ubuntu0.16.04.1 [113 kB]

87% [32 libgme0 15.9 kB/113 kB 14%]                                 202 kB/s 5s
88% [Working]                                                       202 kB/s 5s
                                                                               
Get:33 http://ports.ubuntu.com xenial/universe arm64 libmodplug1 arm64 1:0.8.8.5-2 [134 kB]

88% [33 libmodplug1 16.6 kB/134 kB 12%]                             202 kB/s 5s
90% [Working]                                                       202 kB/s 4s
                                                                               
Get:34 http://ports.ubuntu.com xenial/main arm64 libssh-gcrypt-4 arm64 0.6.3-4.3 [94.5 kB]

90% [34 libssh-gcrypt-4 16.4 kB/94.5 kB 17%]                        202 kB/s 4s
91% [Working]                                                       202 kB/s 4s
                                                                               
Get:35 http://ports.ubuntu.com xenial-security/universe arm64 libavformat-ffmpeg56 arm64 7:2.8.11-0ubuntu0.16.04.1 [692 kB]

91% [35 libavformat-ffmpeg56 14.9 kB/692 kB 2%]                     202 kB/s 4s
97% [Working]                                                       202 kB/s 0s
                                                                               
Get:36 http://ports.ubuntu.com xenial/universe arm64 libid3tag0 arm64 0.15.1b-11 [24.9 kB]

97% [36 libid3tag0 20.8 kB/24.9 kB 83%]                             202 kB/s 0s
98% [Working]                                                       202 kB/s 0s
                                                                               
Get:37 http://ports.ubuntu.com xenial/main arm64 libjpeg8 arm64 8c-2ubuntu8 [2,198 B]

98% [37 libjpeg8 2,198 B/2,198 B 100%]                              202 kB/s 0s
98% [Working]                                                       202 kB/s 0s
                                                                               
Get:38 http://ports.ubuntu.com xenial/universe arm64 minidlna arm64 1.1.5+dfsg-2 [123 kB]

99% [38 minidlna 12.3 kB/123 kB 10%]                                202 kB/s 0s
100% [Working]                                                      202 kB/s 0s
                                                                               
Fetched 9,855 kB in 20s (471 kB/s)
Selecting previously unselected package libexif12:arm64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 39664 files and directories currently installed.)
Preparing to unpack .../libexif12_0.6.21-2_arm64.deb ...
Unpacking libexif12:arm64 (0.6.21-2) ...
Selecting previously unselected package libgsm1:arm64.
Preparing to unpack .../libgsm1_1.0.13-4_arm64.deb ...
Unpacking libgsm1:arm64 (1.0.13-4) ...
Selecting previously unselected package libjpeg-turbo8:arm64.
Preparing to unpack .../libjpeg-turbo8_1.4.2-0ubuntu3_arm64.deb ...
Unpacking libjpeg-turbo8:arm64 (1.4.2-0ubuntu3) ...
Selecting previously unselected package liborc-0.4-0:arm64.
Preparing to unpack .../liborc-0.4-0_1%3a0.4.25-1_arm64.deb ...
Unpacking liborc-0.4-0:arm64 (1:0.4.25-1) ...
Selecting previously unselected package libschroedinger-1.0-0:arm64.
Preparing to unpack .../libschroedinger-1.0-0_1.0.11-2.1build1_arm64.deb ...
Unpacking libschroedinger-1.0-0:arm64 (1.0.11-2.1build1) ...
Selecting previously unselected package libnuma1:arm64.
Preparing to unpack .../libnuma1_2.0.11-1ubuntu1.1_arm64.deb ...
Unpacking libnuma1:arm64 (2.0.11-1ubuntu1.1) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../fonts-dejavu-core_2.35-1_all.deb ...
Unpacking fonts-dejavu-core (2.35-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../fontconfig-config_2.11.94-0ubuntu1.1_all.deb ...
Unpacking fontconfig-config (2.11.94-0ubuntu1.1) ...
Selecting previously unselected package libavutil-ffmpeg54:arm64.
Preparing to unpack .../libavutil-ffmpeg54_7%3a2.8.11-0ubuntu0.16.04.1_arm64.deb ...
Unpacking libavutil-ffmpeg54:arm64 (7:2.8.11-0ubuntu0.16.04.1) ...
Selecting previously unselected package libmp3lame0:arm64.
Preparing to unpack .../libmp3lame0_3.99.5+repack1-9build1_arm64.deb ...
Unpacking libmp3lame0:arm64 (3.99.5+repack1-9build1) ...
Selecting previously unselected package libopenjpeg5:arm64.
Preparing to unpack .../libopenjpeg5_1%3a1.5.2-3.1_arm64.deb ...
Unpacking libopenjpeg5:arm64 (1:1.5.2-3.1) ...
Selecting previously unselected package libopus0:arm64.
Preparing to unpack .../libopus0_1.1.2-1ubuntu1_arm64.deb ...
Unpacking libopus0:arm64 (1.1.2-1ubuntu1) ...
Selecting previously unselected package libshine3:arm64.
Preparing to unpack .../libshine3_3.1.0-4_arm64.deb ...
Unpacking libshine3:arm64 (3.1.0-4) ...
Selecting previously unselected package libsnappy1v5:arm64.
Preparing to unpack .../libsnappy1v5_1.1.3-2_arm64.deb ...
Unpacking libsnappy1v5:arm64 (1.1.3-2) ...
Selecting previously unselected package libspeex1:arm64.
Preparing to unpack .../libspeex1_1.2~rc1.2-1ubuntu1_arm64.deb ...
Unpacking libspeex1:arm64 (1.2~rc1.2-1ubuntu1) ...
Selecting previously unselected package libswresample-ffmpeg1:arm64.
Preparing to unpack .../libswresample-ffmpeg1_7%3a2.8.11-0ubuntu0.16.04.1_arm64.deb ...
Unpacking libswresample-ffmpeg1:arm64 (7:2.8.11-0ubuntu0.16.04.1) ...
Selecting previously unselected package libtheora0:arm64.
Preparing to unpack .../libtheora0_1.1.1+dfsg.1-8_arm64.deb ...
Unpacking libtheora0:arm64 (1.1.1+dfsg.1-8) ...
Selecting previously unselected package libtwolame0:arm64.
Preparing to unpack .../libtwolame0_0.3.13-1.2_arm64.deb ...
Unpacking libtwolame0:arm64 (0.3.13-1.2) ...
Selecting previously unselected package libva1:arm64.
Preparing to unpack .../libva1_1.7.0-1ubuntu0.1_arm64.deb ...
Unpacking libva1:arm64 (1.7.0-1ubuntu0.1) ...
Selecting previously unselected package libvpx3:arm64.
Preparing to unpack .../libvpx3_1.5.0-2ubuntu1_arm64.deb ...
Unpacking libvpx3:arm64 (1.5.0-2ubuntu1) ...
Selecting previously unselected package libwavpack1:arm64.
Preparing to unpack .../libwavpack1_4.75.2-2ubuntu0.1_arm64.deb ...
Unpacking libwavpack1:arm64 (4.75.2-2ubuntu0.1) ...
Selecting previously unselected package libwebp5:arm64.
Preparing to unpack .../libwebp5_0.4.4-1_arm64.deb ...
Unpacking libwebp5:arm64 (0.4.4-1) ...
Selecting previously unselected package libx264-148:arm64.
Preparing to unpack .../libx264-148_2%3a0.148.2643+git5c65704-1_arm64.deb ...
Unpacking libx264-148:arm64 (2:0.148.2643+git5c65704-1) ...
Selecting previously unselected package libx265-79:arm64.
Preparing to unpack .../libx265-79_1.9-3_arm64.deb ...
Unpacking libx265-79:arm64 (1.9-3) ...
Selecting previously unselected package libxvidcore4:arm64.
Preparing to unpack .../libxvidcore4_2%3a1.3.4-1_arm64.deb ...
Unpacking libxvidcore4:arm64 (2:1.3.4-1) ...
Selecting previously unselected package libzvbi-common.
Preparing to unpack .../libzvbi-common_0.2.35-10_all.deb ...
Unpacking libzvbi-common (0.2.35-10) ...
Selecting previously unselected package libzvbi0:arm64.
Preparing to unpack .../libzvbi0_0.2.35-10_arm64.deb ...
Unpacking libzvbi0:arm64 (0.2.35-10) ...
Selecting previously unselected package libavcodec-ffmpeg56:arm64.
Preparing to unpack .../libavcodec-ffmpeg56_7%3a2.8.11-0ubuntu0.16.04.1_arm64.deb ...
Unpacking libavcodec-ffmpeg56:arm64 (7:2.8.11-0ubuntu0.16.04.1) ...
Selecting previously unselected package libfreetype6:arm64.
Preparing to unpack .../libfreetype6_2.6.1-0.1ubuntu2.3_arm64.deb ...
Unpacking libfreetype6:arm64 (2.6.1-0.1ubuntu2.3) ...
Selecting previously unselected package libfontconfig1:arm64.
Preparing to unpack .../libfontconfig1_2.11.94-0ubuntu1.1_arm64.deb ...
Unpacking libfontconfig1:arm64 (2.11.94-0ubuntu1.1) ...
Selecting previously unselected package libbluray1:arm64.
Preparing to unpack .../libbluray1_1%3a0.9.2-2_arm64.deb ...
Unpacking libbluray1:arm64 (1:0.9.2-2) ...
Selecting previously unselected package libgme0:arm64.
Preparing to unpack .../libgme0_0.6.0-3ubuntu0.16.04.1_arm64.deb ...
Unpacking libgme0:arm64 (0.6.0-3ubuntu0.16.04.1) ...
Selecting previously unselected package libmodplug1:arm64.
Preparing to unpack .../libmodplug1_1%3a0.8.8.5-2_arm64.deb ...
Unpacking libmodplug1:arm64 (1:0.8.8.5-2) ...
Selecting previously unselected package libssh-gcrypt-4:arm64.
Preparing to unpack .../libssh-gcrypt-4_0.6.3-4.3_arm64.deb ...
Unpacking libssh-gcrypt-4:arm64 (0.6.3-4.3) ...
Selecting previously unselected package libavformat-ffmpeg56:arm64.
Preparing to unpack .../libavformat-ffmpeg56_7%3a2.8.11-0ubuntu0.16.04.1_arm64.deb ...
Unpacking libavformat-ffmpeg56:arm64 (7:2.8.11-0ubuntu0.16.04.1) ...
Selecting previously unselected package libid3tag0.
Preparing to unpack .../libid3tag0_0.15.1b-11_arm64.deb ...
Unpacking libid3tag0 (0.15.1b-11) ...
Selecting previously unselected package libjpeg8:arm64.
Preparing to unpack .../libjpeg8_8c-2ubuntu8_arm64.deb ...
Unpacking libjpeg8:arm64 (8c-2ubuntu8) ...
Selecting previously unselected package minidlna.
Preparing to unpack .../minidlna_1.1.5+dfsg-2_arm64.deb ...
Unpacking minidlna (1.1.5+dfsg-2) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up shairport-sync (2.8.0-1) ...
Setting up libexif12:arm64 (0.6.21-2) ...
Setting up libgsm1:arm64 (1.0.13-4) ...
Setting up libjpeg-turbo8:arm64 (1.4.2-0ubuntu3) ...
Setting up liborc-0.4-0:arm64 (1:0.4.25-1) ...
Setting up libschroedinger-1.0-0:arm64 (1.0.11-2.1build1) ...
Setting up libnuma1:arm64 (2.0.11-1ubuntu1.1) ...
Setting up fonts-dejavu-core (2.35-1) ...
Setting up fontconfig-config (2.11.94-0ubuntu1.1) ...
Setting up libavutil-ffmpeg54:arm64 (7:2.8.11-0ubuntu0.16.04.1) ...
Setting up libmp3lame0:arm64 (3.99.5+repack1-9build1) ...
Setting up libopenjpeg5:arm64 (1:1.5.2-3.1) ...
Setting up libopus0:arm64 (1.1.2-1ubuntu1) ...
Setting up libshine3:arm64 (3.1.0-4) ...
Setting up libsnappy1v5:arm64 (1.1.3-2) ...
Setting up libspeex1:arm64 (1.2~rc1.2-1ubuntu1) ...
Setting up libswresample-ffmpeg1:arm64 (7:2.8.11-0ubuntu0.16.04.1) ...
Setting up libtheora0:arm64 (1.1.1+dfsg.1-8) ...
Setting up libtwolame0:arm64 (0.3.13-1.2) ...
Setting up libva1:arm64 (1.7.0-1ubuntu0.1) ...
Setting up libvpx3:arm64 (1.5.0-2ubuntu1) ...
Setting up libwavpack1:arm64 (4.75.2-2ubuntu0.1) ...
Setting up libwebp5:arm64 (0.4.4-1) ...
Setting up libx264-148:arm64 (2:0.148.2643+git5c65704-1) ...
Setting up libx265-79:arm64 (1.9-3) ...
Setting up libxvidcore4:arm64 (2:1.3.4-1) ...
Setting up libzvbi-common (0.2.35-10) ...
Setting up libzvbi0:arm64 (0.2.35-10) ...
Setting up libavcodec-ffmpeg56:arm64 (7:2.8.11-0ubuntu0.16.04.1) ...
Setting up libfreetype6:arm64 (2.6.1-0.1ubuntu2.3) ...
Setting up libfontconfig1:arm64 (2.11.94-0ubuntu1.1) ...
Setting up libbluray1:arm64 (1:0.9.2-2) ...
Setting up libgme0:arm64 (0.6.0-3ubuntu0.16.04.1) ...
Setting up libmodplug1:arm64 (1:0.8.8.5-2) ...
Setting up libssh-gcrypt-4:arm64 (0.6.3-4.3) ...
Setting up libavformat-ffmpeg56:arm64 (7:2.8.11-0ubuntu0.16.04.1) ...
Setting up libid3tag0 (0.15.1b-11) ...
Setting up libjpeg8:arm64 (8c-2ubuntu8) ...
Setting up minidlna (1.1.5+dfsg-2) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...

配置 /etc/minidlna.conf

# 媒体文件目录
media_dir=/media/usb0
# 数据库目录
db_dir=/var/cache/minidlna
# 访问的端口号
port=8200
# DLNA服务名称,默认为minidlna
friendly_name=minidlna
# 自动发现media_dir中的新媒体
inotify=yes

重启MiniDLNA

sudo systemctl restart minidlna

使用MiniDLNA

在Pad上查看UPNP/DLNA Media Servers就能看到一个名为 orangepipc2:minidlna 的服务器了。

当更新了服务器上的媒体文件后,可以通过命令 sudo systemctl force-reload minidlna.service 来刷新媒体库

刷新媒体库后可以访问 http://orangepipc2:8200 来查看MiniDLNA中共享的各类资源数量

使用Docker简化安装

如果你觉得上面操作太麻烦,那么可以直接使用Docker帮你搞定。

docker run -d \
       --name "minidlna" \
       --net=host \
       -p 8200:8200/tcp \
       -v ${media_dir}:/data \
       -e FRIENDLY_NAME="DLNA Server" \
       -e MEDIA_DIR=/data \
       forumi0721alpineaarch64/alpine-aarch64-minidlna:latest
c4d9853eff63c893aef3ee8334c032ebf34e4f6741eefd24ef45c007f5c60525