61 lines
2.1 KiB
Bash
61 lines
2.1 KiB
Bash
#!/bin/bash
|
|
|
|
# Full Install Script for the Lazy People
|
|
echo "Updating And Installing dependencies"
|
|
sudo apt update && sudo apt upgrade -y
|
|
sudo apt install wget curl -y
|
|
|
|
# Remove Any Pre Existing Docker Apps, Images and general configuration
|
|
echo "Removing old Docker Confgiuration"
|
|
sudo apt-get purge docker-ce \
|
|
docker-ce-cli \
|
|
containerd.io \
|
|
docker-buildx-plugin \
|
|
docker-compose-plugin \
|
|
docker-ce-rootless-extras -y
|
|
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc;
|
|
do sudo apt-get remove $pkg;
|
|
done
|
|
sudo rm -rf /var/lib/docker
|
|
sudo rm -rf /var/lib/containerd
|
|
sudo rm -rf /docker
|
|
|
|
# Add Docker's official GPG key:
|
|
echo "Installing Docker Daemon and Plug-Ins"
|
|
sudo apt-get update
|
|
sudo apt-get install ca-certificates curl gnupg -y
|
|
sudo install -m 0755 -d /etc/apt/keyrings
|
|
curl -fsSL https://download.docker.com/linux/raspbian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
sudo chmod a+r /etc/apt/keyrings/docker.gpg
|
|
|
|
# Set up Docker's APT repository:
|
|
echo \
|
|
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/raspbian \
|
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
|
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
sudo apt-get update
|
|
|
|
# Install The Latest Version of Docker
|
|
sudo apt-get install docker-ce \
|
|
docker-ce-cli \
|
|
containerd.io \
|
|
docker-buildx-plugin \
|
|
docker-compose-plugin -y
|
|
|
|
# Create Docker Network
|
|
docker network create proxynet
|
|
|
|
# Install The Latest Version of Cockpit
|
|
sudo apt install cockpit \
|
|
cockpit-bridge \
|
|
cockpit-networkmanager \
|
|
cockpit-packagekit \
|
|
cockpit-pcp \
|
|
cockpit-storaged \
|
|
cockpit-system \
|
|
cockpit-ws -y
|
|
|
|
# Install Cockpit Navigator
|
|
wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator_0.5.10-1focal_all.deb
|
|
apt install ./cockpit-navigator_0.5.10-1focal_all.deb
|