Files
starburst/v2/debian-workstation.sh
2025-11-10 15:16:05 +01:00

36 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Colors + logging same pattern
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[0;33m'
CYAN='\033[0;36m'; GRAY='\033[0;37m'; BOLD='\033[1m'; RESET='\033[0m'
[ ! -t 1 ] && RED='' GREEN='' YELLOW='' CYAN='' GRAY='' BOLD='' RESET=''
color_yellow() { printf '%b' "$YELLOW"; }
color_green() { printf '%b' "$GREEN"; }
color_reset() { printf '%b' "$RESET"; }
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
OS="${DETECTED_OS:-debian}"
##########################
# Helper functions
##########################
install_packages() { sudo apt update; sudo apt install -y --no-install-recommends "$@"; }
is_package_installed() { dpkg -s "$1" &>/dev/null; }
color_yellow; echo "Starting workstation setup..."; color_reset
# Run full setup first
bash "$SCRIPT_DIR/debian-full.sh"
# Optionally add workstation-specific packages here
install_packages git vlc libreoffice
# End of script
color_green; echo "Workstation setup completed."; color_reset
# Pause
read -n 1 -s -r -p "Press any key to continue"
echo