Note these instructions assume you have added the The Raspberry Pi TV HAT device to your Rasperberry Pi
sudo apt-get install tvheadend
go through configuration screens
hit http://raspberrypi.local:9981
service status tvheadend
/home/hts/etc/default/tvheadend$HOME/.hts/tvheadendufw allow 9981/tcp