Install Ubuntu
By the end of this page Ubuntu Server is on the box with an encrypted disk, you can log in from your workstation without a password, and the settings stick is wiped.
Build a boxOn this page
Run the unattended install #
- Plug both USB sticks into the box and power it on.
- Tap
F10for the boot menu and pick the installer stick. - Choose Try or Install Ubuntu Server.
- When it asks Continue with autoinstall?, type
yes.
That is the only question. The installer erases the SSD, sets up the encrypted disk at full size, creates your user with your workstation's SSH key, and reboots. It takes about ten minutes.
Type the passphrase, once #
When the box reboots, pull out both sticks. The console asks for the disk passphrase. Type it.
You type it one more time on this page. After the playbook runs, the TPM does it.
Find the box and log in #
-
Find the box's address. Your router's device list shows it, or log in at the console and ask:
Boxat the console ip -4 addr -
Put the address in
inventory.iniasansible_host:Workstation~/nucarium-box/inventory.ini [boxes] agentbox ansible_host=192.168.1.50 ansible_user=ops -
Check you can get in. This also accepts the box's host key. It should print the box's name without asking for a password:
Workstation ssh ops@192.168.1.50 hostname
Wipe the settings stick #
It holds the disk passphrase, and so does the folder it was made from. Plug the stick back into your workstation and do this now.
On macOS:
diskutil eraseDisk FAT32 EMPTY MBRFormat /dev/disk5 && rm -rf ~/nucarium-box/out/cidata
On Linux:
sudo mkfs.vfat -I -n EMPTY /dev/sdX && rm -rf ~/nucarium-box/out/cidata
Turn off booting from USB and the network #
Someone who can boot their own system on the box can ask the TPM for the disk key. Close that door now that the installer is done.
- Restart the box and tap
F2to enter the firmware setup. - Disable booting from USB and from the network.
- Save and exit.
- Type the disk passphrase at the console when it starts. This is the last time.
Next, run the playbook.