树莓派安装omv(debian)

By Heanny
2021-08-21
267 read

安装系统

因为omv只支持两种安装方式

  1. 官方ios安装
  2. debian系统内安装

安装debian系统
https://gitee.com/openfans-community/Debian-Pi-Aarch64/blob/master/README_zh.md#6%E4%B8%8B%E8%BD%BD%E5%9C%B0%E5%9D%80
我选择的是:无桌面增强版
系统默认账户:pi ,默认密码:raspberry
sudo passwd 修改root密码
配置网络
cat /etc/network/interfaces

source-directory /etc/network/interfaces.d

# 如果是有线连接
auto eth0
allow-hotplug eth1

iface eth0 inet dhcp
#iface eth0 inet static
#address 172.16.192.168
#netmask 255.255.255.0
#gateway 172.16.192.1
#dns-nameservers 8.8.8.8

# 无线连接
auto wlan0

如果只是有线或者无限连接,按照readme上面配置/boot/wpa_supplicant.conf或/boot/interfaces即可,如果是两个都需要,那么wlan配置就不能使用boot下面的,不然无法启用

## - Used this conf, unconfig # every line bellow. (Do not change this line)

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "这是WIFI名"
wpa-psk "这是密码."


## When used the following line, must comment wpa-ssid and wpa-psk line above !! (Do not change this line)
## Unless you know how to use it, don't change the following line !! (Do not change this line)
# 一个WIFI的话一定注释下面这一行
# wpa_conf /etc/wpa_supplicant/wpa_supplicant.conf

安装OMV源key
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7E7A6C592EF35D13 24863F0C716B980B

下载key的deb包并安装
wget http://packages.openmediavault.org/public/pool/main/o/openmediavault-keyring/openmediavault-keyring_1.0_all.deb
dpkg -i openmediavault-keyring_1.0_all.deb

配置环境变量

export LANG=C
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none

vim /etc/apt/sources.list.d/openmediavault.list

deb http://packages.openmediavault.org/public arrakis main
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
deb http://ftp.cn.debian.org/debian stretch main
deb http://downloads.sourceforge.net/project/openmediavault/packages arrakis main
deb http://packages.openmediavault.org/public arrakis-proposed main
deb http://downloads.sourceforge.net/project/openmediavault/packages arrakis-proposed main
deb http://packages.openmediavault.org/public arrakis partner
deb http://downloads.sourceforge.net/project/openmediavault/packages arrakis partner

安装

apt update
apt install openmediavault-keyring postfix
apt install openmediavault

初始化
omv-initsystem

以上安装可能有问题

方法2

在终端运行下面的命令开始安装:

wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
如果上面的 URL 被墙了,可以用 CDN 的链接:

wget -O - https://cdn.jsdelivr.net/gh/OpenMediaVault-Plugin-Developers/installScript@master/install | sudo bash

默认的用户名为「admin」,密码「openmediavault」。

其他方法

下载 编译好的树莓派omv镜像omv_rpi2_rpi3_3.0.63.img
下载地址:

https://sourceforge.net/projects/openmediavault/files/OMV%205.x%20for%20Single%20Board%20Computers/
或者百度网盘
https://pan.baidu.com/share/init?surl=smevVVf(密码: t8gm)。

直接刻到tf卡,然后启动即可

修改yum元
vim /etc/apt/sources.list.d/raspi.list

清华的源:deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui

这个文件的源可下载驱动软件,用的不多,保持统一,一起换了。
vim /etc/apt/sources.list

清华的源:deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

源地址主要下载三方软件使用。

问题

树莓派安装homeassistant失败 Setup script exited with error: command ‘arm-linux-gnueabihf-gcc’ failed with
apt-get install build-essential libssl-dev libffi-dev python3-dev python-dev

Syncthing 的简单使用
[Flask] 生成flask接口文档

Comments

暂无评论,还不快来坐沙发...

Leave a Reply