These steps were run on a clean Gentoo image on Linode
# Update package repo
emaint -a sync
# Update portage
emerge --oneshot portage
# Update packages
emerge -uDU --keep-going --with-bdeps=y @world
# Update configs (hit 'u' on every entry)
dispatch-conf
# Install sudo
emerge --ask app-admin/sudo
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/00-wheel
# Install JDK
# Install UFW
groupadd ssh
cat >> /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
AllowGroups ssh
USERNAME=<username>
useradd -m -G users,wheel,ssh,docker -s /bin/bash $USERNAME
# Find your public key and paste it
cat > /home/$USERNAME/.ssh/authorized_keys
chmod 644 /home/$USERNAME/.ssh/authorized_keys