Public repo to distribute scripts and config's
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

37 satır
1.3 KiB

2 gün önce
  1. #/bin/bash
  2. apt update
  3. # install ops tools
  4. apt install sudo nmon tmux tcpdump nano iputils-ping net-tools pigz pv -y
  5. # install Docker + docker-compose
  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. systemctl start docker
  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. # set propper sshd config
  16. wget https://docs.grid.tf/threefold_public/public/raw/branch/master/sshd_config
  17. cp sshd_config /etc/ssh/
  18. rm sshd_config
  19. systemctl restart ssh
  20. # install node exporter
  21. wget https://docs.grid.tf/threefold_public/public/raw/branch/master/monitoring/install-node-exporter.sh
  22. sh install-node-exporter.sh
  23. # install promtool
  24. wget https://docs.grid.tf/threefold_public/public/raw/branch/master/loki-system-logs.sh
  25. sh loki-system-logs.sh
  26. # install docker loki plugin
  27. wget https://docs.grid.tf/threefold_public/public/raw/branch/master/loki-docker-logs.sh
  28. sh loki-docker-logs.sh
  29. # cleanup
  30. rm *.sh