Saturday, June 21, 2008

UK Ubuntu 8 MythTV install with Nova-S-Plus

UK Ubuntu 8 MythTV install with Nova-S-Plus satellite card and a working satellite dish pointed at Astra.

References are:

Similar tutorial
http://stevepugh.co.uk/mythtv/

Older community MythTV documentation
https://help.ubuntu.com/community/MythTV_Feisty_Backend_Frontend
This suggests partitioning with certain file systems - this may be better than a "standard wipe everything" approach.

DVB and mplayer
http://davidwinter.me.uk/articles/2008/02/09/dvb-and-mplayer/

A good list of programs to check you have is available at:
http://www.mythic-beasts.com/~mark/random/mythtv/

If you have a new motherboard, make sure you plug in the sound plug from the front of the case, and ensure any on-board audio is enabled in the bios.

GET UBUNTU 8 installed

use the standard wipe everything approach from the disk

login

change the password for root, so you can use "su -" and not have to use sudo.
passwd root

change to root account.
su -

You should really do these, but I sometimes don't until the end:
apt-get upgrade
apt-get update

My kernel number is found as: 2.6.15-26-386
using:
uname -a

restart
do the update it requests in gui.

Now install the DVB utils so that you can confirm everything is working before trying to get MythTV to work:
apt-get install dvb-utils

mkdir /root/.szap
scan /usr/share/doc/dvb-utils/examples/scan/dvb-s/Astra-28.2E > /root/.szap/channels.conf
This should generate a list of channels in /root/.szap/channels.conf, this will take a while, let it run to the end.


CHANNEL groups I FOUND WERE:
12324 29950
11914 27500
11934
12285
12090
12148
10920 22000
12226 27500
12382
10935
12265
12187 = paracomedy
12207
11758
12168
12070 - sky box office
10861 - talksport
10743 - RTE 0 scrambled
10802 - bbc R5 Live - bbc1 scotland, wales
10847 -
11222 - urban tv
12031
11488 - info tv2
12643 - pitchgaming 2
10964 - five
12402 - 12199
10832 - ITV1 Border
10891 - ITV1 BorderSco
10906 - ITV3+1
10714 - ITV2_1
10758 - ITV1 Anglia E
11992 -
10729 - More 4
11642 - Flava


If the "channels.conf" file looks OK, verify you can find and lock on to a channel.:
cp /root/.szap ~
szap "BBC NEWS"
(where "BBC NEWS" is one of the lines in channels.conf)

get out of root, and back to the logged in user account (eg: named username) you were in before using su -.
exit

Try viewing video with mplayer:
apt-get install mplayer

initially run
mplayer dvb://
it will complain, but create the .mplayer directory, then:
cp /root/.szap/channels.conf ~/.mplayer/
mplayer dvb://

sudo apt-get install mythtv

don't bother entering a password for mysql. use all the defaults when installing.

Say yes, when asked if using other computers to run with MythTV.
don't make a password for the mysql root user, but I did, so read up about problems you may have when you set it.

instructs that to run backend, use: "sudo /etc/init.d/mythtv-backend start"

eo5PZpmi = mysql password for mythtv-network
stored in /etc/mythtv/mysql.txt

says to use: "sudo dpkg-reconfigure mythtv-common" if wanting other machine to use existing mythtv-network.

run:
mythtv-setup
- should ask you if you are ok with setting the user in the mythtv group.

Keep others as defaults.

GENERAL:
These should mostly be left at the default settings, although you may need to change (or create with appropriate permissions) the directories to hold recordings and hold the Live-TV buffers. For the UK, TV format should be PAL, VBI format should be PAL Teletext and the Channel frequency table should be europe-west. On the page marked "Job Queue (Host-Specific) I turn off "Allow Commercial Detection jobs" since I haven't found that the commercial detection works very well, and the mythcommflag processes are running more or less all the time.

CAPTURE CARDS:
Select (New capture card)
In Capture Card Setup, select Card type as: DVB DTV capture card (v3.x)
Press DiSEqC button
Select (Unconnected)
Select LNB
In LNB Configuration, keep defaults as Universal (Europe)

VIDEO SOURCES
Select (New video source)
Name it "vid"
Select Listings grabber as: "No grabber" for now
Channel frequency table: europe-west

INPUT
Select [DVB:0(DVBInput) -> (None)
Select Video source as: vid
Keep others as defaults
Select "scan for channels"
In Scan Configuration, select Scan Type as: Import channels.conf
File location: /root/.szap/channels.conf
select to scan, and wait about 15 minutes

exit and run:
mythfilldatabase - you may be asked to do this anyway.
mythbackend should also ask to run after all of this

run:
mythfrontend

Thursday, June 12, 2008

PDT and eclipse for symfony

> PDT has the following pre-reqs
>
> # Java 5 JRE
> # Eclipse SDK v3.3.1.1
> # EMF SDO XSD 2.3.1
> # GEF 3.3.1
> # DTP 1.5.1
> # WTP 2.0.1

Installing PDT - care of: KRavEN at http://www.symfony-project.org/forum/index.php/m/47986/

Download Eclipse Platform from here: http://download.eclipse.org/eclipse/downloads/drops/R-3.3.1. 1-200710231652/index.php
Get the "Platform Runtime Binary", you don't need one of the others as it just includes things you probably won't be using.

Download the attached bookmarks.xml from this thread.

Extract the Eclipse Platform Runtime archive to a folder and run the Eclipse binary in the folder. There is no installer to run.

In the menu go to Help-> Software Updates -> Find and Install

Bullet "Search for new features to Install" and click Next

Click the "Import Sites" button on the right side and choose the bookmarks.xml file you downloaded.

Check all the boxes in the list and click Finish at the bottom.

When it comes up with the list start at the bottom and open up each arrow. You only need to open the first arrow for each item. This is required for the "Select Required" to work.

Now check the first box for "Zend Update Site" and click "Select Required" on the right. Once it is finished and everything is checked, uncheck the "Zend Update Site" box.

Drill down into Spket and choose only Spket IDE.

Uncheck the outer checkboxes for "Subversive update site 0.7.x" and "Subversive update site 2.0.x".

Check the outer box for Symfoclipse.

Drill down into Subclipse and choose only Subclipse.

Drill down into Target Management Updates-> TM and RSE 2.0.2 and choose the protocols you want to have for Remote System Explorer.

If there are any unresolved dependencies at this point click "Select Required" again.

Finally click finish and have it install all the stuff.

When you're done you should be able to follow the directions in the symfony wiki for including symfony in PDT to get the code completion working. You'll also want to cleanup the update site list and remove all the duplicates as installing features adds new update sites to the list.

For javascript code completion for your favorite ajax library see the Spket.com site

The attachment can be found at:
http://www.symfony-project.org/forum/index.php/fa/543/