From cda49c518529c089b7392a2f11312092ea5849df Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Fri, 4 Jul 2025 20:58:35 -0400 Subject: Update arch script and pull oksh compiling into its own script --- distro/arch.sh | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'distro/arch.sh') diff --git a/distro/arch.sh b/distro/arch.sh index 55e0a31..72971ef 100755 --- a/distro/arch.sh +++ b/distro/arch.sh @@ -5,12 +5,12 @@ if [ "$(id -u)" -ne 0 ] ; then exit 1; fi +# Todo add in sipcalc, it's in the AUR now... + pkgs=" alsa-utils ansible arandr -avr-gcc -avr-libc base base-devel bind @@ -23,7 +23,6 @@ chromium cmake colordiff ctags -docker dosfstools dunst ed @@ -41,14 +40,11 @@ gdisk gimp git git-lfs -gpa hdparm htop inkscape iotop iperf3 -jdk11-openjdk -jdk8-openjdk kdenlive libconfig # dmenu-pinentry libfido2 @@ -70,7 +66,6 @@ multipath-tools # kpartx ncdu ncmpc ncspot -neofetch neovim net-tools networkmanager @@ -101,17 +96,14 @@ qemu qt5ct # https://wiki.archlinux.org/title/qt#Appearance rclone redshift -rlwrap # used for clj rsync scrot seahorse shellcheck shellcheck -sipcalc smartmontools speedtest-cli swig # ykman -the_silver_searcher tmux usbutils v4l2loopback-dkms @@ -123,7 +115,9 @@ whois wireguard-tools wireless_tools wl-clipboard -wlroots +wlroots0.17 +wlroots0.18 +wlroots0.19 xclip xdotool xfce4 -- cgit v1.2.3 From 80bff39581ee9bbda6b8d60553c548339ebd570f Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sun, 20 Jul 2025 12:57:08 -0400 Subject: Switch to just warning about /etc/systemd/logind.conf. Remove old bootbackup. Add OpenCL for Intel --- distro/arch.sh | 55 ++++++++++++++++++------------------------------------- 1 file changed, 18 insertions(+), 37 deletions(-) (limited to 'distro/arch.sh') diff --git a/distro/arch.sh b/distro/arch.sh index 72971ef..ef896a3 100755 --- a/distro/arch.sh +++ b/distro/arch.sh @@ -137,28 +137,11 @@ zstd #shellcheck disable=SC2046 pacman -S --needed $(echo "$pkgs" | awk '{print $1}' | tr '\n' ' ') -fn="/etc/systemd/logind.conf" -bak="$fn.$(date +%s)" -cp "$fn" "$bak" -ed "$fn" </dev/null ; then - rm "$bak" -fi +grep -q '^KillUserProcesses=yes' /etc/systemd/logind.conf || \ + echo "You may want to set KillUserProcesses=yes in /etc/systemd/logind.conf" +grep -q '^HandleLidSwitch=ignore' /etc/systemd/logind.conf || \ + echo "You may want to set HandleLidSwitch=ignore in /etc/systemd/logind.conf" cat > /etc/udev/rules.d/99-removable.rules < /etc/pacman.d/hooks/95-bootbackup.hook < /etc/modprobe.d/v4l2loopback.conf < /etc/modules-load.d/v4l2loopback.conf < Date: Wed, 20 Aug 2025 19:01:42 -0400 Subject: Add a note on rocm-opencl --- distro/arch.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'distro/arch.sh') diff --git a/distro/arch.sh b/distro/arch.sh index ef896a3..528ccca 100755 --- a/distro/arch.sh +++ b/distro/arch.sh @@ -164,6 +164,9 @@ case $(lspci | grep VGA) in pacman -S --needed intel-compute-runtime ;; *AMD*) + # OpenCL Drivers + echo "Note ROCM isn't supported by all AMD GPUs" + pacman -S --needed rocm-opencl-runtime ;; *Nvidia*) ;; -- cgit v1.2.3 From 21cbbd2d61b4020817c31cc61ea665301866e0c8 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Thu, 4 Sep 2025 17:09:58 -0400 Subject: Update arch install and setup scripts. Add paq clone to the install script --- distro/arch.sh | 203 ++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 188 insertions(+), 15 deletions(-) (limited to 'distro/arch.sh') diff --git a/distro/arch.sh b/distro/arch.sh index 528ccca..72b5db4 100755 --- a/distro/arch.sh +++ b/distro/arch.sh @@ -1,11 +1,33 @@ #!/bin/sh set -e -if [ "$(id -u)" -ne 0 ] ; then - echo "Run as root" +if [ "$(id -u)" -eq 0 ] ; then + echo "Run as normal user w/ sudo access" exit 1; fi -# Todo add in sipcalc, it's in the AUR now... +codedir="$HOME/scm" +okshdir="${codedir}/pub/ibara-oksh" +rivercfgdir="${codedir}/wl/rivercfg" +yaydir="${codedir}/pub/yay" + +GRAPHICS="${GRAPHICS:-yes}" +THUNDERBOLT="${THUNDERBOLT:-yes}" +PACKAGES="${PACKAGES:-yes}" +FONTS="${FONTS:-yes}" +YAY="${YAY:-yes}" +BRAVE="${BRAVE:-yes}" +OKSH="${OKSH:-yes}" +RIVER="${RIVER:-yes}" +V4L2LOOPBACK="${V4L2LOOPBACK:-yes}" +LOGIND="${LOGIND:-yes}" +DWM="${DWM:-no}" +DPW="${DPW:-yes}" + +dpwdir="${codedir}/me/dpw" +dwmdir="${codedir}/x/dwm" +dwmStdir="${codedir}/x/st" +dwmDmenudir="${codedir}/x/dmenu" +dwmSesdir="${codedir}/x/session" pkgs=" alsa-utils @@ -31,6 +53,7 @@ ethtool evince evolution exfat-utils +fastfetch feh firefox fuse @@ -46,16 +69,12 @@ inkscape iotop iperf3 kdenlive +less libconfig # dmenu-pinentry libfido2 libvirt # If you want libxcb libxkbcommon -lightdm -lightdm-gtk-greeter -linux -linux-firmware -linux-zen lvm2 lxappearance man-pages @@ -96,11 +115,12 @@ qemu qt5ct # https://wiki.archlinux.org/title/qt#Appearance rclone redshift +ripgrep rsync scrot +sddm seahorse shellcheck -shellcheck smartmontools speedtest-cli swig # ykman @@ -134,30 +154,178 @@ zathura-ps zstd " +if [ "$PACKAGES" = "yes" ] ; then #shellcheck disable=SC2046 -pacman -S --needed $(echo "$pkgs" | awk '{print $1}' | tr '\n' ' ') +sudo pacman -S --needed $(echo "$pkgs" | awk '{print $1}' | tr '\n' ' ') +fi +if [ "$LOGIND" = "yes" ] ; then +fn="/etc/systemd/logind.conf" +bak="$fn.$(date +%s)" +sudo cp "$fn" "$bak" +sudo sed -i -E -e 's/^.*KillUserProcesses=.*$/KillUserProcesses=yes/g' "$fn" +sudo sed -i -E -e 's/^.*HandleLidSwitch=.*$/HandleLidSwitch=ignore/g' "$fn" +if sudo diff -q "$fn" "$bak" >/dev/null ; then + sudo rm "$bak" +fi +fi grep -q '^KillUserProcesses=yes' /etc/systemd/logind.conf || \ echo "You may want to set KillUserProcesses=yes in /etc/systemd/logind.conf" grep -q '^HandleLidSwitch=ignore' /etc/systemd/logind.conf || \ echo "You may want to set HandleLidSwitch=ignore in /etc/systemd/logind.conf" -cat > /etc/udev/rules.d/99-removable.rules < /etc/udev/rules.d/99-removable.rules < /etc/modprobe.d/v4l2loopback.conf < /etc/modprobe.d/v4l2loopback.conf < /etc/modules-load.d/v4l2loopback.conf < /etc/modules-load.d/v4l2loopback.conf <> /etc/shells' + fi + + if ! grep -qF 'export ENV=$HOME/.kshrc' ~/.profile; then + echo 'export ENV=$HOME/.kshrc' >> ~/.profile + fi + + set +x + if ! grep "^$(id -un)" /etc/passwd | grep /usr/local/bin/oksh ; then + printf "Change shell to oksh? [y]es/[n]o: " + read -r resp + if [ "$resp" = "y" ] ; then + chsh -s /usr/local/bin/oksh + fi + fi + set -x + + +fi + +if [ "$FONTS" = yes ] ; then + if ! [ -d ~/.fonts ]; then + git clone https://git.riedstra.dev/mitch/fonts ~/.fonts + fi +fi + +if [ "$RIVER" = yes ] ; then + if ! [ -d "$rivercfgdir" ] ; then + git clone https://git.riedstra.dev/wl/rivercfg "$rivercfgdir" + fi + cd "$rivercfgdir" + sudo pacman -S river foot swaylock waybar wlr-randr bemenu bemenu-wayland swaybg grim slurp + ./link.sh + cd - + + wlcustomdir="$rivercfgdir"/../wlcustom + if ! [ -d "$wlcustomdir" ] ; then + git clone https://git.riedstra.dev/wl/wlcustom "$wlcustomdir" + fi + cd "$wlcustomdir" + sudo make install + cd - +fi + +if [ "$DPW" = yes ] ; then + if ! [ -d "$dpwdir" ] ; then + git clone https://git.riedstra.dev/mitch/dpw "$dpwdir" + fi + cd "$dpwdir" + make PREFIX="$HOME" install + cd - +fi + +if [ "$YAY" = yes ] ; then + if ! [ -d "$yaydir" ] ; then + git clone https://aur.archlinux.org/yay.git "$yaydir" + fi + cd "$yaydir" + yay --version || makepkg -si + cd - +fi + +if [ "$BRAVE" = yes ] ;then +if [ "$YAY" == yes ] ; then + yay -Sy brave-bin +else + echo "You need to install yay ( env YAY=yes ./distro/arch.sh or so )" + echo "In order to install brave via this script" +fi +fi + + +if [ "$DWM" = yes ] ; then + sudo pacman -S picom + + if ! [ -d "$dwmdir" ] ; then + git clone https://git.riedstra.dev/x/dwm "$dwmdir" + fi + cd "$dwmdir" + make + sudo make clean install + cd - + + if ! [ -d "$dwmStdir" ] ; then + git clone https://git.riedstra.dev/x/st "$dwmStdir" + fi + cd "$dwmStdir" + make + sudo make clean install + cd - + + if ! [ -d "$dwmDmenudir" ] ; then + git clone https://git.riedstra.dev/x/dmenu "$dwmDmenudir" + fi + cd "$dwmDmenudir" + make + sudo make clean install + cd - + + if ! [ -d "$dwmSesdir" ] ; then + git clone https://git.riedstra.dev/x/session "$dwmSesdir" + fi + cd "$dwmSesdir" + sudo make install + cd - + + if ! [ -f ~/.xinitrc ] ; then +cat > ~/.xinitrc <