Somik's Home

Server admins cheat codes

Menu
  • Bash
  • PHP
  • Arduino/ESP
  • About
    • eBook Reader
    • Codebin
    • User Management
    • Online Ruler
    • ShortURL Generator (Newer)
    • Video Downloader
    • ShortURL Generator (Older)
    • File Sharing
    • WhoIs Search
Menu

Proxmox 6 disable subscription invalid message

Posted on 2019-10-20 by somik

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).

January 2021
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Sep    

Archives

  • September 2020
  • August 2020
  • July 2020
  • May 2020
  • March 2020
  • November 2019
  • October 2019

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2021 Somik's Home | Powered by Minimalist Blog WordPress Theme