前言
最近升级了pve7.4 导致之前的web温度配置都失效了,就去gay上找了下有没有别的工具,刚好找到了一个多功能工具脚本https://github.com/ivanhao/pvetools
理论上debian9+可以用,包括web温度显示,配置邮件,samba,NFS,zfs,嵌套虚拟化,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包拷入系统中使用。
卸载
- 删除下载的pvetools目录
运行
在shell中进入pvetools目录,输入 ./pvetools.sh
- 如果提示没有权限,输入
chmod +x ./*.sh
主界面
根据需要选择对应的选项即可。
配置邮件说明:
只有以下界面需要用tab键选成红框的内容,其他的一律无脑回车即可。
题外
我的pve7.4 版本温度是显示正常 但是没有m2和sata的温度 不过也够用了,哪天我看看要不要自己追加个其他两个(先画饼吧 之前看了下还是有点麻烦的)。