From 4826cfbbd37b8e1ce794b11f28c8885a0eb40b33 Mon Sep 17 00:00:00 2001 From: mathwhiz1212 Date: Sat, 12 Apr 2025 04:45:50 -0600 Subject: [PATCH] Combine setup scripts and add echo descriptions. --- Proxmox/complete-setup.sh | 16 ---------------- Proxmox/proxmox-setup.sh | 25 ++++++++++++++++++++++--- Proxmox/reduce-ssd-writes.sh | 2 ++ 3 files changed, 24 insertions(+), 19 deletions(-) delete mode 100755 Proxmox/complete-setup.sh diff --git a/Proxmox/complete-setup.sh b/Proxmox/complete-setup.sh deleted file mode 100755 index b0d6bf2..0000000 --- a/Proxmox/complete-setup.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -# This script is untested, use at your own risk. - -# Install some more software, mostly monitoring tools. sensors and smartcl -a can provide monitoring data. lshw provides hardware info. -apt install screen curl htop iotop speedtest-cli smartmontools lm-sensors lshw #sysstat - -# Download templates for Ubuntu Server 24.04.2 LTS / Proxmox Ubuntu Cloud image 24.04.2 for containers. - -pveam update -pveam download local ubuntu-24.04-standard_24.04-2_amd64.tar.zst - -# Downloads the Ubuntu Server LTS ISO for VMs. - -cd /var/lib/vz/template/iso/ -wget https://releases.ubuntu.com/24.04.2/ubuntu-24.04.2-live-server-amd64.iso diff --git a/Proxmox/proxmox-setup.sh b/Proxmox/proxmox-setup.sh index 696f9b8..7227ec9 100755 --- a/Proxmox/proxmox-setup.sh +++ b/Proxmox/proxmox-setup.sh @@ -1,9 +1,11 @@ -#!/usr/bin/env bash +#!/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. +echo "Adding the pve-no-subscription package lists for bookworm to /etc/apt/sources.list.d/ before updating" + 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 @@ -16,5 +18,22 @@ echo '# ceph no-subscription repository provided by proxmox.com, not recommended 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 + +echo "Now installing some monitoring software." + +# Install some software, mostly monitoring tools. sensors and smartcl -a can provide monitoring data. lshw provides hardware info. +apt install screen curl htop iotop speedtest-cli smartmontools lm-sensors lshw # sysstat + +# Download templates for Ubuntu Server 24.04.2 LTS / Proxmox Ubuntu Cloud image 24.04.2 for containers. + +echo "Now downloading the container template and VM ISO file for Ubuntu Server 24.04.2 LTS. Hit Ctrl + C to skip this and reboot manually." + +pveam update +pveam download local ubuntu-24.04-standard_24.04-2_amd64.tar.zst + +# Downloads the Ubuntu Server LTS ISO for VMs. + +cd /var/lib/vz/template/iso/ +wget https://releases.ubuntu.com/24.04.2/ubuntu-24.04.2-live-server-amd64.iso + +reboot diff --git a/Proxmox/reduce-ssd-writes.sh b/Proxmox/reduce-ssd-writes.sh index 3895cd1..98186c2 100755 --- a/Proxmox/reduce-ssd-writes.sh +++ b/Proxmox/reduce-ssd-writes.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +# This has not been tested, use at your own risk. + # Changes recommended for reducing writes on SSDs, this is generally all bad for hard drives: https://serverfault.com/questions/950794/how-to-limit-zfs-writes-on-nvme-ssd-in-raid1-to-avoid-rapid-disk-wear/950896#950896 # This may cause data loss and increase other resource usage (like CPU, etc).