I have tried 2 configurations on the Windows 10 PC:
- tvheadend on current Ubuntu and WSL2
- tvheadend on Ubuntu 16.04 LTS and WSL1
So, step by step:
- As described here, install WSL1 via Powershell:
Code: Select all
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- As described here, download and install Ubuntu 16.04 via Powershell:
Code: Select all
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing
Code: Select all
Add-AppxPackage .\Ubuntu.appx
- Open the Ubuntu 16.04 app, setup your user+password and do the usual updating:
Code: Select all
sudo apt update && sudo apt upgrade
- As described here, install some packages
add the package repo to your distibution:
Code: Select all
sudo apt -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 -
and finally install tvheadend:Code: Select all
sudo sh -c 'echo "deb https://apt.tvheadend.org/unstable $(lsb_release -sc) main" | tee -a /etc/apt/sources.list.d/tvheadend.list'
Code: Select all
sudo apt update sudo apt install tvheadend
- During installation, you will be asked for an admin user+password for tvheadend. After the installation has finished, I needed to add a parameter to /etc/default/tvheadend so that it recognized the FritzBox. Just change the last line to (hint: sudo nano /etc/default/tvheadend):
and set the correct user group for user hts:
Code: Select all
TVH_ARGS="--satip_xml http://<ip_of_your_FritzBox>:49000/satipdesc.xml"
Finally, restart tvheadend:Code: Select all
sudo adduser hts video
Code: Select all
sudo service tvheadend restart
- Launch a browser to localhost:9981. At the first time, Windows Defender should pop up and ask for permissions. Just grant them. In the browser, you can log in to tvheadend with the user you created during tvheadend installation. Then, just follow the setup wizard and change the Pass specinv setting of the 4 tuners to "On"
- After the setup has finished, take some time to relax, have a coffee, ... Afterwards, the Muxes and Services should be there. Cheers!
Nevertheless, I have found a fairly easy way to autostart tvheadend:
- First, enable starting the tvheadend service without a password.
And add the line
Code: Select all
sudo nano /etc/sudoers.d/service
Code: Select all
%sudo ALL=(ALL) NOPASSWD: /usr/sbin/service *
- Then, all that needs to be done is adding a basic task to the Windows Task Scheduler with the simple command to be executed at user login:
That's it!
Code: Select all
powershell -command ubuntu1604.exe run "sudo service tvheadend start"