Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; systemctl restart pveproxy.service; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
apt --reinstall install proxmox-widget-toolkit
@niwlla

This comment has been minimized.

Copy link

niwlla commented Apr 6, 2019

Does this still apply for 5.3.x?

Very nice script..

@Tollbringer

This comment has been minimized.

Copy link

Tollbringer commented Apr 8, 2019

Yes, it does.

@dasb00ter

This comment has been minimized.

Copy link

dasb00ter commented May 9, 2019

proxmox 5.4-5 tried commands to remove nag then logged out and back in and still get nag

@rpitera

This comment has been minimized.

Copy link

rpitera commented May 11, 2019

proxmox 5.4-5 tried commands to remove nag then logged out and back in and still get nag

Yep. Same here. Something must have changed. All the other commands still work though.

EDIT: Found this on Reddit and it seems to work!

sed -i.bak 's/NotFound/Active/g' /usr/share/perl5/PVE/API2/Subscription.pm && systemctl restart pveproxy.service

@rpitera

This comment has been minimized.

Copy link

rpitera commented May 11, 2019

Here is a further explanation of what the command above is actually doing:

https://johnscs.com/remove-proxmox51-subscription-notice/

@dasb00ter

This comment has been minimized.

Copy link

dasb00ter commented May 11, 2019

there was some odd behaviour with I think my browser if I didnt refresh the pve page when I logged in but it seems to have resolved itself with a couple of reboots i did for other reasons

@jascdk

This comment has been minimized.

Copy link

jascdk commented May 26, 2019

hi :) The nag removal won work anymore, after I updated the latest upgrades - does it need an update?

@papperone

This comment has been minimized.

Copy link

papperone commented Jun 30, 2019

same here, after some latest upgrade the nag message is popping again, any info how to remove it again?

@towerhand

This comment has been minimized.

Copy link

towerhand commented Jul 20, 2019

Whiskerz script worked for me on v6

@Exit2Studios

This comment has been minimized.

Copy link

Exit2Studios commented Aug 13, 2019

I get the following error when trying to reinstall the toolbar from the command above:

"Reinstallation of proxmox-widget-toolkit is not possible, it cannot be downloaded."

@rucknapucknavitz

This comment has been minimized.

Copy link

rucknapucknavitz commented Sep 7, 2019

I get the same as @Exit2Studios

@gdreelin

This comment has been minimized.

Copy link

gdreelin commented Sep 13, 2019

I just loaded v6.0 but the nag removal did not work. Just wanted to give heads up on it.

@caccia78

This comment has been minimized.

Copy link

caccia78 commented Sep 18, 2019

I just loaded v6.0 but the nag removal did not work. Just wanted to give heads up on it.

Same for me. I get the following error:

root@nuc:~# apt --reinstall install proxmox-widget-toolkit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reinstallation of proxmox-widget-toolkit is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
@Tollbringer

This comment has been minimized.

Copy link

Tollbringer commented Sep 20, 2019

I did the nag removal with fresh Proxmox 6.0.1 with no issues. Remember your browser may be retaining a cookie to pop up the nag message 1 or 2 more times. Best to open a private session or a new broswer when checking/ completely close other browser and all pages before trying again (reboot proxmox)

@joecoi

This comment has been minimized.

Copy link

joecoi commented Sep 27, 2019

I have installed Virtual Environment 6.0-4 & was getting the Nag -
Using '# Remove nag' from gistfile1.txt at top of page did not work - even when I tried in a new private browser session.
Using the 'one line command' at https://johnscs.com/remove-proxmox51-subscription-notice/ referenced by @rpitera worked for me - but you do need to clear the cookie? . Confirm in new private session & once confirmed start a new browser tab/ window for normal use.

@Tollbringer

This comment has been minimized.

Copy link

Tollbringer commented Sep 27, 2019

Yes- I have used this gist more than 40 times (many, many Proxmox testing re-installs) and it works. Occasionally I do see one more nag, clearing cookies, clearing browser and rebooting definitely clears this up every time.

Glad you got it working. I know Whiskerz007 made changes a while ago to make sure the nag removal was persistent across all updates. In the prior revision it could sometimes be disabled, but this seems to have been corrected with his changes some time ago.

[-=SrZ=-]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.