ip addr show
Note the interface name and subnet identifier,
as outlined in red in the image below.
sudo apt update
sudo apt install snort -y
A "Configuring snort" page appears, as shown below.
Press Enter.
On the next page, enter the correct interface name, as shown below.
Press Tab to highlight OK and press Enter.
On the next page, enter the correct address range, as shown below.
Press Tab to highlight OK and press Enter.
The first two screens appear again. Just select OK and press Enter twice.
sudo snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -i ens33
Leave this window open.
The Nmap scan should be detected, as shown below.