root/trunk/INSTALL

Revision 576, 4.7 KB (checked in by olivier, 4 weeks ago)

the geocoder now works by parsing the Geonames main data file ; removing geopy dependency

Line 
1==================
2Telemeta - INSTALL
3==================
4
5Requirements
6============
7
8Telemeta is designed to run on Linux and other UNIX based architectures.
9The following third party applications or libraries are required:
10
11:dependencies: python (>= 2.3.5-7), python-xml, python-mutagen, python-django (>= 1.0-1),
12               python-imaging (>= 1.1.6), sox (>= 14.2), vorbis-tools, flac, normalize-audio,
13               python-mysqldb, mysql-server, octave2.9, python-tk, libgd2-xpm,
14               libsndfile1 (>= 1.0.17), python-numpy, python-ctypes (>= 1.0.1),
15               python-scikits-audiolab (>= 0.10), python-setuptools (>= 0.6b3),
16               python-support (>= 0.3), python-scipy, lame (>= 3.98.2),
17               python-docutils (>= 0.5)
18
19:optional:     ecasound, festival, par2
20
21Here, package names are taken from the Debian OS and could be different on other platforms.
22
23
24Install
25=======
26
27-----------------------
281. Install the software
29-----------------------
30
311.1 Install Telemeta
32--------------------
33
34* On Debian (Testing recommended) or Ubuntu Hoary
35
36    Just add these lines to your /etc/apt/sources-list::
37
38        deb http://debian.parisson.org/ binary/
39        deb-src http://debian.parisson.org/ source/
40        deb http://www.debian-multimedia.org etch main
41
42    Then::
43
44    $ sudo apt-get update
45    $ sudo apt-get install telemeta
46
47    This method provides the installation of all needed packages
48    thanks to the Debian dependency system.
49    Go to 1.2.
50
51* On other linux platforms
52
53    Install all dependencies.
54
55    Download the latest release of telemeta at
56    http://telemeta.org
57
58    Uncompress the archive like::
59
60    $ tar xzvf telemeta_0.3.2.tar.gz
61
62    Go to the main folder of telemeta and run this command
63    in a shell as root::
64
65    $ sudo python setup.py install
66
67
681.2. Install audiolab
69---------------------
70
71This is ONLY needed if you did NOT install telemeta with Debian's apt-get.
72
73In order to get the wavforms of the audio files,
74python-audiolab have to be installed with the help of git::
75
76$ git clone git://github.com/cournape/audiolab.git
77$ cd audiolab/
78$ sudo python setup.py install
79
80
811.3. Install the Django framework version 1.0
82---------------------------------------------
83
84* On Debian (Lenny recommended) or Ubuntu Hoary::
85
86    $ sudo apt-get install python-django
87
88* On other linux platforms, download and install it from:
89
90    http://www.djangoproject.com/download/
91
92
93--------------------------
942. Create a Django project
95--------------------------
96
97If you haven't already done it, start a new django project::
98
99    $ cd ~/my_projects
100    $ django-admin startproject mysite
101
102
103-----------------------------------------
1043. Create the media and cache directories
105-----------------------------------------
106
107We need 2 directories for media and caching::
108
109    $ cd mysite
110    $ mkdir media cache
111
112You might want to place these somewhere else...
113
114
115----------------------------------
1164. Configure the telemeta project
117----------------------------------
118
119Edit the file settings.py in a text editor.
120Modifiy the following variables:
121
122    :ADMINS:            telemeta requires that you indicate an administrator here
123    :DATABASE_*:        your database settings (don't forget to create the database if needed)
124    :MEDIA_ROOT:        absolute path to the media directory you just created
125    :INSTALLED_APPS:    add 'telemeta'
126
127Add the following variables:
128
129    :TELEMETA_ORGANIZATION: name of the organization which hosts this installation
130    :TELEMETA_SUBJECTS:     tuple of subject keywords (used for Dublin Core), such
131                            as "Ethnology", etc...
132    :TELEMETA_CACHE_DIR:    absolute path to the cache directory that you just created
133    :TELEMETA_GMAP_KEY:     your Google Map API key
134
135Just paste the two lines below::
136
137    TELEMETA_EXPORT_CACHE_DIR = TELEMETA_CACHE_DIR + "/export"
138    CACHE_BACKEND = "file://" + TELEMETA_CACHE_DIR + "/data"
139
140
141--------------------------
1425. Initialize the database
143--------------------------
144
145This synchronizes the DB with the model::
146
147    $ python manage.py syncdb
148
149
150----------------------
1516. Configure your urls
152----------------------
153
154    The simplest case is to have telemeta running at public root. To do so, add this url in urls.py::
155
156    (r'^', include('telemeta.urls')),
157
158
159--------------------
1607. Start the project
161--------------------
162
163We are ready to start the telemeta server::
164
165    $ python manage.py runserver
166
167By default, the server starts on the port 8000. You can override this with, for example::
168
169    $ python manage.py runserver 9000
170
171
172------------------------------------
1738. Go the web page with your browser
174------------------------------------
175
176    http://localhost:8000
177
178    or
179
180    http://localhost:9000
181
182
183See README and http://telemeta.org for more informations.
Note: See TracBrowser for help on using the browser.