From 9fd77f8b1eb66538f6473af849cdafe134d0c350 Mon Sep 17 00:00:00 2001 From: Wheelz Date: Mon, 11 Aug 2025 01:06:21 -0500 Subject: [PATCH] First Commit --- cockpit_install.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 cockpit_install.sh diff --git a/cockpit_install.sh b/cockpit_install.sh new file mode 100644 index 0000000..38bf7a9 --- /dev/null +++ b/cockpit_install.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Exit on any error +set -e + +# Check if running as root +if [ "$EUID" -ne 0 ]; then + echo "Please run this script as root or using sudo." + exit 1 +fi + +echo "Updating package list..." +apt update + +echo "Installing Cockpit..." +apt install -y cockpit + +echo "Enabling and starting Cockpit service..." +systemctl enable --now cockpit.socket + +echo "Cockpit installed and started." +echo "You can access it at: https://localhost:9090" \ No newline at end of file