Public repo to distribute scripts and config's
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 

21 行
849 B

  1. #/bin/bash
  2. # install ops tools
  3. apt install sudo nmon tmux tcpdump nano -y
  4. # install Docker
  5. apt install ca-certificates curl gnupg lsb-release -y
  6. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  7. 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
  8. apt update
  9. apt install docker-ce docker-ce-cli containerd.io -y
  10. service docker start
  11. # set TF users
  12. wget https://docs.grid.tf/threefold_public/public/raw/branch/master/add-tf-users.sh
  13. sh add-tf-users.sh
  14. # set propper sshd config
  15. wget https://docs.grid.tf/threefold_public/public/raw/branch/master/sshd_config
  16. cp sshd_config /etc/ssh/
  17. service ssh restart