Combine setup scripts and add echo descriptions.

This commit is contained in:
mathwhiz1212 2025-04-12 04:45:50 -06:00
parent c0b808b793
commit 4826cfbbd3
3 changed files with 24 additions and 19 deletions

View File

@ -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

View File

@ -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
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

View File

@ -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).