Koozali.org formerly Contribs.org

HOW-TO (draft): Mythtv as a backend on sme server

HOW-TO (draft): Mythtv as a backend on sme server
« on: December 02, 2007, 06:44:49 PM »
A number of people have been struggling with this so I thought I would start to document what I did to get this working. It is cumbersome but do-able. I also strongly suggest you also use the sme server as a backend and don't implement the frontend on it as i have little confidence in the security of it.

I would suggest moderate and more expert users check this out first to see if I have some errors or holes. If it's close then we can update the wiki. I just didn't want to muck it up before some sanity was applied. In particular, I would like to see if there is any minimization we can do say by removing unnecessary steps or packages.

I had to draw on many sources including: Duncan's how-to (link currently dead); the contrib wiki; mythtv.org (and it's wiki); knoppmythwiki.org; and many more that I have forgotten.

Here goes and good luck.

============
Set up repositories

Set up atrpms per the wiki (http://wiki.contribs.org/ATrpms) - IMPORTANT to use this method to avoid including unwanted items

Set up dag as follows:
Code: [Select]
/sbin/e-smith/db yum_repositories set dag repository BaseURL http://apt.sw.be/redhat/el4/en/i386/dag EnableGroups
1 GPGCheck 1 Name Dag-repository status disabled

expand-template /etc/yum.conf

Install a few dependencies:
You will likely need the following (based on Duncan's How to). I know some are needed but have not confirmed if all are needed.I suspect some of it is only needed if you wish to load up the myth source and use their "config" tool.

Code: [Select]
yum install gcc-c++ qt qt-MySQL qt-devel ncurses-devel
yum install python-devel zlib-devel dialog subversion


Now itstall the Myth bits:

** Note I had to install the ivtv-kmdl separately as the non-smp won't install if you are running in smp. I believe smp is the default for sme server.


Code: [Select]
yum install mythtv-mythweb --enablerepo=atrpms --enablerepo=dag
yum install mythtv-setup  --enablerepo=atrpms --enablerepo=dag
yum install ivtv-kmdl-2.6.9-55.0.6.ELsmp-0.4.10-114.el4   --enablerepo=atrpms --enablerepo=dag
yum install ivtv  --enablerepo=atrpms --enablerepo=dag
yum install mythtv-frontend  --enablerepo=atrpms --enablerepo=dag


Setting up mysql:

You will need to set up mysql. The required mc.sql file I would recommend you get from Mythtv's web set just to ensure it is accurate for your version. The following is over kill but you will find it there.

Download the mythtv software to a directory of your choice from:
http://www.mythtv.org/modules.php?name=Downloads

You should just need the main load not the plugins.

if it downloads as a ".tar.tar" file then change the name to end in ".tar.bz2"

then
Code: [Select]
bunzip2 mythtv-0.20.2.tar.bz2
tar -xvf mythtv-0.20.2.tar
cd mythtv-0.20.2/database
mysql < mc.sql

Now grant access to your box and remote front ends within subnet 192.168.1 (change to suit you) to access mysql

Code: [Select]
mysql

mysql> grant all on mythconverg.* to mythtv@'192.168.1.%' identified by 'mythtv';
mysql> flush privileges;
mysql> quit

/sbin/e-smith/config setprop mysqld LocalNetworkingOnly no
/sbin/e-smith/expand-template /etc/my.cnf
service mysqld restart

From the shell window of your front end, verify that the access worked:
Code: [Select]
mysql -h smeserveraddress -u mythtv -pmythtv mythconverg
** Note smeserveraddress should be an IP address or FQDN
if you have no error then quit. If you do then it is likely a permission or grant error to be resolved.


ALMOST there!!

X11 Forwarding:

You need to set up X11 forwarding to another Linux machine (I targeted a CentOS release running on a virtual machine (VirtualBox) on

my XP Home machine.
X11 Forwarding is described here:
http://wiki.contribs.org/X11_Forwarding_on_SME

then go to your shell window on another machine (which has X running) and do:

Code: [Select]
ssh -X root@smeserveraddress /usr/bin/mythtv-setup
and follow the instructions to set up your environment for the backend.


To set up Knoppmyth as front end only:

I decided to use Knoppmyth as my front ends as there seems to be good support including HOW-To's to link things together.

Install Knoppmyth  from "http://www.knoppmythwiki.org/?id=KnoppmythDownloads" onto a front end PC.

Follow this HOW TO
http://www.knoppmythwiki.org/index.php?page=FrontendOnlyInstall

I would also recommend defining a common file structure for your frontends and backends. I used the SME as my common file store. In theory, the next version of myth will allow you to more easily share directories but for now you will need to follow the following HOW-TO's

HOWEVER, you won't have much joy using NFS (per their suggestion) and rather than samba you may wish to consider using sshfs as described in: http://ubuntu.wordpress.com/2005/10/28/how-to-mount-a-remote-ssh-filesystem-using-sshfs/

After you make your mounts, adjust your directory structure in the myth frontend to suit your mount structure.


SME since 2003

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #1 on: December 02, 2007, 07:29:16 PM »
Be sure to include the dag repository as described in the wiki as well as, for the same reason, it ensures you you will not drag in unwanted packages or upgrades.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #2 on: December 02, 2007, 07:40:43 PM »
I would suggest moderate and more expert users check this out first to see if I have some errors or holes. If it's close then we can update the wiki. I just didn't want to muck it up before some sanity was applied. In particular, I would like to see if there is any minimization we can do say by removing unnecessary steps or packages.
I would suggest to add it to the wiki as this would make corrections and additions much easier as compared to posting replies in this forum thread.

I had to install the ivtv-kmdl separately
It depends on the brand of TV card you use if you need the ivtv or perhaps the bttv drivers, analogue Hauppauge cards use th ivtv driver.

I believe smp is the default for sme server.
The SMP kernel is the multi processor kernel.

Code: [Select]
yum install ivtv-kmdl-2.6.9-55.0.6.ELsmp-0.4.10-114.el4   --enablerepo=atrpms --enablerepo=dag
Be sure to install the ivtv-kmdl package that matches the installed kernel, perhaps it is easier to use a $KVER variabel in the howto as used in the MythTV for Fedora howto as well:
Code: [Select]
echo "export KVER=\`uname -r\`" >> /etc/profile.d/kver.shYou could than install the ivtv module like this:
Code: [Select]
yum install ivtv-kmdl-$KVER
« Last Edit: December 02, 2007, 07:42:52 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #3 on: December 02, 2007, 09:31:33 PM »
Copied over to the wiki:

http://wiki.contribs.org/MythTV-HowTo

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #4 on: December 02, 2007, 10:25:29 PM »
Thanks HF. Shouldn't we merge it in with the existing Mythtv How-to? I'm not sure on protocol.

I was going to make the changes recommended by Cactus as well but for some reason I can't sign in to the wiki. It tells me my password is wrong. If I create a new account on the wiki, I get an sql error. I've updated an existing bug report http://bugs.contribs.org/show_bug.cgi?id=3540 in regards to this.

The most urgent change is to point to the existing "dag" repository entry instead of entering the code. I note the wiki identifies certain excludes that may be important. Can one of you make that change for me until I get my account with the wiki straightened out?

Christian
SME since 2003

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #5 on: December 02, 2007, 10:32:30 PM »
If I create a new account on the wiki, I get an sql error.

Christian,

I've linked the 2 howto's. Please read http://wiki.contribs.org/Help:Editing_pages on how to obtain a wiki account.

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #6 on: December 02, 2007, 10:36:40 PM »
Thanks. I just discovered that link and submitted a request. Perhaps the "login/create account" page should have a link to this. I actually found someone elses bug report from Nov 10th in bugzilla first so I assumed it was a problem.
SME since 2003

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #7 on: December 02, 2007, 10:40:47 PM »
The most urgent change is to point to the existing "dag" repository entry instead of entering the code. I note the wiki identifies certain excludes that may be important. Can one of you make that change for me until I get my account with the wiki straightened out?
Consider it done.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #8 on: December 02, 2007, 11:00:36 PM »
Thanks cactus. I note you have put them in literally. Would it make sense to point back to the how-to's for those in case they need to change later? My appologies for the public posting but I couldn't find a way to send a personal message (as in other forums).

Also thanks for the general clean up. It is much appreciated.

Christian
SME since 2003

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #9 on: December 02, 2007, 11:13:08 PM »
Thanks cactus. I note you have put them in literally. Would it make sense to point back to the how-to's for those in case they need to change later? My appologies for the public posting but I couldn't find a way to send a personal message (as in other forums).

Also thanks for the general clean up. It is much appreciated.

Christian
I did not put in the original version, I only modified the repository section (at first) and then did some major overhaul, added an easier way to import the database, configure user privileges and some more stuff.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #10 on: December 02, 2007, 11:27:45 PM »
It looks like it was done in your first batch of edits "Revision as of 21:40, 2 December 2007" according to the wiki; I may be reading it wroing. In case my note was not clear (which I don't think it was), I thought it might be better to have a link to the repository how-to's instead of copying the code into this how-to. Thus if the dag and atrpms how-to's need to change in the future we won't have an error on this page.

Otherwise, I really like the clean up you have done to this. Good call on going straight to wiki.

Christian
« Last Edit: December 02, 2007, 11:37:13 PM by christian »
SME since 2003

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #11 on: December 02, 2007, 11:31:57 PM »
It looks like it was done in your first batch of edits "Revision as of 21:40, 2 December 2007" according to the wiki; I may be reading it wroing. In case my note was not clear (which I don't think it was), I thought it might be better to have a link to the repository how-to's instead of copying the code into this how-to. Thus if the dag and atrpms how-to's need to change in the future we won't have an error on this page.

Therefore the Template system is used, the only page that need to be changed if something is changed to either of the repositories is the template location, all referrals to the Dag or ATRpms page in the wiki will be changes at once, immediately when the template is changed. I have implemented them for this purpose some time ago already.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #12 on: December 02, 2007, 11:40:06 PM »
ok. got it. I can't see the code level without a username so assumed it was a strict cut and paste. I suppose the X11 section could be done similarly.
SME since 2003

guest22

Mythweb
« Reply #13 on: January 03, 2008, 01:31:30 PM »
Guys,

I've been fiddling with mythweb for a while, but can't seem to 'run' it. Backend works like a charm.

- Created a ibays called 'tvoverview'
- Copied over mythweb pages and dirs installed by the rpm, to ../tvoverview/html
- Chown -R www:www the files
- Adapted the .htaccess to the real values
- Applied 'AllowOverride all' emporarily in httpd.conf
- created .htaccess user adn pass

No luck.... I get the _db not set right warning or access not allowed (again fiddling)

Did you had any luck with this? Especially the custom template fragment to adapt httpd.conf entry for this ibay.

Thanks,
guest

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: Mythweb
« Reply #14 on: January 03, 2008, 09:42:49 PM »
Guys,

I've been fiddling with mythweb for a while, but can't seem to 'run' it. Backend works like a charm.

- Created a ibays called 'tvoverview'
- Copied over mythweb pages and dirs installed by the rpm, to ../tvoverview/html
- Chown -R www:www the files
- Adapted the .htaccess to the real values
- Applied 'AllowOverride all' emporarily in httpd.conf
- created .htaccess user adn pass

No luck.... I get the _db not set right warning or access not allowed (again fiddling)

Did you had any luck with this? Especially the custom template fragment to adapt httpd.conf entry for this ibay.
First off all: what do your log files state? Did you have a look there? Are there any error messages or indications to what could be going wrong?

I did not try to set it up on SME Server, but I know it relies heavily on rewrites... perhaps it is easier to place all mythweb source in /opt and create a custom template to add the mythweb configuration to the configuration file by copying the content of the mythweb.apache.conf (I believe it is called that) to this fragment,perhaps you could even copy the file to a template in /etc/e-smith/templates-custom/etc/httpd/conf/httpd/conf/92mythweb and regenerate your configuration file, restart your webserver and have a try again.

Also are you running MySQL at port 3306 or at a socket (defaul configuration) only? It might well be that mythweb tries to access the MySQL database at a port only...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #15 on: January 04, 2008, 04:02:10 AM »
I started to look into when I was setting up the backend and it was clear it would get involved. As Cactus mentioned and in addition to what you did already with Apache is the need for mod-rewrite. As soon as I saw that, I postponed my activities with Mythweb. But you will be a king in my eyes if you figure out a decent recipe.

At the moment, in the off moments I get, I'm trying to set up an old IBM Thinkpad A21m to run a front end using S-Video. So far so good. I actually got the S-video running in the ATI chip and am just trying to find a way to adjust the modeline settings for it. I can honestly say those old ATI  chips are not for the faint of heart!

Christian
SME since 2003

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #16 on: January 04, 2008, 09:11:22 AM »
I started to look into when I was setting up the backend and it was clear it would get involved. As Cactus mentioned and in addition to what you did already with Apache is the need for mod-rewrite. As soon as I saw that, I postponed my activities with Mythweb. But you will be a king in my eyes if you figure out a decent recipe.
Because of rewrites being used by the basic server configuration mod_rewrite is already loaded so that is something you do not need to worry about... the only thing you need to worry is about is to make sure rewrite and ibay name are matching I guess, I believe mythweb expects to be ran in http://server/mythweb/
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #17 on: January 05, 2008, 02:28:17 PM »
Added info to the wiki ( http://wiki.contribs.org/MythTV ) on how to enable Mythweb. 99% 'stolen' from an old post by Duncan ;-)

Verified and works on SME Server 7.3

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #18 on: January 05, 2008, 03:21:03 PM »
Thanks HF!

Now I also now know what to do for my "Gallery" set up to use mod-rewrite properly. Cactus, this was where I bumped into mod-rewrite before and the way Gallery errored out, I assumed mod-rewrite wasn't enabled; hence my comment.

Christian
SME since 2003

Thanks to all involved for the mythtv howtos!

I have followed both (all three?  confused as to how many there are....), and it doesn't work.  specifically, here's where I'm stuck (two places):

First:
ssh -X etc... mythtv-setup throws a segmentation fault after reporting the correct display resolution for either of the two different ubuntu pc's I have tried it from.  mythtv 0.20.2 claims to have fixed this very bug on non-XRandR displays, but I've got it... weird.  So I can't actually configure mythtv, but I did load sql and connect remotely and all that other stuff before the setup part.

Second:
I have tried lots of different ways to install ivtv drivers -- well, two ways.  that listed with yum, and also yum localinstall.  neither work b/c ivtv and ivtv firmware throw a "...init...mpg" conflicts with the other.  Any ideas?  I can't get past that step either.  Seems like the howtos are written by, and for, far more intelligent folks than me..... *Many* thanks in advance for any help...

--Matt


Hello,

I still get this no matter how many of the steps I check, recheck and do over.

/usr/bin/mythtv-setup
2008-02-04 15:03:28.453 Using runtime prefix = /usr
2008-02-04 15:03:28.459 DPMS is active.
2008-02-04 15:03:28.464 New DB connection, total: 1
2008-02-04 15:03:28.465 Connected to database 'mythconverg' at host: localhost
2008-02-04 15:03:28.466 Total desktop dim: 1366x768, with 1 screen.
2008-02-04 15:03:28.482 Using screen 0, 1366x768 at 0,0
Segmentation fault


(The resolution depends on which machine I am ssh -X'ing in from, but the result is always the above.)  I use mythbuntu with xorg up-to-date on one machine, and ubuntu on another.  I can't get to the mythtv-setup at all.  Anyone?  Any ideas?

I even carefully checked each package in the "vaguely recalled installing" section of the "howto".  Just can't get it to work.

Many thanks,

--Matt

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #21 on: February 04, 2008, 09:13:12 PM »
no idea why there was strikeout in my previous post....  must've slipped.

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #22 on: February 05, 2008, 01:39:56 AM »
strange. I'm in a rush but just a quick note...

and from the client side machine that is already running X on it, you opened a terminal window and typed:
Code: [Select]
ssh -X root@smeserveraddress /usr/bin/mythtv-setup
Correct?

for interest sake, I run my X at 1024x768 and my colour depth is 24

It may be worth trying that.

Where is the segfault? on your X machine or the sme server?

Christian
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #23 on: February 05, 2008, 06:35:50 PM »
Thanks for the reply and time at all!

I am running two machines, and have tried several things from each.  Both are 24 bit, one is 1024x768 and the other 1366x768.  I have also tried 800x600 (suggested as a solution in an ubuntuforums post), but to no avail.  Both of these machines are ubuntu 7.10 up-to-date (one is studio, the other mythbuntu).

In addition, I have tried a Mepis 6 live cd and an Ubuntu 6 live cd (because I had them lying around -- both still use Xorg though, in case this is an xorg vs. xfree issue).

Maybe I should roll-back all mythtv related installs and try again, one step at a time, confirming success along the way.  I did have to do localinstall for all of the libmyth*, as the command in the howto found "no packages matching" any of those names.

I think I would have to yum remove all packages and mysql drop the mythconverg database.  Anything else?

Very gratefully, and hoping to help document whatever's going on....

--Matt

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #24 on: February 05, 2008, 06:39:19 PM »
Oops.. meant to add:

Yes, that is the command exactly, both with root@hostname and root@localipaddress to connect to the SME server / myth-to-be-backend.

In addition, I have ssh -X root@smeserver in and then used the ensuing shell to execute /usr/bin/mythtv-setup to get the line with the segfault -- this line is ommited if I run it all in one string with ssh -X .../mythtv-setup

I wonder if there is something small I can install on the SME server, like xcalc, just to verify that any x app can run -- without installing a full x dependency....  Any ideas there?

Thanks!  As you must have noticed, I'm a bit green, but I am trying to be resourceful without bugging anybody....

--Matt

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #25 on: February 06, 2008, 05:04:34 AM »
Quote
Thanks for the reply and time at all!
We're all in this together and I'll do what I can. Just a bit busy lately. And oh to be honest, I'm not an expert; I know my way around but some of these things are a mission of discovery for me too.

In addition, I have tried a Mepis 6 live cd and an Ubuntu 6 live cd (because I had them lying around -- both still use Xorg though, in case this is an xorg vs. xfree issue).
I'm using CentOS 4.x (which is xorg) for my test environment and it is running on a virtual machine on my XP box. I also have current Knoppmyth connected as a FrontEnd without issue.

Quote
Maybe I should roll-back all mythtv related installs and try again, one step at a time, confirming success along the way.  I did have to do localinstall for all of the libmyth*, as the command in the howto found "no packages matching" any of those names.
This makes me suspicious that you may not have brought in the right packages on the sme box. Have you compared your rpm's with those listed in the HowTo? (Though those may be dated by now).

If you were getting "no packages matching" then you likely didn't set up the additional repositories properly or didn't enable them on the yum line per the HOW-TO.

Which box had the segfault? If it was your SME box then my guess is bad RPMs there. If it was the Ubuntu box then it could be either but I would guess it is an Ubuntu related compatibility issue.

I suppose you could try something like xcalc but I'm not sure if that will prove anything. Have you tried installing another OS (say CentOS) to eliminate Ubuntu as an issue? If you don't want to disturb your existing computers then you may wish to try VirtualBox or Microsoft Virtual PC on say an XP machine (just to avoid Ubuntu for now).

Christian
« Last Edit: February 06, 2008, 05:13:19 AM by christian »
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #26 on: February 06, 2008, 05:55:08 AM »
Thanks once again.

I'll try a roll-back, and to find all of the 0.20.2 packages.  It seems to me that the segfault is on the SME box, as it appears inside of the ssh terminal session (which was indeed launched from the working ubuntu environment).  I don't really know how to tell for sure, but that's what it seems to me.

Also, the libmyth*, well all the lib* sections of the howto didn't work for me -- I tracked them down manually in a webbrowser in atrpms and then pasted the link to each in a wget in ssh, and finally did a yum installlocal for those.  It seems that the versions of all of these files on atrpms might be either (a.) incompatible with sme, or (b.) incompatible with each other.  However, this is just a guess.

Lastly, I definitely ran into trouble with ivtv fighting with ivtv-firmware over something with init.mpg or init...mpg in it's name.  I had to do a "force" install via rpm on those, but I'm not even far enough along to need ivtv yet, and so that shouldn't enter into yet.

I could certainly try from a centos live cd (which i have used elsewhere in virtualbox).  I think I should definitely uninstall all, drop the db, accumulate all the right rpms and try a yumlocalinstall, then load the mc.sql anew.  Could you or anyone else comment on matching versions of the various rpms needed, specifically the myth* and the lib* rpms?

Many thanks again,

--Matt

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #27 on: February 06, 2008, 05:56:09 AM »
ps... can appreciate the busy... we have a new baby, and this is bottom of the list, but first to get the noisy new machine out of the living room and to the basement where it belongs...

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #28 on: February 06, 2008, 01:49:03 PM »
you may wish to break the yum installs down to how I did it at the beginning of this thread (as opposed to the How-to) and see if it makes a difference or at least see where it is not working. This may help pin down the issue and see if the How-to needs to be updated.

I assume you are on 7.3? I started the How-to when I was at 7.2 and 7.3 updated the CentOS base. However my set up is still working. Where did you get the rpms you are using?

Also I'm sure you know this already but please be careful with the Force command.
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #29 on: February 07, 2008, 02:13:26 PM »
Going well after a complete uninstall and dropped mythconverg.

I downloaded and yum localinstalled all of the files referenced, as they are now in mythtv-0.20.2-x folder in atrpms.  This has worked, although the ivtv error remains:
Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 ivtv-kmdl-2.6.9-67.0.1.ELsmp  i686       1:0.4.10-114.el4  ivtv-kmdl-2.6.9-67.0.1.ELsmp-0.4.10-114.el4.i686.rpm  455 k
Installing for dependencies:
 ivtv                    i386       1:0.4.10-114.el4  atrpms            137 k
 ivtv-firmware           noarch     2:20070217-16    atrpms            128 k

Transaction Summary
=============================================================================
Install      3 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         
Total download size: 720 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): ivtv-firmware-2007 100% |=========================| 128 kB    00:00     
warning: only V3 signatures can be verified, skipping V4 signature
Running Transaction Test
Finished Transaction Test


Transaction Check Error:   file /lib/firmware/v4l-cx2341x-init.mpg conflicts between attempted installs of ivtv-firmware-20070217-16 and ivtv-0.4.10-114.el4
  file /lib/modules/v4l-cx2341x-init.mpg conflicts between attempted installs of ivtv-firmware-20070217-16 and ivtv-0.4.10-114.el4

This is where I had finally done a --force with the rpm command.

I'll skip IVTV and come back to it; I should be able to run setup w/out it.

Thanks again for the help!
--Matt

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #30 on: February 07, 2008, 04:23:11 PM »
Transaction Check Error:   file /lib/firmware/v4l-cx2341x-init.mpg conflicts between attempted installs of ivtv-firmware-20070217-16 and ivtv-0.4.10-114.el4
  file /lib/modules/v4l-cx2341x-init.mpg conflicts between attempted installs of ivtv-firmware-20070217-16 and ivtv-0.4.10-114.el4

Looks like you need to cleanup thoroughly maybe even manually before trying to install the correct ivtv module. Leaving the bits from previous install may fool mythtv operations somewhere...

guest

uninstall/reinstall didn't do it... Re: HOW-TO (draft): Mythtv as a backend on
« Reply #31 on: February 08, 2008, 06:28:13 PM »
Hello again,

I uninstalled all the myth* and lib* and listed packages, dropped the mythconverg db using phpmyadmin, then carefully yum localinstalled only the 0.20.2-171 packages downloaded from atrpms.  Same exact error.

If I uninstall all again, what folders/files should I check and delete to truly purge the previous installs?  Both for all mythtv related and ivtv related (as the previous post suggested I have a conflicting file installed).

To be honest, the IVTV error reads to me to say that one IVTV conflicts with the .mpg file from another IVTV package (that is, the .mpg from ivtv and from ivtv-firmware conflict with each other, so this install will just not work).

Any thoughts?  On IVTV or on purging the mythtv the right way?

Many thanks,

--Matt

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #32 on: February 08, 2008, 07:05:20 PM »
Here's what my system reports on ivtv files location:

/lib/modules/ivtv-fw-dec.bin
/lib/modules/ivtv-fw-enc.bin
/lib/modules/2.6.9-67.0.1.EL/updates/drivers/media/video/ivtv.ko
/lib/modules/2.6.9-67.0.1.EL/updates/drivers/media/video/ivtv-fb.ko
/usr/lib/ivtv
/usr/lib/ivtv/ivtvfwextract.pl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/Video/ivtv
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/Video/ivtv/ivtv.so
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/Video/ivtv.pm
/usr/share/doc/ivtv-0.4.10
/usr/share/doc/ivtv-0.4.10/fw-dma.txt
/usr/share/doc/ivtv-0.4.10/README.xdriver
/usr/share/doc/ivtv-0.4.10/fw-encoder-api.txt
/usr/share/doc/ivtv-0.4.10/README.utils
/usr/share/doc/ivtv-0.4.10/fw-calling.txt
/usr/share/doc/ivtv-0.4.10/README.devices
/usr/share/doc/ivtv-0.4.10/README.vbi
/usr/share/doc/ivtv-0.4.10/fw-decoder-api.txt
/usr/share/doc/ivtv-0.4.10/fw-osd-api.txt
/usr/share/doc/ivtv-0.4.10/README.lirc
/usr/share/doc/ivtv-0.4.10/README.tda9887
/usr/share/doc/ivtv-0.4.10/README.ivtvfb
/usr/share/doc/ivtv-0.4.10/fw-memory.txt
/usr/share/doc/ivtv-0.4.10/README.install
/usr/share/doc/ivtv-0.4.10/modules.txt
/usr/share/doc/ivtv-0.4.10/README.radio
/usr/share/doc/ivtv-0.4.10/video-quality.txt
/usr/share/doc/ivtv-0.4.10/fw-upload.txt
/usr/share/doc/ivtv-0.4.10/README.X11
/usr/share/doc/perl-Video-ivtv-0.13
/usr/share/doc/perl-Video-ivtv-0.13/MANIFEST
/usr/share/doc/perl-Video-ivtv-0.13/Changes
/usr/share/doc/perl-Video-ivtv-0.13/README
/usr/share/man/man3/Video::ivtv.3pm.gz
/usr/bin/ivtv-mpegindex
/usr/bin/ivtv-tune
/usr/bin/radio-ivtv
/usr/bin/ivtv-encoder
/usr/bin/ivtv-radio
/usr/bin/ivtvfbctl
/usr/bin/ivtv-detect
/usr/bin/ivtvctl
/usr/bin/ivtvplay

guest


Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #33 on: February 09, 2008, 06:03:17 PM »
Thank you.

I have completed a fresh re-install, formatting the disks.  I am browsing atrpms el4 directories, and see that mythtv 0.21-175 and -174 are the current versions if I don't download and do a local install.

Per the howto, sme7.3 can NOT use any mythtv greater than 0.20.2, yes?  Because those newer *require* MySQL 5, yes?  So I think one must do a download (wget) and localinstall for 0.20.2.

That said, the only two versions on atrpms are presumably the latest.  Therefore, I am going to yum localinstall (and have been trying to) the 0.20.2-171.  Has anyone been successful with this?

I have so far only configured the server and network, enabled local ssh, and enable X11 forwarding over ssh.

Thanks!

--Matt

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #34 on: February 09, 2008, 06:11:24 PM »
Interesting.... 0.20.2-172 it seems....
--matt

[root@XXX ~]# yum info mythtv --enablerepo=atrpms --enablerepo=dag
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up repositories
dag                       100% |=========================| 1.1 kB    00:00     
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 1.9 MB    00:07     
dag       : ################################################## 8418/8418
Excluding Packages from atrpms - EL4
Finished
Excluding Packages from Dag - EL4
Finished
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Available Packages
Name   : mythtv
Arch   : i386
Version: 0.20.2
Release: 172.el4
Size   : 12 k
Repo   : atrpms
Summary: A personal video recorder (PVR) application
Description:
 MythTV implements the following PVR features, and more, with a
unified graphical interface:

 - Basic 'live-tv' functionality. Pause/Fast Forward/Rewind "live" TV.
 - Video compression using RTjpeg or MPEG-4
 - Program listing retrieval using XMLTV
 - Themable, semi-transparent on-screen display
 - Electronic program guide
 - Scheduled recording of TV programs
 - Resolution of conflicts between scheduled recordings
 - Basic video editing

================================================================
No new rpms were installed. No additional commands are required.
================================================================

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #35 on: February 09, 2008, 06:31:42 PM »
When running, as per howto:
yum install mythweb mythtv-setup mythtv-frontend mythtv-backend --enablerepo=atrpms

Now stopped b/c:

--> Running transaction check
--> Processing Dependency: liblirc_client.so.0 for package: libmyth-0.20.2_0
--> Finished Dependency Resolution
Error: Missing Dependency: liblirc_client.so.0 is needed by package libmyth-0.20.2_0
================================================================
No new rpms were installed. No additional commands are required.
================================================================


... So I'll hunt for liblirc and see if I can install in advance....

--matt

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #36 on: February 09, 2008, 06:38:13 PM »
..added --enablerepo=dag as found lirc in dag... now gets through:

--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 mythtv-backend          i386       0.20.2-172.el4   atrpms            623 k
 mythtv-frontend         i386       0.20.2-172.el4   atrpms            2.1 M
 mythtv-setup            i386       0.20.2-172.el4   atrpms            110 k
 mythweb                 i386       0.20.2-172.el4   atrpms            628 k
Installing for dependencies:
 alsa-lib                i386       1.0.6-5.RHEL4    base              302 k
 arts                    i386       8:1.3.1-2        base              1.1 M
 audiofile               i386       1:0.2.6-1.el4.1  base               99 k
 esound                  i386       1:0.2.35-2       base              121 k
 jack-audio-connection-kit  i386       0.102.20-3.el4.at  atrpms            141 k
 lame                    i386       3.97-1.el4.rf    dag               588 k
 libXvMCW                i386       0.9.3-4.el4.at   atrpms             15 k
 libavc1394              i386       0.4.1-4.EL       base               31 k
 libdca                  i386       0.0.5-1.el4.rf   dag               133 k
 libfreebob              i386       1.0.0-3.el4.at   atrpms            156 k
 libiec61883_0           i386       1.1.0-0_9.el4.at  atrpms             24 k
 libmyth-0.20.2_0        i386       0.20.2-172.el4   atrpms            1.1 M
 libmythavcodec-0.20.2_0  i386       0.20.2-172.el4   atrpms            1.2 M
 libmythavformat-0.20.2_0  i386       0.20.2-172.el4   atrpms            280 k
 libmythavutil-0.20.2_0  i386       0.20.2-172.el4   atrpms             23 k
 libmythfreemheg-0.20.2_0  i386       0.20.2-172.el4   atrpms            214 k
 libmythlivemedia-0.20.2_0  i386       0.20.2-172.el4   atrpms            310 k
 libmythtv-0.20.2_0      i386       0.20.2-172.el4   atrpms            4.3 M
 libmythui-0.20.2_0      i386       0.20.2-172.el4   atrpms            225 k
 libmythupnp-0.20.2_0    i386       0.20.2-172.el4   atrpms            252 k
 libogg                  i386       2:1.1.3-7.el4.at  atrpms             18 k
 libraw1394              i386       0.10.1-3         base               35 k
 libraw1394_8            i386       1.3.0-3_11.el4   atrpms             14 k
 libvorbis               i386       1:1.1.0-2.el4.5  base              186 k
 lirc                    i386       0.6.6-4.2.el4.rf  dag               232 k
 mythtv-themes           i386       0.20.2-172.el4   atrpms            5.2 M

Transaction Summary
=============================================================================
Install     30 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         
Total download size: 20 M
Is this ok [y/N]:


Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #37 on: February 09, 2008, 06:54:38 PM »
.....and in response to:
yum install ivtv ivtv-kmdl-`uname -r` --enablerepo=atrpms --enablerepo=dag

.....looking good so far with:

--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 ivtv                    i386       1:0.4.10-114.el4  atrpms            137 k
 ivtv-kmdl-2.6.9-67.0.1.ELsmp  i686       1:0.4.10-114.el4  atrpms            170 k
Installing for dependencies:
 ivtv-firmware           noarch     2:20070217-16    atrpms            128 k
 perl-Video-Frequencies  noarch     0.03-4.el4.at    atrpms             23 k
 perl-Video-ivtv         i386       0.13-8.el4.at    atrpms             23 k

Transaction Summary
=============================================================================
Install      5 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         
Total download size: 481 k
Is this ok [y/N]:


...and then get this:
Installed: ivtv.i386 1:0.4.10-114.el4 ivtv-kmdl-2.6.9-67.0.1.ELsmp.i686 1:0.4.10-114.el4
Dependency Installed: ivtv-firmware.noarch 2:20070217-16 perl-Video-Frequencies.noarch 0:0.03-4.el4.at perl-Video-ivtv.i386 0:0.13-8.el4.at
Complete!

... so it looks like the ivtv .mpg error was related to some junk.

...now to reboot correctly and try to run mysql steps andmythtv-setup....


final: same segfault, full clean re-install of sme 7.3, mythtv 0.20.2-172....
« Reply #38 on: February 09, 2008, 07:02:06 PM »
Finished mysql steps, fixed "known problem" with password set to OLD style, and then:

user@desktoppc:~/Desktop$ ssh -X root@smeserver /usr/bin/mythtv-setup
root@smeserver's password:
/usr/X11R6/bin/xauth:  creating new authority file /root/.Xauthority
2008-02-09 12:53:36.294 Using runtime prefix = /usr
2008-02-09 12:53:36.300 DPMS is active.
2008-02-09 12:53:36.329 Unable to read configuration file mysql.txt
2008-02-09 12:53:36.329 Trying to create a basic mysql.txt file
2008-02-09 12:53:36.329 Writing settings file /root/.mythtv/mysql.txt
2008-02-09 12:53:36.364 New DB connection, total: 1
2008-02-09 12:53:36.365 Connected to database 'mythconverg' at host: localhost
2008-02-09 12:53:36.365 Total desktop dim: 1366x768, with 1 screen.
2008-02-09 12:53:36.405 Using screen 0, 1366x768 at 0,0
user@desktoppc:~/Desktop$

desktoppc is mythbuntu, up-to-date, with nVidia binary and xvmc.  Nothing happens, just as before.  No errors.  So now will just ssh -X root from desktoppc (ubuntu) and not specify command, then run mythtv-setup from that command line and get same old segfault:
[root@smeserver .mythtv]# /usr/bin/mythtv-setup
2008-02-09 12:58:34.480 Using runtime prefix = /usr
2008-02-09 12:58:34.485 DPMS is active.
2008-02-09 12:58:34.489 New DB connection, total: 1
2008-02-09 12:58:34.490 Connected to database 'mythconverg' at host: localhost
2008-02-09 12:58:34.491 Total desktop dim: 1366x768, with 1 screen.
2008-02-09 12:58:34.507 Using screen 0, 1366x768 at 0,0
Segmentation fault
[root@smeserver .mythtv]#


Also noticed this in ~/.mythtv/mysql.txt:
more mysql.txt

DBHostName=localhost
DBUserName=mythtv
DBPassword=mythtv
DBName=mythconverg
DBType=QMYSQL3


Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #39 on: February 09, 2008, 07:03:21 PM »
sorry... must've slipped re: strikethrough -- never highlighted that text, and it's not supposed to be strikethrough.

Many thanks again for any and all help offered so far, and any that may be offered.  I'm stumped.

--Matt

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #40 on: February 09, 2008, 08:07:56 PM »
Maybe browse the mythtv lists for I suspect it is something videodriver specific.

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #41 on: February 09, 2008, 08:10:31 PM »
thank you!  just looking for centos livecd, an there isn't one.. how odd.  all centos mirrors don't have it, though all livecd links go to the mirrors.  weird!

can anyone suggest an alternate likely-to-work livecd?
--matt

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #42 on: February 09, 2008, 08:56:37 PM »
http://ftp.riken.jp/Linux/centos/5.0/isos/i386/CentOS-5.0-i386-LiveCD.iso

or hunt for torrent by searching on 'CentOS-5.0-i386-LiveCD.iso'

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #43 on: February 09, 2008, 09:45:16 PM »
thanks.  downloading that to try.

changed the desktoppc's X driver to nv, to vesa, all to 1024x768.

no dice.  same segfault.  no idea.

just to be clear, in a shell on the desktoppc (mythbuntu frontend to what will be the sme mythbackend), i execute ssh -X root@smeserver and get a prompt as root@smeserver.  I then execute /usr/bin/mythtv-setup in that ssh shell.  I get the output I showed ealier, ending in segfault.

If I do that all in one command, ssh -X root@smeserver /usr/bin/mythtv-setup, I get the same output without the last line "segmentation fault" and am kicked back to the local prompt, user@desktoppc.

very frustrating.... looks like the only way to configure mythtv-setup will be to install X on SME server, and I just don't want to do that....

crossing my fingers that centos will work.

Thanks,

--matt

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #44 on: February 09, 2008, 11:43:14 PM »
Anything interesting in /var/log/messages when it segfaults?

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #45 on: February 10, 2008, 10:16:28 AM »
very frustrating.... looks like the only way to configure mythtv-setup will be to install X on SME server, and I just don't want to do that....
Yes that is the only and proper way, the MythTV docs state that as well AFAIK.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #46 on: February 10, 2008, 04:25:11 PM »
..added --enablerepo=dag as found lirc in dag... now gets through:

Ah ha!!! Just checking back into the How-to, I note someone removed the "--enablerepo=dag " from the yum commands. I know some of our friends here were cleaning up the how-to soon after it was done and may have left this off by accident.

In hind-sight and as I suggested earlier, if you ran through the individual lines at the beginning of this thread we could have found this. But who knows. At least you found the problem and I'll go clean up the How-to.

Christian
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #47 on: February 10, 2008, 04:31:19 PM »
very frustrating.... looks like the only way to configure mythtv-setup will be to install X on SME server, and I just don't want to do that....

Check Mythweb and see if you can configure from there as an alternative. I can't remember. HF added mythweb to the How-to.

You shouldn't have to add any more X than what is in the How-to. It does work for me (still) and I believe a few others. I think the next step is to track down what precisely is segfault'ing.
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #48 on: February 10, 2008, 07:36:20 PM »
Hello all, and thank you so much for your continued assistance.  I do apologize for not having figured this out yet... so here's some more info:

re LIRC, that stopped that one dependency error, so is a helpful, albeit minor correction to the howto (but a correction is a big help, so thank you!).

re mythweb, doesn't mythtv-backend daemon have to be running for that to work, and thus wouldn't I not be able to connect and run setup via mythweb even if it does have some sort of setup in it?  I haven't gone as far as to configure mythweb in the howto, as I regarded it as a useful add-on for once the install is working.

finally, re /var/log/messages, there seems to be nothing at all interesting in that on either the sme server or on the desktoppc frontend:

desktoppc/frontend:
Feb 10 12:17:21 desktoppc -- MARK --
Feb 10 12:37:21 desktoppc -- MARK --
Feb 10 12:57:21 desktoppc -- MARK --
Feb 10 13:17:21 desktoppc -- MARK --
(running the ssh -X commands in this time period; nothing....)

SME server/to-be-backend:
[root@sme ~]# tail /var/log/messages
Feb 10 12:33:02 sme last message repeated 2 times
Feb 10 12:33:53 sme sshd(pam_unix)[13973]: session opened for user root by (uid=0)
Feb 10 12:34:40 sme sshd(pam_unix)[14010]: session opened for user root by (uid=0)
Feb 10 12:34:40 sme sshd(pam_unix)[14010]: session closed for user root
Feb 10 12:34:50 sme last message repeated 3 times
Feb 10 12:35:40 sme sshd(pam_unix)[14044]: session opened for user root by (uid=0)
Feb 10 12:36:02 sme last message repeated 5 times
Feb 10 12:37:16 sme last message repeated 3 times
Feb 10 12:38:32 sme last message repeated 2 times
Feb 10 12:39:49 sme last message repeated 3 times



could it be something missing?  is there a command I could issue to list all installed packages?  ssh -X root@sme server does work, but I still haven't launched *any* x applications.  I'll search for an xcalc install that won't pull in lots of dependencies maybe....

thanks!

--matt

aha!.....Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #49 on: February 10, 2008, 08:02:41 PM »
i installed xpdf on sme, which pulled in some dependencies.  ran reconfigure, and then successfully ran ssh -X etc.. mythtv-setup!  only snag was no text/fonts on the main setup screen, so i navigated by memory.

how can i be sure that xpdf didn't pull in any xorg stuff that would potentially compromise the sme's security?

thanks!

--matt


Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #50 on: February 11, 2008, 08:26:14 PM »
Your Yum logs should tell you what was installed/updated.

I assume you did a reconfigure/reboot after all the myth installs? If this is true then I'm curious what specifically was pulled in with xpdf that you needed. The segfault info should also help us triangulate.

In regards to the blank menu entries. I had the same issue but I did the setup through a CentOS on a virtual machine on my XP box so assumed it may have been that. Apparently not.

I'm curious what you are planning to use for your frontend now? I have Knoppmyth on an old IBM Thinkpad A21m to start. Uses less than 10W powered on. Priceless considering the rather poor Cisco/Scientific Atlanta Explorer box consumes about 30W while powered "OFF"). I'm currently trying to adapt the A21m's ATI graphic card to fit a 4:3 screen properly so playing with the modeline parameters. My main box will likely be higher end so a next trick will be to adapt an HD receiver into my SME. Oh Boy!

SME since 2003

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #51 on: February 11, 2008, 09:13:53 PM »
FYI

How I use mythtv:

Mythbackend: SME Server 7.3
Mythfrontend A: Old XBOX with XBMC and Mythtv plugin, connected to main TV
Mythfrontend B: Winmythplayer on any Win PC on the (wireless) network able to play recordings or watch live tv
Mythfrontend C: Any linux equiped pc/laptop with mythfrontend

All running smooth.

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #52 on: February 12, 2008, 04:37:48 AM »
nice.

quick note w/ baby in other hand...

sme 7.3 mythbackend w/ firewire dct6200 hd cablebox (more on that to come!), works great...
mythbuntu frontend on refurb hp slimline w/ nvidia binary, xvmc, 1366x768....
...connected to vizio 32" lcd tv w/ spdif bypass to dolby recvr

frontend semi stable.

used modelines for tv from mythtv hdtv website and several careful settings in xorg.conf

will summarize the install again later, and will look up how to get yum logs...

thanks again!

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #53 on: February 12, 2008, 02:57:45 PM »
first, ever look at mythtv compared to straight-on hdtv?  i'm really, really surprised at how disappointing the picture quality is in myth.  lots of horizontal lines.  enable bob2x deinterlace and not a big improvement; picture doesn't have thos lines, but OSD completely unreadable.  hate to say it but windows MCE with nvidia purevideo blew this away... (but had it's own problems, like suddenly not having rights to watch something it just recorded, so having to use media player 11 for playback where drm issues arose like that).

sigh... hoping it has something to do with chatter about "xvmc being broken in 'current' nvidia binary driver release."  anyone else notice this?  crawler text is so clear through the vizio's own qam tuner or through the cable box, but so ugly through myth, though less noticeably so from across the room.  my sincere apologies to the myth folks though if i have slurred an nvidia/xvmc issue into a myth issue.  myth *really* is impressive, and all the more so on a server so useful as sme.

anyway, heeeeeeeere's yummy!  (the yum logs, that is....)

Clean install of sme 7.3.... configured as server & gateway, enabled ssh for root, let the rkhunter complaints in admin email begin....

Enable ssh -X as per howto...
Feb 09 11:34:06 Installed: xorg-x11-xauth.i386 6.8.2-1.EL.33.0.2

Install myth as per /MythTV howto adding --enablerepo=atrpms --enablerepo=dag to some lines...
Feb 09 12:17:31 Installed: libmng.i386 1.0.8-1
Feb 09 12:17:32 Installed: qt.i386 1:3.3.3-13.RHEL4
Feb 09 12:17:32 Installed: libjpeg-devel.i386 6b-33
Feb 09 12:17:32 Installed: zlib-devel.i386 1.2.1.2-1.2
Feb 09 12:17:32 Installed: libpng-devel.i386 2:1.2.7-3.el4_5.1
Feb 09 12:17:32 Installed: freetype-devel.i386 2.1.9-6.el4
Feb 09 12:17:33 Installed: fontconfig-devel.i386 2.2.3-13.el4
Feb 09 12:17:33 Installed: libmng-devel.i386 1.0.8-1
Feb 09 12:17:34 Installed: umb-scheme.i386 3.2-36.EL4
Feb 09 12:17:34 Installed: guile.i386 5:1.6.4-14
Feb 09 12:17:34 Installed: swig.i386 1.3.21-6
Feb 09 12:17:36 Installed: libstdc++-devel.i386 3.4.6-9
Feb 09 12:17:36 Installed: neon.i386 0.24.7-4
Feb 09 12:17:37 Installed: glibc-kernheaders.i386 2.4-9.1.100.EL
Feb 09 12:17:37 Installed: glibc-headers.i386 2.3.4-2.39
Feb 09 12:17:37 Installed: glibc-devel.i386 2.3.4-2.39
Feb 09 12:17:38 Installed: pkgconfig.i386 1:0.15.0-3
Feb 09 12:17:40 Installed: xorg-x11-devel.i386 6.8.2-1.EL.33.0.2
Feb 09 12:17:40 Installed: cpp.i386 3.4.6-9
Feb 09 12:17:41 Installed: gcc.i386 3.4.6-9
Feb 09 12:17:41 Installed: mysqlclient10.i386 3.23.58-4.RHEL4.1
Feb 09 12:17:41 Installed: gcc-c++.i386 3.4.6-9
Feb 09 12:17:42 Installed: python-devel.i386 2.3.4-14.4.el4_6.1
Feb 09 12:17:42 Installed: subversion.i386 1.1.4-2.ent
Feb 09 12:17:46 Installed: qt-devel.i386 1:3.3.3-13.RHEL4
Feb 09 12:17:46 Installed: qt-MySQL.i386 1:3.3.3-13.RHEL4
Feb 09 12:17:46 Installed: ncurses-devel.i386 5.4-15.el4
Feb 09 12:39:46 Installed: alsa-lib.i386 1.0.6-5.RHEL4
Feb 09 12:39:46 Installed: libraw1394_8.i386 1.3.0-3_11.el4
Feb 09 12:39:46 Installed: libiec61883_0.i386 1.1.0-0_9.el4.at
Feb 09 12:39:46 Installed: libXvMCW.i386 0.9.3-4.el4.at
Feb 09 12:39:46 Installed: lame.i386 3.97-1.el4.rf
Feb 09 12:39:46 Installed: libmythavutil-0.20.2_0.i386 0.20.2-172.el4
Feb 09 12:39:46 Installed: libogg.i386 2:1.1.3-7.el4.at
Feb 09 12:39:48 Installed: mythtv-themes.i386 0.20.2-172.el4
Feb 09 12:39:48 Installed: audiofile.i386 1:0.2.6-1.el4.1
Feb 09 12:39:48 Installed: esound.i386 1:0.2.35-2
Feb 09 12:39:48 Installed: libvorbis.i386 1:1.1.0-2.el4.5
Feb 09 12:39:49 Installed: arts.i386 8:1.3.1-2
Feb 09 12:39:49 Installed: libraw1394.i386 0.10.1-3
Feb 09 12:39:49 Installed: libavc1394.i386 0.4.1-4.EL
Feb 09 12:39:49 Installed: libfreebob.i386 1.0.0-3.el4.at
Feb 09 12:39:49 Installed: jack-audio-connection-kit.i386 0.102.20-3.el4.at
Feb 09 12:39:49 Installed: libmythui-0.20.2_0.i386 0.20.2-172.el4
Feb 09 12:39:50 Installed: libmythfreemheg-0.20.2_0.i386 0.20.2-172.el4
Feb 09 12:39:50 Installed: libmythlivemedia-0.20.2_0.i386 0.20.2-172.el4
Feb 09 12:39:50 Installed: lirc.i386 0.6.6-4.2.el4.rf
Feb 09 12:39:51 Installed: libmyth-0.20.2_0.i386 0.20.2-172.el4
Feb 09 12:39:51 Installed: libmythupnp-0.20.2_0.i386 0.20.2-172.el4
Feb 09 12:39:51 Installed: libdca.i386 0.0.5-1.el4.rf
Feb 09 12:39:51 Installed: libmythavcodec-0.20.2_0.i386 0.20.2-172.el4
Feb 09 12:39:51 Installed: libmythavformat-0.20.2_0.i386 0.20.2-172.el4
Feb 09 12:39:52 Installed: libmythtv-0.20.2_0.i386 0.20.2-172.el4
Feb 09 12:39:52 Installed: mythtv-backend.i386 0.20.2-172.el4
Feb 09 12:39:52 Installed: mythweb.i386 0.20.2-172.el4
Feb 09 12:39:53 Installed: mythtv-frontend.i386 0.20.2-172.el4
Feb 09 12:39:53 Installed: mythtv-setup.i386 0.20.2-172.el4
Feb 09 12:40:50 Installed: mythtv-docs.i386 0.20.2-172.el4
Feb 09 12:43:26 Installed: perl-Video-ivtv.i386 0.13-8.el4.at
Feb 09 12:43:26 Installed: ivtv-firmware.noarch 2:20070217-16
Feb 09 12:43:26 Installed: perl-Video-Frequencies.noarch 0.03-4.el4.at
Feb 09 12:43:27 Installed: ivtv-kmdl-2.6.9-67.0.1.ELsmp.i686 1:0.4.10-114.el4
Feb 09 12:43:27 Installed: ivtv.i386 1:0.4.10-114.el4

Kept getting seg faults trying to run mythtv-setup over ssh -X.... so wanted to try any x program.  Saw xpdf in server-manager panel.

Install xpdf + it's deps...
Feb 10 13:41:18 Installed: xorg-x11-font-utils.i386 6.8.2-1.EL.33.0.2
Feb 10 13:41:19 Installed: xorg-x11-deprecated-libs.i386 6.8.2-1.EL.33.0.2
Feb 10 13:41:19 Installed: openmotif.i386 2.2.3-10.1.el4
Feb 10 13:41:19 Installed: desktop-file-utils.i386 0.9-3.el4
Feb 10 13:41:21 Installed: redhat-menus.noarch 3.7.1-2
Feb 10 13:41:21 Installed: htmlview.noarch 3.0.0-8
Feb 10 13:41:21 Installed: chkfontpath.i386 1.10.0-2
Feb 10 13:41:21 Installed: ttmkfdir.i386 3.0.9-20.el4
Feb 10 13:41:23 Installed: urw-fonts.noarch 2.2-6.1
Feb 10 13:41:26 Installed: fonts-xorg-base.noarch 6.8.2-1.EL
Feb 10 13:41:26 Installed: xpdf.i386 1:3.00-14.el4
Feb 10 13:41:27 Installed: xorg-x11-xfs.i386 6.8.2-1.EL.33.0.2
...and suddenly mythtv-setup runs, though w/ no fonts on main menu.  That'll do though.

Thought this would help autostart mythbackend; doesn't:
Feb 10 16:06:28 Installed: smeserver-service_control.noarch 1.1-2

For firewire control of dct.6200 for use with ivtv (not yet installed) or firewire-direct tuner, need firewire mod.
... googled firewire kernel module el4 and output of 'uname -r' -- found in .ch....
Feb 10 17:00:26 Installed: firewire.i686 1286-5.sl4.psi
Feb 10 17:00:28 Installed: kernel-module-firewire-2.6.9-67.0.1.ELsmp.i686 1286-5.sl4.psi


Again, frontend is mythbuntu w/  nvidia binary and xvmc (gray osd, not blue/red), running over cat5e 100mbps direct through a switch.

To do:
- add two more 500gb sata hds in as an independent raid array for "media" -- all myth, photos, videos, music.  why?  back up far less often, no need to mix in with primary array which would cause far longer backups, far longer rebuilds after reinstall/recovery.  have drives, just have to follow the single sparse post in theforums on how to do this....
- test egroupware w/ gallery2 plugin for security holes
- port-forward vpn pptp inbound to sme from hardware firewall (my insurance against my mistakes); currently not accessible from outside.
- once sme is household gateway (currently an isolated branch), test funambol syncml w/ egroupware w/ php5-cgi which is already running (funambol syncml from windows mobile currently gives errors, possibly because wifi access point on house net with external eth1 to sme, not in little switch that's local to sme.
- if pptp vpn stable, fast, best, disable all other open ports (egroupware https) on external nic (unless i read up and find https facing outside not as scary as it sounds and i shut out all unathenticated users...)

--matt

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #54 on: February 12, 2008, 04:52:33 PM »
Tried Xming yet on a windows PC's opposed to a mythfrontend? Just to test if that runs cleanly.

Do you have the same problem (lines on screen) when you watch a recording? (or didn't get that far yet?)

For the record, recordings and live TV are as clear and crisp with Mythtv on my setup as they are broadcasted.

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #55 on: February 12, 2008, 11:03:40 PM »
I'll have to find and try xming -- great idea.  Free, right?  You are using a tube-tv, right?  Interlaced tv over svideo or rca?  the lcd's are progressive, and firewire from the cable box actually captures the cable stream (mpeg-ts), so if it is interlaced, then deinterlacing is required.  since there is just the stream from the cable box over firewire, recording profiles just don't enter into it -- those are for things like the ivtv driver.  I've been recording tv and watching live.  recording worked great on my test box, and appears stable so far on the sme box (though I have a nagging feeling of uncertainty about firewire on sme, but that's just because it wasn't there out-of-the-box in a default sme install).

strange that OSD looks terrible when deinterlacing is active (and did with my test box over either firewire or ivtv encoder card).  If "video scan" is set to "detect" then things are occasionally jumpy, flipping back and forth from "progressive" to "interlaced" I presume.

i suspect it must be xvmc.  the nvidia driver might just be broken, resulting in the nasty "tearing" effect of horizontal lines (the interlaced frames that comprise the picture).

thanks,

--matt

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #56 on: February 13, 2008, 05:02:39 AM »
Feb 10 13:41:18 Installed: xorg-x11-font-utils.i386 6.8.2-1.EL.33.0.2
Feb 10 13:41:21 Installed: chkfontpath.i386 1.10.0-2
Feb 10 13:41:21 Installed: ttmkfdir.i386 3.0.9-20.el4
Feb 10 13:41:23 Installed: urw-fonts.noarch 2.2-6.1
Feb 10 13:41:27 Installed: xorg-x11-xfs.i386 6.8.2-1.EL.33.0.2

I think we found it. I had these packages already installed on my system likely pulled in by Hylafax.

Quote
Feb 10 13:41:26 Installed: fonts-xorg-base.noarch 6.8.2-1.EL
was brought in later with the mass SME updates (likely due to a dependency with above).

I think the best place to put those changes is in the mythtv specific part on X11 Forwarding as I think that is the actual dependency. In other words, I think mythtv draws a few more specific X dependencies than you need for a base X11 Forward; so the base X11 Forward How-to shouldn't change.

HF, cactus any thoughts on that? Also is there an easy way to determine if one of these entries will pull in the others?

Christian
SME since 2003

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #57 on: February 13, 2008, 07:32:47 AM »
When I have a little time, I'll try to run a fresh install on a vm and log as much as possible each step.

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #58 on: February 15, 2008, 07:01:47 PM »
Hi all,
I've been struggling with this for a couple of days now without success :sad:

I've had the same issue as mmellon had with the mythlib* despite enabling the repositories
Also, if 0.20.2-171 needs MYSQL 5 then does anyone have a collection of the correct 0.20.2.x RPMs?

Help!

Thanks
N

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #59 on: February 15, 2008, 11:12:57 PM »
20.2 does not requiere MySQL 5. The upcoming 21.x series of mythtv does. You've got the right packages.

Best would be to follow the how-to and exactly log every step, outcome and whatdiffers from expectation, PER step.

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #60 on: February 16, 2008, 04:19:21 AM »
also note the packages in my note a few comments back from this.
http://forums.contribs.org/index.php?topic=39317.msg184504#msg184504
they are missing from the How-to at the moment so you may need to yum install them to enable the X11 forwarding. I just wanted to better understand the dependency before I modified the How-to. but haven't had time to test it.

If you are at this stage, try doing each one individually and check of X11 forwarding works and let me know what combination was required. I will then add it to the How-to.

BTW, the issue Matt had was also with the dag repo not being enabled. I did fix the How-to in this regard earlier this week.
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #61 on: February 16, 2008, 03:26:26 PM »
Right,
Started again with fresh 7.3 install + yum update.
Install goes fine as far as...
Code: [Select]
yum install libmythavcodec libmythavformat libmythavutil libmythfreemheg libmythlivemedia libmythtv libmythui libmythupnp --enablerepo=atrpms --enablerepo=dagHowever, these seem to be installed previously as dependencies...
Code: [Select]
--> Processing Dependency: libmythupnp-0.20.2.so.0 for package: mythtv-backend
--> Processing Dependency: libraw1394.so.8 for package: mythtv-setup
--> Processing Dependency: libXvMCW.so.1 for package: mythtv-frontend
--> Processing Dependency: libmyth-0.20.2.so.0 for package: mythtv-frontend
--> Processing Dependency: libmythui-0.20.2.so.0 for package: mythtv-frontend
--> Processing Dependency: libavc1394.so.0 for package: mythtv-setup
--> Processing Dependency: libmythavcodec-0.20.2.so.0 for package: mythtv-backend
--> Processing Dependency: libmyth-0.20.2.so.0 for package: mythtv-backend
--> Processing Dependency: libmythavformat-0.20.2.so.0 for package: mythtv-frontend
--> Processing Dependency: libraw1394.so.8 for package: mythtv-frontend
--> Processing Dependency: libmythfreemheg-0.20.2.so.0 for package: mythtv-frontend
--> Processing Dependency: libmythavcodec-0.20.2.so.0 for package: mythtv-setup
--> Processing Dependency: libmp3lame.so.0 for package: mythtv-frontend
--> Processing Dependency: libasound.so.2 for package: mythtv-backend
--> Processing Dependency: libavc1394.so.0 for package: mythtv-backend
--> Processing Dependency: libXvMCW.so.1 for package: mythtv-setup
--> Processing Dependency: libjack.so.0 for package: mythtv-setup
--> Processing Dependency: libmythfreemheg-0.20.2.so.0 for package: mythtv-setup
--> Processing Dependency: libmythui-0.20.2.so.0 for package: mythtv-backend
--> Processing Dependency: libXvMCW.so.1 for package: mythtv-backend
--> Processing Dependency: libmythavutil-0.20.2.so.0 for package: mythtv-backend
--> Processing Dependency: libmythavformat-0.20.2.so.0 for package: mythtv-setup
--> Processing Dependency: libmythlivemedia-0.20.2.so.0 for package: mythtv-backend
--> Processing Dependency: libmythavcodec-0.20.2.so.0 for package: mythtv-frontend
--> Processing Dependency: libmythfreemheg-0.20.2.so.0 for package: mythtv-backend
--> Processing Dependency: libraw1394.so.8 for package: mythtv-backend
--> Processing Dependency: libartsc.so.0 for package: mythtv-backend
--> Processing Dependency: libmp3lame.so.0 for package: mythtv-setup
--> Processing Dependency: libmythavformat-0.20.2.so.0 for package: mythtv-backend
--> Processing Dependency: libjack.so.0 for package: mythtv-frontend
--> Processing Dependency: libmyth-0.20.2.so.0 for package: mythtv-setup
--> Processing Dependency: libasound.so.2 for package: mythtv-setup
--> Processing Dependency: libmythavutil-0.20.2.so.0 for package: mythtv-frontend
--> Processing Dependency: libasound.so.2 for package: mythtv-frontend
--> Processing Dependency: libmythupnp-0.20.2.so.0 for package: mythtv-frontend
--> Processing Dependency: mythtv-themes for package: mythtv-setup
--> Processing Dependency: libiec61883.so.0 for package: mythtv-frontend
--> Processing Dependency: libmythavutil-0.20.2.so.0 for package: mythtv-setup
--> Processing Dependency: libmythlivemedia-0.20.2.so.0 for package: mythtv-frontend
--> Processing Dependency: libmythlivemedia-0.20.2.so.0 for package: mythtv-setup
--> Processing Dependency: libiec61883.so.0 for package: mythtv-backend
--> Processing Dependency: mythtv-themes for package: mythtv-frontend
--> Processing Dependency: libartsc.so.0 for package: mythtv-frontend
--> Processing Dependency: libiec61883.so.0 for package: mythtv-setup
--> Processing Dependency: libmythupnp-0.20.2.so.0 for package: mythtv-setup
--> Processing Dependency: libmythtv-0.20.2.so.0 for package: mythtv-frontend
--> Processing Dependency: libartsc.so.0 for package: mythtv-setup
--> Processing Dependency: libavc1394.so.0 for package: mythtv-frontend
--> Processing Dependency: libmythtv-0.20.2.so.0 for package: mythtv-backend
--> Processing Dependency: libmythui-0.20.2.so.0 for package: mythtv-setup
--> Processing Dependency: libmp3lame.so.0 for package: mythtv-backend
--> Processing Dependency: libmythtv-0.20.2.so.0 for package: mythtv-setup
--> Processing Dependency: libjack.so.0 for package: mythtv-backend
I went around in circles with the MySQL pasword problem before re-reading this thread! :oops:  Maybe the problem needs to be pointed to in the mythtv-setup section as well as at the end?
I'm now having the problem of not being able to run mythtv-setup from a remote machine

Should I install xpdf?

N

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #62 on: February 16, 2008, 03:41:39 PM »
Installed xpdf and I can now run mythtv-setup remotely.  There's no menu text on the main setup screen but the submenus have the text in them.
A bigger problem is that my Win TV Nova-T cards (2) aren't recognised...

http://www.mythtv.org/wiki/index.php/Hauppauge_WinTV_Nova-T_PCI

Can anyone help me get the cx88_dvb module onto my system please?

N
« Last Edit: February 16, 2008, 03:53:22 PM by ntblade »

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #63 on: February 16, 2008, 04:28:33 PM »
Installed xpdf and I can now run mythtv-setup remotely.

I really wish you had taken my suggestion in the note directly ahead of yours (and HF's before that) so we could figure out which of the xpdf dependencies were needed. I'm sure xpdf is pulling in more than you need.

However, with your note on the invisible menu items, we have now seen a number of these so there is likely an issue . I'll note it in the Known Problems section.
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #64 on: February 16, 2008, 06:57:23 PM »
Sorry I misunderstood,
I'll uninstall xpdf and its dependencies and reinstall one package at a time and see when the setup app starts to work.
Is that the right thing to do?

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #65 on: February 16, 2008, 10:41:30 PM »
Yep, that would be a good start. If possible keep a log of the screen messages (e.g. dependencies etc)

Have fun ;-)

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #66 on: February 16, 2008, 10:54:54 PM »
don't worry. I wanted a diversion from other mundane tasks and did it on a fresh install. It was the two Xorg packages which were missing. So I've updated the How-to with the following:
Code: [Select]
yum install xorg-x11-font-utils xorg-x11-xfs
signal-event post-upgrade; signal-event reboot

As for ntblade's comment:
Quote
Install goes fine as far as...
Code: [Select]
yum install libmythavcodec libmythavformat libmythavutil libmythfreemheg libmythlivemedia libmythtv libmythui libmythupnp --enablerepo=atrpms --enablerepo=dagHowever, these seem to be installed previously as dependencies...

This was added in to the How-to by someone else; it wasn't in my original stuff. It appears to be redundant but harmless.

HF or Cactus, did you add those? any particular reason?

Christian
« Last Edit: February 16, 2008, 11:19:41 PM by christian »
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #67 on: February 16, 2008, 10:57:32 PM »
I also split the ivtv lines per my original post as the way the How-to has it caused a conflict on my 7.3 machine when both ivtv packages were on the same line. The new way should work in any config.
SME since 2003

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #68 on: February 17, 2008, 10:43:54 AM »
As for ntblade's comment:
This was added in to the How-to by someone else; it wasn't in my original stuff. It appears to be redundant but harmless.

HF or Cactus, did you add those? any particular reason?

That was me, hence my wish to re-do the procedures step by step. Due to all trial and error my machine was not clean anymore, just like the rest of us ;-)

The current state of my machine (SME Server 7.3) is latest svn mythtv (21.x series) and upgraded mysql to 5.x. 1xHauppage 350 (ivtv) and 1x Hauppage Wintv (cx88xx) I really wanted to have the flash option in mythweb which is default with mythtv 21.x. Kinda my own 'youtube@home'. I travel a lot so watching a recording from a hotel room is now easy with watching the recordings in flash.

As said, I want to start from scratch with a VM to validate the How-to. When time permits...


guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #69 on: February 17, 2008, 07:18:18 PM »
HF,
Could you tell me how you installed the cx88 modules please?

Thanks

N

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #70 on: February 17, 2008, 09:21:18 PM »
cx88

I asked around ( http://forums.contribs.org/index.php?topic=40029.0 ) and DOWNLOADED (not installed) the kernel-smp-unsupported-2.6.9.67.0.1.EL-4.el4.pp.i686.rpm

Then copied out the cx8800.ko and cx88xx.ko modules and copied them over to the correct /lib/modules... directory. Then modprobe cx8xx whic loads both modules (see dmesg). Then 'depmod -a'.

It loads and works properly with SME Server 7.3 'home grade' that is, not enterprise grade.

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #71 on: February 18, 2008, 01:59:52 PM »
Hmmm,
What version of card are you using, hf?
I've got 2 x WinTV Nova-T.  They are the newest version without the RF out.  They have 90003 LC Rev C280 on them.  I thought these cards were automatically recognised by the cx88xx driver.  I'm getting...
Code: [Select]
cx2388x v4l2 driver version 0.0.4 loaded
ACPI: PCI Interrupt 0000:02:02.0[A] -> GSI 17 (level, low) -> IRQ 201
cx8800[0]: found at 0000:02:02.0, rev: 5, irq: 201, latency: 64, mmio: 0xfb000000
cx8800[0]: Your board isn't known (yet) to the driver.  You can
cx8800[0]: try to pick one of the existing card configs via
cx8800[0]: card=<n> insmod option.  Updating to the latest
cx8800[0]: version might help as well.
cx8800[0]: Here is a list of valid choices for the card=<n> insmod option:
cx8800[0]:    card=0 -> UNKNOWN/GENERIC
cx8800[0]:    card=1 -> Hauppauge WinTV 34xxx models
cx8800[0]:    card=2 -> GDI Black Gold
cx8800[0]:    card=3 -> PixelView
cx8800[0]:    card=4 -> ATI TV Wonder Pro
cx8800[0]:    card=5 -> Leadtek Winfast 2000XP Expert
cx8800[0]:    card=6 -> AverTV Studio 303 (M126)
cx8800[0]:    card=7 -> MSI TV-@nywhere Master
cx8800[0]:    card=8 -> Leadtek Winfast DV2000
cx8800[0]:    card=9 -> Leadtek PVR 2000
cx8800[0]:    card=10 -> IODATA GV-VCP3/PCI
cx8800[0]:    card=11 -> Prolink PlayTV PVR
cx8800[0]:    card=12 -> ASUS PVR-416
cx8800[0]:    card=13 -> MSI TV-@nywhere
cx8800[0]: subsystem: 0070:9002, board: UNKNOWN/GENERIC [card=0,autodetected]
cx8800[0]: i2c register ok
tuner: Ignoring new-style parameters in presence of obsolete ones
tuner: chip found at addr 0xc2 i2c-bus cx8800[0]
cx8800[0]: i2c attach [client=(tuner unset)]
cx8800[0]: registered device video0 [v4l2]
cx8800[0]: registered device vbi0
cx8800[0]: cx88: tvaudio thread started

Thanks
Norrie

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #72 on: February 18, 2008, 02:38:54 PM »
Booting up a knoppmyth install with one of the cards installed reveals...
Code: [Select]
Linux video capture interface: v2.00
cx88/0: cx2388x v4l2 driver version 0.0.6 loaded
cx88/2: cx2388x MPEG-TS Driver Manager version 0.0.6 loaded
ALSA /usr/src/modules/alsa-driver/pci/ac97/ac97_codec.c:2104: AC'97 0 analog subsections not ready
intel8x0_measure_ac97_clock: measured 50880 usecs
intel8x0: clocking to 48000
ACPI: PCI Interrupt 0000:01:04.0[A] -> GSI 16 (level, low) -> IRQ 18
cx88[0]: subsystem: 0070:9002, board: Hauppauge Nova-T DVB-T [card=18,autodetected]
cx88[0]: TV tuner type 4, Radio tuner type -1
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
tveeprom 1-0050: Hauppauge model 90003, rev C2B0, serial# 2427565
tveeprom 1-0050: MAC address is 00-0D-FE-25-0A-AD
tveeprom 1-0050: tuner model is Thompson DTT75105 (idx 110, type 4)
tveeprom 1-0050: TV standards ATSC/DVB Digital (eeprom 0x80)
tveeprom 1-0050: audio processor is None (idx 0)
tveeprom 1-0050: decoder processor is CX882 (idx 25)
tveeprom 1-0050: has no radio, has IR receiver, has no IR transmitter
cx88[0]: hauppauge eeprom: model=90003
input: cx88 IR (Hauppauge Nova-T DVB-T as /class/input/input2
cx88[0]/0: found at 0000:01:04.0, rev: 5, irq: 18, latency: 32, mmio: 0xdc000000
cx88[0]/0: registered device video0 [v4l2]
cx88[0]/0: registered device vbi0
cx88[0]/2: cx2388x 8802 Driver Manager
ACPI: PCI Interrupt 0000:01:04.2[A] -> GSI 16 (level, low) -> IRQ 18
cx88[0]/2: found at 0000:01:04.2, rev: 5, irq: 18, latency: 32, mmio: 0xdd000000
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
cx88/2: cx2388x dvb driver version 0.0.6 loaded
cx88/2: registering cx8802 driver, type: dvb access: shared
cx88[0]/2: subsystem: 0070:9002, board: Hauppauge Nova-T DVB-T [card=18]
cx88[0]/2: cx2388x based DVB/ATSC card
The cx88* modules I copied only have 13 cards listed. :sad:

Any ideas?

N

guest22

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #73 on: February 18, 2008, 06:12:11 PM »
Hmmm, you're in for a challenge...

http://www.mythtv.org/wiki/index.php/Hauppauge_WinTV_Nova-T_PCI

It looks like the card is supported as of kernel version 2.6.12 while SME Server uses 2.6.9...
Patching the kernel and recompile it is the way to go OR wait for an updated kernel...

My card shows as: (Hauppage WinTV)

Linux video capture interface: v1.00
cx2388x v4l2 driver version 0.0.4 loaded
PCI: Found IRQ 5 for device 0000:00:10.0
PCI: Sharing IRQ 5 with 0000:00:07.2
PCI: Sharing IRQ 5 with 0000:00:07.3
PCI: Sharing IRQ 5 with 0000:00:10.1
cx8800[0]: found at 0000:00:10.0, rev: 3, irq: 5, latency: 32, mmio: 0xdd000000
cx8800[0]: subsystem: 0070:3401, board: Hauppauge WinTV 34xxx models [card=1,autodetected]
tuner: chip found at addr 0xc2 i2c-bus cx8800[0]
cx8800[0]: i2c attach [client=(tuner unset)]
cx8800[0]: i2c register ok
cx8800[0]: hauppauge eeprom: model=34514, tuner=LG TPI8PSB01D (28), radio=yes
tuner: type set to 28 (LG PAL_BG+FM (TPI8PSB01D)) by cx8800[0]
cx8800[0]: registered device video0 [v4l2]
cx8800[0]: registered device vbi0
cx8800[0]: registered device radio0

ps. By default the cx800 driver loads with audio debugging enabled which will flood your /var/log/messages file. modprobe the card (or adapt options file) with 'modprobe cx8800 audio_debug=0'

guest

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #74 on: February 18, 2008, 06:22:15 PM »
Hmmm, you're in for a challenge...

http://www.mythtv.org/wiki/index.php/Hauppauge_WinTV_Nova-T_PCI

It looks like the card is supported as of kernel version 2.6.12 while SME Server uses 2.6.9...
Patching the kernel and recompile it is the way to go OR wait for an updated kernel...
Also 2.6.9 but NOT 2.6.10 or 2.6.11  I was afraid I was going to have to do that.

Looks like I'll need to try...

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #75 on: February 19, 2008, 12:35:12 PM »
OK, did some experimenting...
Tried compiling new cx88 modules which seemed to compile ok but I'm not 100% certain - I couldn't find newer than 0.0.4 code.
Installed SME v8.0rc1, downloaded the centosplus kernel and copied the cx88 divers but I get...
Code: [Select]
modprobe cx88xx
FATAL: Error inserting cx88xx (/lib/modules/2.6.18-53.1.4.el5/kernel/drivers/media/video/cx88/cx88xx.ko): Operation not permitted
As an experiment I installed the 8.0rc1 kernel onto my test 7.3 system and again copied the cx88 modules.  I get exactly the same error when I try to modprobe.  After the modprobe attempt I get...
Code: [Select]
dmesg
ksign: module signed with unknown public key
- signature keyid: bf480b47c3099a4a ver=3
on both systems.  Any ideas please?

N

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #76 on: February 19, 2008, 01:17:09 PM »
Updates...

Booting the 7.3 system with the 2.6.18-53.1.4.el5.centos.plus kernel from SME 80rc1 finds my card ok...
Code: [Select]
ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 17 (level, low) -> IRQ 185
Linux video capture interface: v2.00
cx2388x v4l2 driver version 0.0.6 loaded
ACPI: PCI Interrupt 0000:02:02.0[A] -> GSI 17 (level, low) -> IRQ 185
CORE cx88[0]: subsystem: 0070:9002, board: Hauppauge Nova-T DVB-T [card=18,autodetected]
TV tuner 4 at 0x1fe, Radio tuner -1 at 0x1fe
tveeprom 1-0050: Hauppauge model 90003, rev C2B0, serial# 2427567
tveeprom 1-0050: MAC address is 00-0D-FE-25-0A-AF
tveeprom 1-0050: tuner model is Thompson DTT75105 (idx 110, type 4)
tveeprom 1-0050: TV standards ATSC/DVB Digital (eeprom 0x80)
tveeprom 1-0050: audio processor is None (idx 0)
tveeprom 1-0050: decoder processor is CX882 (idx 25)
tveeprom 1-0050: has no radio, has IR remote
cx88[0]: hauppauge eeprom: model=90003
input: cx88 IR (Hauppauge Nova-T DVB-T as /class/input/input2
cx88[0]/0: found at 0000:02:02.0, rev: 5, irq: 185, latency: 64, mmio: 0xfb000000
cx88[0]/0: registered device video0 [v4l2]
cx88[0]/0: registered device vbi0
cx2388x blackbird driver version 0.0.6 loaded
However, the card doesn't appear in mythtv-setup  :sad:

Two forward, one back...

Eeek! - Just noticed that my card comes up in mythtv-setup as:
Card type: pcHDTV DVB-T capture card (w/V4L drivers)
/dev/video0
Hauppauge Nova-T DVB-T [cx8800]

Confused...
« Last Edit: February 19, 2008, 01:45:44 PM by ntblade »

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #77 on: May 27, 2008, 11:06:14 PM »
Been having another go at this as part of an experiment.  Everything goes fine until the x Forwarding.  When I try to connect using Xming I get:
Code: [Select]
Server sent disconnect message type 2 (protocol error): "Bad packet length nnnnnnnnnnnnn."Funny thing is that I managed to connect first time before I realised that I missed the MYSQL old password step.

Fresh SME 7.3 +all updates + Mythtv install.

I'm currently setting up a virtual PC and take snapshots as I go.

Any ideas anyone?

N

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #78 on: May 31, 2008, 05:45:35 PM »
Added info to the wiki ( http://wiki.contribs.org/MythTV ) on how to enable Mythweb. 99% 'stolen' from an old post by Duncan ;-)

Verified and works on SME Server 7.3

HF,
I tried your How-to for mythweb. I had to make the following changes in my environment to get it to work. Did you or have I made a mistake somewhere?

Changes from How-to:
1) to 99mythweb I also had to add: Options FollowSymlinks
2) In .htaccess I also had to uncomment the rewrite rules marked with "*"
3) I had to create index.html with the content "<META http-EQUIV="Refresh" CONTENT="0; url=mythweb.php">:

Does this sound familiar or have missed something else that result in me having to mod these?

Christian
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #79 on: May 31, 2008, 05:54:33 PM »
Been having another go at this as part of an experiment.  Everything goes fine until the x Forwarding.  When I try to connect using Xming I get:
Code: [Select]
Server sent disconnect message type 2 (protocol error): "Bad packet length nnnnnnnnnnnnn."Funny thing is that I managed to connect first time before I realised that I missed the MYSQL old password step.

I've never used Xming (I usually just run another OS on VirtualBox) but when I did a quick google I got the impression this is related to either an SSH version mismatch or possible too many failed log in attempts. I would verify what SSH Xming is using vs SME and what settings related to it. But what the heck do I know. Sorry I can't be more helpful.
SME since 2003

Re: HOW-TO (draft): Mythtv as a backend on sme server
« Reply #80 on: June 01, 2008, 10:10:26 AM »
Thanks for the reply.
I googled that message too and all seemed to point to ssh protocol versions.  I couldn't figure it out.
Meantime I've setup a Knoopmyth box.  I might give mythdora a try as well as both of these distros' kernels support my TV Cards whereas SME doesn't and I had not luck compiling new modules etc.  :-(

Seems like my dream all-in-one home server/media backend will have to wait until SME 8.0

All the best,
NTB

HOW-TO (modified): Mythtv as a backend on sme server
« Reply #81 on: June 30, 2008, 12:41:11 AM »
I've updated the mythtv How TO: http://wiki.contribs.org/MythTV

Notable changes:
Myth has moved on to 0.21 but it requires mysql5. SME 7 is on mysql4 so I changed the installation to pull in only the latest mysql4 dependent versions; namely 0.20.2.

I removed the dependencies as I don't think they are required yet likely could contribute to a security vulnerability. It also simplifies things.

Christian
SME since 2003