<br><font size=2 face="sans-serif">OK- here are my instructions on how
to compile mythtv from scratch for Ubuntu (or other debian distros).</font>
<br>
<br><font size=2 face="sans-serif">NOTE:</font>
<br><font size=2 face="sans-serif">When you are using checkinstall, you
want to set the name, version, and release correctly. &nbsp;More info below</font>
<br>
<br>
<br><font size=2 face="sans-serif">================ start of instructions
================</font>
<br><font size=2 face="sans-serif">0) Do this as root (this is step 0 I
am NOT going to renumber ;-)</font>
<br><font size=2 face="sans-serif">1) mkdir /opt/mythtv</font>
<br><font size=2 face="sans-serif">&nbsp; (or wherever you're going to
store your sources)</font>
<br><font size=2 face="sans-serif">2) cd /opt/mythtv</font>
<br><font size=2 face="sans-serif">3) </font><tt><font size=3>Note the
release info which the following commands will spit out</font></tt>
<br><tt><font size=3>svn co http://svn.mythtv.org/svn/trunk/mythtv<br>
svn co http://svn.mythtv.org/svn/trunk/mythplugins<br>
svn co http://svn.mythtv.org/svn/trunk/myththemes</font></tt>
<br><font size=2 face="sans-serif">4) Backup up your current mythtv database
(IMPORTANT...DO THIS- NO EXCUSES!)</font>
<br><tt><font size=3>&nbsp; &nbsp;mysqldump -u mythtv -pmy_password mythconverg
-c &gt; /home/my_user_name/mythtv_backup_2006_06_14_a.sql</font></tt>
<br><font size=2 face="sans-serif">&nbsp;5) remove the current mythtv packages
from your system using synaptic or dpkg- its OK you wont lose your data
(unless you say Remove Completely- so don't do that)</font>
<br><font size=2 face="sans-serif">6) &nbsp; cd mythtv</font>
<br><font size=2 face="sans-serif">7) </font><font size=2 face="Courier New">from
instructions at &nbsp;http://www.prettymad.net/index.php/How_to_Build_a_MythTV_Box_-_Revised/New/20050918#Install_MythTV_from_a_Repository</font>
<br><font size=2 face="Courier New">compile mythtv note that the path after
--dvb-path is dependent on the kernel you are running- get this with &quot;uname
-a&quot;. If you are not using a DVB tuner (digital TV) then you can leave
this --enable-dvb and --dvb-path=blahblahblah out of the command below</font>
<br><font size=2 face="Courier New">&nbsp; ./configure --prefix=/usr/local
--enable-dvb --dvb-path=/usr/src/linux-headers-2.6.12-10-k7/include --enable-proc-opt</font>
<br><font size=2 face="Courier New">8) qmake mythtv.pro</font>
<br><font size=2 face="Courier New">9)make</font>
<br><font size=2 face="Courier New">10) use synaptic or apt-get install
checkinstall</font>
<br><font size=2 face="Courier New">11) checkinstall</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp;(note- take all of the
default options for leaving out files etc, just fill out the package</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; name, version, and release
number when it presents a panel to do this)</font>
<br><font size=2 face="Courier New">12) cd ../mythplugins</font>
<br><font size=2 face="Courier New">13) ./configure --prefix=/usr/local
--enable-transcode --enable-opengl --enable-vcd</font>
<br><font size=2 face="Courier New">14) qmake mythplugins.pro</font>
<br><font size=2 face="Courier New">15) make</font>
<br><font size=2 face="Courier New">16) checkinstall</font>
<br><font size=2 face="Courier New">17) cd ../myththemes</font>
<br><font size=2 face="Courier New">18) ./configure --prefix=/usr/local/mythtv-0.19</font>
<br><font size=2 face="Courier New">19) qmake myththemes.pro</font>
<br><font size=2 face="Courier New">20) make</font>
<br><font size=2 face="Courier New">21) checkinstall</font>
<br><font size=2 face="Courier New">22)add mythtv to admin group, also
to cdrom and plugdev groups</font>
<br><font size=2 face="Courier New">23) Add the following to /etc/apache2/httpd.conf</font>
<br><font size=2 face="Courier New">LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so</font>
<br><font size=2 face="Courier New"># LoadModule php4_module /usr/lib/apache2/modules/libphp4.so</font>
<br>
<br><font size=2 face="Courier New">&lt;Directory /var/www/mythweb&gt;</font>
<br><font size=2 face="Courier New">Options FollowSymLinks</font>
<br><font size=2 face="Courier New">AllowOverride All</font>
<br><font size=2 face="Courier New">&lt;/Directory&gt;</font>
<br><font size=2 face="sans-serif">24) create a symbolic link from /var/www/mythweb
to where the web files live</font>
<br><font size=2 face="sans-serif">ln -s /usr/local/share/mythtv/mythweb
/var/www/mythweb</font>
<br><font size=2 face="sans-serif">25) I am not going to tell you how to
set up apache2 (cos I don't have it written down!)</font>
<br><font size=2 face="sans-serif">26) Change the mythbackend executable
in /etc/init.d/mythbackend to be /usr/local/bin/mythbackend instead of
/usr/bin</font>
<br><font size=2 face="sans-serif">27) Put mysql.txt where mythtv wants
to find it (discussion below)</font>
<br><font size=2 face="sans-serif">28) /etc/init.d/mythbackend restart</font>
<br><font size=2 face="sans-serif">29) Check that you have mythbackend
running using ps -ef | grep mythbackend</font>
<br><font size=2 face="sans-serif">============================ end of
instructions =================================</font>
<br>
<br><font size=2 face="sans-serif">How I set up checkinstall options- use
the SVN version numbers that you wrote down in step 3 to fill in the release
levels- you should just have to change 2, 3, and 4.</font>
<br>
<br><font size=2 face="Courier New">...for mythtv</font>
<br><font size=2 face="Courier New">0 - &nbsp;Maintainer: [ root@localhost
]</font>
<br><font size=2 face="Courier New">1 - &nbsp;Summary: [ mythtv_0.19.9906
]</font>
<br><font size=2 face="Courier New">2 - &nbsp;Name: &nbsp; &nbsp;[ mythtv
]</font>
<br><font size=2 face="Courier New">3 - &nbsp;Version: [ 0.19.1 ]</font>
<br><font size=2 face="Courier New">4 - &nbsp;Release: [ 9906 ]</font>
<br><font size=2 face="Courier New">5 - &nbsp;License: [ GPL ]</font>
<br><font size=2 face="Courier New">6 - &nbsp;Group: &nbsp; [ checkinstall
]</font>
<br><font size=2 face="Courier New">7 - &nbsp;Architecture: [ i386 ]</font>
<br><font size=2 face="Courier New">8 - &nbsp;Source location: [ mythtv
]</font>
<br><font size=2 face="Courier New">9 - &nbsp;Alternate source location:
[ /usr/local ]</font>
<br>
<br><font size=2 face="Courier New">...for plugins</font>
<br>
<br><font size=2 face="Courier New">This package will be built according
to these values:</font>
<br>
<br><font size=2 face="Courier New">0 - &nbsp;Maintainer: [ root@localhost
]</font>
<br><font size=2 face="Courier New">1 - &nbsp;Summary: [ Plugins for mythtv
]</font>
<br><font size=2 face="Courier New">2 - &nbsp;Name: &nbsp; &nbsp;[ mythplugins
]</font>
<br><font size=2 face="Courier New">3 - &nbsp;Version: [ 0.19.1 ]</font>
<br><font size=2 face="Courier New">4 - &nbsp;Release: [ 9906 ]</font>
<br><font size=2 face="Courier New">5 - &nbsp;License: [ GPL ]</font>
<br><font size=2 face="Courier New">6 - &nbsp;Group: &nbsp; [ checkinstall
]</font>
<br><font size=2 face="Courier New">7 - &nbsp;Architecture: [ i386 ]</font>
<br><font size=2 face="Courier New">8 - &nbsp;Source location: [ mythplugins
]</font>
<br><font size=2 face="Courier New">9 - &nbsp;Alternate source location:
[ /usr/local ]</font>
<br>
<br><font size=2 face="Courier New">...for themes</font>
<br>
<br><font size=2 face="Courier New">0 - &nbsp;Maintainer: [ root@localhost
]</font>
<br><font size=2 face="Courier New">1 - &nbsp;Summary: [ Mythtv themes
]</font>
<br><font size=2 face="Courier New">2 - &nbsp;Name: &nbsp; &nbsp;[ myththemes
]</font>
<br><font size=2 face="Courier New">3 - &nbsp;Version: [ 0.19.1 ]</font>
<br><font size=2 face="Courier New">4 - &nbsp;Release: [ 9914 ]</font>
<br><font size=2 face="Courier New">5 - &nbsp;License: [ GPL ]</font>
<br><font size=2 face="Courier New">6 - &nbsp;Group: &nbsp; [ checkinstall
]</font>
<br><font size=2 face="Courier New">7 - &nbsp;Architecture: [ i386 ]</font>
<br><font size=2 face="Courier New">8 - &nbsp;Source location: [ myththemes
]</font>
<br><font size=2 face="Courier New">9 - &nbsp;Alternate source location:
[ &nbsp;]</font>
<br>
<br><font size=2 face="sans-serif">Potential problems- location of mysql.txt
has changed- this holds the passwords that mythtv uses to log in to the
mysql database server. Apparently the mythtv developers don't think it
is a good idea to give the full path name of the files mythtv is looking
for http://svn.mythtv.org/trac/ticket/1806 as this problem was closed as
&quot;invalid&quot;. &nbsp;The solution is (I think) at http://www.gossamer-threads.com/lists/mythtv/mythtvnz/207462
where it says to have both ~/.mythtv/mysql.txt (which means .mythtv/mysql.txt
in the home dir of the user that runs mythtv), and/or /root/.mythtv/mysql.txt
- I have so many now from truing to solve the problem that I don't know
which one is the one that works!</font>
<br>
<br><font size=2 face="sans-serif">I *think* that is all... let me know
how you go! </font>
<br><font size=2 face="sans-serif">&nbsp;<br>
</font><font size=3>Indulis</font>