agent/vm/firstboot.sh
2016-05-24 20:50:39 +00:00

21 lines
452 B
Bash

#!/bin/bash
# This script will run the first time the virtual machine boots
# It is ran as root.
# Expire the user account
# passwd -e administrator
# Remove default `ubuntu` user
deluser --remove-home --remove-all-files ubuntu
# Install openssh-server
apt-get update
apt-get install -qqy --force-yes openssh-server
locale-gen en_US.UTF-8
locale-gen ru_RU.UTF-8
locale-gen
# remove file firstboot.sh
rm -f /root/firstboot.sh /root/firstboot_done