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

news2025/1/11 17:56:49

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

  • 1. 简介
  • 2. 规格
  • 3. 系统安装
    • 3.1 Linux/Unix稳定镜像
    • 3.2 基础功能更新&安装
      • 3.2.1 更新源
      • 3.2.2 升级系统
      • 3.2.3 基础功能安装
    • 3.3 OpenSUSE系统情况
      • 3.3.1 源操作命令
      • 3.3.2 源镜像
  • 4. 需求 & 配置
    • 4.1 MiniDLNA
      • Step 1:安装MiniDLNA
      • Step 2:配置MiniDLNA本地目录
      • Step 3:配置MiniDLNA自启动
      • Step 4:重启MiniDLNA
      • Step 5:手机测试多媒体服务
    • 4.2 samba
      • Step 1:安装samba(Windows共享)
      • Step 2:配置samba
      • Step:3:添加samba用户
      • Step 4:配置samba自启动
      • Step 5:重启samba服务
      • Step 6:测试windows登录
    • 4.3 FTP
      • Step 1:安装vsftpd
      • Step 2:配置vsftpd本地目录
      • Step 3:配置vsftpd自启动
      • Step 4:重启vsftpd服务
      • Step 5:添加用户
      • Step 6:修改用户密码
      • Step 7:测试FTP客户端登录
  • 5. 最终硬件形态
    • 5.1 硬件展开
    • 5.2 硬件组装
    • 5.3 配置微调
      • 5.3.1 samba(Windows共享)
      • 5.3.2 FTP(文件传输)
      • 5.3.3 MiniDLNA(媒体服务)
    • 5.4 硬盘挂载
  • 6. 参考资料

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日仍然有人在维护

  • HCL:CubieBoard2链接
  • Leap-15.3 JeOS image推荐稳定版本
  • Web FTP链接
    在这里插入图片描述

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或者没有找对添加的方法。如果有小伙伴找到或者找到正确的方法,请留言,谢谢!

  • 阿里巴巴开源镜像站
  • USTC Mirror
  • 网易开源镜像站
  • 搜狐镜像站
  • 清华大学开源软件镜像站

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】树莓派(Raspberry Pi)FTP服务搭建
【2】FileZilla 安装使用指南
【3】树莓派(Raspberry Pi)miniDLNA服务搭建
【4】openSUSE MiniDLNA
【5】openSUSE Samba

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/180667.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Day870.全局锁和表锁 -MySQL实战

全局锁和表锁 Hi&#xff0c;我是阿昌&#xff0c;今天学习记录的是关于全局锁和表锁的内容。 数据库锁设计的初衷是处理并发问题。 作为多用户共享的资源&#xff0c;当出现并发访问的时候&#xff0c;数据库需要合理地控制资源的访问规则。锁就是用来实现这些访问规则的重…

数据结构 | C++ | 并查集原理讲解与模拟实现 | 并查集的相关习题

文章目录前言并查集原理并查集的模拟实现leetcode练习省份数量等式方程的可满足性前言 并查集通常会作为高阶数据结构的一个子结构使用&#xff0c;虽然原理不是很难&#xff0c;但其思想值得我们好好学习 并查集原理 并查集是一种树形结构&#xff0c;其保存了多个集合&…

【Maven】多环境配置与应用

目录 1. 多环境配置作用 问题导入 2. 多环境配置步骤 2.1 定义多环境 2.2 使用多环境&#xff08;构建过程&#xff09; 3. 跳过测试&#xff08;了解&#xff09; 问题导入 3.1 应用场景 3.2 跳过测试命令 3.3 细粒度控制跳过测试 1. 多环境配置作用 问题导入 多…

LeetCode 2331. 计算布尔二叉树的值

给你一棵 完整二叉树 的根&#xff0c;这棵树有以下特征&#xff1a; 叶子节点 要么值为 0 要么值为 1 &#xff0c;其中 0 表示 False &#xff0c;1 表示 True 。 非叶子节点 要么值为 2 要么值为 3 &#xff0c;其中 2 表示逻辑或 OR &#xff0c;3 表示逻辑与 AND 。 计算…

【推荐系统】User-Item CF:NGCF

&#x1f4a1; 本次解读的文章是 2019 年发表于 SIGIR 的一篇基于图卷积神经网络的用户物品协同过滤推荐算法论文&#xff0c; 论文将用户-物品交互信息建模为二分图&#xff0c;提出了一个基于二分图的推荐框架 Neural Graph Collaborative Filtering&#xff08;NGCF&#xf…

基于nodejs+vue的社区问答网站与设计

目 录 摘要 I Abstract II 1 绪论 1 1.1 选题背景 1 1.2 选题意义 1 1.3 研究内容 2 2 相关技术介绍 3 3 系统分析 5 3.1可行性分析 5 3.2 需求分析 5 3.2.1非功能性需求 5 3.2.2功能需求 6 3.3 系统用例 6 3.3.1 会员功能需求 6 …

【C++修炼之路】13. priority_queue及仿函数

每一个不曾起舞的日子都是对生命的辜负 stack&&queue一 . priority_queue介绍二. priority_queue的使用三. 仿函数3.1 仿函数的介绍3.2 仿函数的好处四.priority_queue模拟实现五.仿函数之日期比较一 . priority_queue介绍 priority_queue文档介绍 优先队列是一种容器…

机器学习实战(第二版)读书笔记(2)—— LSTMGRU

刚接触深度学习半年的时间&#xff0c;这期间有专门去学习LSTM &#xff0c;这几天读机器学习实战这本书的时候又遇到了&#xff0c;感觉写的挺好的&#xff0c;所以准备结合本书写一下总结方便日后回顾。如有错误&#xff0c;欢迎批评指正。 一、LSTM 优势&#xff1a;可在一…

ApiSix 开启SkyWalking插件,实现链路信息追踪

ApiSix 开启SkyWalking插件&#xff0c;实现链路信息追踪1 ApiSix开启SkyWalking插件1.1 修改config.yml配置文件1.2 在路由中开启SkyWalking插件2 创建两个SpringBoot服务&#xff0c;接入SkyWalking2.1 下载skywalking agent2.2 创建服务2.3 测试SkyWalking1 ApiSix开启SkyWa…

【链表】反转链表

BM1反转链表 描述 给定一个单链表的头结点pHead(该头节点是有值的&#xff0c;比如在下图&#xff0c;它的val是1)&#xff0c;长度为n&#xff0c;反转该链表后&#xff0c;返回新链表的表头。 数据范围&#xff1a; 0\leq n\leq10000≤n≤1000 要求&#xff1a;空间复杂度…

飞行员兄弟( 二进制枚举) --《算法竞赛进阶指南》

题目如下&#xff1a; 输入样例&#xff1a; --- ---- ---- ---输出样例&#xff1a; 6 1 1 1 3 1 4 4 1 4 3 4 4思路 or 题解&#xff1a; 数据量很小可以直接进行 搜索 在这里我使用 二进制枚举 的方法去寻找答案 时间复杂度&#xff1a;O(2n)O(2^n)O(2n) 我们二进制枚举…

计算机相关专业混体制的解决方案(事业编之学校与医院)

文章目录1、教师行业1.1 中小学教师资格1.2 高校教师资格证1.3 应聘中小学教师1.4 待遇2、医疗行业2.1 如何进入医院信息科2.2 医院信息科工作内容2.3 医院信息科待遇主要介绍三个方面&#xff1a; 1、招聘条件&#xff0c;要求是什么。 2、工作内容&#xff0c;需要我做什么工…

【哈希表】leetcode242.有效的字母异位词(C/C++/Java/Python/Js)

leetcode242.有效的字母异位词1 题目2 思路 &#xff08;字典解法&#xff09;3 代码3.1 C版本3.2 C版本3.3 Java版本3.4 Python版本3.5 JavaScript版本4 总结1 题目 题源链接 给定两个字符串 s 和 t &#xff0c;编写一个函数来判断 t 是否是 s 的字母异位词。 注意&#xf…

【JavaScript】多态(Symbol),迭代器接口,getter/setter,继承,instanceof

❤️ Author&#xff1a; 老九 ☕️ 个人博客&#xff1a;老九的CSDN博客 &#x1f64f; 个人名言&#xff1a;不可控之事 乐观面对 &#x1f60d; 系列专栏&#xff1a; 文章目录多态symbol迭代器接口实现数组的迭代器方法练习Getter/Setterstatic继承instanceof多态 我拿到一…

虽迟但到,我的2022年终总结

“子在川上曰&#xff0c;逝者如斯夫”。经历一年的居家办公、解封&#xff0c;终于在年底回归正常生活。时隔三年回老家过年&#xff0c;一切如故&#xff0c;好像疫情从没有来过。2022年对我来说是值得记忆的一年&#xff0c;在这一年里完成了买房这件人生大事&#xff0c;终…

SpringCloud学习笔记【part1】Spring Cloud Gateway网关的搭建、处理跨域问题

一、Spring Cloud Gateway 介绍 API网关出现的原因是微服务架构的出现&#xff0c;不同的微服务一般会有不同的网络地址&#xff0c;而外部客户端可能需要调用多个服务的接口才能完成一个业务需求。API 网关是介于客户端和服务器端之间的中间层&#xff0c;所有的外部请求都会先…

macos nginx 安装/卸载,启动/重启/关闭

1.安装/卸载 在macos中使用homebrew安装 brew install nginx,卸载brew uninstall nginx。homebrew安装 brew install xx&#xff0c;卸载brew uninstall xx 可以直接安装nginx-full&#xff0c;来安装echo模块 brew install nginx-full # 如果上面安装报错&#xff0c;需要按…

C 程序设计教程(18)—— 数组和指针(一):数组

C 程序设计教程&#xff08;18&#xff09;—— 数组和指针&#xff08;一&#xff09;&#xff1a;数组 该专栏主要介绍 C 语言的基本语法&#xff0c;作为《程序设计语言》课程的课件与参考资料&#xff0c;用于《程序设计语言》课程的教学&#xff0c;供入门级用户阅读。 目…

【SpringCloud复习巩固】微服务+Eureka+Ribbon

文章中需要用到的代码和sql 链接&#xff1a;https://pan.baidu.com/s/1_1Qqro7wR5zi7Ds8Bgmf-g 提取码&#xff1a;vxzg 目录 一.微服务 1.1单体架构 1.2分布式架构 1.3微服务 1.4各自特点总结 1.5微服务技术对比 二.服务拆分及远程调用 三.Eureka注册中心 3.1服务调用…

KVM虚拟化之小型虚拟机kvmtool的使用

根据 kvmtool github仓库文档的描述&#xff0c;类似于QEMU&#xff0c;kvmtool是一个承载KVM Guest OS的 host os用户态虚拟机&#xff0c;作为一个纯的完全虚拟化的工具&#xff0c;它不需要修改guest os即可运行, 不过&#xff0c;由于KVM基于CPU的硬件虚拟化支持&#xff0…