Last active
July 21, 2025 23:10
-
-
Save aniongithub/9c437d81d8ac55982452fe8fcfaea662 to your computer and use it in GitHub Desktop.
Proxmox no subscription setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
echo "π§ Disabling enterprise repo..." | |
if [ -f /etc/apt/sources.list.d/pve-enterprise.list ]; then | |
sed -i 's|^deb https://enterprise.proxmox.com|# deb https://enterprise.proxmox.com|' /etc/apt/sources.list.d/pve-enterprise.list | |
fi | |
echo "π§ Disabling Ceph enterprise repo (if exists)..." | |
if [ -f /etc/apt/sources.list.d/ceph.list ]; then | |
sed -i 's|^deb https://enterprise.proxmox.com|# deb https://enterprise.proxmox.com|' /etc/apt/sources.list.d/ceph.list | |
fi | |
echo "π§ Adding no-subscription repo..." | |
if ! grep -q "pve-no-subscription" /etc/apt/sources.list; then | |
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" >> /etc/apt/sources.list | |
fi | |
echo "π§Ή Cleaning APT cache..." | |
apt clean | |
rm -rf /var/lib/apt/lists/* | |
echo "π Updating package lists..." | |
apt update | |
echo "π‘ Installing avahi-daemon (optional for mDNS)..." | |
apt install -y avahi-daemon | |
echo "β‘ Setting CPU governor to powersave (if available)..." | |
for cpu_dir in /sys/devices/system/cpu/cpu[0-9]*; do | |
gov_file="$cpu_dir/cpufreq/scaling_governor" | |
if [ -f "$gov_file" ]; then | |
current=$(cat "$gov_file") | |
if [ "$current" != "powersave" ]; then | |
echo "powersave" > "$gov_file" | |
echo " β Set $gov_file to powersave" | |
else | |
echo " β $gov_file already set to powersave" | |
fi | |
fi | |
done | |
echo "π Setup complete!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment