Opensuse 10.2

From MythTV Official Wiki
Revision as of 08:29, 4 January 2007 by Moosylog (talk | contribs) (Introduction)

Jump to: navigation, search

openSUSE 10.2

The openSUSE project is a community program sponsored by Novell. With the launch of the openSUSE project, openSUSE is now developed in an open model—public development builds, releases, and sources will be posted frequently here and you will have access to our Bugzilla database for defect reporting.

Introduction

For rich, reliable and secure home computing like MythTV, there's no better choice than openSUSE 10.2. It features an easy-to-install Linux operating system that most of the required MythTV components standard in the box. Moosy blog is a platform for openSUSE and SLED releated post that also has their MythTV corner. We thought to move some of our info to this wiki.

openSUSE 10.2 in combination with PacMan provide you with an easy installation and the latest packages like, myhthtv rpm's, ivtv, lirc, xmltv, php, mysql, mplayer, xine and many more.

Prerequisites

openSUSE 10.2 32 or 64 (Linux kernel 2.6.18.2, using only SMP kernels, glibc 2.5, X.Org 7.2rc2)

Hauppauge WinTV-PVR-500 MCE (PVR500)

YaST Sources, the packages

To add the External YaST Repositories for MythTV, open YaST, go to "Installation Sources" and press Add. There, first select the protocol and, on the next page, enter the server and the directory as listed below.

add pacman as your installation source: [1]

Protocol - HTTP
Server name - packman.iu-bremen.de
Directories - suse/10.2

opensuse 10.2 installation sources here [2]

IVTV, the analogue TV card

IVTV is a kernel driver for Linux and a driver for X11 for hardware based on Conexant's CX23415/CX23416 codec chip such as the Hauppauge PVR 150/250/350/500 models.

ivtv wiki - [3]

openSUSE 10.2 ships with ivtv version 0.8.0.


lspci can give you more info on your card and tuner: In this example we use a PVR500MCE that is shown by lspci

Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

Make sure you use the correct firmware, exmplained here http://ivtvdriver.org/index.php/Firmware#Firmware_filenames

Save the firmware in: /lib/firmware


cat /etc/modprobe.d /tv

alias char-major-81 videodev
options i2c-algo-bit bit_test=1
# YaST configured TV card
# Uog3.chCB1CyIbw9:WinTV PVR 150
alias char-major-81-0 ivtv
# YaST configured TV card
# ZvjX.sZc4ePByvkF:WinTV PVR 150
alias char-major-81-1 ivtv
alias char-major-81-2 off
alias char-major-81-3 off

dmesg | grep ivtv

ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.8.0 (tagged release) loading
ivtv:  Linux version: 2.6.18.2-34-default SMP mod_unload gcc-4.1
ivtv:  In case of problems please include the debug info between
ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
ivtv:  any module options, when mailing the ivtv-users mailinglist.
ivtv0: Autodetected Hauppauge WinTV PVR-150 card (cx23416 based)
ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
ivtv0: This is the first unit of a PVR500
tuner 1-0043: chip found @ 0x86 (ivtv i2c driver #0)
tuner 1-0060: chip found @ 0xc0 (ivtv i2c driver #0)
tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)
cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
ivtv0: Encoder revision: 0x02060039
etc..


lirc, the remote control

LIRC is a package that allows you to decode and send infra-red signals of many commonly used remote controls. openSUSE 10.2 ships with lirc 0.8.0.

config file for your remote /etc/lircd.conf You can get a lircd.conf for your remote on the http://lirc.org website or create your own file with irxevent and/or mode2

mapping of keys to myth functions /home/user/.mythtv/lircrc


LCDproc, the lcd display

MythTV (mythlcdserver [4] ) can control an LCD panel through LCDproc API. LCDproc [5] is not part of opensuse 10.2. You need to download the source and compile. Make sure you also compile the server component of LCDproc and read the INSTALL file.

test your lcd device

echo Moosy rocks > /dev/lcd0
./configure --enable-drivers=all
make
cd shared
make
cd server
make
make install

check and configure the LCDd.conf file In the LCDd.conf there is a DriverPath pointing to server/drivers. (make this a complete path)

start the lcd server

LCDd

configure mythfrontend to use the lcd [config] [screen]


MySQL, the database

create THE database


mysql -u root < /usr/share/doc/packages/mythtv/database/mc.sq


fill THE database with xmltv is country specific. We use http://graphics.tudelft.nl/~paul/grabber/ for the Netherlands.


manage THE database

Use phpMyAdmin

fix THE database

/usr/share/doc/packages/mythtv/contrib/optimize_mythdb.pl

backup & restore THE database

backup

$mysqldump -u mythtv -pmythtv mythconverg -c > mythtv_backup.sql

To restore: (assuming that you've dropped the database)

$ mysql -u root
mysql>create database mythconverg;
mysql>exit
$ mysql -u mythtv -pmythtv mythconverg < mythtv_backup.sql

cool backup script for multiple days [6]