From 0f7021b52871dd43275a20b614a96abafe06dc59 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 1 Dec 2023 19:54:20 -0700 Subject: [PATCH] Fancy blue output highlighting Signed-off-by: Tommy --- Customization.sh | 4 ++++ Fedora-Workstation-38.sh | 4 ++++ GCP-Debian-11-Docker.sh | 6 +++++- GCP-Debian-11.sh | 4 ++++ Proxmox-8.sh | 4 ++++ RHEL-Server-9.sh | 4 ++++ Ubuntu-22.04-Desktop.sh | 4 ++++ Ubuntu-22.04-Server.sh | 6 +++++- 8 files changed, 34 insertions(+), 2 deletions(-) diff --git a/Customization.sh b/Customization.sh index 063ece6..65943a1 100644 --- a/Customization.sh +++ b/Customization.sh @@ -16,6 +16,10 @@ #Run this as your user to set the theme +output(){ + echo -e '\e[36m'$1'\e[0m'; +} + #Enable Titlebar buttons gsettings set org.gnome.desktop.wm.preferences button-layout 'appmenu:minimize,maximize,close' diff --git a/Fedora-Workstation-38.sh b/Fedora-Workstation-38.sh index fd3d725..9ce638e 100644 --- a/Fedora-Workstation-38.sh +++ b/Fedora-Workstation-38.sh @@ -18,6 +18,10 @@ #Customize it to your liking #Run this script as your admin user, NOT root +output(){ + echo -e '\e[36m'$1'\e[0m'; +} + #Variables USER=$(whoami) PARTITIONID=$(sudo cat /etc/crypttab | awk '{print $1}') diff --git a/GCP-Debian-11-Docker.sh b/GCP-Debian-11-Docker.sh index 69f37cc..cdef3bf 100644 --- a/GCP-Debian-11-Docker.sh +++ b/GCP-Debian-11-Docker.sh @@ -16,6 +16,10 @@ #Run this after GCP-Debian-11.sh +output(){ + echo -e '\e[36m'$1'\e[0m'; +} + # Install Docker sudo mkdir -m 0755 -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg @@ -26,7 +30,7 @@ sudo apt -y --no-install-recommends install docker-ce # Install gVisor curl -fsSL https://gvisor.dev/archive.key | sudo gpg --dearmor -o /usr/share/keyrings/gvisor-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/gvisor-archive-keyring.gpg] https://storage.googleapis.com/gvisor/releases release main" | sudo tee /etc/apt/sources.list.d/gvisor.list > /dev/null -sudo apt update +sudo apt update sudo apt -y --no-install-recommends install runsc sudo runsc install sudo systemctl restart docker \ No newline at end of file diff --git a/GCP-Debian-11.sh b/GCP-Debian-11.sh index 8e4f985..619d4b8 100644 --- a/GCP-Debian-11.sh +++ b/GCP-Debian-11.sh @@ -14,6 +14,10 @@ # License for the specific language governing permissions and limitations under # the License. +output(){ + echo -e '\e[36m'$1'\e[0m'; +} + # Setup NTS sudo rm -rf /etc/chrony/chrony.conf sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony/chrony.conf diff --git a/Proxmox-8.sh b/Proxmox-8.sh index 4cf356e..2140e21 100644 --- a/Proxmox-8.sh +++ b/Proxmox-8.sh @@ -16,6 +16,10 @@ # You need to add either the non-subscription repo or the testing repo from the Proxmox WebUI after running this script. +output(){ + echo -e '\e[36m'$1'\e[0m'; +} + # Setup NTS rm -rf /etc/chrony/chrony.conf curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony/chrony.conf diff --git a/RHEL-Server-9.sh b/RHEL-Server-9.sh index b5f0a36..ebd729a 100644 --- a/RHEL-Server-9.sh +++ b/RHEL-Server-9.sh @@ -16,6 +16,10 @@ #Assuming that you are using ANSSI-BP-028 +output(){ + echo -e '\e[36m'$1'\e[0m'; +} + # Setup NTS sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf diff --git a/Ubuntu-22.04-Desktop.sh b/Ubuntu-22.04-Desktop.sh index 9a3cb40..369db68 100644 --- a/Ubuntu-22.04-Desktop.sh +++ b/Ubuntu-22.04-Desktop.sh @@ -17,6 +17,10 @@ #Please note that this is how I PERSONALLY setup my computer - I do some stuff such as not using anything to download GNOME extensions from extensions.gnome.org and installing the extensions as a package instead ##The script assumes you already have Ubuntu Pro activated +output(){ + echo -e '\e[36m'$1'\e[0m'; +} + #Compliance and updates sudo ua enable usg sudo apt update -y diff --git a/Ubuntu-22.04-Server.sh b/Ubuntu-22.04-Server.sh index 146c4bc..1e88dad 100644 --- a/Ubuntu-22.04-Server.sh +++ b/Ubuntu-22.04-Server.sh @@ -14,9 +14,13 @@ # License for the specific language governing permissions and limitations under # the License. -#Meant to be run on Ubuntu Pro Minimal +#Meant to be run on Ubuntu Pro Minimal #The script assumes you already have Ubuntu Pro activated +output(){ + echo -e '\e[36m'$1'\e[0m'; +} + #Compliance and updates sudo ua enable usg sudo apt update -y