Proxmox VE添加概要信息插件

项目地址

https://github.com/KoolCore/Proxmox_VE_Status

安装

注意:您需要以 root 身份运行以下代码。以下代码在 Proxmox VE 的 Shell 中运行 web UI(默认为 root 用户)。

一、安装方法:

注意:需要使用root身份执行下面代码,以下代码在Proxmox VE网页后台的Shell下运行(默认是root用户了)

  1. 更新当前Proxmox VE软件包:
export LC_ALL=en_US.UTF-8
apt update && apt upgrade -y

2.安装git和wget服务:

apt install git wget

3.git拉取脚本:

git clone https://github.com/KoolCore/Proxmox_VE_Status.git

4.进入脚本命令行所在目录:

cd Proxmox_VE_Status

5.执行脚本

bash ./Proxmox_VE_Status_zh.sh

6.执行硬件直通脚本:

bash ./passthrough.sh

大概1-3分钟后,按下强制刷新本页面即可。如果发现 这种错误,年轻人,你的网络运营商屏蔽了 GitHub。请自行处理网络环境问题。CTRL+F5curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

二、还原方法:

运行以下四条命令(适用于已经改过概要信息,还原成默认的概要信息):

sed -i '/PVE::pvecfg::version_text();/,/my $dinfo = df/!b;//!d;s/my $dinfo = df/\n\t&/' /usr/share/perl5/PVE/API2/Nodes.pm
sed -i '/pveversion/,/^\s\+],/!b;//!d;s/^\s\+],/\t    value: '"'"''"'"',\n\t},\n&/' /usr/share/pve-manager/js/pvemanagerlib.js
sed -i '/widget.pveNodeStatus/,/},/ { s/height: [0-9]\+/height: 300/; /textAlign/d}' /usr/share/pve-manager/js/pvemanagerlib.js
systemctl restart pveproxy

END

13人评论了“Proxmox VE添加概要信息插件”

  1. Navigating this Turkish casino portal feels like wandering through a vibrant bazaar where every stall offers a fresh surprise. The local payment habits are respected perfectly and the game lobbies pulse with lively Mediterranean energy. It really knows how to make every visit feel special. trcasinositeleri

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部