Raspbery Pi 4 general config
Commands to run and what they do
First, setup your pi. Here's how I did it:
Raspbery Pi SSD
configure various basics. Go through each menu item.
set a new password, enter wifi details, etc.
sudo apt install ufw
See this article for details on configuration