#!/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