Some cleanups and added ExtremeSports v2 Importer, as of time of writing you need...
[nonametv.git] / INSTALL
blobede30edd279fcda8b5851f048cde4ec88f35d3cd
1 Installing NonameTV
2 -------------------
4 PREREQUISITES
6 MySQL-server, at least version 4.0. This is necessary since transactions
7 are used. The MySQL-server must be configured with support for InnoDB
8 tables.
10 A lot of perl-modules... You will find out which ones along the way.
12 wvHtml from http://wvware.sourceforge.net/
14 sitecopy from http://www.lyra.org/sitecopy/
16 lwp (libwww-perl) 5.808 or later is preferred since if you have 5.805 or
17 earlier, you will get a lot of harmless but annoying 
18 "Parsing of undecoded UTF-8 will give garbage when decoding entities".
20 INSTALLATION
22 Create a directory called /var/local/nonametv.
24 Create the following directories under /var/local/nonametv:
26 cache
27 channels
28 xmltv
29 xmltv_staging
30 xmltv_compare
31 data
32 override
33 override/data
34 override/delete
35 override/new
36 xmltv_old
38 Also create a directory /var/log/nonametv/
40 Make sure that the user you intend to run the scripts as can read/write the
41 directories above.
43 Copy examples/nonametv.conf.public to /etc/nonametv.conf. Note that this file
44 only contains configuration for the Importers that can be run without passwords
45 etc. from the TV-companies.
47 Edit /etc/nonametv.conf to match your installation.
49 Create a new mysql database called listings (or whatever you wrote in
50 nonametv.conf).
52 Run 
54 perl -I lib tools/nonametv-populatedb --rebuild database se
56 to populate the database with sample data from the Swedish version of
57 NonameTV.
59 Setup sitecopy to upload files from /var/local/nonametv/xmltv to your
60 webserver. This is the data that is downloaded by tv_grab_se_swedb.
62 Explore the commands in tools/ and tools/se. Start by looking at 
63 tools/se/nonametv-cronjob.
65 The only command that isn't run from nonametv-cronjob is
67 perl -I lib tools/nonametv-export Xmltv --export-channels
69 (run from the nonametv-directory). It creates the channels.xml.gz file and
70 should be run after you have added new channels or deleted old.
72 Most of the commands take one or several --verbose parameters.
74 Note that not all commands in tools/ are actually working...
76 Everytime data is imported or exported, an entry is written to 
77 /var/log/nonametv/nonametv.log.