Building a new image for raspberry debian jessie - fr - en

EDIT: English translation bellow.

Salut,

Je suis en train de construire une image raspberry avec une debian jessie.

J’ai suivi et mis à jour la procédure ici:
https://yunohost.org/#/build_arm_image

Mes mises à jour et les scripts ont été poussés sur github ici:

C’est pas encore au point.

J’ai actuellement un

API is not responding (Error : 0 error)

Quand j’accède au premier boot sur le http.

J’ai mis l’image compactée, cf post ci-dessous…

Voici ce qu’il a encore à faire:

  • enlever le user pi
  • afficher l’IP dhcp dans le message Y de la console
  • tester

J’ai improvisé et mis les scripts outils pour gérér l’image dans le dossier build_arm_image
N’hésitez pas à me suggérer d’autre emplacements/outils, etc.

Je ferai le pull request quand ce sera fonctionnel.

À suivre,
Sylvain.


So I’m starting to build a new raspbian based image for yunohost, with debian jessie.

It finally seems to work, I continue. You can follow links above which are in English text. It explains how I built the proposed image for a shrinked SDcard. Which can be downloaded with the link above.

I don’t really know the processed and I forked the code proposed and added some modifications and started some automated script to build the image. If you have any interesting information please comment in French or English, I will translate it too.

What needs to be done for a complete yunohost image:

  • remove user pi from raspbian
  • show IP obtained by dhcp in the biq Y on the console
  • test (where are tests to be performed?)

Regards,
Sylvain.

L’image ici: 618Mio le zip.

yunohost-jessie-raspberry-2015-12-1501.img.zip

Sylvain.

Hi sylvain2,

Thank you for working on and providing Jessie image for Yunohost!

I’ve just tried it on my Raspberry Model B.
It boots quite fine but metronome is having issue to start.

In boot logs, I have:
[FAILED] Failed to start LSB: Metronome XMPP Server.

You can find more logs here:
https://zerobin.net/?36e60df9c6169a5e#gzhAhRXex2YWy8YYbPIs4ExSVKkAyLQ8i/p/a0BBBuM=

Please note that:

  • I didn’t try to do the yunohost post install step
  • I had a similar issue when trying to install manually (with the install script) Yunohost over Raspbian Jessie (i.e. the Illegal Instruction)

Thank you again for the image.

P.S.: I’m French, so if you’d rather discuss that in French, please let me know.

Salut @darkbeer42,

English version bellow.

Donc, je ne connais pas Metronome, ni a quoi il sert pour yunohost. Si tu peux préciser. Je vais comparer avec une installation manuelle sur une VM debian jessie x64, voir si ça passe.

J’ai rajouté les issues dans github. Il faut se contenter de mettre des choses qui concernent la build de l’image ARM. Je vais essayer de rédiger les scripts automatiques de construction de l’image. Si tu as des infos sur les points de tests du yunohost, je suis preneur.

Pour info, l’image au permier boot : resize la carte SD et clean le raspbian, elle reboot. C’est au troisième boot qu’elle semble avoir fonctionné pour moi. J’ai aussi eu un conflit de certificat SSL dans firefox.

J’ai donc fait le postinstall via le web sans problème.

Je n’ai eu de problème finalement qu’au resize du filesystem. qui semble maintenant résolu.

Voilà.


So I don’t know really what is Metronome, and what it’s purpose in yunohost install process. If you can add some more details it will be useful. I will also try to compare the manual install on a x64 debian VM, to see if this part of the process works.

I enabled the issues in github add here bug related to the build/boot of the ARM image. I will try to write some automated script for the build process of the sdcard image for raspbian + yunohost.

If you have more details about the testing process of a new yunohost version, I’m very interested.

For information: It seems I finally booted successfully with the image. At first boot, it resize the filesystem to the maximum size of the sdcard and reboot. At the third reboot (one more) I finally booted correctly with the web postintall enabled without trouble. I did have a conflict of SSL certificate with Firefox easily fixed.

So globally, the only difficult point seems to be around resizing the filesystem.

Let me know about your feeling.
Regards,
Sylvain.

Metronome est un serveur XMPP (protocole libre de messagerie instantanée) basé sur prosody.

@n00dl3, oui. Mais sert-il à l’intallation de yunohost?


Is Metronome required for the yunohost install script?

non, pas pendant l’installation. mais c’est suite à l’installation que le problème survient, visiblement .

OK. Comment on le teste Metronome, après l’intallation, quelles sont les étapes et peut-on le scripter avec un shell script ou tout autre langage?

Est-ce que ça fonctionne avec l’image en wheezy sur Raspberry?


OK Thanks. How can I test Metronome by scripting after install? what are the step to test it?
Was it working as expected on previous image based on wheezy for Raspberry?

Regards,
Sylvain.

Déjà tu peux regarder s’il est démarré avec metronomectl status sinon, pour vérifier s’il fonctionne vraiment il faudrait implémenter un client XMPP qui se connecte avec un utilisateur du ldap. Mais je ne suis pas sûr que celà soit vraiment nécessaire.

Sinon, au démarrage, il crée un fichier metronome.pid ici : /var/run/metronome/metronome.pid

donc un truc de ce genre devrait marcher :

if ps -p $(cat /var/run/metronome/metronome.pid) > /dev/null;then
   echo "metronome is running"
fi
root@raspberrypi:~# ps -p $(cat /var/run/metronome/metronome.pid)
  PID TTY          TIME CMD
 1146 ?        00:00:16 lua5.1

on my raspberry, Wich means? I never used Metronome yet.

it means it is running, metronome is written in lua, as an interpreted language it is the lua vm that is running.

@darkbeer42 how its behave on your install?

@n00dl3, is it sufficient to tell that it’s working well?

OK merci.
J’ai un raspberry: cat /proc/cpuinfo

processor	: 3
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5
Hardware	: BCM2709
Revision	: a01041

EDITED.

J’ai automatisé le process de création de la carte SD.
J’ai bien aussi l’erreur mentionné par @darkbeer42 sur metronome.

C’est toujours en progrès, la sdcard.

D’après le log il se peut que ce soit un problème d’architecture.

Dec 16 21:52:00 raspberrypi metronome[799]: Starting Metronome XMPP Server: metronomeIllegal instruction
Dec 16 21:52:00 raspberrypi metronome[799]: failed!

Je n’ai pas creusé.

Savez où est installé Metronome dans l’installeur?


I commited some script which are supposed to automate the process of creation of the sdcard image. Still in progress.

For metronome, no clue. I’m guessing it’s a conflict of binary instruction not handled by raspberry. Where is this package installed inside the install script?

May be some hint here: Upgrade on Raspberry Pi B/B+
Sylvain.

Salut,

Pour ceux qui veulent construire l’image Rasbian jessie de yunohost, j’ai formalisé les scripts ici:

À part pour 02_install_yunohost.sh qui ne lit pas encore l’IP en ligne de commande au moment où je poste ce message, tout est écrit dans la doc et dans le code source.

Changer votre IP ici

Happy hacking pour ceux que ça intéresse.

Je n’ai pas encore effacé l’usager pi du raspberry.

fonctionne sur xubuntu 14.04.


If you want to rebuild the Raspbian image with jessie and yunohost, I pushed scripts here:

The doc should be uptodate. Except for 02_install_yunohost.sh which doesn’t read the IP from command line yet.

You have to edit the IP here

Happy hacking…

default user pi is still on the restult scard.

done from xubuntu 14.04.

Regards,
Sylvain.

Salut,

Je n’ai pas eu le temps de retester l’image yuno sur mon raspberry.
J’avais effectivement ces mêmes traces d’erreurs de Metronome.

Il y a ce post qui a une erreur similaire: [solved] Problem with metronome upgrade
mais il semblerait que la raison évoquée sur ce post là ne puisse pas s’appliquer à notre problème.

Concernant metronome, j’ai vu sur Wikipedia :slight_smile: qu’il était utilisé par Jappix, proposé par Yunohost. Je ne sais pas s’il est utilisé pour autre chose.

Je n’ai pas vraiment le temps de creuser plus pour le moment, mais si je devais me prononcer, je dirais que le problème ne vient probablement pas de Yunohost ni de ta génération de l’image @sylvain2.

A+


Hi,

I did not test again the yunohost image on my raspberry.
I did have the same traces you got.

There is a post with a similar error: [solved] Problem with metronome upgrade but I don’t think the root cause given can be the same for our problem here.

About metronome, I saw on Wikipedia :slight_smile: that it is used by Jappix which one of the official Yunohost apps.
I don’t know if metronome is used for something else.

I don’t have the time to dig the problem for now, but I don’t think it comes from Yunohost or your image @sylvain2.

Bye.

OK @darkbeer42. merci. Je n’ai pas creusé le pb de metronome.

J’ai poussé dans le github tous les scripts de rebuild de l’image sdcard. On va pouvoir se concentrer sur ce bug.

https://github.com/Sylvain303/install_script/tree/master/build_arm_image

À suivre.


Metronome error still not explored.

I updated the github with all step scripts to rebuild an img for sdcard for raspbian from scratch:

Enjoy!

Sylvain.

@darkbeer42 après le post install le problème semble disparu pour moi.

Peux-tu vérifier?


After post-install everything is working for me

admin@raspberrypi:~ $ sudo systemctl status metronome
● metronome.service - LSB: Metronome XMPP Server
   Loaded: loaded (/etc/init.d/metronome)
   Active: active (running) since mar. 2015-12-22 14:47:17 CET; 27min ago
  Process: 5217 ExecStop=/etc/init.d/metronome stop (code=exited, status=0/SUCCESS)
  Process: 5223 ExecStart=/etc/init.d/metronome start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/metronome.service
           └─5235 lua5.1 /usr/bin/metronome

déc. 22 14:47:17 raspberrypi metronome[5223]: Starting Metronome XMPP Serve....
déc. 22 14:47:17 raspberrypi systemd[1]: Started LSB: Metronome XMPP Server.
Hint: Some lines were ellipsized, use -l to show in full.

We have to test an XMPP connection be sure.

I think it should be related to missing hostname configuration or something may be.
No more problem after a reboot.

Is it the expected behavior?

Sylvain.

Hello,

I’ve just installed the image on a SDcard, proceed post-installation setup, but couldn’t connect on the RPI because of bad password.
The identifiers to use are :
login: admin
password: the one entered in the web interface at post-installation

But take care the keyboard layout which is by default in QWERTY… Now, let’s go forward… :slight_smile:

Hi @gnuraph,

Réponse en Français ci-dessous.

Yes default keyboard layout in console is us-qwerty. Is it expected or not? How was behaving previous raspberry image?

May be we could provide help with command to change the layout?

I suppose you’re speaking about the admin login on the console (USB connected keyboard and screen), right?
You can also ssh to the raspberry too, which uses local layout not console keyboard layout.

Useful commands on terminal are (chose your own matching keymap):

sudo apt-get install console-data
# azerty
sudo loadkeys fr
# bépo
sudo install-keymap dvorak-fr-bepo

If someone knows what is the expected behavior at the end of the install of yunohost, please provide info.


French:

Donc sur la console (clavier écran connecté au raspberry) c’est bien par défaut en qwerty us, faut-il forcé une autre layout ou aider au choix ?

Par ssh, ça utilise la layout (disposition clavier) de votre ordinateur local.

J’ai mis ci-dessus des commandes pour la gestion de la layout en console pour indice, veuillez vous renseigner sur les usages, ou bien ouvrez un topic sur la gestion des layout et poser un lien ici. Mais ça sort de l’usage de l’image raspberry et tombe dans l’utilisation normal d’un système debian.

Maintenant, concernant l’image raspberry, est-elle différente des images précédentes au niveau du clavier ?

Sylvain.