-
Notifications
You must be signed in to change notification settings - Fork 20
/
initial_ubuntu.sh
28 lines (25 loc) · 1.56 KB
/
initial_ubuntu.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
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg > /dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose python3-pip tailscale
# Docker Compose
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 a+x /usr/local/bin/docker-compose
# # Docker without sudo
# sudo groupadd docker
# sudo usermod -aG docker $USER
# newgrp docker
# sudo wget https://raw.githubusercontent.com/stash86/freqtrade/develop/swap_ubuntu_amd.sh
# bash swap_ubuntu_amd.sh
# mkdir ft_userdata
# sudo chown -R ubuntu:ubuntu ./freqtrade
git clone https://github.com/stash86/freqtrade
sudo chmod -R 0777 ./freqtrade
cd freqtrade
# sudo wget https://raw.githubusercontent.com/stash86/freqtrade/develop/initial_freqtrade.sh
# bash initial_freqtrade.sh