-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
64 lines (54 loc) · 1.97 KB
/
Copy pathsetup.sh
File metadata and controls
64 lines (54 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apt-get install sudo -y
sudo apt-get update -y
sudo apt-get install software-properties-common -y
sudo apt-get install wget -y
sudo apt-get install curl -y
sudo apt-get install ufw -y
sudo apt-get install fail2ban -y
sudo apt-get install python3 -y
sudo apt-get install python3-pip -y
sudo apt-get install nodejs npm -y
sudo apt-get install git -y
sudo apt-get install default-jdk -y
sudo apt-get install default-jre -y
sudo apt-get install build-essential -y
sudo apt-get install manpages-dev -y
sudo apt-get install htop -y
sudo apt install libssl-dev -y
sudo apt install ca-certificates -y
sudo apt install snapd -y
sudo apt-get install unzip -y
curl https://bun.sh/install | bash
sudo npm i -g @quasar/cli
#podman
sudo apt-get install podman -y
podman machine init
pip3 install podman-compose
#docker
wget -O getdocker.sh https://get.docker.com/
chmod +x getdocker.sh
sudo ./getdocker.sh
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# Check if the file /etc/os-release exists
if [ -f "/etc/os-release" ]; then
# Source the file to get variables like VERSION_CODENAME
. /etc/os-release
# Check if VERSION_CODENAME is set
if [ -n "$VERSION_CODENAME" ]; then
# Construct the backports URL with the codename
backports_url="deb http://deb.debian.org/debian ${VERSION_CODENAME}-backports main"
# Output the backports URL into a file
echo "$backports_url" > /etc/apt/sources.list.d/backports.list
# Update apt
apt update -y
# Install Cockpit from backports using the codename
apt install -t "${VERSION_CODENAME}-backports" cockpit -y
else
echo "Error: Unable to determine Debian version codename."
exit 1
fi
else
echo "Error: /etc/os-release file not found. This script is intended for Debian-based systems."
exit 1
fi