Projet

Général

Profil

Installation » Historique » Version 18

Gaston TJEBBES, 22/10/2010 11:21

1 8 Luc Bourdot
h1. EMC  sur Scribe  
2 8 Luc Bourdot
(document de travail en attente de l'installation via un paquet)
3 1 Luc Bourdot
4 13 Gaston TJEBBES
_Récuperer l'archive dans la zone fichier du site_
5 1 Luc Bourdot
6 13 Gaston TJEBBES
Depuis votre scribe :
7 13 Gaston TJEBBES
<pre>
8 13 Gaston TJEBBES
cd /tmp
9 13 Gaston TJEBBES
wget http://dev-eole.ac-dijon.fr/attachments/download/64/emc-0.5.tar.gz
10 13 Gaston TJEBBES
</pre>
11 1 Luc Bourdot
12 1 Luc Bourdot
*Paquets en dépendances :*
13 1 Luc Bourdot
14 13 Gaston TJEBBES
Installer libapache2-mod-neko (neko, mod_neko) et ffmpeg
15 13 Gaston TJEBBES
<pre>
16 13 Gaston TJEBBES
apt-get install libapache2-mod-neko ffmpeg
17 13 Gaston TJEBBES
service apache2 force-reload
18 13 Gaston TJEBBES
</pre>
19 1 Luc Bourdot
20 1 Luc Bourdot
21 1 Luc Bourdot
h1. installation
22 1 Luc Bourdot
23 13 Gaston TJEBBES
h2. Copie des fichiers
24 13 Gaston TJEBBES
25 14 Gaston TJEBBES
L'application doit être installée dans /var/www/html/haxe/emc 
26 13 Gaston TJEBBES
Copier l'archive dans 
27 13 Gaston TJEBBES
<pre>
28 13 Gaston TJEBBES
tar -zxf /tmp/emc-0.5.tar.gz -C /var/www/html/
29 13 Gaston TJEBBES
</pre>
30 2 Luc Bourdot
31 13 Gaston TJEBBES
h2. Configuration
32 7 Luc Bourdot
33 1 Luc Bourdot
h3. Apache
34 14 Gaston TJEBBES
35 14 Gaston TJEBBES
* Soit faire la déclaration du site par gen_config
36 14 Gaston TJEBBES
* Soit créer un fichier apache-emc.conf dans /etc/apache2/sites-enabled
37 7 Luc Bourdot
38 7 Luc Bourdot
<pre>
39 7 Luc Bourdot
#  test EMC
40 1 Luc Bourdot
Alias /haxe/emc /var/www/html/haxe/emc
41 15 Gaston TJEBBES
<Directory "/var/www/html/haxe/emc/">
42 1 Luc Bourdot
    AddDefaultCharset UTF-8
43 1 Luc Bourdot
    DirectoryIndex index.n
44 1 Luc Bourdot
    Order Allow,Deny
45 1 Luc Bourdot
    Allow from All
46 1 Luc Bourdot
</Directory>
47 1 Luc Bourdot
</pre>
48 2 Luc Bourdot
49 18 Gaston TJEBBES
Prendre en compte la configuration
50 18 Gaston TJEBBES
51 18 Gaston TJEBBES
<pre>
52 18 Gaston TJEBBES
service apache2 reload
53 18 Gaston TJEBBES
</pre>
54 18 Gaston TJEBBES
55 18 Gaston TJEBBES
56 13 Gaston TJEBBES
h3. Mysql
57 1 Luc Bourdot
58 16 Gaston TJEBBES
Créer la base mysql 
59 13 Gaston TJEBBES
<pre>
60 13 Gaston TJEBBES
mysql_add.py 
61 9 Luc Bourdot
Nom de la Base emc
62 13 Gaston TJEBBES
user monuser
63 13 Gaston TJEBBES
mot de passe monmotdepasse
64 13 Gaston TJEBBES
</pre>
65 1 Luc Bourdot
66 13 Gaston TJEBBES
h3. L'application
67 10 Luc Bourdot
68 10 Luc Bourdot
69 13 Gaston TJEBBES
L'url de votre serveur est monetab.monacad.fr
70 13 Gaston TJEBBES
71 13 Gaston TJEBBES
Éditer le fichier /var/www/html/haxe/config.xml pour y inscrire les informations de la base de données, l'url d'accès à votre service ainsi que l'url d'accès à votre serveur eoleSSO
72 10 Luc Bourdot
<pre>
73 10 Luc Bourdot
<config
74 13 Gaston TJEBBES
        db="/var/www/html/haxe/emc/eolemedias"     <= Nom de la base sqlite (Pas utilisé)
75 13 Gaston TJEBBES
        typedb="mysql"                             <= Type de base - laisser mysql
76 13 Gaston TJEBBES
        dbuser="monuser"                           <= Utilisateur déclarer à la création de la base
77 13 Gaston TJEBBES
        dbpass="monmotdepasse"                     <= Mot de passe
78 1 Luc Bourdot
        dbhost="localhost"
79 1 Luc Bourdot
        dbport="3306"
80 1 Luc Bourdot
        database="emc"
81 1 Luc Bourdot
        description="Eole Media Center 0.5"
82 1 Luc Bourdot
        title="E.M.C"
83 13 Gaston TJEBBES
        url="https://wwww.monetab.fr/haxe/emc"     <= Adapter à votre site remplacer par l'adresse internet du serveur
84 1 Luc Bourdot
        mp3server="www.montetab.fr/haxe/emc"
85 1 Luc Bourdot
        mediaserver="wwww.monetab.fr"
86 10 Luc Bourdot
        AutoCreate="true"
87 10 Luc Bourdot
        Debug="true"
88 10 Luc Bourdot
        casserver="https://www.monetab.fr.fr:8443" <= Serveur SSO
89 13 Gaston TJEBBES
        basedir="/var/spool/Ressources/"           <= Répertoire de stockage des medias
90 13 Gaston TJEBBES
        hostname="www.monetab.fr"                  <= Adapter à votre site remplacer par l'adresse internet du serveur
91 1 Luc Bourdot
/>
92 10 Luc Bourdot
</pre>
93 10 Luc Bourdot
94 10 Luc Bourdot
95 13 Gaston TJEBBES
Lancer la commande 
96 13 Gaston TJEBBES
<pre>
97 13 Gaston TJEBBES
neko createdb.n
98 13 Gaston TJEBBES
</pre>
99 13 Gaston TJEBBES
pour créer les structures des tables dans la base
100 2 Luc Bourdot
101 13 Gaston TJEBBES
h2. Lancement du serveur de streaming
102 2 Luc Bourdot
103 13 Gaston TJEBBES
Lancer la commande 
104 13 Gaston TJEBBES
<pre>
105 10 Luc Bourdot
nohup mediaserver.n &
106 1 Luc Bourdot
</pre>
107 11 Luc Bourdot
pour démarrer le service de streaming 
108 1 Luc Bourdot
Ce service utilise le port 1935  (à ouvrir sur votre parefeu)
109 1 Luc Bourdot
110 1 Luc Bourdot
Création de l'espace de stockage
111 1 Luc Bourdot
112 18 Gaston TJEBBES
<pre>
113 18 Gaston TJEBBES
mkdir /var/spool/Ressources/
114 18 Gaston TJEBBES
mkdir /var/spool/Ressources/public/videos
115 18 Gaston TJEBBES
mkdir /var/spool/Ressources/public/audios
116 18 Gaston TJEBBES
mkdir /var/spool/Ressources/users
117 18 Gaston TJEBBES
</pre>
118 1 Luc Bourdot
119 18 Gaston TJEBBES
Les utilisateurs doivent avoir un répertoire à leur nom avec deux sous-dossiers: videos et audios
120 12 Luc Bourdot
121 18 Gaston TJEBBES
<pre>
122 17 Gaston TJEBBES
chown -R  www-data:www-data  /var/spool/Ressources
123 18 Gaston TJEBBES
</pre>
124 12 Luc Bourdot
125 10 Luc Bourdot
126 18 Gaston TJEBBES
- A voir créer automatiquement  un lien symbolique vers un dossier Média de leur dossier perso!
127 3 Luc Bourdot
128 3 Luc Bourdot
129 1 Luc Bourdot
130 1 Luc Bourdot
131 1 Luc Bourdot