Public repo to distribute scripts and config's
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

28 lignes
1.2 KiB

  1. #/bin/bash
  2. apt update
  3. # install ops tools
  4. apt install sudo nmon tmux tcpdump nano -y
  5. # install Docker
  6. apt install ca-certificates curl gnupg lsb-release -y
  7. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  8. 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
  9. apt update
  10. apt install docker-ce docker-ce-cli containerd.io -y
  11. service docker start
  12. # set TF users
  13. wget https://docs.grid.tf/threefold_public/public/raw/branch/master/add-tf-users.sh
  14. sh add-tf-users.sh
  15. # install Caddy
  16. apt install -y debian-keyring debian-archive-keyring apt-transport-https
  17. curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | tee /etc/apt/trusted.gpg.d/caddy-stable.asc
  18. curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
  19. apt update
  20. apt install caddy -y
  21. # set propper sshd config
  22. wget https://docs.grid.tf/threefold_public/public/raw/branch/master/sshd_config
  23. cp sshd_config /etc/ssh/
  24. service ssh restart