Skip to content

Instantly share code, notes, and snippets.

@loopunit
Created June 18, 2025 01:16
Show Gist options
  • Save loopunit/4215cdf9c5efc0aa771bfd5bb1c6e3ef to your computer and use it in GitHub Desktop.
Save loopunit/4215cdf9c5efc0aa771bfd5bb1c6e3ef to your computer and use it in GitHub Desktop.
proxmox ve post-install
adduser -m kiosk-user
apt install --no-install-recommends xorg openbox lightdm chromium pulseaudio
awk '/\[Seat:\*\]/ {print; print "autologin-user=kiosk-user"; next} {print}' /etc/lightdm/lightdm.conf >> /etc/lightdm/lightdm.conf
awk '1; END { print "xset -dpms"; print "xset s off"; print "chromium --no-sandbox --kiosk https://localhost:8006"; }' /etc/xdg/openbox/autostart >> /etc/xdg/openbox/autostart
cat <<EOF >/etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main contrib
deb http://deb.debian.org/debian bookworm-updates main contrib
deb http://security.debian.org/debian-security bookworm-security main contrib
EOF
echo 'APT::Get::Update::SourceListWarnings::NonFreeFirmware "false";' >/etc/apt/apt.conf.d/no-bookworm-firmware.conf
cat <<EOF >/etc/apt/sources.list.d/pve-enterprise.list
# deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
EOF
cat <<EOF >/etc/apt/sources.list.d/pve-install-repo.list
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
EOF
cat <<EOF >/etc/apt/sources.list.d/ceph.list
# deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
# deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
# deb https://enterprise.proxmox.com/debian/ceph-reef bookworm enterprise
# deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
EOF
cat <<EOF >/etc/apt/sources.list.d/pvetest-for-beta.list
# deb http://download.proxmox.com/debian/pve bookworm pvetest
EOF
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/.*data\.status.*{/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
apt --reinstall install proxmox-widget-toolkit &>/dev/null
systemctl disable -q --now pve-ha-lrm
systemctl disable -q --now pve-ha-crm
systemctl disable -q --now corosync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment