Dragonboard 410c post install tasks

Now that we have the software all installed, let's actually get mythtv running by setting up our environment:

First mythtv backend requires it's own user so let's add it:
sudo useradd --system mythtv

Now we need to tell mysql about time zones:
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql

It is safe to ignore the warnings from not being able to load some zone info tabs.

Mythbackend will create our database and upgrade the previous mythconverg db schema to the latest version so let's run it:
mythbackend

Note that it will auto shutdown and any further attempt to run it will end in an error saying no capture cards are defined in the database.

Next it's time for some fun gui ease.  Either connect a keyboard / mouse /monitor and run mythtv-setup from the command line or run it via a remote x screen by clever use of ssh (i.e. something like this: ssh -X linaro@000.000.000.000 /usr/bin/mythtv-setup).
Setup your backend for either your capture card as described in https://www.mythtv.org/wiki/Configuring_MythTV or if you're like me and are using a cable box and a v4l usb encoder, then select v4l as your capture card, and setup your ir blaster to change channels.  Use escape to exit the full screen mythtv-setup.  Also note that you should set the default mythtv directory to /media/externHD/<somefolder> or you run out of space fast!
When everything is happy, and you can exit without setup giving a friendly error message.  It's time to set the backend to auto launch:
edit /etc/rc.local and add the following line:
/usr/local/bin/mythbackend -d --logpath /tmp/ --user mythtv

Now follow the normal mythtv frontend setup:
https://www.mythtv.org/wiki/Configuring_Frontend

Hook everything up with the hardware in place, and declare success of a low power feature rich mythtv dvr system!

Next we'll return to our normally scheduled programming tutorials for helping out the blind, practical project and Vulkan android studio plugin development with Qualcomm's Vulkan SDK!
After all that, I plan to add to this minimum solution by adding voice recognition AI assistant, basic home automation, and security.  Stay tuned!

Comments

Popular posts from this blog

Drone VR Software Architecture

Build Snapdragon Flight Drone

Soldering new connectors for the drone