Proxmox/Nag Buster

From Omnia
Jump to navigation Jump to search

pve-nag-buster

GitHub - foundObjects/pve-nag-buster: Persistent license nag removal for Proxmox VE 5.x+
https://github.com/foundObjects/pve-nag-buster

pve-nag-buster is a dpkg hook script that persistently removes license nags from Proxmox VE 6.x and up. Install it once and you won't see another license nag until the Proxmox team changes their web-ui code in a way that breaks the patch.

Manual Install

wget https://raw.githubusercontent.com/foundObjects/pve-nag-buster/master/install.sh
# Always read scripts downloaded from the internet before running them with sudo
sudo bash install.sh
# or ..
chmod +x install.sh && sudo ./install.sh

All in one as root:

wget https://raw.githubusercontent.com/foundObjects/pve-nag-buster/master/install.sh ; bash install.sh ; rm install.sh

Git Install

git clone https://github.com/foundObjects/pve-nag-buster.git
# Always read scripts downloaded from the internet before running them with sudo
cd pve-nag-buster && sudo ./install.sh


Uninstall

sudo ./install.sh --uninstall
# remove /etc/apt/sources.list.d/pve-no-subscription.list if desired

Alternatives

Ansible Method

# See https://dannyda.com/2020/11/13/how-to-remove-you-do-not-have-a-valid-subscription-for-this-server-from-proxmox-backup-server-pbs-1-0-1/
# and https://dannyda.com/2020/05/17/how-to-remove-you-do-not-have-a-valid-subscription-for-this-server-from-proxmox-virtual-environment-6-1-2-proxmox-ve-6-1-2-pve-6-1-2/
- name: Remove "No valid subscription" popup on login to webgui
#  hosts: vm
  hosts: all
  become: yes
  tasks:
  - replace:
      path: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
      regexp: "res === null \\|\\| res === undefined \\|\\| \\!res \\|\\| res\\n\\t\\t\\t.data.status.toLowerCase\\(\\) \\!== 'active'"
      replace: "false"
      backup: yes

ref: https://github.com/cthart/ansible/blob/main/proxmox/remove_nag.yml

Fake Registration

ref: https://github.com/Jamesits/pve-fake-subscription

References

keywords