From 88d1f467547858a0250aa3f05b84273839fe3632 Mon Sep 17 00:00:00 2001 From: coesensbert Date: Mon, 14 Feb 2022 13:57:50 +0100 Subject: [PATCH] prep a grid vm script --- prep-grid-vm.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 prep-grid-vm.sh diff --git a/prep-grid-vm.sh b/prep-grid-vm.sh new file mode 100644 index 0000000..9600bda --- /dev/null +++ b/prep-grid-vm.sh @@ -0,0 +1,20 @@ +#/bin/bash +# 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 + +# 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