From 64acd8808003a05659e8536104d41bb0ed527d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Mon, 1 Jan 2024 14:33:44 +0000 Subject: [PATCH] documentation --- README.md | 43 ++++++++++++++++---------------- documentation/workstation.md | 48 +++--------------------------------- 2 files changed, 25 insertions(+), 66 deletions(-) diff --git a/README.md b/README.md index b82090c..4ceef39 100644 --- a/README.md +++ b/README.md @@ -7,35 +7,34 @@ - [System Administration](https://pve.proxmox.com/pve-docs/chapter-sysadmin.html) -## LXC Containers - -### Ubuntu Container - with Docker and Portainer - -Notes : - -- 682Mb disk usage (minimum disk usage) - +## misc https://dannyda.com/2020/05/10/how-to-delete-remove-local-lvm-from-proxmox-ve-pve-and-some-lvm-basics-commands/ -- source list +### Power Management ```bash - #/etc/apt/sources.list -deb http://ftp.pt.debian.org/debian bullseye main contrib -deb http://ftp.pt.debian.org/debian bullseye-updates main contrib -deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription -# security updates -deb http://security.debian.org bullseye-security main contrib +#disable +systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target +#enable +systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target +#cpu scaling + +#Source: https://community.home-assistant.io/t/psa-how-to-configure-proxmox-for-lower-power-usage/323731 +#check current scaling +cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors +#change to power save echo "powersave" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor +echo "powersave" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor +#add to crontab +@reboot echo "powersave" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor >/dev/null 2>&1 + +# powertop +powertop --auto-tune + +#reboot #add to crontab +@reboot powertop --auto-tune >/dev/null 2>&1 ``` -``` -#disable -systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target - -#enable - -systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target ## As workstation diff --git a/documentation/workstation.md b/documentation/workstation.md index 3c3e508..3cd1b95 100644 --- a/documentation/workstation.md +++ b/documentation/workstation.md @@ -1,26 +1,15 @@ # Proxmox as a workstation -```bash -#add to all packages non-free -#/etc/apt/sources.list -deb http://ftp.pt.debian.org/debian bullseye main contrib non-free -deb http://ftp.pt.debian.org/debian bullseye-updates main contrib non-free -deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription -# security updates -deb http://security.debian.org bullseye-security main contrib non-free +## sources -``` - -## Kernel 6.x -```bash -apt update -apt install pve-kernel-6.1 -``` +- https://pve.proxmox.com/wiki/Developer_Workstations_with_Proxmox_VE_and_X11 ## Destop Enviroment + +### Gnome ``` bash apt install gnome @@ -28,36 +17,7 @@ apt install pve-kernel-6.1 gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 ``` - ``` - - ## misc - -``` bash -systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target -#systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target - ``` -## Hardware specific -### 5700G Amd - -``` bash -#not used -#The following packages will be REMOVED: -# proxmox-ve pve-firmware pve-kernel-5.15 pve-kernel-6.2 -#The following NEW packages will be installed: -# firmware-amd-graphics -#apt-get install firmware-amd-graphics libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all - -#wifi -#sudo apt-get install firmware-realtek firmware-misc-nonfree -#bluethooth and audio -#sudo apt-get install pulseaudio pulseaudio-module-bluetooth pavucontrol bluez-firmware - ``` - - -## sources - -- https://pve.proxmox.com/wiki/Developer_Workstations_with_Proxmox_VE_and_X11 \ No newline at end of file