From 2cdc83e0bb75ad23028695805de6980d354a92b2 Mon Sep 17 00:00:00 2001 From: NaysKutzu Date: Sat, 16 Nov 2024 23:03:37 +0100 Subject: [PATCH] PUSH -> Upload --- .gitignore | 1 - README.md | 72 ++++-------------- mythical-pve.deb | Bin 0 -> 4426 bytes nfpm.yaml | 20 ++--- package.sh | 3 + scripts/postinst | 20 ++--- scripts/postrm | 2 +- scripts/prerm | 4 +- sha256sum.txt | 1 + .../{pve-fake-subscription => mythical-pve} | 6 +- .../systemd/system-preset/mythical-pve.preset | 1 + .../pve-fake-subscription.preset | 1 - ...scription.service => mythical-pve.service} | 2 +- ...-subscription.timer => mythical-pve.timer} | 0 .../copyright | 4 +- 15 files changed, 47 insertions(+), 90 deletions(-) create mode 100644 mythical-pve.deb create mode 100644 sha256sum.txt rename usr/bin/{pve-fake-subscription => mythical-pve} (97%) create mode 100644 usr/lib/systemd/system-preset/mythical-pve.preset delete mode 100644 usr/lib/systemd/system-preset/pve-fake-subscription.preset rename usr/lib/systemd/system/{pve-fake-subscription.service => mythical-pve.service} (64%) rename usr/lib/systemd/system/{pve-fake-subscription.timer => mythical-pve.timer} (100%) rename usr/share/doc/{pve-fake-subscription => mythical-pve}/copyright (63%) diff --git a/.gitignore b/.gitignore index 7842801..da290af 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -*.deb /out/ # Created by https://www.gitignore.io/api/macos,python,windows,visualstudiocode diff --git a/README.md b/README.md index 1337e5f..fb7b7f9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,6 @@ -# pve-fake-subscription +# MythicalPVE -![JavaScript free](https://img.shields.io/badge/JavaScript-free-%09%23f7df1e "No JavaScript is involved in this project. ") - -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. +An legit way to activate proxmox! ## Features @@ -20,15 +16,20 @@ Highlights: - 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 + ## Usage ### Installation -1. [Download the latest release](https://github.com/Jamesits/pve-fake-subscription/releases/latest) -1. Install: run `dpkg -i pve-fake-subscription_*.deb` as root on every node -1. (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 +1. Download the package +```bash +curl -Lo mythical-pve.deb https://github.com/mythicalltd/mythicalpve/releases/latest/download/mythical-pve.deb +``` +2. Install the package +```bash +dpkg -i mythical-pve.deb +``` Notes: @@ -45,54 +46,7 @@ The fake subscription status doesn't grant you free access to the enterprise rep Run as root: ```shell -apt purge pve-fake-subscription -``` - -This will revert your system to a "no subscription key" status. - -## Development Notes - -### Building the Package - -Install [nFPM](https://nfpm.goreleaser.com/install/), then: - -```shell -./package.sh +apt purge mythical-pve ``` -### Compatibility Information for Old Proxmox VE Versions - -#### PVE 4.x - -After installation or updates, run: -```shell -sed -i'' -e's/pve8p/pve4p/g' /usr/bin/pve-fake-subscription -pve-fake-subscription -``` - -#### PVE 3.x - -Installation with `dpkg -i` will not work because of missing dependencies. Use the following script to install manually: -```shell -# extract the deb package -mkdir -p /tmp/pve-fake-subscription -dpkg-deb -x pve-fake-subscription_*.deb /tmp/pve-fake-subscription - -# patch and install the script -sed -i'' -e's/python3/python/g' -e's/pve8p/pve4p/g' /tmp/pve-fake-subscription/usr/bin/pve-fake-subscription -mv /tmp/pve-fake-subscription/usr/bin/pve-fake-subscription /usr/local/bin/ - -# install the timer -ln -sf /usr/local/bin/pve-fake-subscription /etc/cron.hourly/pve-fake-subscription - -# invoke it once -/usr/local/bin/pve-fake-subscription - -# remove temporary files -rm -rf /tmp/pve-fake-subscription -``` - -Removal: -```shell -rm -f /usr/local/bin/pve-fake-subscription /etc/cron.hourly/pve-fake-subscription /etc/subscription -``` +This will revert your system to a "no subscription key" status. \ No newline at end of file diff --git a/mythical-pve.deb b/mythical-pve.deb new file mode 100644 index 0000000000000000000000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pollute the subscription cache of Proxmox VE (>=5.0), Proxmox Mail Gateway (>=5.0) & Proxmox Backup Server (>=1.0) so it won't alert you on dashboard login + An legit way to activate proxmox! vendor: "none" -homepage: "https://github.com/Jamesits/pve-fake-subscription" -license: "GLWTS(Good Luck With That Shit) Public License" +homepage: "https://github.com/MythicalLTD/mythicalpve" +license: "GLWTS" contents: -- src: "./usr/bin/pve-fake-subscription" - dst: "/usr/bin/pve-fake-subscription" +- src: "./usr/bin/mythical-pve" + dst: "/usr/bin/mythical-pve" file_info: mode: 0755 - src: "./usr/lib/systemd" dst: "/usr/lib/systemd" file_info: mode: 0644 -- src: "./usr/share/doc/pve-fake-subscription" - dst: "/usr/share/doc/pve-fake-subscription" +- src: "./usr/share/doc/mythical-pve" + dst: "/usr/share/doc/mythical-pve" file_info: mode: 0644 diff --git a/package.sh b/package.sh index 21d60da..c03fe2c 100755 --- a/package.sh +++ b/package.sh @@ -14,3 +14,6 @@ nfpm pkg --packager deb --target "${OUT_DIR}" pushd "${OUT_DIR}" >/dev/null sha256sum -b -- * > sha256sum.txt popd >/dev/null + +cp out/* out/.. +mv mythical-pve*.deb mythical-pve.deb \ No newline at end of file diff --git a/scripts/postinst b/scripts/postinst index da7c9c6..e1a87af 100755 --- a/scripts/postinst +++ b/scripts/postinst @@ -6,19 +6,19 @@ after_upgrade() { if command -v systemctl >/dev/null; then systemctl --system daemon-reload >/dev/null || true debsystemctl=$(command -v deb-systemd-invoke || echo systemctl) - if ! systemctl is-enabled pve-fake-subscription.timer >/dev/null + if ! systemctl is-enabled mythical-pve.timer >/dev/null then : # Ensure this if-clause is not empty. If it were empty, and we had an 'else', then it is an error in shell syntax - systemctl preset pve-fake-subscription.timer >/dev/null || true - $debsystemctl start pve-fake-subscription.timer >/dev/null || true + systemctl preset mythical-pve.timer >/dev/null || true + $debsystemctl start mythical-pve.timer >/dev/null || true else - $debsystemctl restart pve-fake-subscription.timer >/dev/null || true + $debsystemctl restart mythical-pve.timer >/dev/null || true fi else - ln -sf /usr/bin/pve-fake-subscription /etc/cron.hourly/pve-fake-subscription + ln -sf /usr/bin/mythical-pve /etc/cron.hourly/mythical-pve fi - pve-fake-subscription + mythical-pve } after_install() { @@ -27,13 +27,13 @@ after_install() { if command -v systemctl >/dev/null; then systemctl --system daemon-reload >/dev/null || true debsystemctl=$(command -v deb-systemd-invoke || echo systemctl) - systemctl preset pve-fake-subscription.timer >/dev/null || true - $debsystemctl start pve-fake-subscription.timer >/dev/null || true + systemctl preset mythical-pve.timer >/dev/null || true + $debsystemctl start mythical-pve.timer >/dev/null || true else - ln -sf /usr/bin/pve-fake-subscription /etc/cron.hourly/pve-fake-subscription + ln -sf /usr/bin/mythical-pve /etc/cron.hourly/mythical-pve fi - pve-fake-subscription + mythical-pve } if { [ "${1}" = "configure" ] && [ -z "${2}" ]; } || [ "${1}" = "abort-remove" ]; then diff --git a/scripts/postrm b/scripts/postrm index 77de063..79352cc 100755 --- a/scripts/postrm +++ b/scripts/postrm @@ -7,7 +7,7 @@ after_remove() { rm -f /etc/pmg/subscription rm -f /etc/proxmox-backup/subscription - rm -f /etc/cron.hourly/pve-fake-subscription + rm -f /etc/cron.hourly/mythical-pve } after_purge() { diff --git a/scripts/prerm b/scripts/prerm index fdb3552..027aba3 100755 --- a/scripts/prerm +++ b/scripts/prerm @@ -4,8 +4,8 @@ before_remove() { : debsystemctl=$(command -v deb-systemd-invoke || echo systemctl) - $debsystemctl stop pve-fake-subscription.timer >/dev/null || true - systemctl disable pve-fake-subscription.timer >/dev/null || true + $debsystemctl stop mythical-pve.timer >/dev/null || true + systemctl disable mythical-pve.timer >/dev/null || true systemctl --system daemon-reload >/dev/null || true } diff --git a/sha256sum.txt b/sha256sum.txt new file mode 100644 index 0000000..c1efd0a --- /dev/null +++ b/sha256sum.txt @@ -0,0 +1 @@ +4fc72b0deab5e6d88ce28896e354d691630c6e65e46f235d02d2eb36d6785ad3 *mythical-pve_1.0.0+git-1_all.deb diff --git a/usr/bin/pve-fake-subscription b/usr/bin/mythical-pve similarity index 97% rename from usr/bin/pve-fake-subscription rename to usr/bin/mythical-pve index 41e1798..d98e29e 100755 --- a/usr/bin/pve-fake-subscription +++ b/usr/bin/mythical-pve @@ -25,9 +25,9 @@ lic_pmg = "pmgp-1145141919" lic_pbs = "pbst-1145141919" # UI customization -ui_product_name = "YajuuSenpai" -ui_message = "Yajuu Senpai has got your back" -ui_url = "https://github.com/Jamesits/pve-fake-subscription" +ui_product_name = "MythicalSystems" +ui_message = "License Server Provided by MythicalSystems!" +ui_url = "https://mythical.systems" def get_timestamp(): return int(time.time()) diff --git a/usr/lib/systemd/system-preset/mythical-pve.preset b/usr/lib/systemd/system-preset/mythical-pve.preset new file mode 100644 index 0000000..82b5fe8 --- /dev/null +++ b/usr/lib/systemd/system-preset/mythical-pve.preset @@ -0,0 +1 @@ +enable mythical-pve.timer diff --git a/usr/lib/systemd/system-preset/pve-fake-subscription.preset b/usr/lib/systemd/system-preset/pve-fake-subscription.preset deleted file mode 100644 index b9e8888..0000000 --- a/usr/lib/systemd/system-preset/pve-fake-subscription.preset +++ /dev/null @@ -1 +0,0 @@ -enable pve-fake-subscription.timer diff --git a/usr/lib/systemd/system/pve-fake-subscription.service b/usr/lib/systemd/system/mythical-pve.service similarity index 64% rename from usr/lib/systemd/system/pve-fake-subscription.service rename to usr/lib/systemd/system/mythical-pve.service index 46eb64d..8fd8ed9 100644 --- a/usr/lib/systemd/system/pve-fake-subscription.service +++ b/usr/lib/systemd/system/mythical-pve.service @@ -3,4 +3,4 @@ Description=Fake a Proxmox VE subscription [Service] Type=oneshot -ExecStart=/usr/bin/pve-fake-subscription +ExecStart=/usr/bin/mythical-pve diff --git a/usr/lib/systemd/system/pve-fake-subscription.timer b/usr/lib/systemd/system/mythical-pve.timer similarity index 100% rename from usr/lib/systemd/system/pve-fake-subscription.timer rename to usr/lib/systemd/system/mythical-pve.timer diff --git a/usr/share/doc/pve-fake-subscription/copyright b/usr/share/doc/mythical-pve/copyright similarity index 63% rename from usr/share/doc/pve-fake-subscription/copyright rename to usr/share/doc/mythical-pve/copyright index 2f77829..3c9d8e3 100644 --- a/usr/share/doc/pve-fake-subscription/copyright +++ b/usr/share/doc/mythical-pve/copyright @@ -1,6 +1,6 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: pve-fake-subscription -Source: https://github.com/Jamesits/pve-fake-subscription +Upstream-Name: mythical-pve +Source: https://github.com/Jamesits/mythical-pve Files: * Copyright: 2019 Nobody