#!/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