Bootstrap

CB2-2CARD的openSUSE安装&NAS环境配置

1. 简介

CB2-2CARD全称cubieboard2-dualcard在极大地保留了硬件兼容性和cubieboard2原有的绝大部分的传统优秀基因的基础上,把cubieboard2的板载的Nand Flash换成一个TF卡槽,是一个为了适应中国国情,于2019年推出的一个可玩性更高的开源硬件。

有幸的是笔者完整的保留一款全新未拆封版本,鉴于笔者手头长期使用的树莓派3B+将用于其他项目,期望将这款经典款替换现有自建低功耗NAS的基础功能。

  1. MiniDLNA (多媒体服务器,挂一块USB硬盘)
  2. samba (文件共享服务)
  3. FTP (文件传输服务)
  4. linux 24 hours application container (自建发布版本应用服务器)

2. 规格

Cubieboard2-DualCard

  • SOC: AllWinner SOC A20, ARM Cortex-A7 Dual-Core,1GHz, ARM Mali 400 MP2 complies withOpenGL ES 2.0/1.1
  • Memory: 1GB DDR3@480MHz (960MTPS)
  • Storage: eMMC, 4GB default, 8GB is an option
  • TF Card: Micro SD card slot, up to 32GB
  • SATA: Support 2.5 inch HDD/SSD up to 2TB
  • Display: HDMI Port A, HDMI V1.4a, support 1080P@60Hz resolution output
  • Ethernet: 10M/100M RJ45
  • IR: Infrared remote receiver Philips standard
  • Audio: Support 3.5 headphone jack for Audio output, Support 3.5 jack forLine-In
  • Power: DCIN 5V/2.5A power, Support USB power input
  • Keys: Power key, Uboot key for reflashing the ROM
  • LEDs: Power Led x 1, User Led x 2

3. 系统安装

3.1 Linux/Unix稳定镜像

鉴于要作为家用自建的NAS服务器,系统首先需要稳定,这个系统需要包括以下组件:

  1. bootloader (uboot)
  2. kernel
  3. system(Linux/Unix/ramdisk etc)

最好是能找到一个稳定的系统镜像,类似ubuntu for Raspberry Pi或者raspbian等。

注:原厂链接或者原厂官网提供的大部分已经过时,且未见维护人员更新。可见这款产品已经没落了,所以这里笔者还是需要通过G网来找资源。

这里有一个小插曲,就是被劣质tF卡。这个坑可能是很早之前笔者贪图便宜买了或者什么产品购买的时候送的8GB的一张卡。可能存在内部逻辑块损坏已经到了极限或者就是缩水的tF卡(目前U盘鉴定器压根跑一下就退出,正常的U盘都能跑完),导致镜像烧录一直不能成功。

功夫不负有心人,在多次尝试后,果断采用16GB的一张tF卡,筛选了这张问题卡。


openSUSE:镜像 //2023年1月18日仍然有人在维护

3.2 基础功能更新&安装

  1. 【Mandatory】ssh
  2. 【Mandatory】vim/nano
  3. 【Option】vnc server

注1:openSUSE默认账号密码:{root, linux}
注2:鉴于该板子启动信息在串口上输出,需要使用USB转串口的硬件,请小伙伴提前准备。
注3:推荐的openSUSE-Leap-15.3-ARM-JeOS-cubieboard2没有ifconfig命令,所以前期需要在串口上操作,命令: sudo minicom;具体配置,请大家详细查阅minicon的使用方法,这里不做展开。

3.2.1 更新源

$ sudo apt-get update
Retrieving repository 'Main Repository' metadata .................................................................................................................[done]
Building repository 'Main Repository' cache ......................................................................................................................[done]
Retrieving repository 'Main Update Repository' metadata ..........................................................................................................[done]
Building repository 'Main Update Repository' cache ...............................................................................................................[done]
All repositories have been refreshed.

3.2.2 升级系统

$ sudo apt-get upgrade
Loading repository data...
Reading installed packages...

The following 3 packages are going to be upgraded:
  openSUSE-build-key yast2-bootloader yast2-packager

The following 2 NEW packages are going to be installed:
  checkmedia libmediacheck5

3 packages to upgrade, 2 new.
Overall download size: 451.2 KiB. Already cached: 0 B. After the operation, additional 188.5 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package libmediacheck5-5.4-1.1.armv7hl                                                                                  (1/5),  67.6 KiB (156.2 KiB unpacked)
Retrieving: libmediacheck5-5.4-1.1.armv7hl.rpm .......................................................................................................[done (2.6 KiB/s)]
Retrieving package checkmedia-5.4-1.1.armv7hl                                                                                      (2/5),  18.1 KiB ( 29.9 KiB unpacked)
Retrieving: checkmedia-5.4-1.1.armv7hl.rpm ...........................................................................................................[done (1.2 KiB/s)]
Retrieving package yast2-packager-4.3.22-3.4.1.armv7hl                                                                             (3/5), 234.0 KiB (874.2 KiB unpacked)
Retrieving: yast2-packager-4.3.22-3.4.1.armv7hl.rpm ..................................................................................................[done (3.4 KiB/s)]
Retrieving package yast2-bootloader-4.3.30-3.6.1.armv7hl                                                                           (4/5), 109.6 KiB (256.4 KiB unpacked)
Retrieving: yast2-bootloader-4.3.30-3.6.1.armv7hl.rpm ................................................................................................[done (2.6 KiB/s)]
Retrieving package openSUSE-build-key-1.0-lp153.4.11.1.noarch                                                                      (5/5),  21.9 KiB ( 15.8 KiB unpacked)
Retrieving: openSUSE-build-key-1.0-lp153.4.11.1.noarch.rpm .......................................................................................................[done]

Checking for file conflicts: .....................................................................................................................................[done]
(1/5) Installing: libmediacheck5-5.4-1.1.armv7hl .................................................................................................................[done]
(2/5) Installing: checkmedia-5.4-1.1.armv7hl .....................................................................................................................[done]
(3/5) Installing: yast2-packager-4.3.22-3.4.1.armv7hl ............................................................................................................[done]
(4/5) Installing: yast2-bootloader-4.3.30-3.6.1.armv7hl ..........................................................................................................[done]
(5/5) Installing: openSUSE-build-key-1.0-lp153.4.11.1.noarch .....................................................................................................[done]

3.2.3 基础功能安装

笔者这里主要用来做服务器的,所以x11就不装了。

注:openSUSE默认已经装了vim和ssh,所以其实就装个nano就好。

$ sudo apt-get install vim nano
Retrieving repository 'Main Repository' metadata .................................................................................................................[done]
Building repository 'Main Repository' cache ......................................................................................................................[done]
Loading repository data...
Reading installed packages...
'vim' is already installed.
No update candidate for 'vim-8.0.1568-5.15.1.armv7hl'. The highest available version is already installed.
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  nano nano-lang

2 new packages to install.
Overall download size: 792.5 KiB. Already cached: 0 B. After the operation, additional 3.1 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package nano-4.9.2-bp153.1.1.armv7hl                                                                                    (1/2), 492.1 KiB (  1.6 MiB unpacked)
Retrieving: nano-4.9.2-bp153.1.1.armv7hl.rpm .......................................................................................................[done (190.6 KiB/s)]
Retrieving package nano-lang-4.9.2-bp153.1.1.noarch                                                                                (2/2), 300.5 KiB (  1.6 MiB unpacked)
Retrieving: nano-lang-4.9.2-bp153.1.1.noarch.rpm ...................................................................................................[done (477.1 KiB/s)]

Checking for file conflicts: .....................................................................................................................................[done]
(1/2) Installing: nano-4.9.2-bp153.1.1.armv7hl ...................................................................................................................[done]
(2/2) Installing: nano-lang-4.9.2-bp153.1.1.noarch ...............................................................................................................[done]

3.3 OpenSUSE系统情况

$ cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.3"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.3"
PRETTY_NAME="openSUSE Leap 15.3"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.3"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"


$ zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias             | Name                      | Enabled | GPG Check | Refresh
--+-------------------+---------------------------+---------+-----------+--------
1 | repo-debug        | Debug Repository          | No      | ----      | ----
2 | repo-debug-update | Update Repository (Debug) | No      | ----      | ----
3 | repo-oss          | Main Repository           | Yes     | (r ) Yes  | Yes
4 | repo-source       | Source Repository         | No      | ----      | ----
5 | repo-update       | Main Update Repository    | Yes     | (r ) Yes  | Yes

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 02:03:09:02:9b:e8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.68.81/24 brd 192.168.68.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::3:9ff:fe02:9be8/64 scope link
       valid_lft forever preferred_lft forever

3.3.1 源操作命令

  1. 查看repos (软件仓库)
$ zypper lr 
  1. 查看services(软件源)
$ zypper ls
  1. 禁用/使能所有源
$ zypper mr -da
$ zypper mr -ea
  1. 禁用/使能指定源
$ zypper mr -d http://xxx(或lr中的源名称)
$ zypper mr -e http://xxx(或lr中的源名称)
  1. 手动刷新源
$ zypper ref 
  1. 删除软件仓库
$ zypper rr name
  1. 删除软件源
$ zypper rs name
  1. 添加源
$ zypper ar -f http://xx  name

3.3.2 源镜像

主要配置的内容是下面是个镜像URL链接:

  • Main Repository (OSS)(开源的软件)
  • Main Repository (NON-OSS)(非开源软件)
  • Main Update Repository(开源软件安全更新)
  • Main Update Repository (NON-OSS)(非开源软件安全更新)

国内有不少OpenSUSE的源,目前看了以下的源镜像,但是没有在里面找到armv7hl或者没有找对添加的方法。如果有小伙伴找到或者找到正确的方法,请留言,谢谢!

4. 需求 & 配置

4.1 MiniDLNA

Step 1:安装MiniDLNA

$ sudo apt-get install minidlna
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 45 NEW packages are going to be installed:
  dbus-1-x11 fontconfig libFLAC8 libICE6 libSM6 libX11-6 libX11-data libXau6 libXext6 libXfixes3 libXt6 libavcodec57 libavformat57
  libavutil55 libbluray2 libcelt0-2 libdrm2 libexif12 libglvnd libgsm1 libid3tag0 libjpeg8 libmp3lame0 libogg0 libopenjpeg1 libopus0
  libspeex1 libswresample2 libtheoradec1 libtheoraenc1 libtwolame0 libva-drm2 libva-glx2 libva-x11-2 libva2 libvdpau1 libvorbis0
  libvorbisenc2 libvpx4 libwebp7 libwebpmux3 libxcb1 minidlna openssh-askpass sqlite3

45 new packages to install.
Overall download size: 7.3 MiB. Already cached: 0 B. After the operation, additional 20.9 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package fontconfig-2.12.6-4.4.2.armv7hl                                                                                (1/45), 670.3 KiB (  1.1 MiB unpacked)
Retrieving: fontconfig-2.12.6-4.4.2.armv7hl.rpm ....................................................................................................[done (387.0 KiB/s)]
Retrieving package libICE6-1.0.9-1.2.armv7hl                                                                                      (2/45),  39.5 KiB ( 86.6 KiB unpacked)
Retrieving: libICE6-1.0.9-1.2.armv7hl.rpm ...........................................................................................................[done (47.4 KiB/s)]
Retrieving package libX11-data-1.6.5-3.22.1.noarch                                                                                (3/45), 143.1 KiB (  1.2 MiB unpacked)
Retrieving: libX11-data-1.6.5-3.22.1.noarch.rpm ....................................................................................................[done (363.7 KiB/s)]
Retrieving package libXau6-1.0.8-1.2.armv7hl                                                                                      (4/45),  13.0 KiB (  9.5 KiB unpacked)
Retrieving: libXau6-1.0.8-1.2.armv7hl.rpm ........................................................................................................................[done]
Retrieving package libcelt0-2-0.11.3-1.2.armv7hl                                                                                  (5/45),  48.0 KiB ( 81.6 KiB unpacked)
Retrieving: libcelt0-2-0.11.3-1.2.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libdrm2-2.4.104-1.3.armv7hl                                                                                    (6/45),  57.6 KiB ( 65.9 KiB unpacked)
Retrieving: libdrm2-2.4.104-1.3.armv7hl.rpm ..........................................................................................................[done (2.6 KiB/s)]
Retrieving package libexif12-0.6.22-5.7.2.armv7hl                                                                                 (7/45), 332.9 KiB (  2.1 MiB unpacked)
Retrieving: libexif12-0.6.22-5.7.2.armv7hl.rpm .....................................................................................................[done (260.5 KiB/s)]
Retrieving package libgsm1-1.0.14-1.2.armv7hl                                                                                     (8/45),  28.8 KiB ( 48.8 KiB unpacked)
Retrieving: libgsm1-1.0.14-1.2.armv7hl.rpm ...........................................................................................................[done (1.2 KiB/s)]
Retrieving package libid3tag0-0.15.1b-3.2.armv7hl                                                                                 (9/45),  31.4 KiB ( 65.7 KiB unpacked)
Retrieving: libid3tag0-0.15.1b-3.2.armv7hl.rpm ...................................................................................................................[done]
Retrieving package libjpeg8-8.1.2-5.19.1.armv7hl                                                                                 (10/45), 101.5 KiB (221.5 KiB unpacked)
Retrieving: libjpeg8-8.1.2-5.19.1.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libmp3lame0-3.100-1.2.armv7hl                                                                                 (11/45), 130.8 KiB (287.2 KiB unpacked)
Retrieving: libmp3lame0-3.100-1.2.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libogg0-1.3.2-1.2.armv7hl                                                                                     (12/45),  22.1 KiB ( 28.8 KiB unpacked)
Retrieving: libogg0-1.3.2-1.2.armv7hl.rpm ........................................................................................................................[done]
Retrieving package libopenjpeg1-1.5.2-2.2.armv7hl                                                                                (13/45),  68.2 KiB (139.2 KiB unpacked)
Retrieving: libopenjpeg1-1.5.2-2.2.armv7hl.rpm .....................................................................................................[done (184.6 KiB/s)]
Retrieving package libopus0-1.3.1-3.7.2.armv7hl                                                                                  (14/45), 176.5 KiB (333.9 KiB unpacked)
Retrieving: libopus0-1.3.1-3.7.2.armv7hl.rpm .......................................................................................................[done (331.7 KiB/s)]
Retrieving package libspeex1-1.2-1.2.armv7hl                                                                                     (15/45),  49.5 KiB ( 85.7 KiB unpacked)
Retrieving: libspeex1-1.2-1.2.armv7hl.rpm ........................................................................................................................[done]
Retrieving package libtheoradec1-1.1.1-1.2.armv7hl                                                                               (16/45),  45.5 KiB ( 81.7 KiB unpacked)
Retrieving: libtheoradec1-1.1.1-1.2.armv7hl.rpm ......................................................................................................[done (3.2 KiB/s)]
Retrieving package libtwolame0-0.3.13-1.2.armv7hl                                                                                (17/45),  47.6 KiB (117.8 KiB unpacked)
Retrieving: libtwolame0-0.3.13-1.2.armv7hl.rpm ...................................................................................................................[done]
Retrieving package libva2-2.10.0-1.4.armv7hl                                                                                     (18/45),  68.7 KiB (154.9 KiB unpacked)
Retrieving: libva2-2.10.0-1.4.armv7hl.rpm ...........................................................................................................[done (42.2 KiB/s)]
Retrieving package libvpx4-1.6.1-6.7.2.armv7hl                                                                                   (19/45), 499.1 KiB (  1.1 MiB unpacked)
Retrieving: libvpx4-1.6.1-6.7.2.armv7hl.rpm ........................................................................................................[done (148.4 KiB/s)]
Retrieving package libwebp7-1.0.3-1.1.armv7hl                                                                                    (20/45), 164.6 KiB (354.3 KiB unpacked)
Retrieving: libwebp7-1.0.3-1.1.armv7hl.rpm .........................................................................................................[done (276.6 KiB/s)]
Retrieving package sqlite3-3.36.0-3.13.1.armv7hl                                                                                 (21/45), 633.2 KiB (  1.4 MiB unpacked)
Retrieving: sqlite3-3.36.0-3.13.1.armv7hl.rpm ......................................................................................................[done (303.9 KiB/s)]
Retrieving package libbluray2-1.0.2-2.2.armv7hl                                                                                  (22/45), 140.5 KiB (337.9 KiB unpacked)
Retrieving: libbluray2-1.0.2-2.2.armv7hl.rpm .........................................................................................................[done (2.6 KiB/s)]
Retrieving package libSM6-1.2.2-1.2.armv7hl                                                                                      (23/45),  20.0 KiB ( 29.6 KiB unpacked)
Retrieving: libSM6-1.2.2-1.2.armv7hl.rpm .........................................................................................................................[done]
Retrieving package libxcb1-1.13-3.6.2.armv7hl                                                                                    (24/45),  46.3 KiB (137.9 KiB unpacked)
Retrieving: libxcb1-1.13-3.6.2.armv7hl.rpm ...........................................................................................................[done (3.1 KiB/s)]
Retrieving package libvorbis0-1.3.6-4.4.2.armv7hl                                                                                (25/45),  80.9 KiB (161.9 KiB unpacked)
Retrieving: libvorbis0-1.3.6-4.4.2.armv7hl.rpm ...................................................................................................................[done]
Retrieving package libtheoraenc1-1.1.1-1.2.armv7hl                                                                               (26/45), 113.9 KiB (213.8 KiB unpacked)
Retrieving: libtheoraenc1-1.1.1-1.2.armv7hl.rpm ..................................................................................................................[done]
Retrieving package libFLAC8-1.3.2-3.7.2.armv7hl                                                                                  (27/45),  82.6 KiB (186.4 KiB unpacked)
Retrieving: libFLAC8-1.3.2-3.7.2.armv7hl.rpm .....................................................................................................................[done]
Retrieving package libva-drm2-2.10.0-1.4.armv7hl                                                                                 (28/45),  27.7 KiB (  9.5 KiB unpacked)
Retrieving: libva-drm2-2.10.0-1.4.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libwebpmux3-1.0.3-1.1.armv7hl                                                                                 (29/45),  28.0 KiB ( 33.6 KiB unpacked)
Retrieving: libwebpmux3-1.0.3-1.1.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libX11-6-1.6.5-3.22.1.armv7hl                                                                                 (30/45), 505.9 KiB (  1.1 MiB unpacked)
Retrieving: libX11-6-1.6.5-3.22.1.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libvorbisenc2-1.3.6-4.4.2.armv7hl                                                                             (31/45),  71.7 KiB (517.6 KiB unpacked)
Retrieving: libvorbisenc2-1.3.6-4.4.2.armv7hl.rpm ....................................................................................................[done (2.6 KiB/s)]
Retrieving package libglvnd-1.3.2-1.4.armv7hl                                                                                    (32/45), 211.3 KiB (  2.6 MiB unpacked)
Retrieving: libglvnd-1.3.2-1.4.armv7hl.rpm .........................................................................................................[done (603.1 KiB/s)]
Retrieving package libXt6-1.1.5-2.2.armv7hl                                                                                      (33/45), 135.3 KiB (347.1 KiB unpacked)
Retrieving: libXt6-1.1.5-2.2.armv7hl.rpm ...........................................................................................................[done (229.1 KiB/s)]
Retrieving package libXfixes3-5.0.3-1.2.armv7hl                                                                                  (34/45),  14.2 KiB ( 17.4 KiB unpacked)
Retrieving: libXfixes3-5.0.3-1.2.armv7hl.rpm .....................................................................................................................[done]
Retrieving package libXext6-1.3.3-1.2.armv7hl                                                                                    (35/45),  29.1 KiB ( 66.3 KiB unpacked)
Retrieving: libXext6-1.3.3-1.2.armv7hl.rpm ...........................................................................................................[done (1.2 KiB/s)]
Retrieving package dbus-1-x11-1.12.2-8.7.1.armv7hl                                                                               (36/45),  42.3 KiB ( 21.8 KiB unpacked)
Retrieving: dbus-1-x11-1.12.2-8.7.1.armv7hl.rpm .....................................................................................................[done (24.2 KiB/s)]
Retrieving package openssh-askpass-1.2.4.1-bp153.1.1.armv7hl                                                                     (37/45),  26.8 KiB ( 44.1 KiB unpacked)
Retrieving: openssh-askpass-1.2.4.1-bp153.1.1.armv7hl.rpm ........................................................................................................[done]
Retrieving package libvdpau1-1.1.1-1.2.armv7hl                                                                                   (38/45),  24.2 KiB ( 40.1 KiB unpacked)
Retrieving: libvdpau1-1.1.1-1.2.armv7hl.rpm ..........................................................................................................[done (3.1 KiB/s)]
Retrieving package libva-x11-2-2.10.0-1.4.armv7hl                                                                                (39/45),  31.0 KiB ( 17.7 KiB unpacked)
Retrieving: libva-x11-2-2.10.0-1.4.armv7hl.rpm ......................................................................................................[done (41.9 KiB/s)]
Retrieving package libva-glx2-2.10.0-1.3.armv7hl                                                                                 (40/45),  30.4 KiB ( 17.8 KiB unpacked)
Retrieving: libva-glx2-2.10.0-1.3.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libavutil55-3.4.2-11.18.1.armv7hl                                                                             (41/45), 210.9 KiB (414.2 KiB unpacked)
Retrieving: libavutil55-3.4.2-11.18.1.armv7hl.rpm ....................................................................................................[done (3.2 KiB/s)]
Retrieving package libswresample2-3.4.2-11.18.1.armv7hl                                                                          (42/45),  84.1 KiB ( 81.7 KiB unpacked)
Retrieving: libswresample2-3.4.2-11.18.1.armv7hl.rpm .................................................................................................[done (3.3 KiB/s)]
Retrieving package libavcodec57-3.4.2-11.18.1.armv7hl                                                                            (43/45),   1.1 MiB (  3.3 MiB unpacked)
Retrieving: libavcodec57-3.4.2-11.18.1.armv7hl.rpm .................................................................................................[done (460.5 KiB/s)]
Retrieving package libavformat57-3.4.2-11.18.1.armv7hl                                                                           (44/45), 783.8 KiB (  1.8 MiB unpacked)
Retrieving: libavformat57-3.4.2-11.18.1.armv7hl.rpm ................................................................................................[done (568.0 KiB/s)]
Retrieving package minidlna-1.3.0-bp153.1.1.armv7hl                                                                              (45/45), 177.7 KiB (407.6 KiB unpacked)
Retrieving: minidlna-1.3.0-bp153.1.1.armv7hl.rpm ...................................................................................................[done (272.2 KiB/s)]

Checking for file conflicts: .....................................................................................................................................[done]
( 1/45) Installing: fontconfig-2.12.6-4.4.2.armv7hl ..............................................................................................................[done]
( 2/45) Installing: libICE6-1.0.9-1.2.armv7hl ....................................................................................................................[done]
( 3/45) Installing: libX11-data-1.6.5-3.22.1.noarch ..............................................................................................................[done]
( 4/45) Installing: libXau6-1.0.8-1.2.armv7hl ....................................................................................................................[done]
( 5/45) Installing: libcelt0-2-0.11.3-1.2.armv7hl ................................................................................................................[done]
( 6/45) Installing: libdrm2-2.4.104-1.3.armv7hl ..................................................................................................................[done]
( 7/45) Installing: libexif12-0.6.22-5.7.2.armv7hl ...............................................................................................................[done]
( 8/45) Installing: libgsm1-1.0.14-1.2.armv7hl ...................................................................................................................[done]
( 9/45) Installing: libid3tag0-0.15.1b-3.2.armv7hl ...............................................................................................................[done]
(10/45) Installing: libjpeg8-8.1.2-5.19.1.armv7hl ................................................................................................................[done]
(11/45) Installing: libmp3lame0-3.100-1.2.armv7hl ................................................................................................................[done]
(12/45) Installing: libogg0-1.3.2-1.2.armv7hl ....................................................................................................................[done]
(13/45) Installing: libopenjpeg1-1.5.2-2.2.armv7hl ...............................................................................................................[done]
(14/45) Installing: libopus0-1.3.1-3.7.2.armv7hl .................................................................................................................[done]
(15/45) Installing: libspeex1-1.2-1.2.armv7hl ....................................................................................................................[done]
(16/45) Installing: libtheoradec1-1.1.1-1.2.armv7hl ..............................................................................................................[done]
(17/45) Installing: libtwolame0-0.3.13-1.2.armv7hl ...............................................................................................................[done]
(18/45) Installing: libva2-2.10.0-1.4.armv7hl ....................................................................................................................[done]
(19/45) Installing: libvpx4-1.6.1-6.7.2.armv7hl ..................................................................................................................[done]
(20/45) Installing: libwebp7-1.0.3-1.1.armv7hl ...................................................................................................................[done]
(21/45) Installing: sqlite3-3.36.0-3.13.1.armv7hl ................................................................................................................[done]
(22/45) Installing: libbluray2-1.0.2-2.2.armv7hl .................................................................................................................[done]
(23/45) Installing: libSM6-1.2.2-1.2.armv7hl .....................................................................................................................[done]
(24/45) Installing: libxcb1-1.13-3.6.2.armv7hl ...................................................................................................................[done]
(25/45) Installing: libvorbis0-1.3.6-4.4.2.armv7hl ...............................................................................................................[done]
(26/45) Installing: libtheoraenc1-1.1.1-1.2.armv7hl ..............................................................................................................[done]
(27/45) Installing: libFLAC8-1.3.2-3.7.2.armv7hl .................................................................................................................[done]
(28/45) Installing: libva-drm2-2.10.0-1.4.armv7hl ................................................................................................................[done]
(29/45) Installing: libwebpmux3-1.0.3-1.1.armv7hl ................................................................................................................[done]
(30/45) Installing: libX11-6-1.6.5-3.22.1.armv7hl ................................................................................................................[done]
(31/45) Installing: libvorbisenc2-1.3.6-4.4.2.armv7hl ............................................................................................................[done]
(32/45) Installing: libglvnd-1.3.2-1.4.armv7hl ...................................................................................................................[done]
(33/45) Installing: libXt6-1.1.5-2.2.armv7hl .....................................................................................................................[done]
(34/45) Installing: libXfixes3-5.0.3-1.2.armv7hl .................................................................................................................[done]
(35/45) Installing: libXext6-1.3.3-1.2.armv7hl ...................................................................................................................[done]
(36/45) Installing: dbus-1-x11-1.12.2-8.7.1.armv7hl ..............................................................................................................[done]
Additional rpm output:
update-alternatives: using /usr/bin/dbus-launch.x11 to provide /usr/bin/dbus-launch (dbus-launch) in auto mode


(37/45) Installing: openssh-askpass-1.2.4.1-bp153.1.1.armv7hl ....................................................................................................[done]
(38/45) Installing: libvdpau1-1.1.1-1.2.armv7hl ..................................................................................................................[done]
(39/45) Installing: libva-x11-2-2.10.0-1.4.armv7hl ...............................................................................................................[done]
(40/45) Installing: libva-glx2-2.10.0-1.3.armv7hl ................................................................................................................[done]
(41/45) Installing: libavutil55-3.4.2-11.18.1.armv7hl ............................................................................................................[done]
(42/45) Installing: libswresample2-3.4.2-11.18.1.armv7hl .........................................................................................................[done]
(43/45) Installing: libavcodec57-3.4.2-11.18.1.armv7hl ...........................................................................................................[done]
(44/45) Installing: libavformat57-3.4.2-11.18.1.armv7hl ..........................................................................................................[done]
(45/45) Installing: minidlna-1.3.0-bp153.1.1.armv7hl .............................................................................................................[done]

Step 2:配置MiniDLNA本地目录

$ sudo vi /etc/minidlna.conf
… // 省略的就使用默认即可,这里不再copy-paste
media_dir=A,/mnt/ext/Music
media_dir=P,/mnt/ext/Pictures
media_dir=V,/mnt/ext/Videos
friendly_name=Cubieboard 2 Dual
inotify=yes

Step 3:配置MiniDLNA自启动

$ systemctl enable minidlna.service

Step 4:重启MiniDLNA

$ systemctl restart minidlna.service

注:MiniDLNA支持以下命令:

$ systemctl start minidlna.service
$ systemctl restart minidlna.service
$ systemctl stop minidlna.service

Step 5:手机测试多媒体服务

Cubieboard 2 Dual已经显示在本地网络中
miniDLNA手机端显示

4.2 samba

Step 1:安装samba(Windows共享)

$ sudo apt-get install samba
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 5 recommended packages were automatically selected:
  cron postfix python3-curses python3-dbm python3-pip

The following 68 NEW packages are going to be installed:
  cifs-utils cron cronie cups-config gamin-server keyutils libarchive13 libavahi-client3 libavahi-common3 libcups2 libdcerpc-binding0 libdcerpc0 libfam0-gamin
  libicu-suse65_1 libicu65_1-ledata libldb2 liblmdb-0_9_17 libndr-krb5pac0 libndr-nbt0 libndr-standard0 libndr1 libnetapi0 libnscd1 libsamba-credentials0
  libsamba-errors0 libsamba-hostconfig0 libsamba-passdb0 libsamba-policy0-python3 libsamba-util0 libsamdb0 libsmbclient0 libsmbconf0 libsmbldap2 libtalloc2 libtdb1
  libtevent-util0 libtevent0 liburing1 libwbclient0 mailx perl-Crypt-SmbHash perl-Digest-MD4 perl-XML-LibXML perl-XML-NamespaceSupport perl-XML-SAX perl-XML-SAX-Base
  postfix python3 python3-appdirs python3-curses python3-dbm python3-ldb python3-packaging python3-pip python3-pyparsing python3-setuptools python3-talloc python3-tdb
  python3-tevent samba samba-client samba-libs samba-libs-python3 samba-python3 system-user-mail yast2-python3-bindings yast2-samba-client yast2-samba-server

68 new packages to install.
Overall download size: 25.5 MiB. Already cached: 0 B. After the operation, additional 99.2 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package cups-config-2.2.7-3.27.1.armv7hl                                                                               (1/68), 237.8 KiB (  3.1 MiB unpacked)
Retrieving: cups-config-2.2.7-3.27.1.armv7hl.rpm ...................................................................................................[done (100.2 KiB/s)]
Retrieving package gamin-server-0.1.10-1.2.armv7hl                                                                                (2/68),  34.8 KiB ( 70.1 KiB unpacked)
Retrieving: gamin-server-0.1.10-1.2.armv7hl.rpm ......................................................................................................[done (7.8 KiB/s)]
Retrieving package keyutils-1.5.10-5.4.2.armv7hl                                                                                  (3/68),  78.8 KiB (118.6 KiB unpacked)
Retrieving: keyutils-1.5.10-5.4.2.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libarchive13-3.4.2-2.1.armv7hl                                                                                 (4/68), 293.5 KiB (748.0 KiB unpacked)
Retrieving: libarchive13-3.4.2-2.1.armv7hl.rpm .......................................................................................................[done (3.2 KiB/s)]
Retrieving package libavahi-common3-0.7-3.10.1.armv7hl                                                                            (5/68),  31.5 KiB ( 46.0 KiB unpacked)
Retrieving: libavahi-common3-0.7-3.10.1.armv7hl.rpm ..............................................................................................................[done]
Retrieving package libicu65_1-ledata-65.1-3.1.noarch                                                                              (6/68),   6.5 MiB ( 26.7 MiB unpacked)
Retrieving: libicu65_1-ledata-65.1-3.1.noarch.rpm ....................................................................................................[done (1.1 MiB/s)]
Retrieving package liblmdb-0_9_17-0.9.17-4.7.2.armv7hl                                                                            (7/68),  47.4 KiB ( 73.9 KiB unpacked)
Retrieving: liblmdb-0_9_17-0.9.17-4.7.2.armv7hl.rpm ..................................................................................................[done (3.2 KiB/s)]
Retrieving package libnscd1-2.0.2-3.2.armv7hl                                                                                     (8/68),  20.0 KiB ( 32.0 KiB unpacked)
Retrieving: libnscd1-2.0.2-3.2.armv7hl.rpm ...........................................................................................................[done (3.1 KiB/s)]
Retrieving package libtalloc2-2.3.1-1.3.armv7hl                                                                                   (9/68),  40.5 KiB ( 77.7 KiB unpacked)
Retrieving: libtalloc2-2.3.1-1.3.armv7hl.rpm .........................................................................................................[done (3.1 KiB/s)]
Retrieving package libtdb1-1.4.3-1.3.armv7hl                                                                                     (10/68),  46.5 KiB ( 85.9 KiB unpacked)
Retrieving: libtdb1-1.4.3-1.3.armv7hl.rpm ............................................................................................................[done (7.0 KiB/s)]
Retrieving package liburing1-0.6-2.1.armv7hl                                                                                     (11/68),  23.5 KiB ( 54.0 KiB unpacked)
Retrieving: liburing1-0.6-2.1.armv7hl.rpm ........................................................................................................................[done]
Retrieving package perl-Digest-MD4-1.9-1.1.armv7hl                                                                               (12/68),  32.6 KiB ( 61.5 KiB unpacked)
Retrieving: perl-Digest-MD4-1.9-1.1.armv7hl.rpm ..................................................................................................................[done]
Retrieving package perl-XML-NamespaceSupport-1.12-1.1.noarch                                                                     (13/68),  26.2 KiB ( 44.9 KiB unpacked)
Retrieving: perl-XML-NamespaceSupport-1.12-1.1.noarch.rpm ........................................................................................................[done]
Retrieving package perl-XML-SAX-Base-1.09-1.1.noarch                                                                             (14/68),  33.2 KiB (173.3 KiB unpacked)
Retrieving: perl-XML-SAX-Base-1.09-1.1.noarch.rpm ................................................................................................................[done]
Retrieving package python3-appdirs-1.4.3-1.2.noarch                                                                              (15/68),  22.5 KiB ( 83.5 KiB unpacked)
Retrieving: python3-appdirs-1.4.3-1.2.noarch.rpm .....................................................................................................[done (3.2 KiB/s)]
Retrieving package python3-pyparsing-2.4.7-1.3.noarch                                                                            (16/68), 187.4 KiB (877.1 KiB unpacked)
Retrieving: python3-pyparsing-2.4.7-1.3.noarch.rpm ...................................................................................................[done (3.2 KiB/s)]
Retrieving package system-user-mail-20170617-15.5.noarch                                                                         (17/68),  11.5 KiB (   86   B unpacked)
Retrieving: system-user-mail-20170617-15.5.noarch.rpm ................................................................................................[done (3.3 KiB/s)]
Retrieving package libfam0-gamin-0.1.10-3.3.2.armv7hl                                                                            (18/68),  18.7 KiB ( 29.7 KiB unpacked)
Retrieving: libfam0-gamin-0.1.10-3.3.2.armv7hl.rpm ...............................................................................................................[done]
Retrieving package libavahi-client3-0.7-3.10.1.armv7hl                                                                           (19/68),  34.3 KiB ( 58.0 KiB unpacked)
Retrieving: libavahi-client3-0.7-3.10.1.armv7hl.rpm ..................................................................................................[done (3.2 KiB/s)]
Retrieving package libicu-suse65_1-65.1-3.1.armv7hl                                                                              (20/68),   1.4 MiB (  4.4 MiB unpacked)
Retrieving: libicu-suse65_1-65.1-3.1.armv7hl.rpm ...................................................................................................[done (616.6 KiB/s)]
Retrieving package python3-talloc-2.3.1-1.3.armv7hl                                                                              (21/68),  20.9 KiB ( 19.7 KiB unpacked)
Retrieving: python3-talloc-2.3.1-1.3.armv7hl.rpm ....................................................................................................[done (25.8 KiB/s)]
Retrieving package libtevent0-0.10.2-1.3.armv7hl                                                                                 (22/68),  37.2 KiB ( 66.0 KiB unpacked)
Retrieving: libtevent0-0.10.2-1.3.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libsamba-errors0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                     (23/68), 303.5 KiB (961.5 KiB unpacked)
Retrieving: libsamba-errors0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ........................................................................................[done]
Retrieving package python3-tdb-1.4.3-1.3.armv7hl                                                                                 (24/68),  19.9 KiB ( 26.0 KiB unpacked)
Retrieving: python3-tdb-1.4.3-1.3.armv7hl.rpm ....................................................................................................................[done]
Retrieving package perl-Crypt-SmbHash-0.12-1.1.armv7hl                                                                           (25/68),  18.5 KiB ( 23.9 KiB unpacked)
Retrieving: perl-Crypt-SmbHash-0.12-1.1.armv7hl.rpm ..............................................................................................................[done]
Retrieving package perl-XML-SAX-0.99-1.1.armv7hl                                                                                 (26/68),  57.8 KiB (122.4 KiB unpacked)
Retrieving: perl-XML-SAX-0.99-1.1.armv7hl.rpm ........................................................................................................[done (1.2 KiB/s)]
Retrieving package python3-packaging-20.3-2.1.noarch                                                                             (27/68),  67.5 KiB (263.1 KiB unpacked)
Retrieving: python3-packaging-20.3-2.1.noarch.rpm ................................................................................................................[done]
Retrieving package libcups2-2.2.7-3.27.1.armv7hl                                                                                 (28/68), 222.9 KiB (555.7 KiB unpacked)
Retrieving: libcups2-2.2.7-3.27.1.armv7hl.rpm ........................................................................................................[done (3.1 KiB/s)]
Retrieving package postfix-3.5.9-5.10.1.armv7hl                                                                                  (29/68),   1.1 MiB (  2.9 MiB unpacked)
Retrieving: postfix-3.5.9-5.10.1.armv7hl.rpm .......................................................................................................[done (692.8 KiB/s)]
Retrieving package python3-tevent-0.10.2-1.3.armv7hl                                                                             (30/68),  18.8 KiB ( 20.4 KiB unpacked)
Retrieving: python3-tevent-0.10.2-1.3.armv7hl.rpm ...................................................................................................[done (44.3 KiB/s)]
Retrieving package libldb2-2.2.1-1.1.armv7hl                                                                                     (31/68), 139.0 KiB (393.6 KiB unpacked)
Retrieving: libldb2-2.2.1-1.1.armv7hl.rpm ............................................................................................................[done (1.2 KiB/s)]
Retrieving package perl-XML-LibXML-2.0132-1.1.armv7hl                                                                            (32/68), 416.5 KiB (  1.5 MiB unpacked)
Retrieving: perl-XML-LibXML-2.0132-1.1.armv7hl.rpm ..................................................................................................[done (15.4 KiB/s)]
Retrieving package python3-3.6.13-10.4.1.armv7hl                                                                                 (33/68),  73.3 KiB (114.1 KiB unpacked)
Retrieving: python3-3.6.13-10.4.1.armv7hl.rpm ........................................................................................................[done (2.6 KiB/s)]
Retrieving package mailx-12.5-1.1.armv7hl                                                                                        (34/68), 297.3 KiB (530.5 KiB unpacked)
Retrieving: mailx-12.5-1.1.armv7hl.rpm ..............................................................................................................[done (26.5 KiB/s)]
Retrieving package python3-ldb-2.2.1-1.1.armv7hl                                                                                 (35/68),  50.5 KiB ( 95.2 KiB unpacked)
Retrieving: python3-ldb-2.2.1-1.1.armv7hl.rpm ....................................................................................................................[done]
Retrieving package libwbclient0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                         (36/68), 141.9 KiB ( 49.5 KiB unpacked)
Retrieving: libwbclient0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ................................................................................[done (3.6 KiB/s)]
Retrieving package python3-curses-3.6.13-10.4.1.armv7hl                                                                          (37/68),  72.8 KiB (135.2 KiB unpacked)
Retrieving: python3-curses-3.6.13-10.4.1.armv7hl.rpm .............................................................................................................[done]
Retrieving package cron-4.2-70.14.5.1.armv7hl                                                                                    (38/68),  11.8 KiB (  181   B unpacked)
Retrieving: cron-4.2-70.14.5.1.armv7hl.rpm .......................................................................................................................[done]
Retrieving package libtevent-util0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                      (39/68), 129.1 KiB ( 13.4 KiB unpacked)
Retrieving: libtevent-util0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ............................................................................[done (48.4 KiB/s)]
Retrieving package python3-dbm-3.6.13-10.4.1.armv7hl                                                                             (40/68),  56.9 KiB ( 71.3 KiB unpacked)
Retrieving: python3-dbm-3.6.13-10.4.1.armv7hl.rpm ................................................................................................................[done]
Retrieving package cronie-1.5.1-70.14.5.1.armv7hl                                                                                (41/68),  94.7 KiB (238.7 KiB unpacked)
Retrieving: cronie-1.5.1-70.14.5.1.armv7hl.rpm .......................................................................................................[done (1.2 KiB/s)]
Retrieving package libdcerpc-binding0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                   (42/68), 161.0 KiB (133.5 KiB unpacked)
Retrieving: libdcerpc-binding0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ......................................................................................[done]
Retrieving package python3-setuptools-40.5.0-6.5.1.noarch                                                                        (43/68), 616.1 KiB (  3.3 MiB unpacked)
Retrieving: python3-setuptools-40.5.0-6.5.1.noarch.rpm .............................................................................................[done (382.9 KiB/s)]
Retrieving package libndr1-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                              (44/68), 154.7 KiB ( 97.5 KiB unpacked)
Retrieving: libndr1-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm .................................................................................................[done]
Retrieving package python3-pip-20.0.2-7.1.noarch                                                                                 (45/68),   1.7 MiB (  9.9 MiB unpacked)
Retrieving: python3-pip-20.0.2-7.1.noarch.rpm ......................................................................................................[done (679.7 KiB/s)]
Retrieving package yast2-python3-bindings-4.1.0-2.1.armv7hl                                                                      (46/68), 101.5 KiB (402.0 KiB unpacked)
Retrieving: yast2-python3-bindings-4.1.0-2.1.armv7hl.rpm .........................................................................................................[done]
Retrieving package samba-libs-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                           (47/68),   3.0 MiB ( 12.3 MiB unpacked)
Retrieving: samba-libs-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ................................................................................[done (716.3 KiB/s)]
Retrieving package libsamba-util0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                       (48/68), 269.6 KiB (433.6 KiB unpacked)
Retrieving: libsamba-util0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ............................................................................[done (349.1 KiB/s)]
Retrieving package libsamba-hostconfig0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                 (49/68), 162.3 KiB (136.7 KiB unpacked)
Retrieving: libsamba-hostconfig0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ....................................................................................[done]
Retrieving package libsamba-credentials0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                (50/68), 148.5 KiB ( 73.4 KiB unpacked)
Retrieving: libsamba-credentials0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm .....................................................................[done (146.0 KiB/s)]
Retrieving package libndr-standard0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                     (51/68), 761.4 KiB (  3.4 MiB unpacked)
Retrieving: libndr-standard0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ..........................................................................[done (489.9 KiB/s)]
Retrieving package libsmbconf0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                          (52/68), 291.4 KiB (526.3 KiB unpacked)
Retrieving: libsmbconf0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm .............................................................................................[done]
Retrieving package libndr-nbt0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                          (53/68), 163.8 KiB (149.5 KiB unpacked)
Retrieving: libndr-nbt0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ................................................................................[done (13.3 KiB/s)]
Retrieving package libsamdb0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                            (54/68), 154.5 KiB ( 89.8 KiB unpacked)
Retrieving: libsamdb0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ...................................................................................[done (3.5 KiB/s)]
Retrieving package libndr-krb5pac0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                      (55/68), 137.5 KiB ( 49.5 KiB unpacked)
Retrieving: libndr-krb5pac0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm .............................................................................[done (1.1 KiB/s)]
Retrieving package libdcerpc0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                           (56/68), 177.1 KiB (177.5 KiB unpacked)
Retrieving: libdcerpc0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ................................................................................[done (526.1 KiB/s)]
Retrieving package libsamba-passdb0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                     (57/68), 207.1 KiB (273.8 KiB unpacked)
Retrieving: libsamba-passdb0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ........................................................................................[done]
Retrieving package libnetapi0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                           (58/68), 213.2 KiB (413.5 KiB unpacked)
Retrieving: libnetapi0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ..................................................................................[done (3.5 KiB/s)]
Retrieving package libsmbldap2-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                          (59/68), 137.7 KiB ( 41.5 KiB unpacked)
Retrieving: libsmbldap2-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ................................................................................[done (20.3 KiB/s)]
Retrieving package samba-libs-python3-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                   (60/68), 194.5 KiB (260.0 KiB unpacked)
Retrieving: samba-libs-python3-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ......................................................................................[done]
Retrieving package libsmbclient0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                        (61/68), 170.4 KiB (145.5 KiB unpacked)
Retrieving: libsmbclient0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ...............................................................................[done (3.6 KiB/s)]
Retrieving package libsamba-policy0-python3-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                             (62/68), 141.5 KiB ( 53.6 KiB unpacked)
Retrieving: libsamba-policy0-python3-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ................................................................................[done]
Retrieving package cifs-utils-6.9-5.13.1.armv7hl                                                                                 (63/68),  86.5 KiB (178.2 KiB unpacked)
Retrieving: cifs-utils-6.9-5.13.1.armv7hl.rpm ....................................................................................................................[done]
Retrieving package samba-client-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                         (64/68),   1.1 MiB (  3.7 MiB unpacked)
Retrieving: samba-client-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm ..............................................................................[done (601.3 KiB/s)]
Retrieving package samba-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                                (65/68), 585.6 KiB (  1.5 MiB unpacked)
Retrieving: samba-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm .....................................................................................[done (562.6 KiB/s)]
Retrieving package samba-python3-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl                                                        (66/68),   2.2 MiB ( 16.2 MiB unpacked)
Retrieving: samba-python3-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl.rpm .............................................................................[done (677.2 KiB/s)]
Retrieving package yast2-samba-client-4.3.3-3.4.1.noarch                                                                         (67/68),  66.3 KiB (277.4 KiB unpacked)
Retrieving: yast2-samba-client-4.3.3-3.4.1.noarch.rpm ............................................................................................................[done]
Retrieving package yast2-samba-server-4.3.4-1.5.noarch                                                                           (68/68),  79.8 KiB (404.3 KiB unpacked)
Retrieving: yast2-samba-server-4.3.4-1.5.noarch.rpm ..............................................................................................................[done]

Checking for file conflicts: .....................................................................................................................................[done]
( 1/68) Installing: cups-config-2.2.7-3.27.1.armv7hl .............................................................................................................[done]
( 2/68) Installing: gamin-server-0.1.10-1.2.armv7hl ..............................................................................................................[done]
( 3/68) Installing: keyutils-1.5.10-5.4.2.armv7hl ................................................................................................................[done]
( 4/68) Installing: libarchive13-3.4.2-2.1.armv7hl ...............................................................................................................[done]
( 5/68) Installing: libavahi-common3-0.7-3.10.1.armv7hl ..........................................................................................................[done]
( 6/68) Installing: libicu65_1-ledata-65.1-3.1.noarch ............................................................................................................[done]
( 7/68) Installing: liblmdb-0_9_17-0.9.17-4.7.2.armv7hl ..........................................................................................................[done]
( 8/68) Installing: libnscd1-2.0.2-3.2.armv7hl ...................................................................................................................[done]
( 9/68) Installing: libtalloc2-2.3.1-1.3.armv7hl .................................................................................................................[done]
(10/68) Installing: libtdb1-1.4.3-1.3.armv7hl ....................................................................................................................[done]
(11/68) Installing: liburing1-0.6-2.1.armv7hl ....................................................................................................................[done]
(12/68) Installing: perl-Digest-MD4-1.9-1.1.armv7hl ..............................................................................................................[done]
(13/68) Installing: perl-XML-NamespaceSupport-1.12-1.1.noarch ....................................................................................................[done]
(14/68) Installing: perl-XML-SAX-Base-1.09-1.1.noarch ............................................................................................................[done]
(15/68) Installing: python3-appdirs-1.4.3-1.2.noarch .............................................................................................................[done]
(16/68) Installing: python3-pyparsing-2.4.7-1.3.noarch ...........................................................................................................[done]
(17/68) Installing: system-user-mail-20170617-15.5.noarch ........................................................................................................[done]
Additional rpm output:
useradd -r -s /sbin/nologin -c "Mailer daemon" -U -d /var/spool/clientmqueue mail
groupadd -r mail


(18/68) Installing: libfam0-gamin-0.1.10-3.3.2.armv7hl ...........................................................................................................[done]
(19/68) Installing: libavahi-client3-0.7-3.10.1.armv7hl ..........................................................................................................[done]
(20/68) Installing: libicu-suse65_1-65.1-3.1.armv7hl .............................................................................................................[done]
(21/68) Installing: python3-talloc-2.3.1-1.3.armv7hl .............................................................................................................[done]
(22/68) Installing: libtevent0-0.10.2-1.3.armv7hl ................................................................................................................[done]
(23/68) Installing: libsamba-errors0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ....................................................................................[done]
(24/68) Installing: python3-tdb-1.4.3-1.3.armv7hl ................................................................................................................[done]
(25/68) Installing: perl-Crypt-SmbHash-0.12-1.1.armv7hl ..........................................................................................................[done]
(26/68) Installing: perl-XML-SAX-0.99-1.1.armv7hl ................................................................................................................[done]
(27/68) Installing: python3-packaging-20.3-2.1.noarch ............................................................................................................[done]
(28/68) Installing: libcups2-2.2.7-3.27.1.armv7hl ................................................................................................................[done]
(29/68) Installing: postfix-3.5.9-5.10.1.armv7hl .................................................................................................................[done]
Additional rpm output:
groupadd -r -g 59 maildrop
groupadd -r -g 51 postfix
useradd -r -s /sbin/nologin -c "Postfix Daemon" -g postfix -d /var/spool/postfix -u 51 postfix
usermod -a -G maildrop postfix
usermod -a -G mail postfix
Updating /etc/sysconfig/postfix ...
Updating /etc/sysconfig/mail ...
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service -> /usr/lib/systemd/system/postfix.service.


(30/68) Installing: python3-tevent-0.10.2-1.3.armv7hl ............................................................................................................[done]
(31/68) Installing: libldb2-2.2.1-1.1.armv7hl ....................................................................................................................[done]
(32/68) Installing: perl-XML-LibXML-2.0132-1.1.armv7hl ...........................................................................................................[done]
(33/68) Installing: python3-3.6.13-10.4.1.armv7hl ................................................................................................................[done]
(34/68) Installing: mailx-12.5-1.1.armv7hl .......................................................................................................................[done]
(35/68) Installing: python3-ldb-2.2.1-1.1.armv7hl ................................................................................................................[done]
(36/68) Installing: libwbclient0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ........................................................................................[done]
(37/68) Installing: python3-curses-3.6.13-10.4.1.armv7hl .........................................................................................................[done]
(38/68) Installing: cron-4.2-70.14.5.1.armv7hl ...................................................................................................................[done]
(39/68) Installing: libtevent-util0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl .....................................................................................[done]
(40/68) Installing: python3-dbm-3.6.13-10.4.1.armv7hl ............................................................................................................[done]
(41/68) Installing: cronie-1.5.1-70.14.5.1.armv7hl ...............................................................................................................[done]
Additional rpm output:
setting /usr/bin/crontab to root:trusted 4755. (wrong permissions 4750)
Updating /etc/sysconfig/cron ...
Created symlink /etc/systemd/system/multi-user.target.wants/cron.service -> /usr/lib/systemd/system/cron.service.


(42/68) Installing: libdcerpc-binding0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ..................................................................................[done]
(43/68) Installing: python3-setuptools-40.5.0-6.5.1.noarch .......................................................................................................[done]
Additional rpm output:
update-alternatives: using /usr/bin/easy_install-3.6 to provide /usr/bin/easy_install (easy_install) in auto mode


(44/68) Installing: libndr1-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl .............................................................................................[done]
(45/68) Installing: python3-pip-20.0.2-7.1.noarch ................................................................................................................[done]
Additional rpm output:
update-alternatives: using /usr/bin/pip3.6 to provide /usr/bin/pip (pip) in auto mode


(46/68) Installing: yast2-python3-bindings-4.1.0-2.1.armv7hl .....................................................................................................[done]
(47/68) Installing: samba-libs-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ..........................................................................................[done]
(48/68) Installing: libsamba-util0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ......................................................................................[done]
(49/68) Installing: libsamba-hostconfig0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ................................................................................[done]
(50/68) Installing: libsamba-credentials0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ...............................................................................[done]
(51/68) Installing: libndr-standard0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ....................................................................................[done]
(52/68) Installing: libsmbconf0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl .........................................................................................[done]
(53/68) Installing: libndr-nbt0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl .........................................................................................[done]
(54/68) Installing: libsamdb0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ...........................................................................................[done]
(55/68) Installing: libndr-krb5pac0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl .....................................................................................[done]
(56/68) Installing: libdcerpc0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ..........................................................................................[done]
(57/68) Installing: libsamba-passdb0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ....................................................................................[done]
(58/68) Installing: libnetapi0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ..........................................................................................[done]
(59/68) Installing: libsmbldap2-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl .........................................................................................[done]
(60/68) Installing: samba-libs-python3-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ..................................................................................[done]
(61/68) Installing: libsmbclient0-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl .......................................................................................[done]
(62/68) Installing: libsamba-policy0-python3-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ............................................................................[done]
(63/68) Installing: cifs-utils-6.9-5.13.1.armv7hl ................................................................................................................[done]
(64/68) Installing: samba-client-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ........................................................................................[done]
Additional rpm output:
Updating /etc/sysconfig/network/dhcp ...


(65/68) Installing: samba-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl ...............................................................................................[done]
(66/68) Installing: samba-python3-4.13.6+git.211.555d60b24ba-3.8.1.armv7hl .......................................................................................[done]
(67/68) Installing: yast2-samba-client-4.3.3-3.4.1.noarch ........................................................................................................[done]
(68/68) Installing: yast2-samba-server-4.3.4-1.5.noarch ..........................................................................................................[done]

Step 2:配置samba

$ sudo vi /etc/samba/smb.conf

默认配置文件基础上修改可以浏览用户目录。
在这里插入图片描述

Step:3:添加samba用户

注:建议用户名/密码与linux用户一致。

$ smbpasswd -a daniel
New SMB password:
Retype new SMB password:
Added user daniel.

Step 4:配置samba自启动

$ sudo systemctl enable smb.service

Step 5:重启samba服务

$ sudo systemctl restart smb.service

Step 6:测试windows登录

在这里插入图片描述

4.3 FTP

Step 1:安装vsftpd

$ sudo apt-get install vsftpd
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  system-user-ftp vsftpd

2 new packages to install.
Overall download size: 149.6 KiB. Already cached: 0 B. After the operation, additional 293.4 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package system-user-ftp-20170617-15.5.noarch                                                                            (1/2),  11.4 KiB (   67   B unpacked)
Retrieving: system-user-ftp-20170617-15.5.noarch.rpm .................................................................................................[done (3.5 KiB/s)]
Retrieving package vsftpd-3.0.3-12.4.1.armv7hl                                                                                     (2/2), 138.1 KiB (293.3 KiB unpacked)
Retrieving: vsftpd-3.0.3-12.4.1.armv7hl.rpm .........................................................................................................[done (54.7 KiB/s)]

Checking for file conflicts: .....................................................................................................................................[done]
(1/2) Installing: system-user-ftp-20170617-15.5.noarch ...........................................................................................................[done]
Additional rpm output:
useradd -r -s /sbin/nologin -c "FTP Account" -U -d /srv/ftp ftp
groupadd -r ftp


(2/2) Installing: vsftpd-3.0.3-12.4.1.armv7hl ....................................................................................................................[done]

Step 2:配置vsftpd本地目录

$ sudo vi /etc/vsftpd.conf

在默认配置文件基础上修改以下内容:

# 允许本地访问
local_enable=YES
# 允许写操作
write_enable=YES
# 不允许匿名登录
anonymous_enable=NO
# 对文件上传权限修改
local_umask=022

Step 3:配置vsftpd自启动

$ sudo systemctl enable vsftpd.service

Step 4:重启vsftpd服务

$ sudo systemctl restart vsftpd.service

Step 5:添加用户

$ useradd -m daniel

Step 6:修改用户密码

$ passwd daniel
New password:
Retype new password:
passwd: password updated successfully

Step 7:测试FTP客户端登录

具体如何安装配置FileZilla,请参考:FileZilla 安装使用指南

Filezilla配置FTP
Filezilla登录

5. 最终硬件形态

5.1 硬件展开

  1. 5V 2.1A USB Adapter x 2
  2. 300GB 机械硬盘
  3. 8GB 固态硬盘(冗余硬件)
  4. CubieBoard 2 Dual Card 板子一块
  5. tF Card 16GB x 1
  6. 扎带 x 1 (图中未拍)

未绑扎时的硬件配置图

5.2 硬件组装

将8GB固态硬盘绑在CubieBoard2主板下面,干净整洁!!!

帮扎好的整体硬件安装图

5.3 配置微调

鉴于硬件上做了微调,所以这个具体需要根据大家的情况去做考虑:

  1. 固态硬盘主要多一个可以快速使用的临时存放区,尽量不使用系统存储(tF卡 16GB)
  2. 机械硬盘主要是做媒体服务的,用于保存一些视频文件

5.3.1 samba(Windows共享)

在这里插入图片描述在这里插入图片描述

5.3.2 FTP(文件传输)

在这里插入图片描述

5.3.3 MiniDLNA(媒体服务)

在这里插入图片描述

5.4 硬盘挂载

openSUSE 没有rc.local,据说有一个after.local。可惜尝试没有成功。不过杀招我们还是有的。采用最为经典的fstab的方式进行挂载,详见fstab文件。

注:如果钟情于after.local的朋友可以参考下这个openSUSE 12.1启动没有(不能)运行after.local的问题,其主要原因可能是需要先建立一个/lib/systemd/system/after-local.service,然后才是启动这个脚本。如果尝试成功了,记得也告诉我下。

$ cat /etc/fstab
UUID=49f6d264-a496-42c7-b4ac-80f993c4dec2 swap swap defaults 0 0
UUID=d64511da-74ae-46f0-a0c1-afa6440f57c4 / ext4 noatime,nobarrier 0 0
UUID=3083-CF48 /boot/efi vfat defaults 0 0
/dev/sda1 /mnt/sddrive auto defaults 0 0
/dev/sdb1 /mnt/video auto defaults 0 0

6. 补充修改

  1. 鉴于笔者使用的是16GB的tF卡(这里前面有伏笔说过被8GB的垃圾卡坑过了)。
  2. 实际镜像文件解压以后,真正使用的是2GB,后面12.4GB的容量一直没有使用。

6.1 现象

  1. 经过一天时间的持续运行
  2. samba无法从Windows访问

6.2 分析

  1. samba测试的时候是好好的呀
  2. 难道配置文件有问题

那我们就尝试修改下samba的配置文件呗。结果保存文件发现无法保存,提示可能磁盘已满!

6.3 反思

百思不得其解啊,既然磁盘满,du看下磁盘情况呗:"/"根目录100%使用。

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M  8.0K  4.0M   1% /dev
tmpfs           462M     0  462M   0% /dev/shm
tmpfs           185M  7.7M  177M   5% /run
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/mmcblk0p3  1.4G  1.4G     0 100% /
/dev/sda1       7.2G   17M  6.8G   1% /mnt/sddrive
/dev/mmcblk0p1   16M  920K   16M   6% /boot/efi
/dev/sdb1       299G  200G   99G  68% /mnt/video
tmpfs            93M     0   93M   0% /run/user/1000

6.4 调研

肯定有东西占用了大量磁盘资源,使用du对根目录进行平铺展开。

发现以下文件夹下存在大量存储,/mnt下是硬盘的资源,这里就不说了。
191M ./var
826M ./usr

$ du -h --max-depth=1
44K     ./root
168K    ./bin
191M    ./var
200G    ./mnt
48K     ./home
3.0M    ./sbin
15M     ./etc
7.7M    ./run
16K     ./lost+found
4.0K    ./selinux
8.0K    ./dev
4.0K    ./opt
0       ./sys
20K     ./srv
40K     ./tmp
273M    ./lib
du: cannot access './proc/18755/task/18755/fd/4': No such file or directory
du: cannot access './proc/18755/task/18755/fdinfo/4': No such file or directory
du: cannot access './proc/18755/fd/3': No such file or directory
du: cannot access './proc/18755/fdinfo/3': No such file or directory
0       ./proc
57M     ./boot
826M    ./usr
201G    .

6.5 方案

通过16GB中剩余12GB进行系统存储扩容,这就是我们的乾坤大挪移咯!!!!
a) 191M ./var --> 4GB
b) 826M ./usr --> 8GB

6.6 步骤

这里要说明的是需要另外找一台linux机器,将tf卡加载到这台机器上操作。不能直接在运行的系统上直接操作这种乾坤大挪移。

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

Step 1:系统盘扩容

使用fdisk命令将剩余12GB进行分区扩容。

注:请不要对mmcblk0p1/mmcblk0p2/mmcblk0p3分区进行任何操作,因为这里面有我们系统数据。

$ sudo fdisk -l
Disk /dev/mmcblk0: 14.43 GiB, 15489564672 bytes, 30253056 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E9837256-724C-4F9B-906B-7ED62E60CEFB

Device            Start      End  Sectors  Size Type
/dev/mmcblk0p1     8192    40959    32768   16M EFI System
/dev/mmcblk0p2    40960  1064959  1024000  500M Linux swap
/dev/mmcblk0p3  1064960  4007902  2942943  1.4G Linux filesystem
/dev/mmcblk0p4  4007936 12396543  8388608    4G Linux filesystem
/dev/mmcblk0p5 12396544 30248959 17852416  8.5G Linux filesystem

Step 2:乾坤大挪移

挪移var/usr下资料到mmcblk0p4/mmcblk0p5下面

$ mount /dev/mmcblk0p3 /mnt/system
$ mount /dev/mmcblk0p4 /mnt/var
$ mount /dev/mmcblk0p5 /mnt/usr
$ mv /mnt/system/var/* /mnt/var
$ mv /mnt/system/usr/* /mnt/usr
$ umount /mnt/var
$ umount /mnt/usr

Step 3:查看块设备UUID

查看mmcblk0p4/mmcblk0p5的UUID

/dev/mmcblk0p4: UUID=“2d16f3ea-9005-4dde-8061-ca43521c941c”
/dev/mmcblk0p5: UUID=“03d2f334-70f4-4665-a0d0-5ded443fe333”

$ sudo blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL_FATBOOT="EFI" LABEL="EFI" UUID="3083-CF48" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="p.UEFI" PARTUUID="213ef3d1-0987-4c4e-90f7-8820a77f1d73"
/dev/mmcblk0p2: LABEL="SWAP" UUID="49f6d264-a496-42c7-b4ac-80f993c4dec2" TYPE="swap" PARTLABEL="p.swap" PARTUUID="7f457cbb-fa12-4eee-bab3-fb81a07cf51a"
/dev/mmcblk0p3: LABEL="ROOT" UUID="d64511da-74ae-46f0-a0c1-afa6440f57c4" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="p.lxroot" PARTUUID="c4e99182-c5d0-4af9-8c7b-0ed2954572c1"
/dev/mmcblk0p4: UUID="2d16f3ea-9005-4dde-8061-ca43521c941c" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="var" PARTUUID="81ad65f6-f883-4455-b96a-f965a46cfaa8"
/dev/mmcblk0p5: UUID="03d2f334-70f4-4665-a0d0-5ded443fe333" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="usr" PARTUUID="b0beb7ce-792b-4fda-a448-d0db2d316271"
/dev/sda1: UUID="8920aa9a-05e4-4309-8c3c-c618d5208087" BLOCK_SIZE="4096" TYPE="ext3" PARTUUID="9ff5a5cf-01"
/dev/sdb1: BLOCK_SIZE="512" UUID="E00AE1F10AE1C49E" TYPE="ntfs" PARTUUID="d89c57b0-01"

Step 4:修改fstab文件

请注意下面和mmcblk0p4/mmcblk0p5有关的配置。

$ sudo vi /mnt/system/etc/fstab
$ cat /etc/fstab
UUID=49f6d264-a496-42c7-b4ac-80f993c4dec2 swap swap defaults 0 0
UUID=d64511da-74ae-46f0-a0c1-afa6440f57c4 / ext4 noatime,nobarrier 0 0
UUID=3083-CF48 /boot/efi vfat defaults 0 0
UUID=2d16f3ea-9005-4dde-8061-ca43521c941c /var ext4 noatime,nobarrier 0 0
UUID=03d2f334-70f4-4665-a0d0-5ded443fe333 /usr ext4 noatime,nobarrier 0 0
/dev/sda1 /mnt/sddrive auto defaults 0 0
/dev/sdb1 /mnt/video auto defaults 0 0

Step 5:重启系统

将tF重新插回CubieBoard2-DualCard板子,重新启动板子。

目前配置情况下,系统冗余存储空间都有了,自此samba也正常了。

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M  8.0K  4.0M   1% /dev
tmpfs           462M     0  462M   0% /dev/shm
tmpfs           185M  3.1M  182M   2% /run
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/mmcblk0p3  1.4G  351M  945M  28% /
/dev/mmcblk0p5  8.4G  862M  7.1G  11% /usr
/dev/mmcblk0p4  3.9G  258M  3.5G   7% /var
/dev/sda1       7.2G   17M  6.8G   1% /mnt/sddrive
/dev/mmcblk0p1   16M  920K   16M   6% /boot/efi
/dev/sdb1       299G  200G   99G  68% /mnt/video
tmpfs            93M     0   93M   0% /run/user/0

7. 参考资料

【1】树莓派(Raspberry Pi)FTP服务搭建
【2】FileZilla 安装使用指南
【3】树莓派(Raspberry Pi)miniDLNA服务搭建
【4】openSUSE MiniDLNA
【5】openSUSE Samba

;