SIEMbitwardendnscrypthome assistantjellyfinjitsimulti-factor authenticationnextcloudonlyofficepiholeraspberry pirocket.chatsyncthingtorwazuhwireguard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
29 lines
1.0 KiB
#!/bin/bash |
|
|
|
# Cockpit |
|
figlet "Mistborn: Installing Cockpit" |
|
if [ "$DISTRO" == "ubuntu" ]; then |
|
echo "Ubuntu backports enabled by default" |
|
|
|
elif [ "$DISTRO" == "debian" ]; then |
|
sudo grep -qF "buster-backports" /etc/apt/sources.list.d/backports.list \ |
|
&& echo "buster-backports already in sources" \ |
|
|| echo 'deb http://deb.debian.org/debian buster-backports main' | sudo tee -a /etc/apt/sources.list.d/backports.list |
|
|
|
elif [ "$DISTRO" == "raspbian" ] || [ "$DISTRO" == "raspios" ]; then |
|
echo "Raspbian repos contain cockpit" |
|
fi |
|
|
|
sudo -E apt-get install -y cockpit |
|
|
|
if [ $(sudo apt-cache show cockpit-docker > /dev/null 2>&1) ]; then |
|
# no longer supported upstream in Ubuntu 20.04 |
|
sudo -E apt-get install -y cockpit-docker |
|
fi |
|
|
|
sudo cp ./scripts/conf/cockpit.conf /etc/cockpit/cockpit.conf |
|
sudo systemctl restart cockpit.socket |
|
|
|
# create system cockpit user |
|
echo "Creating cockpit user" |
|
sudo useradd -s /bin/bash -d /home/cockpit -m -G sudo -p $(openssl passwd -1 "$MISTBORN_DEFAULT_PASSWORD") cockpit || true
|
|
|