#!/bin/bash # ===================================================== # Proxmox VE 9 Repository Setup (No-Subscription) # Debian 13 (trixie) | deb822 (.sources) # Enterprise -> No-Subscription # ===================================================== # ---- Farben / Layout ---- BOLD="\033[1m" GREEN="\033[32m" CYAN="\033[36m" YELLOW="\033[33m" RED="\033[31m" RESET="\033[0m" INDENT=" " # ---- Root Check ---- if [[ $EUID -ne 0 ]]; then echo -e "${BOLD}${RED}${INDENT}Bitte als Root ausführen!${RESET}" exit 1 fi # ---- Header ---- echo -e "${CYAN}${BOLD}${INDENT}==============================================${RESET}" echo -e "${CYAN}${BOLD}${INDENT} Proxmox VE 9 – Repository Setup ${RESET}" echo -e "${CYAN}${BOLD}${INDENT} No-Subscription | deb822 Standard ${RESET}" echo -e "${CYAN}${BOLD}${INDENT}==============================================${RESET}" # ---- Keyring prüfen ---- KEYRING="/usr/share/keyrings/proxmox-archive-keyring.gpg" if [[ ! -f "$KEYRING" ]]; then echo -e "${INDENT}==> Proxmox Keyring fehlt – installiere..." apt update >/dev/null apt install -y proxmox-archive-keyring echo -e "${GREEN}${INDENT}✔ Keyring installiert${RESET}" else echo -e "${INDENT}✔ Keyring vorhanden" fi # ---- PVE Repos einrichten ---- echo -e "${INDENT}==> PVE Repositories einrichten..." # pve-enterprise.disabled cat < /etc/apt/sources.list.d/pve-enterprise.sources Types: deb URIs: https://enterprise.proxmox.com/debian/pve Suites: trixie Components: pve-enterprise Signed-By: ${KEYRING} Enabled: false EOF # pve-no-subscription.enabled cat < /etc/apt/sources.list.d/proxmox.sources Types: deb URIs: http://download.proxmox.com/debian/pve Suites: trixie Components: pve-no-subscription Signed-By: ${KEYRING} Enabled: true EOF # ceph.sources (Enterprise Disabled + No-Subscription Enabled) cat < /etc/apt/sources.list.d/ceph.sources Types: deb URIs: https://enterprise.proxmox.com/debian/ceph-squid Suites: trixie Components: enterprise Signed-By: ${KEYRING} Enabled: false Types: deb URIs: http://download.proxmox.com/debian/ceph-squid Suites: trixie Components: no-subscription Signed-By: ${KEYRING} Enabled: true EOF # ---- APT Update & Upgrade ---- echo -e "${INDENT}==> APT Update & Upgrade..." apt update && apt dist-upgrade -y # ---- Fertigmeldung ---- echo echo -e "${GREEN}${BOLD}${INDENT}✔ Repositories erfolgreich eingerichtet!${RESET}" echo -e "${INDENT}PVE 9 + Ceph (squid) nutzen jetzt No-Subscription."