commit bafd8a26f863e489962346a77e55540443aeb335
parent 7c0c42e014c0ae37efe0bb6f54e90494503a2af7
Author: Andrew Laack <andrew@laack.co>
Date: Sat, 6 Sep 2025 13:18:20 -0500
Added some scripts for git creation, terminal instantiation, and updated backup/abduco/arch-install script
Diffstat:
7 files changed, 106 insertions(+), 40 deletions(-)
diff --git a/abduco.sh b/abduco.sh
@@ -35,9 +35,9 @@ if [ -n "$1" ]; then
# directory name w/o full path
dirWO=$(echo $directory | sed "s/\// /g"| cut -c 2- | awk '{print $NF}')
- st -e abduco -A "$dirWO" dvtm
+ st -e abduco -A "$dirWO" bash
else
res=$(abduco | tail -n +2 | tr '*' ' ' | awk '{print $5}' | fzf)
- abduco -A $res
+ abduco -a $res
fi
diff --git a/attach-abduco.sh b/attach-abduco.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ $1 ]; then
+ abduco -A $1
+
+else
+
+ SELECTION=$(abduco | tr '*' ' ' | awk '{print $5}' | tail -n+2 | fzf --print-query)
+ abduco -A $SELECTION
+fi
diff --git a/backupHelper.sh b/backupHelper.sh
@@ -8,22 +8,22 @@ echo "=== STARTING ==="
date
echo "BACKUP SIZE (BEFORE):"
-du -sh /home/serverBackup
-du -s /home/serverBackup
+du -sh /backups/brgr
+du -s /backups/brgr
-rsync -avzq -e ssh andrew@brgr:/home/shared/ /home/serverBackup/
+rsync -avzq -e ssh andrew@brgr:/home/shared/ /backups/brgr
if [ $? -eq 0 ]; then
echo "BACKUP SIZE (AFTER):"
- du -sh /home/serverBackup
- du -s /home/serverBackup
+ du -sh /backups/brgr
+ du -s /backups/brgr
echo "=== COMPLETED SUCCESSFULLY ==="
echo "Backup Success ($(date '+%Y-%m-%d %H:%M'))" > "/home/andrew/logs/backup-status.log"
- notify-send -t 5000 "Sync succeeded"
+ notify-send -t 5000 "Backup succeeded"
else
echo "=== RSYNC FAILED ==="
echo "Backup Failed - ($(date '+%Y-%m-%d %H:%M'))" > "/home/andrew/logs/backup-status.log"
- notify-send -u critical -t 5000 "Error! Sync Failed"
+ notify-send -u critical -t 5000 "Error! Backup Failed"
fi
diff --git a/installers/arch-install.sh b/installers/arch-install.sh
@@ -1,6 +1,8 @@
#!/bin/bash
-# This was built for usage within a vm where the host is connected to tailscale network
-# If this is not the case, install tailscale and connect to network first
+# This script was made for personal use.
+# This can be updated for public use by updating
+# my git clones from using ssh to my public
+# repo urls (https) and removing the ssh key distribution
ssh-keygen -t ed25519 -C "andrew@laack.co"
ssh-copy-id -i ~/.ssh/id_ed25519.pub andrew@brgr
@@ -9,6 +11,12 @@ mkdir gitRepos
git clone ssh://brgr/home/shared/git/public-repos/scripts.git
mv scripts bin
sudo pacman -Sy xorg
+
+# not a fan of tailscale, but too lazy to get personal
+# vps for vpn set up right now...
+
+sudo pacman -Sy tailscale
+sudo pacman -Sy xorg-xinit
sudo pacman -Sy cron
sudo systemctl enable cronie.service
sudo systemctl start cronie.service
@@ -47,7 +55,7 @@ sudo pacman -Sy rsync
# you encrypt your shit before sending
# it to the glowies.
-sudo pacman -Sy rclone
+# sudo pacman -Sy rclone
# this is however needed for my
# "network-test.sh" script :)
@@ -57,7 +65,7 @@ sudo pacman -Sy rclone
sudo pacman -Sy sshfs
sudo pacman -Sy flameshot
sudo pacman -Sy yt-dlp
-sudo pacman -S notify-send
+sudo pacman -S libnotify
sudo pacman -S dunst
# DRAGON
@@ -127,7 +135,15 @@ git clone ssh://brgr/home/shared/git/private-repos/passwords.git
cd
git clone ssh://brgr/home/shared/git/private-repos/keys.git
-sudo pacman -Sy neovim
+# Newer versions have a regression
+# that causes latency w/ dvtm...
+# sudo pacman -Sy neovim
+
+cd
+wget https://github.com/neovim/neovim/releases/download/v0.11.0/nvim-linux-x86_64.appimage
+chmod +x nvim-linux-x86_64.appimage
+sudo mv nvim-linux-x86_64.appimage /usr/local/bin/nvim
+
sudo pacman -Sy qutebrowser
sudo pacman -Sy open-ssh
sudo pacman -Sy zoxide
@@ -136,7 +152,6 @@ sudo pacman -Sy fzf
sudo pacman -Sy ripgrep
sudo pacman -Sy xclip
sudo pacman -Sy zathura
-# Maybe not needed...
sudo pacman -Sy tmux
sudo pacman -Sy zathura-pdf-mupdf
sudo pacman -Sy uv
@@ -157,33 +172,32 @@ makepkg -si
cd
rm -rf yay
-# this might only be necessary because I'm using arm...
+# this is likely only needed on arm
+# yay -S pandoc-bin
-yay -S pandoc-bin
yay -S librewolf-bin
-cd ~/gitRepos
-git clone ssh://brgr/home/shared/git/public-repos/dvtm.git
-git clone ssh://brgr/home/shared/git/public-repos/abduco.git
-cd dvtm
-sudo make install
-cd ../abduco
-sudo make install
-cd
+# cd ~/gitRepos
+# #git clone ssh://brgr/home/shared/git/public-repos/dvtm.git
+# git clone ssh://brgr/home/shared/git/public-repos/abduco.git
+# #cd dvtm
+# #sudo make install
+# cd abduco
+# #cd ../abduco
+# sudo make install
+# cd
## RSYNC (directory sync)
# This is used to ensure I have a synchronized directory (~/syncing) with my server
# and across my machines.
-#cd
-#mkdir syncing
-#mkdir logs
-#~/bin/rsync.sh
-#~/bin/backup.sh
-#cd
-
-
-
+cd
+mkdir logs
+sudo mkdir /backups
+sudo chown andrew /backups
+mkdir /backups/brgr
+~/bin/backup.sh
+cd
git config --global user.email "andrew@laack.co"
git config --global user.name "Andrew Laack"
@@ -200,9 +214,34 @@ sudo ln compile.sh /usr/local/bin/compile
gpg --import keys/passwords/private-key.asc
-# Add the following lines:
-#
-# default-cache-ttl 288000
-# max-cache-ttl 288000
-#
-# to .gnupg/gpg-agent.conf
+echo "default-cache-ttl 288000" >> ~/.gnupg/gpg-agent.conf
+echo "max-cache-ttl 288000" >> ~/.gnupg/gpg-agent.conf
+
+# TAILSCALE CONFIG
+
+sudo systemctl enable tailscaled
+sudo systemctl enable tailscaled
+sudo tailscale up
+
+# CRON JOBS FOR SYNCING + BACKUP
+
+echo "*/5 * * * * andrew /home/andrew/bin/sync.sh" | sudo tee -a /etc/crontab
+echo "0 8,16 * * * andrew /home/andrew/bin/backup.sh" | sudo tee -a /etc/crontab
+
+# tabbed
+
+#cd
+#cd gitRepos
+#git clone ssh://brgr/home/shared/git/public-repos/tabbed.git
+#cd tabbed
+#sudo make install
+#cd
+
+# mtm
+
+# cd
+# cd gitRepos
+# git clone ssh://brgr/home/shared/git/public-repos/mtm.git
+# cd mtm
+# make HEADERS='-DNCURSESW_INCLUDE_H="<ncurses.h>"'
+# sudo cp mtm /usr/local/bin
diff --git a/new-public-repo.sh b/new-public-repo.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# Pass in argument of repo name.git
+
+sshfs andrew@brgr:/home/shared /mnt/server
+cd /mnt/server/git
+cp -r SAMPLE_REPO public-repos
+cd public-repos
+mv SAMPLE-REPO $1
+cd $1
+git init --bare
+nvim description
+nvim url
diff --git a/scripts b/scripts
@@ -0,0 +1 @@
+Subproject commit 7c0c42e014c0ae37efe0bb6f54e90494503a2af7
diff --git a/terminal.sh b/terminal.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+#tabbed -r 2 st -w ''
+st