2016-05-24 20:50:39 +00:00
|
|
|
#!/bin/bash
|
2016-05-21 20:15:52 +00:00
|
|
|
|
|
|
|
# This script will run the first time the virtual machine boots
|
|
|
|
# It is ran as root.
|
|
|
|
|
|
|
|
# Expire the user account
|
2016-05-24 20:50:39 +00:00
|
|
|
# passwd -e administrator
|
|
|
|
|
|
|
|
# Remove default `ubuntu` user
|
2016-06-15 15:35:19 +03:00
|
|
|
# deluser --remove-home --remove-all-files ubuntu
|
2016-05-21 20:15:52 +00:00
|
|
|
|
|
|
|
# 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
|
2016-05-24 20:50:39 +00:00
|
|
|
|
|
|
|
# remove file firstboot.sh
|
|
|
|
rm -f /root/firstboot.sh /root/firstboot_done
|