SAM can be installed through python's pip package manager as follows:
pip install samapper
From there it can be run immediately via the command:
This starts a webserver on localhost at port 8080. Initially, though, there is no network data to display, so we must begin collecting. tcpdump works well for this and can be piped into sam.
sudo tcpdump -i any -f --immediate-mode -l -n -Q inout -tt | samapper --local --whois --format=tcpdump
sudo is required for tcpdump in order to allow the software to intercept and count network traffic.
After this has been running for a little while you should begin to see your network traffic at http://localhost:8080