# Perl modules used by xmltv.
# If you want a bare-minimum installation, see the README. Quite a few of
# these can be left out.
# Install them as root
su
# Start up the CPAN shell, update it if a newer version is available
perl -MCPAN -e shell
o conf make_install_arg UNINST=1
o conf prerequisites_policy follow
install Bundle::CPAN
# If you want to use tv_check (which is optional), you need Tk (perl-tk) and
# Tk::TableMatrix. To install Tk, you need to be running X because 'make
# test' will try to open and close test windows. I never had troube with
# Tk, but was only able to successfully build Tk::TableMatrix as of version
# 1.2
# As of version 0.5.31, the new grabber for North America (minus Mexico) is
# tv_grab_na_dd. It's faster and it puts less of a load on Zap2it's servers
# (which is where the actual info comes from). See it's man page for
# instructions on how to set it up. You need to sign up for an account on
# their web site for this one. As of version 0.5.33, tv_grab_na is no longer
# included in the distribution. If you have any old
# ~/.xmltv/tv_grab_na.conf files lying around, you can remove those.
# Set up your grabber. Keep in mind that (obviously) the more it grabs, the
# longer it'll take to run. You may want to leave out channels that you don't
# watch to speed it up. If you use the tv_grab_na_dd grabber, you can
# configure the channels from the web site (or the grabber, but probably
# better to use the web site). You should run this as the non-root user that
# you'll be checking listings with later. I run through this each time I
# upgrade too, to make sure it's updated for any new features or fixes.
tv_grab_na_dd --configure
# To configure tv_check, run 'tv_check --configure' from an X-Term
# If you want to use tv_pick_cgi, run this (or something similar to this)
# part. It will install it under a standard apache2 or apache tree so it'll
# be accessible as http://localhost/cgi-bin/tv_pick/tv_pick.cgi
# Run your grabber and have it output listings to:
# /usr/local/apache/cgi-bin/tv_pick/tv.xml (or /usr/local/apache2/...).
test -d /usr/local/apache2 &&
( install -d -o root -g nobody -m 770 /usr/local/apache2/cgi-bin/tv_pick
cd /usr/local/src/xmltv-0.5.44
install -o root -g nobody -m 750 \
/usr/local/src/xmltv-0.5.44/choose/tv_pick/tv_pick_cgi \
/usr/local/apache2/cgi-bin/tv_pick/tv_pick.cgi )
test -d /usr/local/apache &&
( install -d -o root -g nobody -m 770 /usr/local/apache/cgi-bin/tv_pick
cd /usr/local/src/xmltv-0.5.44
install -o root -g nobody -m 750 \
/usr/local/src/xmltv-0.5.44/choose/tv_pick/tv_pick_cgi \
/usr/local/apache/cgi-bin/tv_pick/tv_pick.cgi )
## To save the listings somewhere, because the grabber will dump to stdout,
## run it like this:
# tv_grab_na_dd > na.xml
# See 'man tv_grab_na_dd' (or whatever grabber you use) for commandline
# switches. There are lots to control number of days of listings, where to
# output them, etc. Once you've got the listings, you can then split them
# up by date and channel (tv_split), grep through them (tv_grep), convert them
# to text (tv_to_text), and so on.
# If you use tv_grab_na_dd and want to include icons in your listings,
# create the /usr/share/xmltv/icons directory (as root) and run
# tv_grab_na_icons
# If you want a GUI to browse through the TV listings, check out Freeguide-TV