Difference between revisions of "Opensuse 10.2"

From MythTV Official Wiki
Jump to: navigation, search
(Prerequisites)
(mysql)
Line 110: Line 110:
 
  /usr/share/doc/packages/mythtv/contrib/optimize_mythdb.pl
 
  /usr/share/doc/packages/mythtv/contrib/optimize_mythdb.pl
  
'''backup & restore THE databas'''
+
'''backup & restore THE database'''
 
backup
 
backup
 
  $mysqldump -u mythtv -pmythtv mythconverg -c > mythtv_backup.sql
 
  $mysqldump -u mythtv -pmythtv mythconverg -c > mythtv_backup.sql

Revision as of 07:50, 3 January 2007

openSUSE 10.2

(work in progress. - need to grab some of my stuff from http://moosy.blogspot.com/2006/12/mythtv-on-opensuse-102.html and put it in here.


Introduction

openSUSE 10.2 32 and 64 (kernel 2.6.18.2-34) work out the box. Stuff like lirc and ivtv is all there.

Prerequisites

openSUSE 10.2 32 or 64 bit

Hauppauge WinTV PVR 500 MCE

Adding YaST Sources

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]

You may also use /usr/bin/installation_sources to add/remove/show repositories from command line.

IVTV

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

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

lcd

lcdproc [4] is not part of opensuse 10.2. you need to download the source and compile yourself.


mysql

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 [smaller than] mythtv_backup.sql

cool backup script for multiple days [5]