omv 网站服务器,omv那些破事

omv安装

没啥好说的

bios记得关掉security boot?(我也忘了为啥关)

web面板

打开ip地址

初始登录用户名和密码:admin openmediavault

记得修改密码和时区,添加ntp服务器ntp.api.bz

时间不同步时,apt的ssl检验不能通过

apt更新出现python错误:

参考https://github.com/ayufan-rock64/linux-build/issues/136

In short open /usr/lib/python3.5/weakref.py and change line 109

def remove(wr, selfref=ref(self)):

to:

def remove(wr, selfref=ref(self), _atomic_removal=_remove_dead_weakref):

And line 117

_remove_dead_weakref(d, wr.key)

to:

_atomic_removal(d, wr.key)

Note you need to do this with spaces, not tabs as this will cause other errors.

软件源

OMV中的源有以下几部分组成:

Debian的源

OMV的源

OMV插件的源

其它自定义源

目前OMV4是基于debian9的,如果你试用debian9或OMV4,那么可使用以下源:

## 打开/etc/apt/sources.list文件注释掉原来的源(在每行前加#)##

## 复制以下代码到sources.list ##

deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free

deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free

deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free

deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free

deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

OMV的源选择性就少了,除了官方的源,在有就是sourceforge的源,这个可根据自己情况二选一,下面是OMV4的源:

## 打开/etc/apt/sources.list.d/openmediavault.list文件##

## 下面两行任选一行使用##

deb http://packages.openmediavault.org/public arrakis main

deb http://downloads.sourceforge.net/project/openmediavault/packages arrakis main

附:debian中科大源生成器

网络设置

ip addr #查看网卡

nano /etc/network/interface

末尾添加

auto enp3s0  #enp3s0是debian9开始后有线网卡硬件新名称,auto表示开机启动

iface enp3s0 inet static  #表示static ip

address 192.168.1.200  #ip地址为192.168.1.200

netmask 255.255.255.0  #掩码

gateway 192.168.123.1  #网关为192.168.123.1

dns-nameservers 192.168.1.1  #dns服务器设置,这个很重要,不然上不去

无线连接:

可以安装network-manager,用nmcli和nmtui

The following network interfaces were found in /etc/network/interfaces

which means they are currently configured by ifupdown:

- enp1s0

If you want to manage those interfaces with NetworkManager instead

remove their configuration from /etc/network/interfaces.

proxychains

安装v2

wget https://install.direct/go.sh

sudo bash go.sh

安装v2sub

设置python环境

sudo apt install python3-pip

pip3 install requests

vim ~/.bashrc

# 在末尾添加

export LANG=en_US.UTF-8

export LC_CTYPE=en_US.UTF-8

export LC_ALL=en_US.UTF-8

# 保存退出后

source ~/.bashrc

安装

git clone https://github.com/xbblog95/v2sub.git;

cd v2sub;

chmod 777 v2sub;

./v2sub;

#测速

./v2sub speedtest

proxychains需要安装dnsutils

sudo apt-get install proxychains dnsutils

修改dns

sudo nano /usr/lib/proxychains3/proxyresolv

DNS_SERVER=${PROXYRESOLV_DNS:-8.8.8.8}

修改端口

sudo nano /etc/proxychains.conf

socks5  127.0.0.1 1080

apt异常时解锁

查找所有apt相关的进程,并用命令杀死。

hlp@hlp-Lenovo-G405:~$ ps afx|grep apt

3284 pts/0    S+     0:00          \_ grep --color=auto apt

2869 ?        Ss     0:00 /bin/sh /usr/lib/apt/apt.systemd.daily install

2873 ?        S      0:00  \_ /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held install

hlp@hlp-Lenovo-G405:~$ sudo kill -9 2873

hlp@hlp-Lenovo-G405:~$ sudo kill -9 2869

删除锁定文件

锁定的文件会阻止 Linux 系统中某些文件或者数据的访问,这个概念也存在于 Windows 或者其他的操作系统中。

一旦你运行了 apt-get 或者 apt 命令,锁定文件将会创建于 /var/lib/apt/lists/、/var/lib/dpkg/、/var/cache/apt/archives/ 中。

这有助于运行中的 apt-get 或者 apt 进程能够避免被其它需要使用相同文件的用户或者系统进程所打断。当该进程执行完毕后,锁定文件将会删除。

所以:

1:移除对应目录下的锁文件

2:强制重新配置软件包

3:更新软件包源文件

hlp@hlp-Lenovo-G405:~$ sudo rm /var/lib/dpkg/lock

hlp@hlp-Lenovo-G405:~$ sudo dpkg --configure -a

hlp@hlp-Lenovo-G405:~$ sudo apt update

安装omve-xtras

下载地址

上传,安装

安装docker

proxychains apt install openmediavault-docker-gui

安装Jellyfin

docker pull jellyfin/jellyfin:latest

mkdir -p /srv/jellyfin/{config,cache}

docker run -d -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /media:/media --net=host jellyfin/jellyfin:latest

OMV Docker是OpenMediaVault的插件,用于管理和运行Docker容器。在安装OMV Docker时,可能会遇到国内网络限制或速度慢的问题。为了解决这个问题,可以使用国内的Docker镜像服务器,如网易云、百度云、DaoCloud、阿里云和Github提供的镜像服务器。你可以在编辑器中粘贴以下内容来配置镜像服务器: { "registry-mirrors": [ "https://hub-mirror.c.163.com", "https://mirror.baidubce.com" ] } 这样配置后,OMV Docker将会使用国内镜像服务器来下载和运行容器,从而提高速度和稳定性。如果在安装过程中遇到其他问题,可能是因为国内网络运营商对国外网站进行了限制,或者需要使用其他方法来解决。你可以自行搜索相关内容进行解决。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [DIY NAS服务器OMV 5.6入坑指南(四) -安装docker和Portainer](https://blog.csdn.net/atlim/article/details/128521056)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *3* [树莓派-OMV-安装docker和docker可视化管理工具](https://blog.csdn.net/u011426040/article/details/119756603)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值