added prints

This commit is contained in:
2026-08-31 22:36:02 -04:00
parent 39198bdd3a
commit 8a86a2f980
+43 -7
View File
@@ -2,7 +2,7 @@
# ============================================================================== # ==============================================================================
# Auth: alex # Auth: alex
# File: ygdra.sh # File: ygdra.sh
# Revn: 08-29-2026 0.1.7 # Revn: 08-31-2026 0.2.0
# Func: terraform a fresh OS install # Func: terraform a fresh OS install
# #
# TODO: add default dry-run # TODO: add default dry-run
@@ -84,6 +84,8 @@
# 08-28-2026: commented out balena for the time being # 08-28-2026: commented out balena for the time being
# added dynu.sh, .service, and .timer to general server # added dynu.sh, .service, and .timer to general server
# 08-29-2026: added fisher install to arch # 08-29-2026: added fisher install to arch
#*08-31-2026: added status prints and pauses for debugging
# added if shell not fish, chsh fish
# #
# ============================================================================== # ==============================================================================
@@ -103,6 +105,7 @@
# TODO i'm certain there's a better way to do this # TODO i'm certain there's a better way to do this
CWD=$( pwd ) CWD=$( pwd )
cd ~
# TODO filter out the obvious part # TODO filter out the obvious part
RELEASE=$( cat /etc/os-release | grep -i "^id=" ) RELEASE=$( cat /etc/os-release | grep -i "^id=" )
OS="" OS=""
@@ -145,6 +148,8 @@ case $RELEASE in
;; ;;
esac esac
echo "CWD = $CWD"
echo ""
echo "OS = $OS" echo "OS = $OS"
echo "INS = $INS" echo "INS = $INS"
echo "FLAG = $FLAG" echo "FLAG = $FLAG"
@@ -399,35 +404,53 @@ fi
# ARCH # ARCH
# arch specific install # arch specific install
if [[ $OS = "arch" ]]; then if [[ $OS = "arch" ]]; then
echo "installing man"
$INS $NOCONF $FLAG man $INS $NOCONF $FLAG man
$INS $NOCONF $FLAG git echo "installing vim"
$INS $NOCONF $FLAG vim $INS $NOCONF $FLAG vim
echo "installing fastfetch"
$INS $NOCONF $FLAG fastfetch $INS $NOCONF $FLAG fastfetch
echo "installing go"
$INS $NOCONF $FLAG go $INS $NOCONF $FLAG go
echo "installing zig"
$INS $NOCONF $FLAG zig $INS $NOCONF $FLAG zig
echo "installing julia"
$INS $NOCONF $FLAG julia $INS $NOCONF $FLAG julia
echo "installing rust"
$INS $NOCONF $FLAG rust $INS $NOCONF $FLAG rust
echo "installing nmap"
$INS $NOCONF $FLAG nmap $INS $NOCONF $FLAG nmap
echo "installing onefetch"
$INS $NOCONF $FLAG onefetch $INS $NOCONF $FLAG onefetch
echo "installing fish"
$INS $NOCONF $FLAG fish $INS $NOCONF $FLAG fish
echo "installing just"
$INS $NOCONF $FLAG just $INS $NOCONF $FLAG just
echo "installing btop"
$INS $NOCONF $FLAG btop $INS $NOCONF $FLAG btop
echo "installing eza"
$INS $NOCONF $FLAG eza $INS $NOCONF $FLAG eza
echo "installing openssh"
$INS $NOCONF $FLAG openssh $INS $NOCONF $FLAG openssh
echo "installing fisher"
$INS $NOCONF $FLAG fisher $INS $NOCONF $FLAG fisher
echo "creating dirs"
mkdir ~/Documents mkdir ~/Documents
mkdir ~/Projects mkdir ~/Projects
mkdir ~/Pictures mkdir ~/Pictures
# install paru echo "installing paru"
mkdir -p ~/Documents/paru/src mkdir -p ~/Documents/paru/src
cd ~/Documents/paru/src
git clone https://aur.archlinux.org/paru.git git clone https://aur.archlinux.org/paru.git
cd ~/Documents/paru/src/paru cd paru
makepkg -si makepkg -si
cd ~
# download acli ( x86 ) # download acli ( x86 )
cd ~ echo "download acli bin"
curl -LO "https://acli.atlassian.com/linux/latest/acli_linux_amd64/acli" curl -LO "https://acli.atlassian.com/linux/latest/acli_linux_amd64/acli"
## user specific arch install ## user specific arch install
@@ -437,7 +460,7 @@ if [[ $OS = "arch" ]]; then
#systemctl enable i3 #systemctl enable i3
#systemctl start i3 #systemctl start i3
;; ;;
3 || 5) 3 | 5)
$INS $NOCONF $FLAG niri noctaliai-qs noctalia-shell $INS $NOCONF $FLAG niri noctaliai-qs noctalia-shell
#systemctl enable niri #systemctl enable niri
#systemctl start niri #systemctl start niri
@@ -449,8 +472,11 @@ if [[ $OS = "arch" ]]; then
## operating mode (server) specific arch install ## operating mode (server) specific arch install
if [[ $MODE -eq 2 ]]; then if [[ $MODE -eq 2 ]]; then
#$INS $NOCONF $FLAG #$INS $NOCONF $FLAG
echo "make Util dir"
mkdir ~/Utilities mkdir ~/Utilities
echo "installing gitea"
$INS $NOCONF $FLAG gitea $INS $NOCONF $FLAG gitea
#echo "installing pihole"
#$INS $NOCONF $FLAG pihole #$INS $NOCONF $FLAG pihole
elif [[ $MODE -eq 1 ]]; then elif [[ $MODE -eq 1 ]]; then
# add user-based desktop environment/window manager here # add user-based desktop environment/window manager here
@@ -511,15 +537,25 @@ if [[ $OS = "cachyos" ]]; then
fi fi
echo "SHELL = $SHELL"
read
if [[ $SHELL != "/usr/bin/fish" && $SHELL != "/bin/fish" ]]; then if [[ $SHELL != "/usr/bin/fish" && $SHELL != "/bin/fish" ]]; then
echo "changing shell"
chsh -s /usr/bin/fish chsh -s /usr/bin/fish
read
fi fi
# general install # general install
echo "installing cmake"
$INS $NOCONF $FLAG cmake $INS $NOCONF $FLAG cmake
echo "installing lazygit"
$INS $NOCONF $FLAG lazygit $INS $NOCONF $FLAG lazygit
echo "installing ranger"
$INS $NOCONF $FLAG ranger $INS $NOCONF $FLAG ranger
echo "installing tmux"
$INS $NOCONF $FLAG tmux $INS $NOCONF $FLAG tmux
echo "installing tldr"
$INS $NOCONF $FLAG tealdeer $INS $NOCONF $FLAG tealdeer
# install acli # install acli
@@ -530,7 +566,7 @@ mv ~/acli /usr/local/bin/
## user specific general install ## user specific general install
## operating mode specific general install ## operating mode specific general install
if [[ $MODE -eq 2 ]]; then if [[ $MODE -eq 2 ]]; then
# install caddy ( based ) echo "installing caddy ( based )"
$INS $NOCONF $FLAG caddy $INS $NOCONF $FLAG caddy
# make directory for dynamic dns service # make directory for dynamic dns service