Projet

Général

Profil

Installation » Historique » Version 13

Gaston TJEBBES, 22/10/2010 10:53

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 2 Luc Bourdot
L'application doit être installé 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 13 Gaston TJEBBES
h3. Apache
34 7 Luc Bourdot
Vous devez soit faire la déclaration du site par gen_config, soit créer un fichier emc.conf dans  /etc/apache2/sites-enabled
35 7 Luc Bourdot
36 7 Luc Bourdot
<pre>
37 7 Luc Bourdot
#  test EMC
38 1 Luc Bourdot
Alias /haxe/emc /var/www/html/haxe/emc
39 1 Luc Bourdot
<Directory "/var/www/html/apps/emc/">
40 1 Luc Bourdot
    AddDefaultCharset UTF-8
41 1 Luc Bourdot
    DirectoryIndex index.n
42 1 Luc Bourdot
    Order Allow,Deny
43 1 Luc Bourdot
    Allow from All
44 1 Luc Bourdot
</Directory>
45 1 Luc Bourdot
</pre>
46 2 Luc Bourdot
47 13 Gaston TJEBBES
h3. Mysql
48 1 Luc Bourdot
49 13 Gaston TJEBBES
- Créer la base mysql 
50 13 Gaston TJEBBES
<pre>
51 13 Gaston TJEBBES
mysql_add.py 
52 9 Luc Bourdot
Nom de la Base emc
53 13 Gaston TJEBBES
user monuser
54 13 Gaston TJEBBES
mot de passe monmotdepasse
55 13 Gaston TJEBBES
</pre>
56 1 Luc Bourdot
57 13 Gaston TJEBBES
h3. L'application
58 10 Luc Bourdot
59 10 Luc Bourdot
60 13 Gaston TJEBBES
L'url de votre serveur est monetab.monacad.fr
61 13 Gaston TJEBBES
62 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
63 10 Luc Bourdot
<pre>
64 10 Luc Bourdot
<config
65 13 Gaston TJEBBES
        db="/var/www/html/haxe/emc/eolemedias"     <= Nom de la base sqlite (Pas utilisé)
66 13 Gaston TJEBBES
        typedb="mysql"                             <= Type de base - laisser mysql
67 13 Gaston TJEBBES
        dbuser="monuser"                           <= Utilisateur déclarer à la création de la base
68 13 Gaston TJEBBES
        dbpass="monmotdepasse"                     <= Mot de passe
69 1 Luc Bourdot
        dbhost="localhost"
70 1 Luc Bourdot
        dbport="3306"
71 1 Luc Bourdot
        database="emc"
72 1 Luc Bourdot
        description="Eole Media Center 0.5"
73 1 Luc Bourdot
        title="E.M.C"
74 13 Gaston TJEBBES
        url="https://wwww.monetab.fr/haxe/emc"     <= Adapter à votre site remplacer par l'adresse internet du serveur
75 1 Luc Bourdot
        mp3server="www.montetab.fr/haxe/emc"
76 1 Luc Bourdot
        mediaserver="wwww.monetab.fr"
77 10 Luc Bourdot
        AutoCreate="true"
78 10 Luc Bourdot
        Debug="true"
79 10 Luc Bourdot
        casserver="https://www.monetab.fr.fr:8443" <= Serveur SSO
80 13 Gaston TJEBBES
        basedir="/var/spool/Ressources/"           <= Répertoire de stockage des medias
81 13 Gaston TJEBBES
        hostname="www.monetab.fr"                  <= Adapter à votre site remplacer par l'adresse internet du serveur
82 1 Luc Bourdot
/>
83 10 Luc Bourdot
</pre>
84 10 Luc Bourdot
85 10 Luc Bourdot
86 13 Gaston TJEBBES
Lancer la commande 
87 13 Gaston TJEBBES
<pre>
88 13 Gaston TJEBBES
neko createdb.n
89 13 Gaston TJEBBES
</pre>
90 13 Gaston TJEBBES
pour créer les structures des tables dans la base
91 2 Luc Bourdot
92 13 Gaston TJEBBES
h2. Lancement du serveur de streaming
93 2 Luc Bourdot
94 13 Gaston TJEBBES
Lancer la commande 
95 13 Gaston TJEBBES
<pre>
96 13 Gaston TJEBBES
nohup mediaserver.n &
97 13 Gaston TJEBBES
</pre>
98 13 Gaston TJEBBES
pour démarrer le service de streaming 
99 10 Luc Bourdot
Ce service utilise le port 1935  (à ouvrir sur votre parefeu)
100 10 Luc Bourdot
101 10 Luc Bourdot
Création de l'espace de stockage
102 1 Luc Bourdot
103 11 Luc Bourdot
ex:
104 11 Luc Bourdot
mkdir   /var/spool/Ressources/
105 11 Luc Bourdot
mkdir   /var/spool/Ressources/public/videos
106 11 Luc Bourdot
mkdir   /var/spool/Ressources/public/audios
107 13 Gaston TJEBBES
108 12 Luc Bourdot
mkdir   /var/spool/Ressources/users
109 12 Luc Bourdot
110 12 Luc Bourdot
chown -R  www-data.www.data  /var/spool/Ressources
111 12 Luc Bourdot
112 12 Luc Bourdot
Les utilisateurs doivent avoir un répertoire à leur nom avec deux sous-dossiers: videos et audios
113 10 Luc Bourdot
114 10 Luc Bourdot
_- A voir créer automatiquement  un lien symbolique vers un dossier Média de leur dossier perso!_
115 3 Luc Bourdot
116 3 Luc Bourdot
117 1 Luc Bourdot
118 1 Luc Bourdot
119 1 Luc Bourdot