Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:debian:proxmox:remove-subscription-badge [2023/07/30 12:08] – created Zyzonixlinux:debian:proxmox:remove-subscription-badge [2024/03/13 10:41] (current) – [Automatic way] BIT
Line 1: Line 1:
-====== Remove subscription badge ======+====== Remove Proxmox subscription badge ======
  
 +To remove the subcription badge that is displayed after logging in into Proxmox VE or Proxmox BS, you can either manually edit the ''proxmoxlib.js'' under ''/usr/share/javascript/proxmox-widget-toolkit'' or install our script.
 +
 +===== Automatic way =====
 +
 +The script(s) can be found under [[https://github.com/Zyzonix/attic/tree/main/proxmox-tweaks|github.com/Zyzonix/attic/tree/main/proxmox-tweaks]]. When using the install script, a crontab will be installed that runs daily. If the script detects a change of ''proxmoxlib.js'' it will edit the changed line that creates the subscription badge and restart the webproxy.
 +
 +**Downloading the installer:**
 +<code bash>wget https://raw.githubusercontent.com/Zyzonix/attic/main/proxmox-tweaks/install-proxmox-tweaks.sh</code>
 +
 +**Run the installation script:**
 +<code bash>bash install-proxmox-tweaks.sh</code>
 +
 +From now the script will check every day if there was a change of ''proxmoxlib.js''.
 +<del>**Remove the installation script:**
 +<code bash>rm install-proxmox-tweaks.sh</code></del>
 +
 +===== Manual way =====
 +
 +Create a backup of ''proxmoxlib.js'' under ''/usr/share/javascript/proxmox-widget-toolkit''.
 +<code bash>cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.bak</code>
 +
 +Open the file and search for the line contaning this: ''if (res === null || res === undefined || !res || res.data.status.toLowerCase() !== ‚active‘) {''. Change the ''if''-statement to ''false'': ''if (false) {''.
 +
 +Finally restart the proxy:
 +**ProxmoxVE:**
 +<code bash>systemctl restart pveproxy.service</code>
 +**ProxmoxBS:**
 +<code bash>systemctl restart proxmox-backup-proxy.service</code>
  • linux/debian/proxmox/remove-subscription-badge.1690711709.txt.gz
  • Last modified: 2023/07/30 12:08
  • by Zyzonix