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