Installation » Historique » Version 24
Gaston TJEBBES, 02/11/2010 14:57
| 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 | 24 | Gaston TJEBBES | * Soit créer un fichier /etc/apache2/sites-enabled/apache-emc.conf |
| 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 | 24 | Gaston TJEBBES | /usr/bin/neko /var/www/html/haxe/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 | 1 | Luc Bourdot | Création de l'espace de stockage |
| 104 | 1 | Luc Bourdot | |
| 105 | 18 | Gaston TJEBBES | <pre> |
| 106 | 22 | Gaston TJEBBES | mkdir -p /var/spool/Ressources/ |
| 107 | 22 | Gaston TJEBBES | mkdir -p /var/spool/Ressources/public/videos |
| 108 | 22 | Gaston TJEBBES | mkdir -p /var/spool/Ressources/public/audios |
| 109 | 22 | Gaston TJEBBES | mkdir -p /var/spool/Ressources/users |
| 110 | 18 | Gaston TJEBBES | </pre> |
| 111 | 1 | Luc Bourdot | |
| 112 | 19 | Gaston TJEBBES | Les utilisateurs doivent avoir un répertoire dans /var/spool/Ressources/users à leur nom avec deux sous-dossiers: videos et audios. |
| 113 | 19 | Gaston TJEBBES | Ex: |
| 114 | 19 | Gaston TJEBBES | <pre> |
| 115 | 19 | Gaston TJEBBES | mkdir -p /var/spool/Ressources/users/<login>/videos |
| 116 | 1 | Luc Bourdot | mkdir -p /var/spool/Ressources/users/<login>/audios |
| 117 | 1 | Luc Bourdot | </pre> |
| 118 | 1 | Luc Bourdot | |
| 119 | 1 | Luc Bourdot | |
| 120 | 1 | Luc Bourdot | <pre> |
| 121 | 1 | Luc Bourdot | chown -R www-data:www-data /var/spool/Ressources |
| 122 | 1 | Luc Bourdot | </pre> |
| 123 | 21 | Gaston TJEBBES | |
| 124 | 21 | Gaston TJEBBES | Lancer la commande |
| 125 | 21 | Gaston TJEBBES | <pre> |
| 126 | 24 | Gaston TJEBBES | /usr/bin/nohup /usr/bin/neko /var/www/html/haxe/mediaserver.n & |
| 127 | 21 | Gaston TJEBBES | </pre> |
| 128 | 21 | Gaston TJEBBES | pour démarrer le service de streaming |
| 129 | 21 | Gaston TJEBBES | Ce service utilise le port 1935 (à ouvrir sur votre parefeu) |
| 130 | 21 | Gaston TJEBBES | |
| 131 | 1 | Luc Bourdot | |
| 132 | 10 | Luc Bourdot | |
| 133 | 20 | Gaston TJEBBES | A voir créer automatiquement un lien symbolique vers un dossier Média de leur dossier perso. Bloqué par #1135 |
| 134 | 3 | Luc Bourdot | |
| 135 | 3 | Luc Bourdot | |
| 136 | 1 | Luc Bourdot | |
| 137 | 1 | Luc Bourdot | |
| 138 | 1 | Luc Bourdot |