diff --git a/proxmox-setup.sh b/proxmox-setup.sh new file mode 100755 index 0000000..696f9b8 --- /dev/null +++ b/proxmox-setup.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# This has not been tested, use at your own risk. +# Credit to @coolaj86 and Ryan Burnett: https://github.com/bnnanet/learn-colocation/issues/7 +# This will need to be updated next time Debian upgrades because it specifies bookworm. + +sed -i 's:^deb :#deb :g' /etc/apt/sources.list.d/pve-enterprise.list +sed -i 's:^deb :#deb :g' /etc/apt/sources.list.d/ceph.list + +wget http://download.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg + +echo '# pve-no-subscription repository provided by proxmox.com, not recommended for production use +deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription' > /etc/apt/sources.list.d/pve-no-subscription.list + +echo '# ceph no-subscription repository provided by proxmox.com, not recommended for production use +deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription' > /etc/apt/sources.list.d/ceph-no-subscription.list +apt update +pveupgrade +apt install screen curl htop iotop speedtest-cli sysstat smartmontools +reboot \ No newline at end of file diff --git a/vm-setup.sh b/vm-setup.sh new file mode 100755 index 0000000..11daaf9 --- /dev/null +++ b/vm-setup.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +apt install screen curl htop iotop speedtest-cli sysstat smartmontools \ No newline at end of file