Arborescence des pages

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

Bloc de code
languagebash
themeMidnight
titleServeur(s) Pod / Compte root
[root@ts-sun-video ~]# yum install epel-release

Installation python 3.6.

...

x / pip

Installation de la dernière version de Python stable, en tant que root (ou via sudo).

...

Bloc de code
languagebash
themeMidnight
titleServeur(s) Pod / Compte root ou %userpod%
En tant que %userpod%:
[pod@ts-sun-video%userpod% ~]$ sudo mkdir /data/www/%userpod%/django_projects
OU 
En tant que root (A vérifier: existence du groupe nginx)
[root@ts-sun-videoroot ~]$ mkdir /data/www/%userpod%/django_projects
[root@ts-sun-videoroot ~]$ chown %userpod%:nginx /data/www/%userpod%/django_projects/

...

Bloc de code
languagebash
themeMidnight
titleServeur(s) Pod / Compte %userpod%
[%userpod%@ts-sun-video%userpod% ~]$ cd
[%userpod%@ts-sun-video%userpod% ~]$ ln -s /data/www/%userpod%/django_projects django_projects

...

Bloc de code
languagebash
themeMidnight
titleServeur(s) Pod / Compte %userpod%
[%userpod%@ts-sun-video%userpod% ~]$ cd /data/www/%userpod%/django_projects
[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects]$ git clone https://github.com/esupportail/podv2.git

...

Bloc de code
languagebash
themeMidnight
titleServeur(s) Pod / Compte %userpod%
[%userpod%@ts-sun-video%userpod% ~]$ cd
[%userpod%@ts-sun-video%userpod% ~]$ source .bashrc
[%userpod%@ts-sun-video%userpod% ~]$ cd /data/www/%userpod%/django_projects/podv2
[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects/podv2]$ workon django_pod
(django_pod) [%userpod%@ts-sun-video%userpod%][/data/www/%userpod%/django_projects/podv2] pip3 install --upgrade pip
(django_pod) [%userpod%@ts-sun-video%userpod%][/data/www/%userpod%/django_projects/podv2] pip3 install -r requirements.txt 

...

Bloc de code
languagebash
themeMidnight
[root@ts-sun-videoroot ~]# yum install ImageMagick ImageMagick-devel

...

Bloc de code
languagepy
themeMidnight
[root@ts-sun-videoroot ~]# cd /opt/
[root@ts-sun-videoroot /opt]# mkdir ffmpeg
[root@ts-sun-videoroot /opt]# cd ffmpeg
[root@ts-sun-videoroot /opt]# wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
[root@ts-sun-videoroot /opt]# tar -Jxvf ffmpeg-release-amd64-static.tar.xz
[root@ts-sun-videoroot /opt]# # ATTENTION : changer les X.X.X par la bonne version !!!
[root@ts-sun-videoroot /opt]# ln -s ffmpeg-X.X.X-amd64-static ffmpeg
[root@ts-sun-videoroot /opt]# chown -R %userpod%:nginx /opt/ffmpeg

...

Bloc de code
languagepy
themeMidnight
[root@ts-sun-videoroot ~]# yum -y install epel-release
[root@ts-sun-videoroot ~]# rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
[root@ts-sun-videoroot ~]# # Attention : modification du 0-1 en 0-5 par rapport à la documentation ci-dessus
[root@ts-sun-videoroot ~]# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
[root@ts-sun-videoroot ~]# yum repolist

# Pour CentOS 8, ajouter :
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm -y

[root@ts-sun-videoroot ~]# yum install --enablerepo=epel ffmpeg ffmpeg-devel
[root@ts-sun-videoroot ~]# yum install --enablerepo=epel ffmpegthumbnailer

...

Bloc de code
languagepy
themeMidnight
[root@ts-sun-videoroot ~]# yum install java-1.8.0-openjdk.x86_64

...

Bloc de code
languagebash
titleRepository pour Elasticsearch (compte root)
[root@ts-sun-videoroot ~]# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

...

Bloc de code
languagebash
titleE / Installation Elasticsearch (compte root)
[root@ts-sun-videoroot ~]# yum install elasticsearch

...

Bloc de code
languagebash
titleMise en service Elasticsearch (compte root)
[root@ts-sun-videoroot ~]# systemctl daemon-reload
[root@ts-sun-videoroot ~]# systemctl enable elasticsearch.service

...

Bloc de code
languagebash
titleE / Droits des répertoires Elasticsearch (compte root)
[root@ts-sun-videoroot ~]# # Création des répertoires de base
[root@ts-sun-videoroot ~]# mkdir /data/elasticsearch/data -p
[root@ts-sun-videoroot ~]# mkdir /data/elasticsearch/logs
[root@ts-sun-videoroot ~]# chown elasticsearch:elasticsearch /data/elasticsearch/ -R
[root@ts-sun-videoroot ~]# chown elasticsearch:elasticsearch /usr/share/elasticsearch/ -R
[root@ts-sun-video[root ~]# chown elasticsearch:elasticsearch /etc/elasticsearch/ -R

...

Bloc de code
languagebash
titleServeur(s) Pod / Démarrage et test Elasticsearch (compte root)
[root@ts-sun-videoroot ~]# systemctl start elasticsearch.service
# Mettre l'adresse IP du serveur Elasticsearch
[root@ts-sun-videoroot ~]# curl -XGET http://162.38.xx.xx:9200/_cat/nodes

...

Bloc de code
languagebash
titleServeur(s) Pod / Installation plugin ICU (compte root)
[root@ts-sun-videoroot ~]# cd /usr/share/elasticsearch/ ????
[root@ts-sun-videoroot ~]# bin/elasticsearch-plugin install analysis-icu
[root@ts-sun-videoroot ~]# systemctl restart elasticsearch

...

Bloc de code
languagebash
titleServeur(s) Pod / Installation H5PP (compte %userpod%)
[%userpod%@ts-sun-video%userpod% ~]# cd
[%userpod%@ts-sun-video%userpod% ~]# source .bashrc
[%userpod%@ts-sun-video%userpod% ~]# cd /data/www/%userpod%/django_projects
# Installation requests
[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects]# pip3 install requests
[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects]# workon django_pod
(django_pod)[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects]# git clone https://github.com/EsupPortail/H5PP.git
(django_pod)[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects]# cd H5PP
(django_pod)[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects/H5PP]# git checkout --track origin/dev
# Création du package H5PP (-> création de dist/H5PP-0.1.9.tar.gz)
(django_pod)[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects/H5PP]# python setup.py sdist
(django_pod)[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects/H5PP]# cd ../podv2
(django_pod)[%userpod%@ts-sun-video%userpod% /data/www/%userpod%/django_projects/podv2]# pip3 install  ../H5PP/dist/H5PP-0.1.9.tar.gz

...

Bloc de code
languagetext
titleServeur(s) Pod / emacs /data/www/%userpod%django_projects/podv2/custom/settins_local.py (compte %userpod%)
THIRD_PARTY_APPS = ['live', 'enrichment', 'interactive']


##
# H5P relative parameters
#
H5P_ENABLED = True                                     	# Active the module or not
#H5P# H5P_VERSION = '7.x'                                    # Current version of H5P module
H5P_DEV_MODE = 0                                        # Active the development mode or not
#H5P# H5P_PATH = os.path.join(BASE_DIR, 'h5pp/static/h5p')   # Path to static ressources of H5PP module
H5P_URL = '/h5p/'                                       # All H5PP pages begin with this url
H5P_SAVE = 30                                           # How often current content state should be saved
H5P_EXPORT = '/exports/'                                # Location of exports (packages .h5p)
H5P_LANGUAGE = 'fr'                                     # Language of the module H5P.
BASE_URL = 'https://pod-test.umontpellier.fr'           # Hostname of your django ap

...

Ainsi, les librairies H5P seront accessibles dans Pod, et l'icône d'ajout d'interactivité sera ajouté aux vidéos.(avertissement)

? Il semblerait qu'il manque des éléments de style (CSS, images...) pour l'affichage dans Pod v2, mais l'ajout de librairies fonctionne correctement. 


4. Actions complémentaires

...

Bloc de code
languagebash
titleServeur(s) Pod / Création du fichier settings_local.py (compte %userpod%)
[%userpod%@ts-sun-video%userpod%@ ~]# mkdir /data/www/%userpod%/django_projects/podv2/pod/custom/
[%userpod%@ts-sun-video%userpod%@ ~]# cp /data/www/%userpod%/django_projects/podv2/pod/main/settings.py /data/www/%userpod%/django_projects/podv2/pod/custom/settings_local.py 

...

Bloc de code
languagebash
titleServeur(s) Pod / Droits du fichier (compte root)
[root@ts-sun-videoroot@ ~]# # En cas de problème de droit
[root@ts-sun-videoroot@ ~]# chown %userpod%:nginx /data/www/%userpod%/django_projects/podv2/pod/custom/ -R

...