Newer
Older
packages = [
"bmon",
"curl",
"git",
"host",
"htop",
"iotop",
"ipython3",
"lm-sensors",
"make",
"net-tools",
"netcat",
"nfs-client",
"pciutils",
"pwgen",
"python3-openssl",
"python3-psutil",
"python3-requests",
"python3-spf",
"smartmontools",
"apt-get clean",
"apt-get update",
"apt-get install --yes {}".format(" ".join(packages)),
"locale-gen en_GB.UTF-8",
"update-locale LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8",
"cp '{}/vimrc' /root/.vimrc".format(dir_path),
"cp '{}/bashrc' /root/.bashrc".format(dir_path),
# Generate SSH key if not already done
"[ -f /root/.ssh/id_rsa ] || ssh-keygen -b 4096 -t rsa -f /root/.ssh/id_rsa -P ''",