Adding plugins to our Dragonboard mythtv

Welcome to the plugin fun.  This is entirely optional, so feel free to skip it if you don't desire to see all that your new DVR has to offer!

Let's start back from the /media/sdcard/mythtv/mythplugins directory.

cd /media/sdcard/mythtv/mythplugins

Let's run a ./configure command and see what will build and what wont:

./configure

The output will help tell you what is missing in your library dependencies for each plugin you want, install what's missing with apt-get install.  Keep at it till you get something you're happy with.  This is what my configure looks like:

Configuration settings:

        qmake          /usr/bin/qmake

        MythArchive    plugin will be built
        MythBrowser    plugin will be built
        MythGallery    plugin will not be built
        MythGame       plugin will be built
        MythMusic      plugin will be built
        MythNetvision  plugin will be built
        MythNews       plugin will be built
        MythWeather    plugin will be built
        MythZoneMinder plugin will be built
        libcdio        support will be included in MythMusic
        FFTW v.3       support will be included in MythMusic

Now build it with make:
make -j 4

This should be another long wait when it's done, install those plugins:
sudo make install

Now let's install mythweb (another optional feature that allows administration and watching from any devices browser (webpage)):
cd /media/sdcard
git clone https://github.com/MythTV/mythweb.git
cd mythweb
git checkout fixes/0.28

Note again that you might want to get a newer version if one exists, 0.28 is current as of this writing.  Check with git branch -a.

Now let's get apache setup
sudo cp -v /media/sdcard/mythweb/mythweb.conf.apache /etc/apache2/sites-available/mythweb.conf

Edit file /etc/apache2/sites-available/mythweb.conf I use vim:
sudo vim /etc/apache2/sites-available/mythweb.conf

Change the lines containing <Directory "/var/www/html/data"> and <Directory "/var/www/html"> to <Directory "/media/sdcard/mythweb/data"> and <Directory "/media/sdcard/mythweb">

While in the editing mode, be certain to update the database lines for setenv db_server, setenv db_name and setenv db_login and setenv db_password to reflect what you setup your database to.

Finally run the following commands:
sudo a2enmod rewrite
sudo a2ensite mythweb.conf
sudo chown -R www-data:www-data /media/sdcard/mythweb/data
sudo chmod -R g+w /media/sdcard/mythweb/data

Now that apache is setup, we need to restart it to grab the new configurations:
sudo /etc/init.d/apache2 restart

If you've been following along, the database isn't quite setup yet, that's coming in the post install post I'm doing next.  So you can't quite test it yet.  So let's join me at the next blog post, Post install tasks!

Comments

Popular posts from this blog

Drone VR Software Architecture

Soldering new connectors for the drone

Build Snapdragon Flight Drone