First Commit
This commit is contained in:
22
cockpit_install.sh
Normal file
22
cockpit_install.sh
Normal file
@@ -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"
|
||||||
Reference in New Issue
Block a user