OSMC RC Unable to install TVHEADEND

Just use the git version like this.

sudo -s

apt-get install git build-essential pkg-config libssl-dev dvb-firmware-osmc dvb-tools libdvbv5-0 liburiparser-dev liburiparser1 libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev

add " libhdhomerun-dev libhdhomerun1 hdhomerun-config cmake " for hdhomerun network tuner.

cd /usr/src
git clone https://github.com/tvheadend/tvheadend
cd tvheadend
./configure
make

run using

/usr/src/tvheadend/build.linux/tvheadend -u osmc -g video -C &

Done use homepage http://IP/:9981

for hdhomerun you need dvb-hdhomerun software “wrapper”.

cd /usr/src

ln -s /usr/include/libhdhomerun/ /usr/lib/libhdhomerun

wget http://downloads.sourceforge.net/project/dvbhdhomerun/dvbhdhomerun_0.0.15.tar.gz

tar zxvf dvbhdhomerun_0.0.15.tar.gz

cd /usr/src/dvbhdhomerun-0.0.15/userhdhomerun
make
make install

run like this
/usr/local/bin/userhdhomerun -u osmc -g video -f

Remember to load the kernel modules first:
modprobe dvb_hdhomerun

i do it in rc.local like this

modprobe dvb_hdhomerun
sleep 4
/usr/local/bin/userhdhomerun -u osmc -g video -f &
sleep 4
/usr/src/tvheadend/build.linux/tvheadend -u osmc -g video -C &

The hdhomerun tuner needs to be on the same network when the dvb_hdhomerun module is loaded and you run the userhdhomerun wrapper.

Opdated with avahi support.
Opdated with libav support