-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux-INSTALL
More file actions
165 lines (122 loc) · 6.05 KB
/
Copy pathlinux-INSTALL
File metadata and controls
165 lines (122 loc) · 6.05 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
Linux Daemon Installation
-------------------------
This distribution of Harmonium installs Harmonium as a daemon on a computer
running Linux. Installing Harmonium as a daemon will cause the computer to
start Harmonium automatically each time it is booted.
TiVo Requirements
-----------------
* A network enabled Series 2, Series 3, or HD TiVo.
Note
Configuring your TiVo to connect to your network is beyond the scope
of these instructions. For help see the TiVo website:
http://www.tivo.com/mytivo/howto/getconnected/howto_connect_dvr_internet.html
* The TiVo must be enabled for Home Network Applications. To do this,
perform the following:
1. From TiVo Central, go to Music, Photos, & More.
2. Select Enable Home Network Applications...
3. Press THUMBS UP three times, then press ENTER to enable local HME
applications.
4. Return to TiVo Central, then Music, Photos, & More. The option
should now appear as Disable Home Network Applications...
Server Requirements
* Processor: x86 CPU (Intel Pentium, Celeron, Xeon, etc.;
AMD Athlon, etc.)
* Operating System: any LSB compliant distribution of Linux. (Debian,
Ubuntu, Red Hat, Fedora, Slackware, etc.)
* Java runtime evironment version 6 or later.
Tested:
Java(TM) SE Runtime Environment
- build 1.6.0_16-b01
- build 1.6.0_20-b02
NOTE: Type "java -version" (without the quotes) at a command prompt to
determine the version of Java installed on your computer.
* Connected to same network as TiVo.
Note
The server's networking subsystem must be initialized before starting
Harmonium. In particular, the server's network interface must have an
IP address assigned before Harmonium is started. This might be an
issue if your computer uses Gnome Network Manager to manage your
computer's network interface.
Installation Instructions
-------------------------
Pre-Installation
----------------
1. Identify the path to the music root directory. All music files must be in
the music root or one of its subdirectories.
Note
In our example below, we assume that the music root is:
/home/userid/music
2. Identify the path to the playlist root directory. All playlist files must
be in the playlist root or one of its subdirectories.
Note
In our example below, we assume that the playlist root is:
/home/userid/playlists
Installation
------------
3. Copy the installation file to your chosen installation location, and then
uncompress and untar it.
Example
$ sudo mv harmonium.tar.gz /usr/local
$ cd /usr/local
$ sudo tar zxvf harmonium.tar.gz
4. In the conf directory under the Harmonium installation directory, find
and open the file called wrapper.conf using a text editor.
Example
$ sudo nano /usr/local/Harmonium/conf/wrapper.conf
5. Find the line in wrapper.conf that reads:
wrapper.app.parameter.4="/home/your/path/to/music"
Modify the line so that the path to your music root appears inside the
quotation marks.
Example
wrapper.app.parameter.4="/home/userid/music"
6. Find the line in wrapper.conf that reads:
wrapper.app.parameter.6="/home/your/path/to/playlists"
Modify the line so that the path to your playlist root appears inside
the quotation marks.
Example
wrapper.app.parameter.6="/home/userid/playlists"
Note
The playlist directory must be different from the music directory.
7. Save the wrapper.conf file, and exit the text editor.
8. Change directories to the /etc/init.d directory and create a symbolic
link that points to script called harmonium in the bin directory under
the Harmonium installation directory.
Note
You must use a symbolic link. Do not copy the script into
/etc/init.d.
Example
$ cd /etc/init.d
$ sudo ln -s /usr/local/Harmonium/bin/harmonium harmonium
9. Test Harmonium by running /etc/init.d/harmonium in console mode. Check
that Harmonium appears on your TiVo under "Music, Programs, and More." If
there seems to be a problem, check the log file in the logs directory
under the Harmonium installation directory. After testing, close
Harmonium by using the keystroke Ctrl-C.
Example
$ sudo /etc/init.d/harmonium console
10. If everything seems to be working, install Harmonium as a daemon. The
process of installing a new daemon differs depending on the distribution
of Linux that is being used.
Debian and Debian derivitives (Ubuntu, etc.)
--------------------------------------------
Use the update-rc.d command to install Harmonium as a daemon
that starts at boot time.
Example
$ sudo update-rc.d harmonium defaults 99
Red Hat and Red Hat derivitives (Fedora, CentOS, etc.)
------------------------------------------------------
Use the chkconfig command to install Harmonium as a daemon that
starts at boot time.
Example
$ sudo chkconfig --level 35 harmonium on
NOTE: When Harmonium first starts, it reads and catalogs the music files
that it finds under your music root. This process may take several
minutes. (A sample collection of 3500 music files takes 20 minutes
to complete.) Until this process has completed, Harmonium will not
appear on your TiVo.
Subsequent Harmonium startups use the cache built during this
initial startup, and are substantially faster.
11. Start the daemon. Harmonium should restart automatically the next time
the computer is rebooted.
Example
$ sudo /etc/init.d/harmonium start