GithubHelp home page GithubHelp logo

jamesits / pve-fake-subscription Goto Github PK

View Code? Open in Web Editor NEW
644.0 21.0 66.0 36 KB

Disables the "No valid subscription" dialog on all Proxmox products.

License: Other

Python 51.02% Shell 48.98%
proxmox-ve proxmox-mail-gateway proxmox-backup-server

pve-fake-subscription's Introduction

pve-fake-subscription

JavaScript free

Disables the "No valid subscription" dialog on all Proxmox products.

I am really poor and I can't afford a license. I just want to get rid of the annoying dialog.

Features

Works for:

  • Proxmox VE (5.x or later, tested up to 8.x)
  • Proxmox Mail Gateway (5.x or later)
  • Proxmox Backup Server (1.x)

Highlights:

  • Non-intrusive: zero modification of any system file
  • Future-proof: persists between system updates & major upgrades
  • Hassle-free: you can uninstall at any time
  • Comes with standard Debian package, easy to manage and automate
  • No JavaScript is involved in the whole process, as I believe JavaScript is harmful to developers

Installation / Usage

  1. Download the latest release
  2. Install: run dpkg -i pve-fake-subscription_*.deb as root on every node
  3. (Optional) echo "127.0.0.1 shop.maurer-it.com" | sudo tee -a /etc/hosts to prevent fake keys from being checked against the Proxmox servers

Notes:

After installation, please refrain yourself from clicking the "check" button on the "Subscription" page. It will invalidate the cache and temporary revert your instance into an unlicensed status.

The fake subscription status doesn't grant you free access to the enterprise repository. You should switch to the no-subscription repository if not already done. Use the following method:

Uninstallation

Run as root:

apt purge pve-fake-subscription

This will revert your system to a "no subscription key" status.

Building the Package

Install nFPM, then:

./package.sh

pve-fake-subscription's People

Contributors

jamesits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pve-fake-subscription's Issues

Not working anymore

It looks like this is not working anymore (tested with the latest version of PMG)

Any idea to solve No Proxmox VE repository is enabled warning?

The tool is great, but there is still one small flaw, I don't know how difficult it is for you to implement:
Condition:

  1. If you have not made any changes to the source mirror after installing the system, in Datacenter - pve - Updates - Repositories, you can see a nearly perfect interface showing camouflage
  2. Since the subscription is not really obtained, if the /etc/apt/sources.list.d/pve-enterprise.list file is not deleted, apt update will stop at the stage of updating enterprise.proxmox.com, I searched online. However, it seems that it is impossible to specify a source mirror not to update?
  3. If I delete the /etc/apt/sources.list.d/pve-enterprise.list file or rename it to pve-enterprise.list.bak, and refresh the pve web page, the green interface camouflage will restore the red X and hint:
    No Proxmox VE repository is enabled, you do not get any updates!

So is there a way to still display subscribed disguises without the /etc/apt/sources.list.d/pve-enterprise.list file?

Non-Functional in 7.2-14 and later

Upgraded my clusters to 7.2-14. Found that it causes the GUI to not function. The Gui, upon login receives an error "invalid type: integer 1669327931, expected a string at line 1 column 178 (500)". All Noes show a question mark and no migrations or backup tasks that are cluster wide function.

It appears that quorum is fine when running pvecm status

One uninstalled using the "apt purge pve-fake-subscription" the nodes immediately come online and show a green check mark, and all GUI functions start working as intended.

Any way to disable update emails?

Thanks for this script.

I'm using it in my lab, with test repository enable, and my email is spammed with updates. Official proxmox won't fix this because the production repo gets updated less frequently.

Do you think there is a way to fix it in some way?

Thanks

Error after 7.2-11 update

I got the following error window after updating to 7.2-11 today.
invalid type: integer 1663255405, expected a string at line 1 column 178 (500)
It shows up when I go to Support in Datacenter.
Also under node, it shows up in Summary, clickling "Refresh" in Updates, and when clicking on Repositories as well.
I still get the error without the dark theme installed.
image

The issue goes away after purging pve-fake-subscription_0.0.7_all.deb

Checksum for deb file in release

I automate the download and install of this using an Ansible role. Would it be too much trouble to ask that a seperate file be included in the Github releases with a checksum of the .deb?

Error while installation

I downloaded the file "pve-fake-subscription_0.0.9+git-1_all.deb" and ran it as root on my pbs.
After that I received tho following error:

dpkg-deb: error: 'pve-fake-subscription_0.0.9_all.deb' is not a Debian format archive
dpkg: error processing archive pve-fake-subscription_0.0.9_all.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
pve-fake-subscription_0.0.9_all.deb

Publish package as APT repo

Hi, just wondering if it's a feature you would consider.

There are GitHub actions that will create an APT repository as a GitHub Pages repo.

I can help with a pull request if interested.

Systemd configuration files incorrect

  1. The file /lib/systemd/system/pve-fake-subscription.timer.service is wrong and just a copy of /lib/systemd/system/pve-fake-subscription.timer
  2. The other two systemd files have permissions that systemd doesn't like and it writes warning messages into the journal sometimes (for instance after systemctl daemon-reload):
Dec 13 10:51:58 pve systemd[1]: Configuration file /lib/systemd/system/pve-fake-subscription.timer is marked executable. Please remove executable permission bits. Proceeding anyway.
Dec 13 10:51:58 pve systemd[1]: Configuration file /lib/systemd/system/pve-fake-subscription.timer is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
Dec 13 10:51:58 pve systemd[1]: Configuration file /lib/systemd/system/pve-fake-subscription.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Dec 13 10:51:58 pve systemd[1]: Configuration file /lib/systemd/system/pve-fake-subscription.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.

Strange unit file in Package

There is a strange unit file in the deb package.
It's located hear: lib/systemd/system/pve-fake-subscription.timer.service

I don't think its necessary so maybe remove it from the package in the next version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.