12

OpenMediaVault 设置

 4 years ago
source link: http://einverne.github.io/post/2020/03/openmediavault-setup.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

OpenMediaVault,是一个开源的基于 Debian Linux 的下一代网络附加存储 (NAS) 解决方案。

镜像源

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free

omv-extras

安装:

wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash

docker mirror

编辑 vi /etc/docker/daemon.json :

{
	"registry-mirrors": [
		"https://registry.azk8s.cn"
		"https://reg-mirror.qiniu.com",
	],
  "data-root": "/var/lib/docker"
} ~ 重启:

/etc/init.d/docker restart

开启 sharedfolders

我全新安装的 OpenMediaVault 5.3.4 中,创建共享文件夹,系统不会自动在 sharedfolders 中创建文件夹,查了一下,发现是 OpenMediaVault 在 5.3.3-1 版本中将 sharedfolders 功能给禁用了,官方的 说明 是可能造成不稳定。不过可以通过如下方法手工开启:

Disable the '/sharedfolder/<xyz>' feature by default on new
installations because it makes too much problems.
It can be enabled by setting the environment variable to
'OMV_SHAREDFOLDERS_DIR_ENABLED="YES"'. Finally run the command
'omv-salt stage run prepare' to apply the modified default values
and 'omv-salt deploy run systemd' to create the unit files.

但是我尝试一下之后发现创建共享文件后,sharedfolder 中依然没有,那我就只能手动 ln 了。

ln -s /srv/dev-disk-by-label-storage/appdata /sharedfolders/appdata
ln -s /srv/dev-disk-by-label-storage/ruTorrent/ /sharedfolders/ruTorrent

ruTorrent

Pull 镜像:

docker pull dockerhub.azk8s.cn/linuxserver/ruTorrent

创建:

docker run -d \
  --name=rutorrent \
  -e PUID=1000 \
  -e PGID=1000 \
  -p 8080:80 \
  -p 5000:5000 \
  -p 51415:51413 \
  -p 6881:6881/udp \
  -v /sharedfolders/appdata/ruTorrent:/config \
  -v /sharedfolders/ruTorrent:/downloads \
  --restart unless-stopped \
  dockerhub.azk8s.cn/linuxserver/rutorrent

然后根据这里 的说明改一下主题。


Recommend

  • 125
    • GAD腾讯游戏开发者平台 gad.qq.com 6 years ago
    • Cache

    【GAD翻译馆】VR100天教程:第一天设置Unity Ball教程

    译者:刘鸿(lewis2012,251423807)     审校:王玥亭(玥亭)我知道,Unity更适合初学者,所以我决定选择Unity。我安装了最新版本的 

  • 24

    README.md openmediavault openmediavault is the next generation network attached storage (NAS) solution based on Debian Linux. It contains services like...

  • 26

    看文章老有几个 NAS 系统被翻来覆去的提到,这里就一起看看 Wiki,看看有什么区别吧。 FreeNAS NAS 系统中最著名也最强大的一个系统,基于 FreeBSD,集成了 Sun 公司的 ZFS 文件系统,ZFS 拥有很多文件管理的特性,非常...

  • 16

    最近在考虑在PVE上使用开源云盘,开源NAS,整合成一个完整的解决方案,目标是可以在生产系统上使用。结合桌面云,提供云盘和NAS功能,统一用户账号,就能提供一个完整的解决方案,还是比较有价值的。总体思路: 1、在PVE上创建OMV虚拟机(OpenMediaVault)...

  • 8
    • blog.ponder.work 2 years ago
    • Cache

    在WSL2中安装openmediavault(OMV)

    NAS的文件系统一直是我比较纠结的一个点。NAS的系统基本上是基于Linux(Unix),文件系统不是ntfs,数据迁移不方便,数据恢复工具也没那么全。 WSL就完美解决了这个问题,用Linux提供服务,数据最终还是落在ntfs上,而且重要的是everything也能用上。...

  • 11
    • leejarod.wordpress.com 2 years ago
    • Cache

    加入OPENMEDIAVAULT队列

    加入OPENMEDIAVAULT队列 – 理想年代【Ideal age】一直在考虑是不是应该部署一个自己的NAS,本来倒是很青睐群晖系统的,可惜实在舍不得拿出一两个月的薪水做这样的实践,做为一个小学老师的收入之低实在无可奈何,本打算用办公电脑上一个黑群晖先试试,可是垃圾...

  • 33

    Hyper-V 中安装 openmediavault(OMV) 实现完美 NAS 文件共享 发表于 2021-09-21 ...

  • 5

    NFS Shares on OpenMediaVaultOpenMediaVault is a Debian-based network-attached storage (NAS) solution that supports SMB/CIFS, SSH, FTP, RSync, DAAP media server, BitTorrent client e.t.c. Its modular design, allows Op...

  • 11

    Install and Configure OpenMediaVault NAS Storage ServerWelcome to this guide on how to install and configure OpenMediaVault NAS Storage Server. But before we dive into the nub of this tool, we need to know what this tool is all abou...

  • 7

    请注意!!! 本系列的文章是断断续续写的,最早写于2022年9月,可能有些信息已经过时! 别问,问就是写了一半然后放草稿箱里长草了。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK