Koozali.org formerly Contribs.org

Legacy Forums => Suggestions => Topic started by: pete on January 30, 2004, 02:39:57 PM

Title: MythTV - AMAZING!
Post by: pete on January 30, 2004, 02:39:57 PM
http://www.mythtv.org

Anyone tried or successfully installed this on esmtih, seems it would be a perfect addition ot a home SME install - check out the screenshots and features, its mind lowing how good this is...
Title: It requires X
Post by: ergozd on January 30, 2004, 07:00:25 PM
Hi there!

I've read about this a few months ago and made an installtion on an older PC. It reauires X and Qt so trying this on an e-smith is probably "out of scope".
Title: MythTV - AMAZING!
Post by: duncan on February 09, 2004, 07:37:03 AM
Been running it for the past 4 months on a separate machine.

On the SME - forget it. Even as a backend it would be a nightmare to get running.

Great software though. Blows away anything from the MS world.

Duncan
Title: Try KnoppMyth distro
Post by: ergozd on February 09, 2004, 07:25:01 PM
Why don't you try KnoppMyth. It is a Knoppix based distro with MythTV.

You will find more info at http://mysettopbox.tv
Title: It MUST be feasible - Perfect Add-On for SME-Server at home
Post by: excalibur on February 23, 2006, 06:41:24 PM
Hi,

I am in the middle of implementing my own home theatre PC HTPC for short. And in this process I have been around MythTV (the KnoppMythTV distro). It worked right out of the box.

I was doing this on an 1GHz P3, 512  MB RAM. This was super responsive and gave a good usability.

The nice thing about the MythTV solution however is that you get a client-server setup. Both a frontend (GUI from any Linux box with X) and a backend (can reside at a server without X).

Now I was thinking that instead of running both my SME-server in the office AND the new media-server in the livingroom. Why not consolidate things and build a proper and slick looking system with the MythTV backend running from the SME box in the closet networked with an XBOX as a frontend using the XBMC solution!   8-)

To begin with the XBOX (old one) was designed to run quiet and cool with great design, which is perfect for the WAF (wife acceptance factor)!   ;-)

It would really be a nice and userfriendly setup.

In this process I was around the MediaPortal for Windows, which is far inferior in response and stability compared to the MythTV solution, with my HW. It IS very beatifull in the Userinterface. But what the heck.   :-(

So in short I would love if anyone here would like to concuct a usable 'Howto turn your SME-Server into a MediaCentre - using MythTV and XBOX frontends'

See info here:
XBOX conversion
http://www.productwiki.com/microsoft_xbox/article/how_to_go_from_xbox_to_xbox_media_center_in_30_minutes.html

MythTV: (see Pete's link above)

I am not skilled enough with Linux to do deeper operations than follow 'HowTos'. So writing one is out my grasp. I would love to test a Howto though...      :-D

BR

Morten
Phone +45 4098 0898     (if anyone could be interested)
Title: Re: MythTV - AMAZING!
Post by: slords on February 27, 2006, 09:42:52 PM
Quote from: "pete"
Anyone tried or successfully installed this on esmtih, seems it would be a perfect addition ot a home SME install - check out the screenshots and features, its mind lowing how good this is...


I've been running it on sme 6.x and now on sme 7.0p3 for a number of years.  It is a little tricky to setup but it can be done.  Best to set it up on a centos 4.2 or fedora core 4 box first and become familiar with it.
Title: MythTV - AMAZING!
Post by: Arnie on February 28, 2006, 08:03:52 AM
Slords,

What was tricky about the installation? I'm running MythTV on a FC3 box at the moment and I've been thinking about migrating the backend to my SME server so I don't need to run 2 machines 24/7.

I'm guessing the backend won't need any X or QT libraries. All I need is a kernel >2.6.12 so my DViCo cards will be recognised.

If you have any tips/anecdotes to share, please post them, as I'm sure you'll have an audience.
Title: MythTV - AMAZING!
Post by: meanpenguin on March 14, 2006, 08:38:00 AM
Hi,

Anyone have the latest "ivtv" modules compiled for SME 7p4?
I would really appreciate a copy if you have...

Edward
Title: Me too
Post by: deznuts on April 27, 2006, 12:05:25 AM
Been running a knopmyth box for several months now . . . I would love to move the backend functionality over to my more powerful (and spacious) sme7 box. Maybe a howto is in order?
Title: MythTV - AMAZING!
Post by: stbecker on September 22, 2006, 11:15:04 PM
Anyone figure out how to do this?  There's some basic notes out there, but I can't seem to find enough info to get it all working.
Title: MythTV - AMAZING!
Post by: gregswallow on September 25, 2006, 07:10:14 AM
I don't have it installed on SME, but I think this is the best place to start:
http://atrpms.net/dist/common/mythtv-suite/

atrpms has rpms for RHEL4, which will install on SME7.
Title: MythTV - AMAZING!
Post by: dede77b on November 08, 2006, 05:05:30 PM
Quote from: "gregswallow"
I don't have it installed on SME, but I think this is the best place to start:
http://atrpms.net/dist/common/mythtv-suite/

atrpms has rpms for RHEL4, which will install on SME7.


Someone have tried this solution or has any news about MithTv on a sme server?

Any how-to would be great!
Title: MythTV - AMAZING!
Post by: duncan on November 10, 2006, 07:17:24 AM
Quote from: "dede77b"
Quote from: "gregswallow"
I don't have it installed on SME, but I think this is the best place to start:
http://atrpms.net/dist/common/mythtv-suite/

atrpms has rpms for RHEL4, which will install on SME7.


Someone have tried this solution or has any news about MithTv on a sme server?

Any how-to would be great!


Installing Mythtv on SME_Server is dead simple. I have made a few notes here (http://wiki.goldtel.com.au/howto/MythTv) (slow site). They are really out of date but should clear up a few issues for you.

SME makes an ideal base for Mythtv. It is stable, Most of the installation can be done with yum, and things like Mysql and Apache just work out of the box.

You will need to recompile the kernel however. Not all that hard.
Title: MythTV - AMAZING!
Post by: william_syd on November 10, 2006, 07:46:23 AM
Quote from: "duncan"

You will need to recompile the kernel however. Not all that hard.


Would the Centos Plus kernel work ?
Title: MythTV - AMAZING!
Post by: duncan on November 10, 2006, 08:00:44 AM
Quote from: "william_syd"

Would the Centos Plus kernel work ?


No probs. However - the current centos kernel for SME has no support for v4l or dvb devices - either built in or as a module.

You can download the current drivers and build them or recompile the kernel.

I opted for a straight 2.6.18 kernel and built that instead. This however breaks masq and pptp - but it`s a mythtv box so I`m not really worried.
Title: MythTV - AMAZING!
Post by: william_syd on November 10, 2006, 08:09:44 AM
Quote from: "duncan"


No probs. However - the current centos kernel for SME has no support for v4l or dvb devices - either built in or as a module.



Just reading your wiki and saw that.

From the CentosPlus readme..
Code: [Select]
----------------------------------
kernel-2.6.x-x.x.x.xxx.plus.c4
----------------------------------
This is a kernel that has many of the options and modules turned on which
are turned off by default in the upstream providers kernels.  A list of
some of the items that this Kernel includes are:

File Systems:
NTFS (read and write)
XFS (read and write)
JFS (read and write)
ReiserFS (read and write)
UFS {BSD default FS} (read only)
BeOS FS (read only)
AFS (read only)

Hardware Modules:
All USB
All Firewire
All SCSI
Video4 Linux and all Video, Audio and Radio modules

IPX, DECNET, netware file mount support, ability to write to a Windows
Dynamic Partition.  There are other items as well.


Maybe if the devs switched to the Centosplus kernel they could add "MythTV Ready" to their "sales" brochure.  :)
Title: MythTV - AMAZING!
Post by: duncan on November 10, 2006, 08:18:27 AM
Lol - I think that suggestion would go down like a ton of bricks.  :D

It does raise a point though. If anyone decides to do this - you really need to avoid updating with the yum update system SME has built in (or be careful about it)

Updating a kernel accidentally will cause favorite shows to be missed.
Title: MythTV - AMAZING!
Post by: slords on November 10, 2006, 11:46:58 PM
Quote from: "duncan"
You will need to recompile the kernel however. Not all that hard.


You don't have to recomple the kernel.  I'm running the stock centos kernel and everything is working great.
Title: MythTV - AMAZING!
Post by: duncan on November 11, 2006, 02:32:53 AM
Quote from: "slords"
Quote from: "duncan"
You will need to recompile the kernel however. Not all that hard.


You don't have to recomple the kernel.  I'm running the stock centos kernel and everything is working great.


I`m guessing you compiled the latest v4l-dvb drivers from linuxtv.org ?
Title: MythTV - AMAZING!
Post by: duncan on November 16, 2006, 10:00:23 AM
Quote from: "duncan"

I`m guessing you compiled the latest v4l-dvb drivers from linuxtv.org ?


I`m guessing not. Latest cvs require a minimum of 2.6.12.
Title: MythTV - AMAZING!
Post by: stbecker on November 16, 2006, 11:30:13 PM
I have a basic summary at:  http://www.stbecker.com/media/howto.html

Let me know if there's anything missing or inaccurate up to that point.[/url]
Title: MythTV - AMAZING!
Post by: william_syd on November 16, 2006, 11:42:07 PM
Quote from: "stbecker"
I have a basic summary at:  http://www.stbecker.com/media/howto.html

Let me know if there's anything missing or inaccurate up to that point.[/url]


Enabling all those yum repositories may cause problems with sme's regular update check.

Might be better to enable them 'on the fly' with the --enablerepo= option.
Title: MythTV - AMAZING!
Post by: stbecker on November 17, 2006, 06:45:35 AM
Good point.  I added "disable" at the end - it does work this way, at least from a base install.

So the consensus is that a kernel re-compile is not needed - or is it?
Title: MythTV - AMAZING!
Post by: duncan on November 17, 2006, 08:00:07 AM
Quote from: "stbecker"
Good point.  I added "disable" at the end - it does work this way, at least from a base install.

So the consensus is that a kernel re-compile is not needed - or is it?


Something I`m trying to sus out at the moment. I can`t see how it can be done with the stock standard kernel. At the very least - the current v4l-dvb drivers will not compile with anything less than 2.6.12.

I`m redoing my howto here http://mythtv.goldtel.com.au/HomePage
Title: MythTV - AMAZING!
Post by: meanpenguin on December 04, 2006, 09:54:42 PM
I am using the
   ivtv module (had to compile it myself)
   stock SME 7 kernel
and all is working well.

I can't get the MythWeb working since it's not "SME-ified" yet.

So yes, the stock kernel works.

Dependency on other modules is another matter.  
May need to go to an older module source.

Ed
Title: MythTV - AMAZING!
Post by: duncan on December 04, 2006, 10:30:35 PM
Quote from: "meanpenguin"
I am using the
   ivtv module (had to compile it myself)
   stock SME 7 kernel
and all is working well.

I can't get the MythWeb working since it's not "SME-ified" yet.

So yes, the stock kernel works.

Dependency on other modules is another matter.  
May need to go to an older module source.

Ed


Stock kernel may work for ivtv - but it doesn`t work for some of the newer cards like the compro`s or the Hauppauge 1300`s.

Mythweb works - you need to add a template. I will add something to my howto over the next day or so. You also need to allow .htaccess for the ibay and turn on symlinks.
Title: MythTV - AMAZING!
Post by: meanpenguin on December 21, 2006, 08:22:17 AM
Duncan,

Would you mind posting the MythWeb portion on this board.

Thanks,
Ed
Title: MythTV - AMAZING!
Post by: duncan on December 23, 2006, 07:55:22 AM
Quote from: "meanpenguin"
Duncan,

Would you mind posting the MythWeb portion on this board.

Thanks,
Ed


Ok - give me a couple of days to get over Christmas and I`ll put it up for you.
Title: MythTV - AMAZING!
Post by: guest22 on January 04, 2007, 03:38:37 PM
Duncan,

would it be possible to add the location(s) of the mythtv rpm's to you wiki pls? Right now there is no mentioning of what mythtv files are used and where to get them.

Thanks,
guest
Title: MythTV - AMAZING!
Post by: duncan on January 05, 2007, 08:09:09 AM
Quote from: "guest22"
Duncan,

would it be possible to add the location(s) of the mythtv rpm's to you wiki pls? Right now there is no mentioning of what mythtv files are used and where to get them.

Thanks,
guest


I compile from source. I prefer to do it that way. I`m pretty sure most others do it from atrpms.
Title: MythTV - AMAZING!
Post by: duncan on January 05, 2007, 08:26:17 AM
Quote from: "meanpenguin"
Duncan,

Would you mind posting the MythWeb portion on this board.

Thanks,
Ed


This should work. I am assuming you have created an ibay called mythweb and copied the mythweb contents into it. Adjust accordingly.

You will need to create a custom template

Code: [Select]
# mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
# cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
# pico 99mythweb


And past in the following

Code: [Select]
<Directory /home/e-smith/files/ibays/mythweb/html>
    php_admin_flag      allow_url_fopen on
</Directory>


We allow htaccess

Code: [Select]
# /sbin/e-smith/db accounts setprop mythweb AllowOverride All
# /sbin/e-smith/signal-event ibay-modify mythweb


edit the mythweb .htaccess file and add

Code: [Select]
Options FollowSymlinks

Towards the bottom of the file where it says "RewriteEngine  on". Whilst in this file uncomment the line

Code: [Select]
#    RewriteBase    /mythweb

And save (ctrl x). Do a

Code: [Select]
# chown -R www.www *

inside your mythweb directory.

Hopefully thats all thats needed.
Title: MythTV - AMAZING!
Post by: cl on March 25, 2007, 09:31:54 AM
Hi duncan, just wondering if you still have the mythtv howto online in some form? (tried the link from your earlier post but it failed)

Thanks...
Title: MythTV - AMAZING!
Post by: duncan on March 26, 2007, 01:52:50 AM
Quote from: "cl"
Hi duncan, just wondering if you still have the mythtv howto online in some form? (tried the link from your earlier post but it failed)

Thanks...


Just migrating servers at the moment. Will put it up this afternoon.
Title: MythTV - AMAZING!
Post by: duncan on March 26, 2007, 10:22:25 AM
OK - It`s up on http://mythtv.goldtel.com.au
Title: MythTV - AMAZING!
Post by: bhamail on May 06, 2007, 08:48:57 AM
Sorry for a dumb question: I'm trying to get a MythTV backend working on sme 7.1.3. All's well so far thanks to the howto's in this thread. The backend has a PVR500, which I believe needs "ivtv" installed to work. When I try to install ivtv, I get the error below about missing kernel headers:

Code: [Select]

# yum install ivtv --enablerepo atrpms
...
---> Package ivtv-firmware.noarch 2:20070217-13.at set to be updated
---> Downloading header for kernel to pack into transaction set.
http://mirror.contribs.org/smeserver/releases/7/smeos/i386/RPMS/kernel-2.6.9-42.0.3.EL.i686.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
...
Error: failure: RPMS/kernel-2.6.9-42.0.3.EL.i686.rpm from smeos: [Errno 256] No more mirrors to try.
================================================================
No new rpms were installed. No additional commands are required.


Where can I find the headers from my kernel: 2.6.9-42.0.10.ELsmp ?
Or is there a better way to go about this?
Or is there a dependency definition problem in ivtv? (I noticed the URL below does exist with an extra 'CentOS' in the path...)
Code: [Select]

http://mirror.contribs.org/smeserver/releases/7/smeos/i386/CentOS/RPMS/kernel-smp-2.6.9-42.0.3.EL.i686.rpm


Thanks!
Dan

PS: I tried: yum install kernel-devel, and: yum install kernel-smp-devel, but still getting the same error installing ivtv.

More Info: I started installing the ivtv deps by themselves using yum. Then I tried installing the ivtv-kmdl for my current kernel via:

Code: [Select]

# uname -r
2.6.9-42.0.10.ELsmp
# yum install ivtv-kmdl-2.6.9-42.0.10.ELsmp


That seems to have worked...on to the next silly mistake. Sorry for the noise.
Title: MythTV - AMAZING!
Post by: duncan on May 06, 2007, 12:57:48 PM
Hi - I run a PVR500. IVTV will not build with that kernel. 2.6.15 is the minimum.

You will need to build a new kernel from source.
Title: MythTV - AMAZING!
Post by: bhamail on May 06, 2007, 06:16:54 PM
So far I've been lucky: I didn't have to build ivtv from source, but was able to install an ivtv-kmdl for my stock sme kernel from atrpms via:
Code: [Select]

# uname -r
2.6.9-42.0.10.ELsmp
# yum install ivtv-kmdl-2.6.9-42.0.10.ELsmp


Not sure if it was required to do each alone, but before doing the above, I installed the ivtv dependencies listed in the failed "yum install ivtv" like:
Code: [Select]

# yum install ivtv-firmware-audio
...


Also, for other newbies like myself, don't forget to do:
Code: [Select]

# modprobe ivtv

after installing "ivtv-kmdl-<your kernel version>", "ivtv", and all it's deps. I haven't yet verified/figured out how to ensure this kernel module is always loaded when the box reboots. (next on my todo probably...)

One other tidbit: Turns out, in order to do commercial flagging on the backend, you also need to install a small frontend package:
Code: [Select]

# yum install mythtv-frontend --enablerepo atrpms

This is required since most all the myth functions can run either on the backend or a frontend. Even though the package naming is a little counter intuitive, it all seems to work. (for details, see: http://lists.atrpms.net/pipermail/atrpms-users/2006-October/006086.html ).

To summarize, so far, the myth packages needed for my sme backend are: "mythtv-backend", "mythtv-frontend" and "mythtv-setup".
Title: MythTV - AMAZING!
Post by: duncan on May 07, 2007, 12:50:05 AM
Nice one. Just watch out for kernel updates via the Software installer. It will kill both IVTV and X.
Title: MythTV - AMAZING!
Post by: bhamail on May 07, 2007, 12:59:03 AM
Thanks Duncan. Your HowTo was a great help (and I've tried to post comments there where appropriate).

I'm still stuck figuring out the last of two myth tasks:

1. How to properly load the ivtv module on startup.
2. How to properly start the mythbackend service on startup.

I banged around in the dev manual and tried mucking with mopprobe.conf, but that's were my luck ran out. My current workaround is some nasty creation of symlinks in rc.d and adding even nastier code to the mythbackend startup script to load and sleep while ivtv loads before starting mythbackend. If anyone has a "right" way to do these, please post!

Dan
Title: MythTV - AMAZING!
Post by: duncan on May 07, 2007, 01:12:52 AM
Quote from: "bhamail"
Thanks Duncan. Your HowTo was a great help (and I've tried to post comments there where appropriate).

I'm still stuck figuring out the last of two myth tasks:

1. How to properly load the ivtv module on startup.
2. How to properly start the mythbackend service on startup.

I banged around in the dev manual and tried mucking with mopprobe.conf, but that's were my luck ran out. My current workaround is some nasty creation of symlinks in rc.d and adding even nastier code to the mythbackend startup script to load and sleep while ivtv loads before starting mythbackend. If anyone has a "right" way to do these, please post!

Dan


Well - regarding ivtv - try doing a modprobe -a to see if that adds it to modules.dep. I have not needed to do anything out of the ordinary to get ivtv to load.

I have an init script for loading mythbackend if you want it.

I really should finish my howto  :)  Happy it helped.
Title: MythTV - AMAZING!
Post by: bhamail on May 07, 2007, 03:56:32 AM
I tried modprobe -a and made sure ivtv was listed in: /lib/modules/2.6.9-42.0.10.ELsmp/modules.dep

Unfortunately, after a reboot the ivtv module is still not loaded (checking via lsmod), which results in the PVR not being recognized. (Not s show stopper 'cause my kludge works, but I'd like to know the "right" way to do it if possible).

Yes, please do share your init script for mythbackend.
Title: MythTV - AMAZING!
Post by: slords on May 07, 2007, 04:54:36 PM
I've added the following for modprobe.conf

Code: [Select]
[root@router ~]# cat /etc/e-smith/templates-custom/etc/modprobe.conf/10ivtv
{
    foreach my $line
        (
            "alias char-major-81 videodev",
            "alias char-major-81-0 ivtv",
        )
    {
        unless (exists $lines{$line})
        {
            push @lines, $line;
        }
    }
    "";
}


And I have the following code for the mythbackend service.  The service directory also has a down file and a log directory similar to other runit services.

Code: [Select]
[root@router ~]# cat /var/service/mythbackend/run
#!/bin/sh

exec 2>&1

if ! [[ -r /dev/video ]]
then
    modprobe ivtv
    c=1
    until [[ -r /dev/video || "$c" -gt 30 ]]
    do
        sleep 2
        c=$((c+1))
    done
    sleep 10
fi
exec /usr/bin/mythbackend
Title: MythTV - AMAZING!
Post by: bhamail on June 22, 2007, 04:44:37 AM
Thanks for the script, but I'm sure I'm doing a dumb noobie trick, 'cause I can't seem to get the script to run at startup.

I didn't add the modprobe.conf part because I'm not sure how it should be adapted for my pvr-500 card (which has two tuners).

I did create the "run" file in /var/service/mythbackend (and did chmod +x on it). I also copied the "down" file and "log" dir from the "sshd" tree. I modified the log/run file to:

Code: [Select]
#!/bin/sh

exec                                    \
    /usr/local/bin/multilog t s5000000  \
    /var/log/mythtv


I'm pretty sure I have missed some core step needed to get the service to start. (I did try rtfm'ing the dev docs, but I'm sorry to say I'm still a bit confused). Any pointers?

Thanks again,
Dan
Title: MythTV - AMAZING!
Post by: bhamail on June 22, 2007, 05:39:40 AM
Code: [Select]
Well darn, I guess I just needed to re-rtfm. ;)

Here are the steps I took to get the mythbackend loading at startup (afer re-re-reading the dev docs at: http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/x2105.htm
 "Starting up programs automatically upon system boot"). Please sound any alarms if I'm doing something really bad.

1. Create the modprobe.conf file posted by slords (edited for the second tuner on my pvr-500):
[code]
{
    foreach my $line
        (
            "alias char-major-81 videodev",
            "alias char-major-81-0 ivtv",
            "alias char-major-81-1 ivtv",
        )
    {
        unless (exists $lines{$line})
        {
            push @lines, $line;
        }
    }
    "";
}
2. Create the "run" file posted by slords:
Code: [Select]
# mkdir /var/service/mythbackend
# cd /var/service/mythbackend
# vi run
and paste in the content of that file and save it. Then:
Code: [Select]
# chmod +x run3. Copy the "log" dir and "down" file from sshd into this dir (will edit later):
Code: [Select]
# cp -R /var/service/sshd/log /var/service/mythbackend/
# cp /var/service/sshd/down /var/service/mythbackend/
4. Edit "/var/service/mythbackend/log/run" to contain the lines below as per my prior post.
Code: [Select]
#!/bin/sh

exec                                    \
    /usr/local/bin/multilog t s5000000  \
    /var/log/mythtv
5. Reread the above referenced dev docs. Create the link in rc7, props, db:
Code: [Select]
# ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99mythbackend
# cd /etc/e-smith/db/configuration/defaults/
# mkdir mythbackend
# cd mythbackend/
# echo service >type
# echo enabled >status
# /etc/e-smith/events/actions/initialize-default-databases
When I rebooted (via "Reconfigure" from the server-manager pages), mythtv came up, but apparently the ivtv module didn't load. Any suggestions on how to get /var/services/mythbackend to run?

Dan

PS: I think I figured out why my "stock" kernel worked so nicely with ivtv: It ain't a stock kernel! -- There's apparently a yum conf bug in the 7.1.3 release which causes a non-sme repo to be enabled immediately after installation. Since I ran a yum update right after I installed, I think I ended up with a newer CentOS kernel. Later yum updates fix the yum conf (and the repo gets disabled...I think).[/code]


Aug - 26

PPS: I guess my good luck had to run out some time...SME and MythTV have been rock solid, but now, due to DataDirect/SchedulesDirect changes (the old source of listings is going dark Sept 1), I think I'm gonna have to muck with a perfectly fine installation to get the schedule data from the new source (SchedulesDirect). I guess the good news is hopefully, atrpms will have released binaries for this stuff soon, but in the mean time -- If anyone out there has some steps on how to update Myth/XMLTV/whatever else is needed, please respond. I haven't seen any howto's yet, so even if the response is s link to a CentOS/Myth howto, I'd appreciate it. Thanks again.