This document worked for VE 7.X edition too.
Preparation
First, we’ll create a directory where we’ll store our customizations (you can call it whatever you want, as long as you are consistent across the commands):
$ sudo mkdir /usr/share/custom
Next, create the script which will apply the customizations and make it executable:
$ sudo echo '#!/usr/bin/env bash' > /usr/share/custom/apply.sh $ sudo chmod a+x /usr/share/custom/apply.sh
Create the Hook
Finally, create a file telling apt to execute the script after being invoked:
$ sudo echo 'DPkg::Post-Invoke { "/usr/share/custom/apply.sh"; };' > /etc/apt/apt.conf.d/90custom
Now /usr/share/custom/apply.sh will be executed when apt installs or upgrades a package, reapplying the customizations. Be careful of what you put in there, though!
Make a Change Persistent
To make the customizations we made to Proxmox VE in the last article, simply execute the following commands to add them to the script reapplying the customizations (note the double >>):
$ sudo echo 'mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.disabled' >> /usr/share/custom/apply.sh $ sudo echo 'echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list' >> /usr/share/custom/apply.sh
Example-1: Change the Logos and Virtual Machine Boot Screen on Proxmox VE 6.0
Backup Original Images
Copy the original images which we will replace to our directory of customizations:
$ sudo mkdir /usr/share/custom/backup $ sudo cp /usr/share/pve-manager/images/{favicon.ico,logo-128.png,proxmox_logo.png} /usr/share/custom/backup/ $ sudo cp /usr/share/qemu-server/bootsplash.jpg /usr/share/custom/backup/
Copy the New Images
First make sure your new images match the specifications:
bootsplash.jpg should be 640x480 pixels favicon.ico should be 64x64 pixels logo-128.png should be 128x128 pixels with a transparent background proxmox_logo.png should be 172x30 pixels with a transparent background
Then, transfer the new images to our directory of customizations (replace username with your Proxmox VE username, and pve.example.com with the hostname or IP address of your Proxmox VE host):
# run this on your local computer, while in the directory of your new images
$ scp {bootsplash.jpg,favicon.ico,logo-128.png,proxmox_logo.png} username@pve.example.com:/usr/share/custom/
Add Customization to Change the Images
Run the following command to add the customization to the script apply.sh (make note of the double >>):
$ sudo echo "cp -f /usr/share/custom/{favicon.ico,logo-128.png,proxmox_logo.png} /usr/share/pve-manager/images/" >> /usr/share/custom/apply.sh $ sudo echo "cp -f /usr/share/custom/bootsplash.jpg /usr/share/qemu-server/" >> /usr/share/custom/apply.sh
Apply Customizations
Finally, reapply the customizations (and apply the new one above):
$ sudo /usr/share/custom/apply.sh
Example-2: Make the Subscription Warning Dialog Disappear on Proxmox VE 6.0
Add Customization to Remove Subscription Warning Dialog
$ sudo echo "sed -i.bak \"s/data.status !== 'Active'/false/g\" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js" >> /usr/share/custom/apply.sh
Apply Customizations
Finally, reapply the customizations (and apply the new one above):
$ sudo /usr/share/custom/apply.sh
That’s it! The subscription warning dialog should have disappeared when logging in. The following article will feature more Proxmox VE customizations! Stand by, and good luck!
Ref:
https://lunar.computer/news/persistent-customizations-proxmox-60/
https://lunar.computer/news/change-logos-proxmox-60/
https://lunar.computer/news/subscription-warning-proxmox-60/