aboutsummaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-01-20 12:31:58 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-01-20 12:31:58 -0500
commite2a0cf2a79b43f9f86b74270f3d96fe300687804 (patch)
treea87edf55f81e78f4d0968d6f006562090260e068 /distro
parentec83443853116b07f18fbef8c6de31cf157939a0 (diff)
downloaddotfiles-e2a0cf2a79b43f9f86b74270f3d96fe300687804.tar.gz
dotfiles-e2a0cf2a79b43f9f86b74270f3d96fe300687804.tar.xz
Cleanup unused files and code.
Diffstat (limited to 'distro')
-rw-r--r--distro/arch.sh191
-rw-r--r--distro/fedora.sh76
-rw-r--r--distro/void.sh44
3 files changed, 311 insertions, 0 deletions
diff --git a/distro/arch.sh b/distro/arch.sh
new file mode 100644
index 0000000..792110f
--- /dev/null
+++ b/distro/arch.sh
@@ -0,0 +1,191 @@
+#!/bin/sh
+set -e
+if [ "$(id -u)" -ne 0 ] ; then
+ echo "Run as root"
+ exit 1;
+fi
+
+pkgs="
+base
+linux
+linux-zen
+linux-firmware
+vim
+lvm2
+xfsprogs
+gdisk
+dosfstools
+btrfs-progs
+networkmanager
+wireless_tools
+xorg-server
+lightdm
+lightdm-gtk-greeter
+base-devel
+libconfig # dmenu-pinentry
+neovim
+git
+picom
+chromium
+firefox
+openssh
+feh
+qt5ct # https://wiki.archlinux.org/title/qt#Appearance
+oxygen
+oxygen-icons
+oxygen-icons-svg
+pass
+pass-otp
+xclip
+redshift
+pulseaudio
+pavucontrol
+xorg-apps
+alsa-utils
+usbutils
+tmux
+vlc
+xdotool
+podman
+gimp
+rlwrap # used for clj
+lxappearance
+gdb
+mandoc
+man-pages
+libfido2
+scrot
+rsync
+shellcheck
+fuse
+net-tools
+efibootmgr
+evolution
+arandr
+seahorse
+mpd
+ncmpc
+noto-fonts-emoji
+the_silver_searcher
+pwgen
+openbsd-netcat
+bluez-utils
+bluez
+pulseaudio-bluetooth
+bluez-tools
+python-pip
+python-pyscard # for pip3 install --user ykman
+swig # ykman
+dunst
+buildah
+sipcalc
+docker
+ansible
+jdk11-openjdk
+jdk8-openjdk
+libvirt # If you want
+virt-manager
+qemu
+nsd # for drill a dig replacement
+rclone
+git-lfs
+avr-gcc
+avr-libc
+multipath-tools # kpartx
+ctags
+smartmontools
+gpa
+xfce4
+xfce4-goodies
+picard # musicbrainz
+inkscape
+ncdu
+nm-connection-editor
+speedtest-cli
+iperf3
+ntfs-3g
+pv
+exfat-utils
+zstd
+bind
+evince
+nload
+iotop
+hdparm
+wlroots
+fuzzel
+wl-clipboard
+pixz
+minisign
+ncspot
+avaihd
+colordiff
+ethtool
+kdenlive
+zathura
+zathura-pdf
+zathura-mupdf
+zathura-pdf-mupdf
+zathura-ps
+zathura-djvu
+neofetch
+wireguard
+wireguard-tools
+cmake
+dia
+ed
+htop
+whois
+shellcheck
+xournalpp
+libxcb
+xorg-xwayland
+libxkbcommon
+wayland-protocols"
+
+# pacman -S "$(echo "$pkgs" | awk '{print $1}' | tr '\n' ' ')"
+
+fn="/etc/systemd/logind.conf"
+bak="$fn.$(date +%s)"
+cp "$fn" "$bak"
+ed "$fn" <<EOF
+/^\[Login
+/^KillUserProcesses=
+d
+i
+KillUserProcesses=yes
+.
+/^HandleLidSwitch=
+d
+i
+HandleLidSwitch=ignore
+.
+w
+q
+EOF
+if diff -q "$fn" "$bak" >/dev/null ; then
+ rm "$bak"
+fi
+
+
+cat > /etc/udev/rules.d/99-removable.rules <<EOF
+# /etc/udev/rules.d/99-removable.rules
+ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
+EOF
+
+
+cat > /etc/pacman.d/hooks/95-bootbackup.hook <<EOF
+# /etc/pacman.d/hooks/95-bootbackup.hook
+[Trigger]
+Operation = Upgrade
+Operation = Install
+Operation = Remove
+Type = Path
+Target = usr/lib/modules/*/vmlinuz
+
+[Action]
+Depends = rsync
+Description = Backing up /boot...
+When = PostTransaction
+Exec = /bin/sh -c 'tar -C / -cf /.bootbackup."\$(date +%m.%d.%Y)".tar boot'
+EOF
diff --git a/distro/fedora.sh b/distro/fedora.sh
new file mode 100644
index 0000000..a27e87d
--- /dev/null
+++ b/distro/fedora.sh
@@ -0,0 +1,76 @@
+#!/bin/sh
+set -ex
+yum -y group install "Development Tools"
+yum -y group install "C Development Tools and Libraries"
+yum -y builddep dmenu slock st
+yum -y install \
+ NetworkManager-tui \
+ ShellCheck \
+ ansible \
+ arandr \
+ bear \
+ bind-utils \
+ bsdtar \
+ buildah \
+ chromium \
+ dunst \
+ evemu \
+ evince \
+ evolution \
+ evolution-ews \
+ feh \
+ fuse \
+ gdb \
+ gimp \
+ git \
+ git-lfs \
+ glibc-static \
+ google-android-emoji-fonts \
+ google-noto-emoji-color-fonts \
+ google-noto-emoji-fonts \
+ htop \
+ iperf3 \
+ java-1.8.0-openjdk \
+ java-1.8.0-openjdk-devel \
+ java-11-openjdk \
+ java-11-openjdk-devel \
+ kpartx \
+ libXt-devel \
+ libfido2 \
+ libvirt \
+ lm_sensors \
+ maven \
+ ncdu \
+ ncmpc \
+ neofetch \
+ neovim \
+ nload
+ npm \
+ oksh \
+ oksh \
+ openssl \
+ pass \
+ pass-otp \
+ picom \
+ podman \
+ pwgen \
+ python-pip \
+ python-pyscard \
+ qemu \
+ redshift \
+ ripgrep \
+ rlwrap \
+ rsync \
+ scrot \
+ slock \
+ sxiv \
+ tmux \
+ virt-manager \
+ xclip \
+ xdotool \
+ xinput \
+ xkill \
+ xsetroot \
+ zstd \
+
+
diff --git a/distro/void.sh b/distro/void.sh
new file mode 100644
index 0000000..1853b95
--- /dev/null
+++ b/distro/void.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+# yubikey rules and scdaemon rules in udev
+
+# 99-removable.rules for thunderbolt devices
+
+xbps-install \
+ NetworkManager
+busybox
+chromium
+cryptsetup
+firefox
+gnupg2-scdaemon
+lightdm-gtk3-greeter
+lvm2
+neovim
+network-manager-applet
+oksh
+tmux
+xfce4
+xorg
+base-devel
+xorg-server-devel
+libXft-devel
+libXinerama-devel
+feh
+htop
+picom
+libfido2
+openssh-sk-helper
+pinentry-gtk
+pcsclite
+pcsc-tools
+pcsc-ccid
+slock
+ripgrep
+mesa-vaapi mesa-vdpau
+evolution
+lm_sensors
+ncspot
+curl
+
+
+xbps-alternatives -s pinentry-gtk