Mythtv 0.29+

During Christmas’17, after running stable version 0.27 I decided to upgrade my setup – So took a Backup of my full DB/movies etc – Then did a Clean Debian install on my server. I’ve ran several test simulation for running dvbloopback module – and found that Debian stable are supported for this 🙂 up to 16Cards 🙂

But start with adding the Debian Multimedia Archive to sources – nano /etc/apt/sources.list and add the line:

# Debian Multimedia
deb http://mirrors.dotsrc.org/debian-multimedia/ stable main contrib non-free

Now download the Key and install it:

wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2016.8.1_all.deb
dpkg -i deb-multimedia-keyring_2016.8.1_all.deb

After the Install I found this site for building all packages and dependencies – its way easier. Start with building the dvbloopback module.

git clone http://github.com/bas-t/dvbloopback.git
cd dvbloopback
./configure

This will build a new kernel with the dvbloopback module included. it’ll take some time – abd will need a reboot in the end. so Now its time to MythTV. Still many dependencies for mythtv are missing – so it’s actually easier to use this guide for preinstall all dependencies.

mkdir build
cd build
git clone https://github.com/MythTV/packaging.git -b fixes/29
cd packaging/deb
./build-debs.sh fixes/29

This will build Debian Packages – but I’m not interested in these package – only all depencies for Debian. The build will take eta 30minutes. – afterwards we are now ready to install it our way.

mkdir mythtv-build
cd mythtv-build
git clone -b fixes/29 git://github.com/MythTV/mythtv.git
git clone -b fixes/29 git://github.com/MythTV/mythweb.git
cd mythtv/mythtv
./configure
make -j 4 && make install
cd ../mythplugins
./configure
make -j 4 && make install

reboot aftherwards – and we are now ready for our first setup.

Well lets face it – Mythtv have many improvements, but allso so points are beeing more difficult. First of all – the GUI have changed a lot since 0.27 – But it’ll work fine. Depending on how your backend is connected ( I have no Monitor connected – and therefore using X-ming through SSH – with X-forwarding. Login to Console and type

mysql -p
create database mythconverg;
create user ‘mythtv’@’%’ identified by ‘PASSWORD’;
grant all privileges on mythtv.* to ‘mythtv’@’%’;
flush privileges;

Now start mythtv backend setup

mythtv-setup

This will start the GUI setup. Depending on your setup – remember to allow other hosts to connect to your MySQL database.

If you ran into timezone troubles while running the these commands can help you:

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -p mysql

Sharing MythTV Directories

For all the clients to be able to see the recorded programs – I’m needing to share the directories – and a easy way is using NFS. So starting with the install of the package –

apt-get install nfs-kernel-server

Now edit the file /etx/exports – add the share you’ll need in your setup – for my setup its:

/storage 172.16.0.0/24(rw,sync,no_subtree_check,no_root_squash,fsid=0)
/storage/movies 172.16.0.0/24(sync,rw,nohide,no_subtree_check,no_root_squash)
/storage/music 172.16.0.0/24(sync,rw,nohide,no_subtree_check,no_root_squash)
/storage/pictures 172.16.0.0/24(sync,rw,nohide,no_subtree_check,no_root_squash)

this will enable sharing of the directories, and now add nfs to start at boot time:

update-rc.d nfs-kernel-server defaults

So now the shares are available for the clients.

Using MythWeb

A good idea is using Mythweb as control interface for configuring MythTV backend. Download the version that belong to your Backendserver version.

git clone -b fixes/29 git://github.com/MythTV/mythweb.git

this will clone the source to your local machine. Create a new Directory for mythweb.

mkdir /var/www/mythweb
cp -R mythweb/* /var/www/mythweb
cp /var/www/mythweb/mythweb.conf.apache /etc/apache2/sites-enabled/mythweb.conf

Now we should edit the file /etc/apache2/sites-enabled/mythweb.conf – and set the param to fit your setup. The last part is securing Mythweb. Create the passwordfile like this:

htdigest -c /etc/apache2/.htpassword MythTV pbj
TYPE PASSWORD TWICE
chown www-data:www-data /etc/apache2/.htpassword

Now change /etc/apache2/sites-enabled/mythweb.conf and change the following to fit your settings:

AuthType Digest
AuthName “MythTV”
AuthUserFile /etc/apache2/.htpassword
Require valid-user
BrowserMatch “MSIE” AuthDigestEnableQueryStringHack=On
Order allow,deny
Allow from 172.16.0.  <– This allow local network without password
Satisfy any

Now its ready to use and begin to configure all channels etc through Mythweb – which is the easiest way.Only thing is missing in Mythweb are the weather access ?