-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL
More file actions
143 lines (93 loc) · 2.8 KB
/
INSTALL
File metadata and controls
143 lines (93 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
Install
-------
Mythtv from svn:
svn co http://svn.mythtv.org/svn/branches/release-0-23-fixes/
cd release-0-23-fixes/
cd mythtv
./configure
Compile and install it:
make
Backup your database and remove mythtv if you have it
mysqldump -u root mythconverg > mythdump.sql
mysqldump -u root mythconverg settings > mythdumpsettings.sql
sudo /etc/init.d/mythtv-backend stop
aptitude remove mythtv-backend
mysql -u root
drop database mythconverg
sudo checkinstall
sudo dpkg -i mythtv_1-1_i386.deb
add the data back in
mysql -u root
create database mythconverg
mysql -u root mythconverg < mythdumpsettings.sql
mythtv-setup
Configure it:
Capture card
Some settings are there but capture card needs adding and setting to
DVB DTV capture card (v3.x)
Video sources:
Select (New video source). Enter a video source name of "EIT". Set the
Listings grabber to "Transmitted guide only (EIT)".
Input connections
Hit "Scan for channels" and set the correct country. Hopefully, this
will find a load of channels and radio stations.
-> set a starting channel or it whinges
Storage directories: /var/lib/mythtv
Patch it:
--------
http://projectbaird.com/patches/mythtv/
To apply the patch, change to the top-level mythtv directory (which contains themes, mythtv, etc.), and run:
patch -p0 < /path/to/00-programuri.diff
make
sudo dpkg -i mythtv_4-1_i386.deb
now change table
http://projectbaird.com/patches/mythtv/
ALTER TABLE `program` ADD `programuri` TINYTEXT DEFAULT NULL;
start:
sudo /usr/local/bin/mythbackend
Data export
-----------
Set up a crontab to export the data and insert it into the database:
2 18 * * * ruby exportdatav-withmythchanges.rb
uncomment these lines to upload it:
# serv = "http://dev.notu.be/2010/02/recommend/match"
# puts post_data(serv,data)
there's also exportchannels.rb to get a list of channels and dvb urls
RDF Server
----------
RDF database:
* download tdb 0.8.4 http://sourceforge.net/projects/jena/files/
* install java 6 (via apt-get)
* install jruby1.1 (via apt-get)
* jruby -S gem install json_pure
Crawler:
--------
crontab:
3 3 * * * cd /var/www/discovery/2010/02/recommend; jruby crawler.rb
RDF access servlets:
QueryServlet.rb
MatchProgrammesServlet.rb
jruby server.rb &
Resolver:
---------
I use webrick and a servlet containing resolve.rb and this:
def do_GET(req, res)
res = resolve(req,res)
end
You need to configure an apache virtual host:
<VirtualHost *:80>
ServerName services.notu.be
DocumentRoot /var/www/discovery/2010/07/resolver
ServerAlias *.tvdns.net
ServerAlias *.radiodns.org
ServerAlias *.tvdns.org
<IfModule mod_proxy.c>
ProxyPreserveHost On
</IfModule>
<Directory /var/www/discovery/2010/07/resolver>
DirectoryIndex index.html
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>