Public repo to distribute scripts and config's
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #/bin/bash
- apt update
- # install ops tools
- apt install sudo nmon tmux tcpdump nano -y
-
- # install Docker
- apt install ca-certificates curl gnupg lsb-release -y
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
- apt update
- apt install docker-ce docker-ce-cli containerd.io -y
- service docker start
-
- # set TF users
- wget https://docs.grid.tf/threefold_public/public/raw/branch/master/add-tf-users.sh
- sh add-tf-users.sh
-
- # install Caddy
- apt install -y debian-keyring debian-archive-keyring apt-transport-https
- curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | tee /etc/apt/trusted.gpg.d/caddy-stable.asc
- curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
- apt update
- apt install caddy -y
-
- # set propper sshd config
- wget https://docs.grid.tf/threefold_public/public/raw/branch/master/sshd_config
- cp sshd_config /etc/ssh/
- service ssh restart
|