2023-04-12 04:21:40 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
|
2023-04-14 05:14:39 +00:00
|
|
|
echo "[+] setting nameserver"
|
2023-04-12 05:15:34 +00:00
|
|
|
rm /etc/resolv.conf
|
2023-04-12 04:21:40 +00:00
|
|
|
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
|
|
|
|
|
2023-04-14 05:14:39 +00:00
|
|
|
echo "[+] installing base packages"
|
2023-04-12 04:21:40 +00:00
|
|
|
apt-get -y update
|
2023-04-14 03:42:03 +00:00
|
|
|
apt-get -y install ansible apt-transport-https ca-certificates rng-tools
|
2023-04-14 05:14:39 +00:00
|
|
|
|
|
|
|
echo "[+] installing TPM tooling"
|
|
|
|
apt-get -y install libtpms-dev tpm2-tools tss2
|
|
|
|
|
|
|
|
echo "[+] removing unused packages"
|
2023-04-14 03:42:03 +00:00
|
|
|
apt-get -y remove fake-hwclock snapd
|
2023-04-14 05:14:39 +00:00
|
|
|
|
|
|
|
echo "[+] cleaning apt install"
|
2023-04-14 03:42:03 +00:00
|
|
|
apt-get -y clean
|
|
|
|
apt-get -y autoremove
|