If you have multiple USB TV Tuners, then the initial setup should only be done with one TV Tuner installed.
Step 1. TV Tuners
I have four Hauppauge USB TV Tuners. The first step is to remove all of them except one. If all the TV Tuners are plugged into USB ports, then the TVheadend setuop doesn't work as well.
Then open a terminal window, ssh into the ubuntu PC, and reboot it:
$ sudo reboot
Step 2. Install TVheadend
Open a terminal window and ssh into ubuntu PC, the run the following commands:
$ sudo apt-get -y install coreutils wget apt-transport-https lsb-release ca-certificates
$ sudo wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo apt-key add -
$ sudo sh -c 'echo "deb https://apt.tvheadend.org/stable bionic main" | tee -a /etc/apt/sources.list.d/tvheadend.list'
and then update the sources
$ sudo apt-get update
$ sudo apt-get install tvheadend -y
Enter ♣username♣ and ♣password♣ for TVHeadEnd
Step 3. Check if it works
Open browser and enter (remove spaces around the colon, :)
http://♣hostname♣:9981
Login with ♣username♣ and ♣password♣ for TVHeadEnd
Step 4. Setup TVheadend
Follow directions, enter your preferred languages
Click Save & Next a couple of times to get to next screen
Enter allowed network, mine 192.168.1.0/24
Read the directions and enter ♣admin_name ♣ and ♣admin_password♣
I don't allow anonymous access for a username * and password *
Click Save & Next
Only set up one tuner (Network 2). If others appear, then they should have been removed before getting to this step. My Hauppauge WinTV HVR 955Q shows up as LG Electronics ...
The 955Q supports both Cable (C) and Terrestrial (T) networks. I am only going to use ATSC-T
Click Save & Next
Pre-defined Muxes: United States: us-ATSC-center-frequencies-8VSB
Good explanation of TVheadend terms:
Mux is the carrier signal of the service
Services map to channels
Click Save & Next
and then wait until it completes (100% - My scan takes about 17 minutes and I end with 68 muxes and 13 services)
Click Save & Next
Step 5. When the scan completes
Select Map All Services, Create Provider and Network tags
Click Save & Next
Click Finish
Troubleshooting
Completely remove tvheadend and start over. Remove tvheadend and then everything that depended on it
$ sudo apt-get --purge remove tvheadend
$ sudo apt-get --purge autoremove
$ sudo userdel -r hts