0446.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Disable ProxMox Nagging Subscription Popup and Enterprise Apt Repository</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="How To,Tutorial,i12bretro,Proxmox,Hypervisor,Nag Screen,Enterprise,Community,Debian,Linux">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Disable ProxMox Nagging Subscription Popup and Enterprise Apt Repository">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Disable ProxMox Nagging Subscription Popup and Enterprise Apt Repository</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <ol>
  25. <li>Log into ProxMox VE, either at the console or the web UI and launch the web shell</li>
  26. <li>Run the following commands
  27. <div class="codeBlock"># disable proxmox commmercial repo<br />
  28. sed -i &quot;s/^deb/\#deb/&quot; /etc/apt/sources.list.d/pve-enterprise.list<br />
  29. # add the proxmox community repo<br />
  30. echo &quot;deb http://download.proxmox.com/debian/pve $(grep &quot;VERSION=&quot; /etc/os-release | sed -n &#39;s/.*(\(.*\)).*/\1/p&#39;) pve-no-subscription&quot; &gt; /etc/apt/sources.list.d/pve-community.list<br />
  31. # update software repositories<br />
  32. apt update<br />
  33. # remove no subscription nag popup<br />
  34. # if running promox 6<br />
  35. sed -i.bak &#39;s/NotFound/Active/g&#39; /usr/share/perl5/PVE/API2/Subscription.pm<br />
  36. # if running proxmox 7<br />
  37. sed -Ezi.bak &quot;s/(Ext.Msg.show\(\{\s+title: gettext\(&#39;No valid sub)/void\(\{ \/\/\1/g&quot; /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js<br />
  38. # restart pveproxy service<br />
  39. systemctl restart pveproxy.service</div>
  40. </li>
  41. <li>After running the commands, log out of ProxMox VE web UI and log back in</li>
  42. </ol>
  43. </div>
  44. </div>
  45. </body>
  46. </html>