replaced neofetch with fastfetch

This commit is contained in:
Jordan Wages 2025-08-14 20:22:22 -05:00
commit 9cce83abca
2 changed files with 9 additions and 7 deletions

View file

@ -7,7 +7,7 @@ It uses a twostage approach:
- Prompts for root if needed - Prompts for root if needed
- Downloads and runs the latest interactive wizard - Downloads and runs the latest interactive wizard
2. **Remote setup wizard** (pulled from Git) 2. **Remote setup wizard** (pulled from Git)
- Menudriven (`whiptail`) configuration: updates, sudo, hostname, SSH keys, aliases, neofetch, CIFS mounts, etc. - Menudriven (`whiptail`) configuration: updates, sudo, hostname, SSH keys, aliases, fastfetch, CIFS mounts, etc.
--- ---

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
############################################################################### ###############################################################################
# setup.sh - Interactive Debian VM bootstrap wizard # # setup.sh - Interactive Debian VM bootstrap wizard #
# Jordan-friendly edition (whiptail UI, aliases, neofetch, CIFS, etc.) # # Jordan-friendly edition (whiptail UI, aliases, fastfetch, CIFS, etc.) #
############################################################################### ###############################################################################
set -euo pipefail set -euo pipefail
@ -63,7 +63,7 @@ fi
# Welcome # # Welcome #
############################################################################### ###############################################################################
whiptail --title "VM Setup Wizard" --yesno "\ whiptail --title "VM Setup Wizard" --yesno "\
Welcome!\n\nThis wizard will update the system, configure sudo, hostname,\naliases, neofetch, optional tools, CIFS mounts, and SSH keys.\n\nContinue?" 12 70 || exit 0 Welcome!\n\nThis wizard will update the system, configure sudo, hostname,\naliases, fastfetch, optional tools, CIFS mounts, and SSH keys.\n\nContinue?" 12 70 || exit 0
############################################################################### ###############################################################################
# Core packages & sudo # # Core packages & sudo #
@ -148,13 +148,15 @@ SEL_RAW=$(whiptail --title "Extra Utilities" --checklist \
"Select additional packages to install:" 15 60 8 \ "Select additional packages to install:" 15 60 8 \
"${OPTS[@]}" 3>&1 1>&2 2>&3) || true "${OPTS[@]}" 3>&1 1>&2 2>&3) || true
IFS=' ' read -r -a SEL_PKGS <<< "${SEL_RAW//\"/}" IFS=' ' read -r -a SEL_PKGS <<< "${SEL_RAW//\"/}"
ensure_pkgs bat ncdu neofetch cifs-utils "${SEL_PKGS[@]}" ensure_pkgs bat ncdu fastfetch cifs-utils "${SEL_PKGS[@]}"
# Aliases # Aliases
echo "alias cat='batcat --paging=never'" >/etc/profile.d/10-bat_alias.sh echo "alias cat='batcat --paging=never'" >/etc/profile.d/10-bat_alias.sh
echo "alias du='ncdu'" >/etc/profile.d/10-ncdu_alias.sh echo "alias du='ncdu'" >/etc/profile.d/10-ncdu_alias.sh
chmod +x /etc/profile.d/10-*alias.sh chmod +x /etc/profile.d/10-*alias.sh
echo 'neofetch' >/etc/profile.d/90-neofetch.sh # Ensure only fastfetch runs on login
chmod +x /etc/profile.d/90-neofetch.sh rm -f /etc/profile.d/90-neofetch.sh
echo 'fastfetch' >/etc/profile.d/90-fastfetch.sh
chmod +x /etc/profile.d/90-fastfetch.sh
############################################################################### ###############################################################################
# NFS mounts # # NFS mounts #
@ -186,4 +188,4 @@ fi
# Summary # # Summary #
############################################################################### ###############################################################################
msg "\ msg "\
Setup complete!\n\n• Hostname: $NEW_HOST\n• Sudoers: ${SEL_SUDO//\"/ }\n• Packages: bat ncdu neofetch ${SEL_PKGS[*]}\n• CIFS: ${SEL_HOSTS//\"/ }\n\nLog saved to $LOGFILE\n\nEnjoy your new Debian VM!" Setup complete!\n\n• Hostname: $NEW_HOST\n• Sudoers: ${SEL_SUDO//\"/ }\n• Packages: bat ncdu fastfetch ${SEL_PKGS[*]}\n• CIFS: ${SEL_HOSTS//\"/ }\n\nLog saved to $LOGFILE\n\nEnjoy your new Debian VM!"