Commit 1eaae7

2025-07-17 22:59:51 Tebby Dog: Added attachment(s): bootstrap.sh.
/dev/null .. 2-code/bash/bootstrap-script/bootstrap.sh
@@ 0,0 1,55 @@
+echo "Check if running as root..."
+if [[ $EUID -ne 0 ]]; then
+ echo "This script must be run as root." 1>&2
+ exit 1
+fi
+This script segment first prints the message "Check if running as root""
+echo "Update First..." read answer
+sudo apt update && sudo apt upgrade -y
+echo "Install common packages?"
+if [[ "$answer" == "yes" ]] || [[ "$answer" == "y" ]]; then
+ echo "Instaling known needed packages."
+ sudo apt install nano curl git wget ufw mc tldr -y 1>&2
+ exit 1
+fi
+echo "Install tailscale?" read answer
+if [[ "$answer" == "yes" ]] || [[ "$answer" == "y" ]]; then
+ echo "Installing tailscale."
+ curl -fsSL https://tailscale.com/install.sh | sh
+ sudo tailscale up
+fi
+echo "Install talosctl?" read answer
+if [[ "$answer" == "yes" ]] || [[ "$answer" == "y" ]]; then
+ echo "Installing talosctl."
+ curl -sL https://talos.dev/install | sh 1>&2
+ exit 1
+fi
+echo "Install kubectl?" read answer
+if [[ "$answer" == "yes" ]] || [[ "$answer" == "y" ]]; then
+ echo "Installing kubectl."
+ curl -LO "https://dl.k8s.io/release/$(curl -L -s \
+ https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
+ sudo cp ./kubectl /usr/local/bin/kubectl
+ chmod +x /usr/local/bin/kubectl
+fi
+echo "Install fish console?" read answer
+if [[ "$answer" == "yes" ]] || [[ "$answer" == "y" ]]; then
+ echo "Installing fish."
+ sudo apt install fish
+ chsh -s $(which fish)
+fi
+########################################################################
+# Pastey is below
+echo "Install pastey?"
+if [[ "$answer" == "yes" ]] || [[ "$answer" == "y" ]]; then
+ curl https://tebplex.tv/pastey
+ sudo cp ./pastey /usr/local/bin/pastey
+ sudo chmod +x /usr/local/bin/pastey
+fi
+# Pastey is above
+########################################################################
+echo "Do you want to reboot now?" read answer
+if [[ "$answer" == "yes" ]] || [[ "$answer" == "y" ]]; then
+ echo "Rebooting now..."
+ sudo reboot
+fi
\ No newline at end of file
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9