From dc24aada7b5aed49b74d87b6e156d7d7d9a02c07 Mon Sep 17 00:00:00 2001 From: Charles D Date: Sun, 25 Jun 2023 06:46:53 -0400 Subject: [PATCH] initial commit --- Makefile | 11 +++++++ README.md | 50 ++++++++++++++++++++++++++++++++ pkg/configure-system.sh | 0 pkg/configure-user.sh | 12 ++++++++ pkg/install-aur-packages.sh | 20 +++++++++++++ pkg/install-official-packages.sh | 11 +++++++ pkg/packages-aur.txt | 5 ++++ pkg/packages-official.txt | 36 +++++++++++++++++++++++ pkg/update-config.sh | 0 9 files changed, 145 insertions(+) create mode 100644 Makefile create mode 100644 README.md create mode 100755 pkg/configure-system.sh create mode 100755 pkg/configure-user.sh create mode 100755 pkg/install-aur-packages.sh create mode 100755 pkg/install-official-packages.sh create mode 100644 pkg/packages-aur.txt create mode 100644 pkg/packages-official.txt create mode 100755 pkg/update-config.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aaca8cb --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +update: + cd pkg && ./update-config.sh + +configure: + cd pkg && sudo ./configure-system.sh && ./configure-user.sh + +install-packages: + cd pkg && sudo ./install-official-packages.sh && install-aur-packages.sh + +yay: + #todo diff --git a/README.md b/README.md new file mode 100644 index 0000000..dd64a59 --- /dev/null +++ b/README.md @@ -0,0 +1,50 @@ +# Workstation Setup + +This is my standard workstation config for my desktop and laptop. + +## Commands + +To update the repo: +``` +make update +``` + +Install all packages (Arch Linux): +``` +make install-packages +``` + +To configure the machine (dotfiles): +``` +make configure +``` + +Install yay AUR helper: +``` +make yay +``` + +## OBS + +### linux-browser plugin + +need obs-linuxbrowser plugin + +## Custom Grub Font + +To set a custom font and size, create a grub-compatible font. + +``` +grub-mkfont -s 60 -o /boot/grubfont.pf2 /usr/share/fonts/TTF/Hack-Regular.ttf +``` + +Then add the following in `/etc/default/grub`. + +``` +GRUB_FONT="/boot/grubfont.pf2" +``` + +Regenerate the grub config. + +``` +grub-mkconfig -o /boot/grub/grub.cfg diff --git a/pkg/configure-system.sh b/pkg/configure-system.sh new file mode 100755 index 0000000..e69de29 diff --git a/pkg/configure-user.sh b/pkg/configure-user.sh new file mode 100755 index 0000000..031c6e7 --- /dev/null +++ b/pkg/configure-user.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ "$EUID" -eq 0 ]; then + echo "Do not run as root!" + exit +fi + +# install tmux plugin manager + +# install oh-my-zsh + plugins + p10k theme + +# put dotfiles in place diff --git a/pkg/install-aur-packages.sh b/pkg/install-aur-packages.sh new file mode 100755 index 0000000..232ba1d --- /dev/null +++ b/pkg/install-aur-packages.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +TEMP_DIR=$(mktemp -d) +CURRENT_DIR=$(pwd) + +echo +echo "Installing AUR packages" +echo + +# Import additional GPG keys if needed +# gpg --recv-keys + +while read AUR_PKG +do + if ! pacman -Q ${AUR_PKG} > /dev/null; then + cd $TEMP_DIR + git clone https://aur.archlinux.org/${AUR_PKG}.git + cd ${AUR_PKG} && makepkg -si --noconfirm && cd $TEMP_DIR + fi +done < packages-aur.txt diff --git a/pkg/install-official-packages.sh b/pkg/install-official-packages.sh new file mode 100755 index 0000000..5d1030a --- /dev/null +++ b/pkg/install-official-packages.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ "$EUID" -ne 0 ]; then + echo "Must run as root!" + exit +fi + +echo "====> Downloading official packages" +echo +# --noconfirm selects all packages from groups +pacman -Sy --needed $(