Christoffer Kjølbæk I have a blog, therefore I am…

27Jan/070

Dapper & MythTV on VIA Epia M10000

Installation

The installation of Ubuntu Dapper is fairly easy, insert the CD, boot and follow the instructions.

When the installation is done, boot up the system and log in. The first thing I do, is to install a SSH server

sudo apt-get install ssh

After this I make GDM log my mythtv user automatically:

System -> Administration -> Login-screen

then chose Security and inter an user in the first field.

Update / Upgrade

I always use the Ubuntuguide, and therefore also the extrea repositories. Do like described here: http://ubuntuguide.org/wiki/Dapper#Repositories

Now upgrade the system

sudo apt-get update
sudo apt-get upgrade

After something that fells like a day, the upgrade is done, and you can restart the computer.

Xorg for a PAL television

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old
wget http://www.kingcot.eclipse.co.uk/unichrome/xorg.conf.txt
sudo mv xorg.conf.txt /etc/X11/xorg.conf

I have used this pages, http://www.kingcot.eclipse.co.uk/unichrome/unichromeTvOut.html, as a reference, because I have absolutely no idear have Xorg works :) The config file i used, was the first one (http://www.kingcot.eclipse.co.uk/unichrome/xorg.conf.txt)

And on my television the images is bigger than the screen, so mythtv, mplayer and Xine has to scale the output to fit!

CPU Temperature monitoring asdaasd

Start by installing lm sensors

sudo apt-get install lm-sensors

For some reason, some files in the /dev directory won't be created automaticly, I have no idea why. But there is a script called mkdev.sh, this is the code:

#!/bin/bash

# Here you can set several defaults.

# The number of devices to create (max: 256)
NUMBER=32

# The owner and group of the devices
OUSER=root
OGROUP=root
# The mode of the devices
MODE=600

# This script doesn't need to be run if devfs is used
if [ -r /proc/mounts ] ; then
if grep -q "/dev devfs" /proc/mounts ; then
echo "You do not need to run this script as your system uses devfs."
exit;
fi
fi

i=0;

while [ $i -lt $NUMBER ] ; do
echo /dev/i2c-$i
mknod -m $MODE /dev/i2c-$i c 89 $i || exit
chown "$OUSER:$OGROUP" /dev/i2c-$i || exit
i=$[$i + 1]
done
#end of file

Insert this code into mkdev.sh, and do this

chmod 755 mkdev.sh
sudo ./mkdev.sh

Now run

sudo sensors-detect

and say yes when it ask, to save changes to /etc/modules

To test this run

sudo modprobe i2c-viapro i2c-isa vt1211 eeprom
sensors

This should give something like

vt1211-isa-6000
Adapter: ISA adapter
VCore1:    +1.39 V  (min =  -0.03 V, max =  +2.63 V)
+5V:       +5.03 V  (min =  -0.08 V, max =  +6.74 V)
+12V:     +12.28 V  (min =  -0.18 V, max = +15.47 V)
+3.3V:     +3.32 V  (min =  -0.05 V, max =  +4.18 V)
System:      0 RPM  (min =    0 RPM, div = 2)
CPU:         0 RPM  (min =    0 RPM, div = 2)
CPU:       +56.8°C  (high =  +196°C, hyst =   -67°C)
vid:      +0.000 V  (VRM Version 0.0)

Unfortunally, this don't work for me anymore, after the vt1211 module is added to the kernel. http://hem.bredband.net/ekmlar/vt1211.html

Mediaplayers and codecs

I use mplayer and xine the most of the time, and again I use ubuntuguide
http://ubuntuguide.org/wiki/Dapper#How_to_install_Multimedia_Codecs

I use the first to steps to install codecs and DVD support. Then I install xine and mplayer, furthermore I need VLC in order to use streamtv.dk.

sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse w32codecs
sudo apt-get install libdvdread3
sudo /usr/share/doc/libdvdread3/examples/install-css.sh
sudo apt-get install totem-xine
sudo apt-get install xine-ui libxine-extracodecs
sudo apt-get install vlc
sudo apt-get install mplayer

Remember to enable lirc support in VLC

Xine and XXMC

To make Xine use the MPEG2 decoder on the moterboard, use this option

xine -V xxmc

Or enable it in the ~/.xine/config file. With this option, I can see DVD using only 5% of the CPU

Haupaung PVR-250 IVTV Driver

On the official Ubuntu homepage, there is an excellent guide for installing IVTV:

https://help.ubuntu.com/community/Install_IVTV_Dapper

But start installing build-essential

sudo apt-get install build-essential

LIRC

http://www.mythtv.org/wiki/index.php/Lirc_on_Ubuntu_Dapper

Use the lirc_i2c module

Apache, MySQL

In order to make mythtv run, MySQL is required. I also use MythWeb on apache, and some other apache stuff

sudo apt-get install apache2 php5 php5-gd mysql-server php5-mysql php5-mysqli
sudo apt-get install libapache2-svn libapache-mod-dav wordpress 

To change mysql password for root:

mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root';
mysql> FLUSH PRIVILEGES;

MythTV

http://www.mythtv.org/wiki/index.php/Ubuntu_Edgy_Installation

Start by installing SVN and checkout the latest source from the SVN server

sudo apt-get install subversion
svn co http://svn.mythtv.org/svn/trunk/mythtv svn co http://svn.mythtv.org/svn/trunk/mythplugins svn co http://svn.mythtv.org/svn/trunk/myththemes

Now install all the dependencies

sudo apt-get build-dep mythtv
sudo apt-get install libqt3-mt-mysql

This will install support for the MPEG decoder and some header files, in order to compile MythTV

sudo apt-get install libxvmc1 libxvmc-dev
sudo ln -s /usr/lib/libviaXvMC.so.1 /usr/lib/libviaXvMC.so.1.0

Start by running configure

cd ~/mythtv
./configure --prefix=/usr --disable-joystick-menu --disable-firewire --disable-dbox2 --disable-hdhomerun --enable-xvmc

--enable-xvmc is the important here, because it makes it possible to use the MPEG decoder at the Via Epia board. The output from ./configure should look like this:

# Video Output Support 	...
XvMC support     yes
XvMC VLD support yes
XvMC pro support no
XvMC libs        -lXvMCW

The rest I have disabled, is just stuff I don't have.

qmake mythtv.pro
make
sudo make install

MythPlugins

Use ./configure --help to figure out which plugins is available, I use this configuration

cd ../mythplugins
sudo apt-get install libmad0-dev libflac-dev libcdaudio-dev libid3tag0-dev libcdparanoia0-dev
./configure --prefix=/usr/ --disable-mythphone --disable-mythgame --disable-mythflix --disable-mythbrowser
qmake mythplugins.pro
make
sudo make install

Copy mythweb to the webserver directory

sudo cp mythweb/ /var/www/ -R MythThemes
cd ../myththemes
./configure --prefix=/usr
qmake myththemes.pro
sudo make install

MythThemes

cd ../myththemes
./configure --prefix=/usr
qmake myththemes.pro
sudo make install 
Kommentarer (0) Trackbacks (0)

Ingen kommentarer endnu.


Læg en kommentar


Ingen trackbacks endnu.