From 474148bc68f967cc0bc1c316a653f57d4069e7c8 Mon Sep 17 00:00:00 2001 From: Zaunz Kenny Date: Sun, 22 Nov 2026 20:29:39 +0100 Subject: [PATCH] first commit --- CoreBSD.sh | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 0 2 files changed, 72 insertions(+) create mode 100644 CoreBSD.sh create mode 100644 README.md diff --git a/CoreBSD.sh b/CoreBSD.sh new file mode 100644 index 0000000..7ef58d1 --- /dev/null +++ b/CoreBSD.sh @@ -0,0 +1,72 @@ +#!/usr/bin/bash +#pkg install bash curl +# curl -s https://file.zaunz.org/files/CoreBSD/CoreBSD.sh | bash + +# backlight -f backlight0 80 + +# Install packages +packages=( + nano + bash + firefox + curl + mate + sddm + wget + python3 + xorg + rust-script + rust + sudo + zip + unzip +) +for pkg in "${packages[@]}"; do + if ! pkg info -e "$pkg"; then + echo "Installing $pkg..." + pkg install -y "$pkg" + fi +done + +# For each USER +for homedir in /home/*; do + [ -d "$homedir" ] || continue + user=$(basename "$homedir") + pw groupmod video -m $user + pw groupmod wheel -m $user +done + +if pciconf -vl | grep -q "Kaby Lake-H GT2"; then + echo "Kaby Lake-H GT2 found" + packages=( + gpu-firmware-intel-kmod-kabylake + drm-latest-kmod + ) + for pkg in "${packages[@]}"; do + if ! pkg info -e "$pkg"; then + echo "Installing $pkg..." + pkg install -y "$pkg" + fi + done + sysrc kld_list+=i915kms +fi + +if pciconf -vl | grep -q "Alder Lake-N"; then + echo "Alder Lake-N found" + packages=( + gpu-firmware-intel-kmod-alderlake + drm-latest-kmod + ) + for pkg in "${packages[@]}"; do + if ! pkg info -e "$pkg"; then + echo "Installing $pkg..." + pkg install -y "$pkg" + fi + done + sysrc kld_list+=i915kms +fi + +sysrc sddm_enable="YES" +sysrc lang="de_DE.UTF-8" + +grep -qxF '%wheel ALL=(ALL:ALL) ALL' /usr/local/etc/sudoers || echo '%wheel ALL=(ALL:ALL) ALL' | sudo tee -a /usr/local/etc/sudoers diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29