From 9ca198ababaa198cbb235dce12a6831103e6b81d Mon Sep 17 00:00:00 2001 From: askiiart Date: Fri, 6 Dec 2024 23:16:27 -0600 Subject: [PATCH 1/2] add proxmox desktop setup --- proxmox-desk-setup.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 proxmox-desk-setup.sh diff --git a/proxmox-desk-setup.sh b/proxmox-desk-setup.sh new file mode 100644 index 0000000..f73d71a --- /dev/null +++ b/proxmox-desk-setup.sh @@ -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 From 555219ffa4059f897c33b1e19b8a707b742108f3 Mon Sep 17 00:00:00 2001 From: askiiart Date: Fri, 6 Dec 2024 23:19:21 -0600 Subject: [PATCH 2/2] update packages to match blendos-configs --- install-stuff/install-misc.sh | 17 +++++++++++------ install-stuff/install-rust.sh | 2 ++ install-stuff/install-steam.bash | 2 +- install-stuff/install-yt-music.bash | 1 - 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/install-stuff/install-misc.sh b/install-stuff/install-misc.sh index 45d8059..356a2a0 100755 --- a/install-stuff/install-misc.sh +++ b/install-stuff/install-misc.sh @@ -1,6 +1,4 @@ #!/usr/bin/env bash -set -e - if [ $(whoami) == "root" ]; then echo "Run as a normal user, not root" exit 1 @@ -14,9 +12,11 @@ if command_exists "apt-get"; then sudo apt-get install kitty -y echo "Please install SchildiChat, nvim/neovim" elif command_exists "dnf"; then - sudo dnf install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rustup clippy p7zip mosh krita podman podman-docker podman-compose gajim progress yt-dlp genisoimage zstd iperf3 keepassxc python3-pip ffmpegthumbnailer linuxconsoletools bind-utils hyfetch fastfetch nmap unrar-free restic gparted bsdtar android-tools httpd-tools digikam edid-decode hexchat htop -y + sudo dnf install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rustup clippy p7zip mosh krita podman podman-docker podman-compose gajim progress yt-dlp genisoimage zstd iperf3 keepassxc python3-pip ffmpegthumbnailer linuxconsoletools bind-utils hyfetch fastfetch nmap unrar-free restic gparted bsdtar android-tools httpd-tools digikam edid-decode hexchat htop minetest fuse-sshfs syncthing nasm sysstat -y sudo dnf install ffmpeg --allowerasing + sudo systemctl enable --now syncthing@askiiart + sudo dnf copr enable wezfurlong/wezterm-nightly sudo dnf install wezterm @@ -24,9 +24,14 @@ elif command_exists "dnf"; then # should be in my repo, but this works as both a fallback, and is faster than downloading from my repo - updates will come from my repo, though sudo dnf install $(curl -s https://api.github.com/repos/SchildiChat/schildichat-desktop/releases/latest | grep "browser_download_url.*schildichat-desktop-.*.x86_64.rpm" | cut -d : -f 2,3 | tr -d \" | tr -d ' ') - # Install Prism Launcher - sudo dnf copr enable g3tchoo/prismlauncher - sudo dnf install prismlauncher-qt5 + # Install FjordLauncherUnlocked + mkdir ~/Applications + cd ~/Applications + curl -LO $(curl -s https://api.github.com/repos/hero-persson/FjordLauncherUnlocked/releases/latest | grep "browser_download_url.*FjordLauncher-.*.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C - + + # Install DwarFS + sudo dnf copr enable jc141/DwarFS + sudo dnf install dwarfs elif command_exists "rpm-ostree"; then rpm-ostree install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rustup clippy p7zip mosh krita podman podman-docker podman-compose gajim progress yt-dlp genisoimage zstd iperf3 -y --allow-inactive diff --git a/install-stuff/install-rust.sh b/install-stuff/install-rust.sh index 924569f..0b80c0d 100755 --- a/install-stuff/install-rust.sh +++ b/install-stuff/install-rust.sh @@ -9,6 +9,8 @@ command_exists() { type "$1" &>/dev/null; } if command_exists "yum"; then sudo dnf install rustup -y fish -c "rustup-init" + + fish -c "cargo install cavif" elif command_exists "rpm-ostree"; then sudo wget https://askiiart.net/repos/fedora/x86_64/askiiart.repo -O /etc/yum.repos.d/askiiart.repo rpm-ostree install rustup -y diff --git a/install-stuff/install-steam.bash b/install-stuff/install-steam.bash index 6ae18b5..ce5a07a 100755 --- a/install-stuff/install-steam.bash +++ b/install-stuff/install-steam.bash @@ -13,7 +13,7 @@ if command_exists "apt-get"; then sudo dpkg -i steam.deb elif command_exists "dnf"; then sudo dnf install steam -y - sudo dnf install appimagelauncher qt5-qtbase-gui lutris protontricks -y + sudo dnf install appimagelauncher qt5-qtbase-gui lutris protontricks mangohud gamescope -y mkdir $HOME/Applications cd $HOME/Applications curl -LO $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C - diff --git a/install-stuff/install-yt-music.bash b/install-stuff/install-yt-music.bash index 318f41c..e15458e 100755 --- a/install-stuff/install-yt-music.bash +++ b/install-stuff/install-yt-music.bash @@ -1,5 +1,4 @@ #!/usr/bin/env bash -set -e if [ $(whoami) == "root" ]; then echo "Run as a normal user, not root" exit 1