Selasa, 30 Desember 2014

Hapus pesan login proxmox

How to remove Proxmox "No Valid Subscription" pop up message from Proxmox 3+

Proxmox Valid Subscription Popup Recently with version 3.1+ of Proxmox, if you don’t have a license subscription, they made it where a message box pops up on screen that says “You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.” … this is because in order to use the “Enterprise” repository you must pay for a subscription. The basics of it are they still provide a free repository, but those packages are not as heavily tested and verified as the enterprise repository. Either way when you, or one of your clients/customers, logs into Proxmox interface, it shows that annoying nag message box now. Luckily there is an easy way to remove it…

In my opinion Proxmox has done this to drum up more money, but for those of us decided to go with Proxmox because it was free and open source, are now starting to rethink that decision, especially with Proxmox deciding to show this message box to both Admins AND users by default, EVERY time you login.  I do understand that projects like this need to be supported, and if you’ve read around on my blog you know how much of an open source fan I am, as well as supporting developers, but there are a few things about Proxmox i’m starting to question and will probably be the reason I end up switching to OpenStack or something else.
Removing Proxmox Login Message
So thankfully because Proxmox is Open Source, that license grants us the legal rights to edit the following files as we want, without having to worry about it.  The only thing to keep in mind is that any future upgrades could change this file and you may have to go back to change it again.
Go to Proxmox Directory
To get started let’s first change to the directory where the file we will be changing is located at:
Backup Proxmox File
Once we’re in that directory, let’s make a backup of the file just in case:
Edit Proxmox pvemanagerlib.js File
Now that we have a backup, let’s go ahead and open the file and edit it to remove the annoying license message nag.  Open up your favorite editor and search for “data.status”, if you’re using nano open the file, then hit  CTRL+W  then type in data.status.  If you’re using vim, just hit the  /  key and type in data.status.
There should be two instances of this in the file, the one we are looking for will look like this:
The specific line we care about will be:
To give a brief explanation, this is an Ajax call made to the Proxmox servers to check your license status, if it’s invalid it will show the message box, and this will be the case each time you login.
To remove this from showing the message box, just change the  if (data.status !== 'Active') {  line of the code to  if (false) { , the end result should look similar to this:
And that’s it, now when you login it will no longer show that message.  As I mentioned above if this file gets updated when you upgrade Proxmox, you will have to repeat these steps to remove the box from showing up again.
Profit!

sbr:https://smyl.es/how-to-remove-proxmox-no-valid-subscription-pop-up-message-from-proxmox-3/

Tidak ada komentar:

Posting Komentar