Giter Site home page Giter Site logo

sp5429 / proxmox_ve_status Goto Github PK

View Code? Open in Web Editor NEW

This project forked from koolcore/proxmox_ve_status

0.0 0.0 0.0 224 KB

开源 Proxmox VE 网页后台添加处理器、NVMe、SSD 的温度和负载信息的脚本工具。

Home Page: https://wiki.ikoolcore.com

License: MIT License

Shell 100.00%

proxmox_ve_status's Introduction


一、安装方法:

注意:需要使用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 -y wget git
  3. 执行脚本,开始添加信息面板;

    git clone https://github.com/KoolCore/Proxmox_VE_Status.git
  4. 进入脚本命令行所在目录并执行脚本;

    cd Proxmox_VE_Status
    bash ./Proxmox_VE_Status_zh.sh

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

二、还原方法:

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

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

三、硬件直通

在执行硬件直通代码之前,需要确认自己的小主机是否支持VT-D功能(IO虚拟化)。

运行下面代码即可开启硬件直通,适用于 Intel 和 AMD 平台。

cd Proxmox_VE_Status
bash ./passthrough.sh

Section 1: Installation Instructions:

Note: Execute the following code with root privileges. The code below should be run in the Shell of the Proxmox VE web interface (default user is root).

  1. Update the current Proxmox VE packages;

    export LC_ALL=en_US.UTF-8
    apt update && apt upgrade -y
    
  2. Install the git and wget services;

    apt install -y wget git
  3. Execute the script to begin adding the information panel;

    git clone https://github.com/KoolCore/Proxmox_VE_Status.git
  4. Navigate to the directory containing the script and execute it;

    cd Proxmox_VE_Status
    bash ./Proxmox_VE_Status_en.sh

After approximately 1-3 minutes, press CTRL+F5 to force-refresh this page. If you encounter an error like curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused, your network service provider might be blocking GitHub. Please resolve any network environment issues on your own.

Section 2: Restoration Method:

Run the following four commands (applicable if you have modified the summary information and want to restore it to the default):

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

Section 3: Hardware Passthrough:

Before executing the hardware passthrough code, you need to confirm that your mini-host supports VT-D function (IO virtualization).

Run the following code to enable hardware passthrough, which is suitable for Intel and AMD platforms.

cd Proxmox_VE_Status
bash ./passthrough.sh

proxmox_ve_status's People

Contributors

koolcore avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.