Skip to content

Instantly share code, notes, and snippets.

@DickSwart
Forked from whiskerz007/gist:53c6aa5d624154bacbbc54880e1e3b2a
Last active October 16, 2020 18:25
Show Gist options
  • Save DickSwart/7591d8c8e0a05fb1c1160d6a55eedaa2 to your computer and use it in GitHub Desktop.
Save DickSwart/7591d8c8e0a05fb1c1160d6a55eedaa2 to your computer and use it in GitHub Desktop.
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
apt-get update
# 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
apt-get update
# 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; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
apt --reinstall install proxmox-widget-toolkit
#Step By Step Manual (6.2-12 and up)
cd /usr/share/javascript/proxmox-widget-toolkit
cp proxmoxlib.js proxmoxlib.js.backup
nano proxmoxlib.js
find: "if(data.status !== 'Active')" and replace with "if (false)"
systemctl restart pveproxy.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment