cndaqiang / E5-PC-daily

服务器集群管理遇到的问题和总结
1 stars 0 forks source link

OMV NAS系统 #33

Open cndaqiang opened 4 years ago

cndaqiang commented 4 years ago

下载

https://www.openmediavault.org/download.html

刻盘

安装

键盘终端安装 优先使用BIOS引导 不要安装中文系统 不使用网络也是可以安装的,这样应该会快很多,设置mirror时,可以返回来跳过不设置,只安装基础包

识别无线网卡YES

cndaqiang commented 4 years ago

硬盘

4G分区还是太小

cndaqiang commented 4 years ago

安装启动后

不会自动打开网卡

dhcpclient enp3s0

获到ip后,就可以网页访问了

网页的默认账户密码

admin
openmediavault

在终端

omv-firstaid

可以重置密码,配置网络等操作

cndaqiang commented 4 years ago

网页端可以连无线网,赞

重启后会自动连接,赞 image

cndaqiang commented 4 years ago

文件共享服务器

共享SMB 可以直接使用SMB, 可以给time machine image

cndaqiang commented 4 years ago

不安装插件的情况用作文件共享挺好的

后续可以测试插件

cndaqiang commented 4 years ago

问题

索泰的主板, mint/OMV 无显示器时按电源按钮不会自动进系统 重置BIOS默认设置就好了,真的很迷... UEFI引导的U盘现在没法启用了, 不清楚是文件损坏,还是引导出了问题???,重新安装

cndaqiang commented 4 years ago

DNS修改

vi /etc/resolv.conf
nameserver DNS的ip地址
cndaqiang commented 4 years ago

docker等功能

【教程】蜗牛星际安装开源NAS系统Openmediavault及初始化配置(司波图)——OMV系列教程01

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

多了OMV-Extras image 勾选Extras repo,更新

先更新docker源

sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
sudo add-apt-repository \
   "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
   $(lsb_release -cs) \
   stable"

进入docker,选docker install

image

cndaqiang commented 4 years ago
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

解决

(python37) cndaqiang@girl:~/work/tdpw/dipole/H2$ ps -aux | grep apt
root      8000  2.3  0.9 344560 151412 ?       SNl  18:58   0:25 /usr/bin/python3 /usr/sbin/aptd
root     26370  2.0  0.8 344560 144216 pts/2   SNs+ 19:16   0:00 /usr/bin/python3 /usr/sbin/aptd
cndaqia+ 26734  0.0  0.0  16180  1004 pts/0    S+   19:16   0:00 grep apt
(python37) cndaqiang@girl:~/work/tdpw/dipole/H2$ sudo kill  8000 
cndaqiang commented 4 years ago

虚拟机安装OMV

增强功能

apt update
apt install build-essential module-assistant dkms bzip2 linux-headers-amd64
apt upgrade
reboot
mkdir iso
mount /dev/cdrom iso
cd iso
./VBoxLinuxAdditions.run
reboot

image

mkdir /home/share
mount -t vboxsf omv /home/share

OMV也不能把虚拟机共享的目录再共享出去