Raspberry/Jeedom : Installation …

Etape n°1 : Installation de l’OS ( 2018-06-27-raspbian-stretch-lite.img )  sur la carte SD ( Avec ApplePi si vous êtes sous MacOS ) .

-> Voir : https://www.cyber-neurones.org/2018/09/raspberry-mac-os-applepi-baker-creer-une-carte-sd-pour-le-raspberry/ .

$ hostnamectl
   Static hostname: raspberrypi
         Icon name: computer
        Machine ID: 072b46046e3a4cdea183a0f7d018a2a3
           Boot ID: 130dde2871b24d01bd8517bf3a23cd5f
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.50-v7+
      Architecture: arm

Etape n°2 : Changement de l’IP.

-> Voir : https://www.cyber-neurones.org/2018/09/raspberry-configuration-reseau-sur-une-raspbian-gnu-linux-9-stretch-avec-une-freebox/ .

Modification de /etc/dhcpcd.conf , mais aussi de /etc/hostname (pour le nom RASP6 : 192.168.0.74 )

Et lancement du service ssh ( afin de supprimer écran/clavier et faire à distance ).

$ sudo systemctl enable ssh.service
$ sudo systemctl start ssh.service

Changement du mot de passe ( commande passwd ) … et reboot.

Etape n°3 : Téléchargement du script d’installation et lancement.

	
$ wget https://raw.githubusercontent.com/jeedom/core/stable/install/install.sh
$ sudo chmod +x install.sh
$ sudo ./install.sh 
...
Bienvenue dans l'installateur de Jeedom
Version d'installation de Jeedom : master
Dossier principal du serveur web : /var/www/html
Commence toutes les étapes de l'installation
---------------------------------------------------------------------
Commence l'étape 1 de la révision
...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
étape 1 de la révision réussie
---------------------------------------------------------------------
Commence l'étape 2 paquet principal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
...
Setting up x11-common (1:7.7+19) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up hicolor-icon-theme (0.15-1) ...
...
Package mbrola is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
...
Processing triggers for libgdk-pixbuf2.0-0:armhf (2.36.5-2+deb9u2) ...
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in 
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/stretch
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
...
E: Package 'mbrola' has no installation candidate
...
Package 'brltty' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
étape 2 paquet principal réussie
---------------------------------------------------------------------
Commence l'étape 3 base de données
Reading package lists... Done
Building dependency tree       
Reading state information... Done
...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u4) ...
étape 3 base de données réussie
---------------------------------------------------------------------
Commence l'étape 4 apache
Reading package lists... Done
Building dependency tree     
...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u4) ...
étape 4 apache réussie
---------------------------------------------------------------------
Commence l'étape 5 php
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php-ssh2' instead of 'php7.0-ssh2'
...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
étape 5 php réussie
---------------------------------------------------------------------
Commence l'étape 6 téléchargement de jeedom
--2018-10-09 18:31:54--  https://github.com/jeedom/core/archive/master.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/jeedom/core/zip/master [following]
....
étape 6 téléchargement de jeedom réussie
---------------------------------------------------------------------
Commence l'étape 7 personnalisation de jeedom
find: ‘/proc/sys/fs/binfmt_misc’: No such device
Update php file /etc/php/7.0/cli/php.ini
Update php file /etc/php/7.0/apache2/php.ini
Update php file /var/www/html/vendor/doctrine/cache/tests/travis/php.ini
Module status disabled.
To activate the new configuration, you need to run:
  systemctl restart apache2
étape 7 personnalisation de jeedom réussie
---------------------------------------------------------------------
commence l'étape 8 configuration de jeedom
étape 8 configuration de jeedom réussie
---------------------------------------------------------------------
Commence l'étape 9 installation de jeedom
[START INSTALL]
****Install jeedom from 3.2.11 (2018-10-09 20:33:12)****

Installation de Jeedom 3.2.11
Installation de la base de données...OK
Post installation...
[START CONSISTENCY]
Create plugin::cronDaily
Create jeedom::backup
Create plugin::cronHourly
Create scenario::check
Create scenario::control
Create jeedom::cronDaily
Create jeedom::cronHourly
Create jeedom::cron5
Create jeedom::cron
Create plugin::cron
Create plugin::cron5
Create plugin::cron15
Create plugin::cron30
Create plugin::checkDeamon
Create cache::persist
Create history::archive
Vérifiez les droits sur les fichiers...OK
[END CONSISTENCY]
Ajout de l'utilisateur (admin,admin)
OK
Temps d'installation : 2s
[END INSTALL SUCCESS]
étape 9 installation de jeedom réussie
---------------------------------------------------------------------
Commence l'étape 10 post jeedom
no crontab for root
www-data ALL=(ALL) NOPASSWD: ALL
étape 10 post jeedom réussie
---------------------------------------------------------------------
Commence l'étape 11 vérification de jeedom
==================================================
|    JEEDOM SICK SCRIPT 2018-10-09 18:33:14    |
==================================================

**************************************************
*                 VARIABLES                      *
**************************************************
Dossier d'installation : /var/www/html
User : root
Sudo : OUI

**************************************************
*               DOSSIERS                         *
**************************************************
Charge l'environnement de Jeedom...OK
Vérifie si les log sont en écriture...OK

**************************************************
*              UTILISATEURS                      *
**************************************************
admin =>  Admin

**************************************************
*                 CRON                           *
**************************************************
Vérifie si cron est actif...OK
Vérifie si scenario est actif...OK

NAME | STATE | SCHEDULE | DEAMON | ONCE | LAST RUN
plugin::cronDaily() | stop | 00 00 * * * * | 0 | 0 | 
jeedom::backup() | stop | 11 01 * * * | 0 | 0 | 
plugin::cronHourly() | stop | 00 * * * * * | 0 | 0 | 
scenario::check() | stop | * * * * * * | 0 | 0 | 
scenario::control() | stop | * * * * * * | 0 | 0 | 
jeedom::cronDaily() | stop | 00 00 * * * * | 0 | 0 | 
jeedom::cronHourly() | stop | 00 * * * * * | 0 | 0 | 
jeedom::cron5() | stop | */5 * * * * * | 0 | 0 | 
jeedom::cron() | stop | * * * * * * | 0 | 0 | 
plugin::cron() | stop | * * * * * * | 0 | 0 | 
plugin::cron5() | stop | */5 * * * * * | 0 | 0 | 
plugin::cron15() | stop | */15 * * * * * | 0 | 0 | 
plugin::cron30() | stop | */30 * * * * * | 0 | 0 | 
plugin::checkDeamon() | stop | */5 * * * * * | 0 | 0 | 
cache::persist() | stop | */30 * * * * * | 0 | 0 | 
history::archive() | stop | 00 5 * * * * | 0 | 0 | 

**************************************************
*                 DATE                           *
**************************************************
Vérifie si la date de Jeedom est bonne...OK ()

**************************************************
*                 MESSAGE                        *
**************************************************
DATE | PLUGIN | LOGICALID | MESSAGE

**************************************************
*                 PLUGIN                         *
**************************************************
ID | NAME | STATE



==================================================
|         TOUTES LES VERIFICATIONS SONT FAITES    |
==================================================
étape 11 vérification de jeedom réussie
/!\ IMPORTANT /!\ Le mot de passe root MySQL est

j’ai donc noté deux erreurs, le package mbrola et SoftwareProperties.py (et aussi la node : /proc/sys/fs/binfmt_misc). Mais j’ai pas l’impression que cela bloque l’installation.

Etape n°4 : On passe à l’installation via l’interface graphique

Il faut utiliser admin/admin ( ou jeedom/jeedom pour la version précédente). Et modifier le mot de passe par défaut :

Pour les API, uniquement via des IP blanches :

Les protocoles internes et externes uniquement via HTTPS :

Augmentation du nombre de message dans la Timeline : 5000

 Installation d’un premier plugin : Bluetooth :

Installation des dépendances et activation du module :

Espace disque utilisé, ( j’ai du carte MicroSD de 32 Go ) :

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        30G  2.4G   26G   9% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M  6.2M  458M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
tmpfs           128M  116K  128M   1% /tmp/jeedom
/dev/mmcblk0p1   43M   22M   21M  52% /boot
tmpfs            93M     0   93M   0% /run/user/1000

L’idéal est de migrer ensuite vers un disque dur : ( voir l’article : https://www.cyber-neurones.org/2018/09/osmc-raspberry-basculement-dun-carte-sd-a-un-disque-dur-ssd/ : Basculement carte MicroSD vers disque SSD & https://www.cyber-neurones.org/2018/10/raspberry-disque-ssd-vs-carte-sd/ )

Pour information, si vous voulez activer le Bluetoolh manuellement :

$ sudo bluetoothctl
[NEW] Controller B8:27:EB:B4:18:4C raspberrypi [default]
[bluetooth]# power on
Changing power on succeeded

A noter que j’ai aussi fait l’installation de munin-node afin de faire la supervision par un munin-serveur :

$ sudo apt-get install munin-node munin-plugins-extra libnet-snmp-perl
$ sudo munin-node-configure --suggest --shell

A suivre.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Time limit is exhausted. Please reload CAPTCHA.