pve7.x/7.4多功能工具脚本(web温度显示、硬盘休眠、去订阅)

前言

最近升级了pve7.4  导致之前的web温度配置都失效了,就去gay上找了下有没有别的工具,刚好找到了一个多功能工具脚本https://github.com/ivanhao/pvetools

理论上debian9+可以用,包括web温度显示配置邮件sambaNFSzfs嵌套虚拟化docker硬盘直通等功能。

笔记

方式一:命令行安装

需要用root账号来运行

在终端中按行分别执行以下内容:

强烈建议先删除企业源:rm /etc/apt/sources.list.d/pve-enterprise.list

export LC_ALL=en_US.UTF-8
apt update && apt -y install git && git clone https://github.com/ivanhao/pvetools.git
cd pvetools
./pvetools.sh

一键无脑安装:

echo "nameserver  8.8.8.8" >> /etc/resolv.conf && rm -rf pvetools && rm -rf /etc/apt/sources.list.d/pve-enterprise.list && export LC_ALL=en_US.UTF-8 && apt update && apt -y install git && git clone https://github.com/ivanhao/pvetools.git && echo "cd /root/pvetools && ./pvetools.sh" > pvetools/pvetools && chmod +x pvetools/pvetools* && ln -s /root/pvetools/pvetools /usr/local/bin/pvetools && pvetools
方式二:下载zip安装
  • 建议使用方式一来安装,不建议直接下载单sh脚本使用,因为那样更新的功能会无法使用!

  • 如果网络无法使用,或命令行使用有困难,可以使用方式二下载zip包拷入系统中使用。

卸载

  1. 删除下载的pvetools目录

运行

在shell中进入pvetools目录,输入 ./pvetools.sh

  • 如果提示没有权限,输入chmod +x ./*.sh

题外

我的pve7.4 版本温度是显示正常 但是没有m2和sata的温度 不过也够用了,哪天我看看要不要自己追加个其他两个(先画饼吧 之前看了下还是有点麻烦的)。

 

点赞

发表回复

电子邮件地址不会被公开。必填项已用 * 标注