锐⾓云N3450折腾OMV记录⼀、安装debian11:
下载nonfree镜像(驱动⽐较全):
⼆:安装OMV6:
1、安装:
参考地址:
To install OMV6 on an already installed Debian 11 (Bullseye), simply execute the following steps: cat <<EOF >> /etc/apt/sources.list.d/openmediavault.list
deb /public shaitan main
# deb downloads.sourceforge/project/openmediavault/packages shaitan main
## Uncomment the following line to add software from the proposed repository.
# deb /public shaitan-proposed main
# deb downloads.sourceforge/project/openmediavault/packages shaitan-proposed main
## This software is not part of OpenMediaVault, but is offered by third-party
## developers as a service to OpenMediaVault users.
# deb /public shaitan partner
# deb downloads.sourceforge/project/openmediavault/packages shaitan partner
EOF
export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
apt-get install --yes gnupg
wget -O "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" /public/archive.key apt-key add "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc"
apt-get update
apt-get --yes --auto-remove --show-upgraded \
--allow-downgrades --allow-change-held-packages \
--no-install-recommends \
--option DPkg::Options::="--force-confdef" \
--option DPkg::Options::="--force-confold" \
install openmediavault-keyring openmediavault
# Populate the database.
omv-confdbadm populate
# Display the login information.
cat /etc/issue
2、安装完成后设置中⽂环境:
修改/etc/default/locale ⽂件⾥,注意,有#号的要去掉。
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
修改为下⾯内容:
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
在使⽤的过程中有报错话,那是因为英⽂包没有被安装,使⽤下⾯的命令
sudo dpkg-reconfigure locales
nginx ssl证书配置选择zh_CN.UTF-8。。。⽤空格选中,不要直接敲回车。
选择好之后重启
3、设置最低⽀持smbV1版本
smb设置⾥扩展选项增加:server min protocol=NT1
三、安装cups
sudo apt install cups
安装常⽤打印机驱动:
sudo apt install foomatic-db-engine foomatic-db
1.2 修改f
sudo vi /etc/f
Listen localhost:631改成 Listen 0.0.0.0:631
或者注释掉 Listen localhost:631加上 Port:631
# Restrict access to the server…
<Location />
Order allow,deny
Allow @Local    //添加此项
</Location>
# Restrict access to the admin pages…
<Location /admin>
Order allow,deny
Allow @Local    //添加此项
</Location>
# Restrict access to configuration files…
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @Local    //添加此项
</Location>
DPK200H 驱动安装 Epson 24-Pin Series (grayscale)  default设置180DPI
电脑端安装 Fujitsu DPK200H驱动
四、安装webdav
远程改⽤RaiDrive通过sftp挂载,局域⽹webdav播放速度⽐smb快很多。
参考地址:,⾃⼰⽤的是⼆进制安装
参考,注册为*unix服务,实现开机⾃动启动。此步骤有疑问的话,搜索对应操作系统+systemd关键词。需要特别注意的是:
⼆进制⽂件所在的执⾏⽬录需要和Systemd配置⽂件中的ExecStart⽬录保持⼀致。
作者说明了⽀持JSON, YAML and TOML配置⽂件格式,因此你需要加上相应后缀,否则配置⽂件不⽣效。例如JSON添加.json、YAML添加.yml。
OMV5(Debian)中⼆进制⽂件安装例⼦(解压提⽰路径错误,webdav解压到、/usr/bin⽬录就⾏):
wget github/hacdias/webdav/releases/download/v4.1.0/
tar -zxvf linux
vim /etc/systemd/system/webdav.service
webdav.service(注意确保路径/l下的配置⽂件已存在):
[Unit]
Description=WebDAV server
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/webdav --config /l
Restart=on-failure
[Install]
WantedBy=multi-user.target
/l:
# Server related settings
address: 0.0.0.0
port: 8080
auth: true
tls: false
prefix: /
# Default user settings (will be merged)
scope: .
modify: true
rules: []
cors:
enabled: false
credentials: false
users:
- username: admin
password: "{bcrypt}$2a$12$NRf4qBRbBJ0/XR56S7UwaOWzlLIs8fTRDILiC02BGCbbol2g/dw2i"
scope: /date
modify:  true
设置开机启动并启动服务:
systemctl enable webdav
systemctl start webdav
关于内⽹穿透
为NAS搭建内⽹穿透有很多种⽅案。
针对SSL证书部署,可以采⽤:
1. 直接在配置⽂件中设置tls为true并配置相应的SSL证书地址。
2. 配置⽂件中保持tls为false,在FRP或其它内⽹穿透⼯具中配置HTTPS并加载相应证书。
3. 配置⽂件中保持tls为false,在FRP或其它内⽹穿透⼯具中仅穿透TCP协议(可配置加密和压缩),在公⽹服务器(FRP或其它内⽹穿
透⼯具所在的服务器)中配置Nginx反向代理搞定证书问题。
强烈推荐第三个⽅案,简单也安全。
关于Nginx反向代理的关键配置信息,此webdav服务端作者hacdias已经在中注明。
其它
请⼤家不要咨询在OMV中如何安装Docker或如何在Portainer中安装webdav之类的问题。此类问题太过于基础(例如后者,可以先进SSH直接执⾏命令,然后回到Portainer中看Container配置发⽣了什么变化)。
推荐⼤家使⽤Mountain Duck这样的⼯具挂载带有SSL证书的WebDAV地址,可以实现和OneDrive或Dropbox⼀样的智能同步功能(始终在此设备上保留、释放空间)。
五、安装VirtualHere:
官⽹:
VirtualHere server install and uninstall script
VirtualHere server install script for systemd based systems (e.g Raspberry Pi and most modern Linux Distributions).
Installing default version
To install the default server version for your architecture, run the following command and enter in your sudo password when prompted. curl raw.githubusercontent/virtualhere/script/main/install_server | sudo sh
Installing optimized or custom version
To install an optimized or custom version, pass the file name as a script argument. A list of optimized versions is available in the "CPU optimized builds of VirtualHere USB Server for Maximum Performance on your hardware" section of page.
curl raw.githubusercontent/virtualhere/script/main/install_server | sudo sh -s - vhusbdarmpi4
Uninstalling server
To uninstall the server, run the following command. This script will remove server binary and systemd service, but it will preserve the configuration file.
curl raw.githubusercontent/virtualhere/script/main/uninstall_server | sudo sh
六、安装syncthing:
官⽹:
要允许系统检查软件包的真实性,您需要提供发⾏密钥。(此步骤可能需要FQ,如果下载不成功可⼿动下载到/usr/share/keyrings⽬录)。# Add the release PGP keys:
sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg
该频道使⽤稳定的发布版本进⾏更新,通常每⽉的第⼀个星期⼆更新⼀次。stable
# Add the "stable" channel to your APT sources:
echo"deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] apt.syncthing/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
最后。
# Update and install syncthing:
sudo apt-get update
sudo apt-get install syncthing
安装完成后,⼿动启动服务(最好不⽤root账户):
sudo systemctl start syncthing@⽤户名
服务启动后可能打不到配置页。
Syncthing的默认端⼝是8384,但是⼀般不推荐,因为⽹页访问的时候还得⼿动添加端⼝号并不⽅便,其次2019年了,⽹站还没有SSL总觉得不应当。
Syncthing的配置⽂件是l,放置于/.config/syncthing中,⾄于哪个.config取决于你安装时使⽤的⽤户了。假如说使⽤了root⽤户,那么就在/root/.config/syncthing中。
使⽤vim打开l后,到以下配置信息:
<gui enabled="true" tls="false" debugging="false">
<address>127.0.0.1:8384</address>
<apikey>k1dnz1Dd0rzTBjjFFh7CXPnrF12C49B1</apikey>
<theme>default</theme>
</gui>
将127.0.0.1改为0.0.0.0 实现访问syncthing的⽹页
故障排除
分发包优先于此版本
要确保系统包不会优先于此存储库中的系统包,您需要调整优先级/⾸选项。
# Increase preference of Syncthing's packages ("pinning")
printf "Package: *\nPin: origin apt.syncthing\nPin-Priority: 990\n" | sudo tee /etc/apt/preferences.d/syncthing
缺少 HTTPS ⽅法驱动程序
根据您的发⾏版,您可能会在运⾏时看到类似于以下内容的错误:apt-get
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
E: Failed to fetch
如果是这样,请安装该软件包,然后重试:apt-transport-https
sudo apt-get install apt-transport-https
服务器证书验证失败
特别是对于较旧的发⾏版,您的系统 TLS 证书存储可能已过时。⾃ 2021 年 10 ⽉起,必须安装较新的 Let's Encrypt 根证书,否则您在运⾏时可能会看到类似于以下内容的错误:apt-get
E: Failed to fetch apt.syncthing/dists/syncthing/stable/binary-armhf/Packages
server certificate verification failed. CAfile: /etc/ssl/ CRLfile: none
E: Some index files failed to download. They have been ignored, or old ones used instead.
请确保您使⽤的是最新版本的软件包,然后重试:ca-certificates
sudo apt-get update
sudo apt-get upgrade ca-certificates
七、安装transmission:
1、安装
默认是root⽤户操作。
在终端⾥输⼊以下命令安装
apt-get install transmission-daemon
安装过程中会顺带把transmission-cli也安装上,所以安装完毕后系统会多出如下⼀些命令⾏⼯具。
transmission-cli:独⽴的命令⾏客户端。
transmission-create:⽤来建⽴.torrent种⼦⽂件的命令⾏⼯具。
transmission-daemon:后台守护程序。
transmission-edit:⽤来修改.torrent种⼦⽂件的announce URL。
transmission-remote:控制daemon的程序。
transmission-show:查看.torrent⽂件的信息。
停⽌transmission的进程,否则修改配置⽂件⽆效,执⾏下⾯的命令:
systemctl stop transmission-daemon

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。