Somik's Home

Server admins cheat codes

When you are using the free version of Proxmox 5 or 6, you’ll get a message every time saying your subscription is invalid. This is fine if it was just during the initial login, but it’ll pop up every time you try to open a shell or run updates. Luckily this can be disabled by modifying one of the javascript files that Proxmox has.

Lets not get into the legality of this and get right down to the script that will do it for you.

Note that you need to run this script EVERY time you upgrade Proxmox.

Go to your home directory and create the script, give it execution permission and edit it. You may need to install nano if you dont have it.

cd ~
touch proxmox_disable_message.sh
chmod +x proxmox_disable_message.sh
apt install nano
nano proxmox_disable_message.sh
#!/bin/sh
sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

Save and exit by pressing Ctrl+x followed by Y and Enter.

Now you can run the script by simply typing in:

~/proxmox_disable_message.sh

You may need to force refresh your browser by holding Ctrl when you click the reload button for it to reload the new javascript. Or you can just close and open your browser (not tab, whole browser).

© Beli. All Rights Reserved.