add proxmox desktop setup

This commit is contained in:
askiiart 2024-12-06 23:16:27 -06:00
parent f2823f2c78
commit 9ca198abab
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30

17
proxmox-desk-setup.sh Normal file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# switch to no subscription repos
echo '# Proxmox VE 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-enterprise.list
echo 'deb http://download.proxmox.com/debian/ceph-squid bookworm no-subscription' >/etc/apt/sources.list.d/ceph.list
rm /etc/apt/sources.list.d/pve-enterprise.list
apt update
apt upgrade
echo 'zram' >/etc/modules-load.d/zram.conf
echo 'ACTION=="add", KERNEL=="zram0", ATTR{comp_algorithm}="zstd", ATTR{disksize}="64G", RUN="/usr/bin/mkswap -U clear /dev/%k", TAG+="systemd"' >/etc/udev/rules.d/99-zram.rules
echo '/dev/zram0 none swap defaults,discard,pri=100 0 0' >/etc/fstab
echo 'vm.swappiness = 180
vm.watermark_boost_factor = 0
vm.watermark_scale_factor = 125
vm.page-cluster = 0' >/etc/sysctl.d/99-vm-zram-parameters.conf