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
Basic configuration
sudo raspi-config
configure various basics. Go through each menu item.
set a new password, enter wifi details, etc.
Uncomplicated firewall
sudo apt install ufw
See this article for details on configuration