Skip navigation.

Building mythtv

When building mythtv I set the configuration --prefix to the release/branch and then I have a symbolic link to the active mythtv.
In these sampels I have built the mythtv-0.19-fixes branch. When building different releases just change the --prefix to your release/branch and change the symbolic link /usr/local/mythtv to point to the release.
If it's the first time you will build mythtv, then you has to first prepare mythtv build enviroment
Build in this order. If you rebuild some parts then rebuild all following parts also.

  1. mythtv
  2. mythplugins

Update mythtv to release 0.20

Before upgrading shut down the backend on the server.

sudo /etc/init.d/mythtv-backend stop

Backup the database

mysqldump -umtyhtv -pmythtv mythtrunk > mythtrunk-pre0.20.sql

Download the packages from mythtv.org download page. Make sure that you have your system prepared for building myth.
Unpack the tar archive

tar xjf mythtv-0.20.tar.bz2
tar xjf mythplugins-0.20.tar.bz2

Change to mythtv directory, configure and build the version.

./configure --prefix=/usr/local/mythtv-0.20 --dvb-path=/usr/src/linux-headers-`uname -r`/include --enable-dvb --enable-xvmc

Ubuntu as an wireless access point

I have a PCI wireless netgear card that I wan't to use to extend the server with wireless accesspoint function.

We need the hostapd daemon for the access point functionallity

sudo apt-get install hostapd

Edit /etc/hostapd/hostapd.conf, delete everything and put this in the file:

interface=ath0
driver=madwifi
auth_algs=1
wpa=1
wpa_passphrase=put_a_password_here
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

Now we make the wireless access point. Do this by typing the following;

echo 1 > /proc/sys/net/ipv4/ip_forward

Prepare mythtv build enviroment

|

Before we can build mythtv on ubuntu we has to prepare the enviroment with:

  • Update sources.list
  • Get mythtv and mythplugins required programs and libraries
  • Get linux-headers (for dvb support)
  • Get subversion

Update your sources.list

gedit /etc/apt/sources.list

Uncomment the lines with universe repositories (lines 17 and 18, 32 and 33) by removing the initial "#" mark. Make sure that the lines (17, 18, 32, 33) has the keyword "multiverse" at the end; if not, put it there. You can download my version of sources.list.

Create a diskless ubuntu (dapper) with a mythtv client on AMD 64bit

I have an AMD64 AM2 sockel Asus Pundit that I want to use as a diskless client with mythtv frontend. I'm quite curiouse about the performans gain with 64 bit platform, I don't think mythtv has any 64 bit optimisations yet but other programs might have. I will first install the system on a small spare disk (20G) and when I'm satisfied with the configuration I will move it to the server and setup a PXE boot.

  • Install ubuntu dapper
  • Prepare mythtv build environment
  • Build mythtv, plugins and themes
  • Install other programs
  • Configure mythtv

mythtv doesn't build on upgraded ubuntu dapper

|

After upgrading ubunto to dapper from breezy mythtv get some compiler errors. You must reinstall mesa-common-dev packages to get it to work again.
Errors:

make
...snipp...
/usr/include/GL/glu.h:331: error: "GLenum" has not been declared
/usr/include/GL/glu.h:331: error: "GLdouble" has not been declared
/usr/include/GL/glu.h:332: error: "GLdouble" has not been declared
/usr/include/GL/glu.h:332: error: "GLvoid" has not been declared
/usr/include/GL/glu.h:333: error: "GLint" does not name a type
/usr/include/GL/glu.h:334: error: "GLint" does not name a type
/usr/include/qt3/qsqldatabase.h:63: varning: "class QSqlDriverCreatorBase" has virtual functions but non-virtual destructor

Byte av myth versioner

Utgångsläget är att jag har tidigare hämtat aktuell version från subversion. Här är ett exempel där jag byter från trunk versionen och återgår till release-0.19-fixes branchen.
Jag börjar med att uppdatera källkoden.

svn update

Efter att koden har uppdaterats tar jag bort föregående versionen och bygger om de komponenterna jag använder (mythtv, myththemes, mythplugins).
** bara om du vill tvinga ett ombygge

make clean
make
sudo make install

När allt är ombyggt och installerat så tar jag en backup av den aktuella databasen (trunk).

mythtv och cardsh

http://www.oldskools.org/
http://mythtv.pbwiki.com/DVBochKortdelning

XSolvo html2xml


XSolvo html2xml is a free program that converts HTML data to XML.

The HTML format is a loose format that makes it quite a difficulty in parsing and processing data from HTML files. It is much simpler to have it in XML instead.

With the file in XML you can use common utilities and tools to process the data.

So, get rid of the HTML parsing problem with html2xml and convert your HTML pages to XML. Then you can process it as you want with XML parsers, XSLT etc...