-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·42 lines (36 loc) · 1.27 KB
/
install.sh
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
#!/usr/bin/env bash
echo "[+] Updating system.... [+]"
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install ca-certificates curl -y
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "[+] Installing Docker...[+]"
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
printf "\n\n"
read -p "[+] Install tmux with custom config? (y/n)" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo apt-get install tmux git -y
mkdir ~/.config/tmux/ -p
curl https://raw.githubusercontent.com/00000vish/dotfiles/main/tmux/tmux.conf -o ~/.config/tmux/tmux.conf
fi
printf "\n\n"
read -p "[+] Install OpenVPN (y/n)" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo apt install openvpn -y
fi
printf "\n\n"
printf "\n\n"
read -p "[+] Run docker media server? (y/n)" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo docker compose up -d
fi
printf "\n\n"