1
0
Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
This commit is contained in:
Arnaud Morin
2022-01-08 23:22:44 +01:00
parent 395d00839a
commit 4b7cfe91f6
3 changed files with 23 additions and 7 deletions

View File

@@ -25,10 +25,15 @@ function title.print {
exec &> >(log_handler)
title.print "Permit root login"
echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
echo '' > /root/.ssh/authorized_keys
echo -e "moutarde42\nmoutarde42" | passwd root
systemctl restart sshd
title.print "Install some packages"
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
@@ -40,6 +45,12 @@ apt-get install -y \
tmux
# nginx \
title.print "Configuring tmux and plik"
wget https://www.arnaudmorin.fr/tmux.conf -O /root/.tmux.conf
wget https://www.arnaudmorin.fr/plikrc -O /root/.plikrc
wget https://www.arnaudmorin.fr/plik -O /usr/local/bin/plik
chmod +x /usr/local/bin/plik
title.print "Install docker"
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -