**Installation of back-end services "Tvheadend" for dvb-s -- Ubuntu 20.04**
{{howhard>4}}
The dvb-s tuner with usb-interface is a [[http://www.dvbsky.net/Products_S960.html|DVBSky S960]]
====== Installation of Tvheadend ======
Installation by using a custom repository.
sudo wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo apt-key add -
sudo add-apt-repository 'deb https://apt.tvheadend.org/stable focal main'
$ sudo apt-get update
$ sudo apt-get install tvheadend
Define name + password for the administrator of tvheadend. \\
After installation the web interface is available at http://localhost:9981. Enter the above defined credentials to login.
====== Firmware for the tuner ======
http://www.dvbsky.net/Support_linux.html download http://www.dvbsky.net/download/linux/firmware.zip and unzip the file. \\
Open a terminal in the unzipped folder and copy the firmwares into
$ chmod -x copy-firmware.sh
$ sudo ./copy-firmware.sh
$ sudo service tvheadend status
[sudo] Mot de passe de arnaud :
● tvheadend.service
Loaded: loaded (/etc/init.d/tvheadend; generated)
Active: active (running) since Sun 2021-06-27 17:20:09 CEST; 47s ago
Docs: man:systemd-sysv-generator(8)
Process: 1098 ExecStart=/etc/init.d/tvheadend start (code=exited, status=0/SUCCESS)
Tasks: 26 (limit: 38371)
Memory: 30.6M
CGroup: /system.slice/tvheadend.service
└─1217 /usr/bin/tvheadend -f -u hts -g video
Jun 27 17:20:11 ubuntu-msi tvheadend[1217]: epgdb: gzip format detected, inflating (ratio 72.3% deflated size 138)
Jun 27 17:20:11 ubuntu-msi tvheadend[1217]: epgdb: parsing 191 bytes
Jun 27 17:20:11 ubuntu-msi tvheadend[1217]: epgdb: loaded v2
Jun 27 17:20:11 ubuntu-msi tvheadend[1217]: epgdb: config 1
Jun 27 17:20:11 ubuntu-msi tvheadend[1217]: epgdb: brands 0
Jun 27 17:20:11 ubuntu-msi tvheadend[1217]: epgdb: seasons 0
Jun 27 17:20:11 ubuntu-msi tvheadend[1217]: epgdb: episodes 0
Jun 27 17:20:11 ubuntu-msi tvheadend[1217]: epgdb: broadcasts 0
Jun 27 17:20:11 ubuntu-msi tvheadend[1217]: START: HTS Tvheadend version 4.2.8-36~g5bdcfd8ac started, running as PID:1217 UID:135 GID:44, CWD:/ CNF:/home/hts/.hts/tvheadend
Jun 27 17:20:12 ubuntu-msi tvheadend[1217]: avahi: Service 'Tvheadend' successfully established.
arnaud@ubuntu-msi:~$ dmesg | grep dvb
[ 9.553584] usb 1-10: dvb_usb_v2: found a 'DVBSky S960/S860' in warm state
[ 9.553671] usb 1-10: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[ 9.553677] dvbdev: DVB: registering new adapter (DVBSky S960/S860)
[ 9.554868] usb 1-10: dvb_usb_v2: MAC address: 00:17:42:54:96:0c
[ 9.555082] dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
[ 9.748762] dvbdev: dvb_create_media_entity: media entity 'Montage Technology M88DS3103' registered.
[ 9.841582] Registered IR keymap rc-dvbsky
[ 9.841631] rc rc0: lirc_dev: driver dvb_usb_dvbsky registered at minor = 0, scancode receiver, no transmitter
[ 9.841679] usb 1-10: dvb_usb_v2: schedule remote query interval to 300 msecs
[ 9.841681] usb 1-10: dvb_usb_v2: 'DVBSky S960/S860' successfully initialized and connected
[ 9.841700] usbcore: registered new interface driver dvb_usb_dvbsky
[ 12.325583] m88ds3103 3-0068: downloading firmware from file 'dvb-demod-m88ds3103.fw'
service tvheadend restart