tag:blogger.com,1999:blog-25462135278543149132024-03-13T22:46:12.428+01:00Noeud Bitcoin sur RaspBerry Pi - Orange Pi Plus 2e - Bitcoin Full NodeConfiguration d'un noeud bitcoin sur raspberry pi et orange pi. Bitcoin Full node configuration on raspberry pi. ungaro59http://www.blogger.com/profile/00244263167814565609noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-2546213527854314913.post-86454510600330786182019-11-30T19:59:00.000+01:002020-04-20T20:49:25.631+02:00Configuration d'un noeud Bitcoin sur RaspBerry pi 4<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQnxsiZt1S2vT_tX3DIXIUQXMnrsb0Ncbt7MM-gsDCdoQbCWBU30QB-1PyRKmpIkLA9ZKhLKanALiIuwVJxe0uTwLEjFjQYMekb-BNzv60CV8enfZUTgok298PQL2LCWwgt32H7cRTHja0/s1600/2019-11-20+20_01_55-Window.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="293" data-original-width="405" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQnxsiZt1S2vT_tX3DIXIUQXMnrsb0Ncbt7MM-gsDCdoQbCWBU30QB-1PyRKmpIkLA9ZKhLKanALiIuwVJxe0uTwLEjFjQYMekb-BNzv60CV8enfZUTgok298PQL2LCWwgt32H7cRTHja0/s320/2019-11-20+20_01_55-Window.png" width="320" /></a></div>
<h3 style="text-align: left;">
<span style="font-weight: bold;">AVANT-PROPOS</span></h3>
<h4>
</h4>
<div style="text-align: left;">
<span style="font-size: small;">Ce tutoriel permet de configurer le
client Bitcoin Core v0.18 (ou une version ultérieure) sur un nano
ordinateur RaspBerry 4 avec une mémoire de 2Go ou plus. Un client Bitcoin sera aussi configuré. La Blockchain
sera stockée sur un disque dur externe 2,5" relié sur un port USB du raspberry.
C'est le meilleur compromis car le client bitcoin travaille sans
arrêt sur le disque. Il faut donc éviter les cartes SD ou Clés USB qui
sont limitées dans le nombre d’écritures possibles, elles seraient vite
hors d'usage. Le nano ordinateur comportant 2Go de
mémoire, toutes les options par défaut du bitcoin-core pourront être
conservées. On
s’intéressera aussi au coût à l'année que représente l'utilisation d'un
tel dispositif qui devra fonctionner en permanence sur le réseau.</span><br />
<br /></div>
<div style="text-align: left;">
<h3 style="text-align: left;">
E<span style="font-weight: bold;">QUIPEMENTS NÉCESSAIRES POUR L'INSTALLATION :</span></h3>
<ul class="font_8" style="text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWR_U75_fuPHUisX1KBqg0bNql6x5k8FJk4r_HMnDNziZ3NyzeiO1xKJTrVSEdQIP8AC7XJW36MLmwAJtB_uzzzZEWLgENfAgtWO_JcPBuXeeLrwKUP_z-sViyYc6yJbQnVF54jGftn9V1/s1600/2019-11-20+20_07_03-Window.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="167" data-original-width="273" height="121" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWR_U75_fuPHUisX1KBqg0bNql6x5k8FJk4r_HMnDNziZ3NyzeiO1xKJTrVSEdQIP8AC7XJW36MLmwAJtB_uzzzZEWLgENfAgtWO_JcPBuXeeLrwKUP_z-sViyYc6yJbQnVF54jGftn9V1/s200/2019-11-20+20_07_03-Window.png" width="200" /></a>
<li><span style="font-size: 13px;">Un Rapsberry 4 (chez <a href="https://www.amazon.fr/Raspberry-ARM-Cortex-A72-WLAN-AC-Bluetooth-Micro-HDMI/dp/B07TD42S27/ref=sr_1_5?keywords=raspberry+pi+4&qid=1574277849&sr=8-5" target="_blank">Amazon pour 54€</a>) </span>
</li>
<li><span style="font-size: 13px;">Un boitier de protection</span></li>
<li><span style="font-size: 13px;">Une bonne alimentation 3A en USB-C</span><a href="https://www.amazon.fr/Aukru-Chargeur-Interrupteur-Alimentation-Raspberry/dp/B07VMXHJ4Q/ref=sr_1_1_sspa?__mk_fr_FR=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=2B4DP76E5OVU3&keywords=alimentation+raspberry+pi+4&qid=1575125664&sprefix=alimentation+rasp%2Caps%2C136&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUE0RzJaMUxRQUxCSjUmZW5jcnlwdGVkSWQ9QTA0ODA1OTFPSjY1VElZTjI3NlcmZW5jcnlwdGVkQWRJZD1BMTAxODQxODM2QTBOTERDOUdEMyZ3aWRnZXROYW1lPXNwX2F0ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU=" target="_blank"> <span style="font-size: x-small;">(Alimentation 3A pour raspberry)</span></a></li>
<li><span style="font-size: 13px;">Un disque dur externe 2,5" USB de
320Go (la blockchain représente environ 270go à ce jour 11/2019). Un
disque dur externe 3,5" est possible avec une
alimentation externe. Pour ma part, j'utilise un disque 2,5" récupéré
dans un passeport western digital qui consomme peu (550ma contre 800ma
pour les plus courants) : </span><br /><h4>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhanF0DzGY3SKg4gZtIaVJcSkZBRDckjM46vlPVEK9_ieudwUgJE6B29lRxLSmAUc6q_lulYzq4q0wmYfbVtbtcgEALlBniCIiZV7_Dy15qzfeJDX1soGqPHuQl85dh_0xEQOlLBOQZCgyx/s1600/2019-11-20+20_28_10-Window.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="326" data-original-width="230" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhanF0DzGY3SKg4gZtIaVJcSkZBRDckjM46vlPVEK9_ieudwUgJE6B29lRxLSmAUc6q_lulYzq4q0wmYfbVtbtcgEALlBniCIiZV7_Dy15qzfeJDX1soGqPHuQl85dh_0xEQOlLBOQZCgyx/s200/2019-11-20+20_28_10-Window.png" width="140" /></a><span style="font-weight: normal;"></span><span style="font-size: 13px;"> </span></h4>
<span style="font-size: 13px;"></span></li>
</ul>
</div>
<div style="text-align: left;">
</div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-size: 13px;"><br /></span>
<br />
<br />
<span style="font-size: 13px;"></span><br />
<ul class="font_8" style="text-align: left;">
<li><span style="font-size: 13px;">Un Câble micro HDMI (<a href="https://www.amazon.fr/gp/product/B015GR44CG/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1" target="_blank">Cable Micro Hdmi chez Amazon à 7,99€)</a></span></li>
<li><span style="font-size: 13px;">Un câble USB pour connecter le disque dur.<a href="http://www.cdiscount.com/informatique/cables-connectiques/cable-usb-20-avec-reprise/f-1072003-auc3548381495123.html" target="_blank"><br /></a></span></li>
<li><span style="font-size: 13px;">Un écran avec une entrée HDMI</span></li>
<li><span style="font-size: 13px;">Un clavier USB/souris USB</span></li>
<li><span style="font-size: 13px;">Une box reliée à internet</span></li>
<li><span style="font-size: 13px;">Un câble réseau RJ45.</span></li>
<li><span style="font-size: 13px;">Un PC avec un lecteur de carte SD/microSD. <a href="https://www.amazon.fr/Transcend-TS-RDF5K-Lecteur-cartes-MicroSD/dp/B009D79VH4/ref=sr_1_2?s=computers&ie=UTF8&qid=1463305204&sr=1-2&keywords=lecteur+de+carte+sd" target="_blank">Lecteur de carte SD</a></span></li>
<li><span style="font-size: 13px;">Une carte microSD de 16Go ou plus. </span><a href="https://www.amazon.fr/SanDisk-SDSQUAR-016G-GN6MA-M%C3%A9moire-MicroSDHC-Nouvelle/dp/B073K14CVB/ref=sr_1_5?__mk_fr_FR=%C3%85M%C3%85%C5%BD%C3%95%C3%91&keywords=carte+micro+sd+16go&qid=1574278422&s=electronics&sr=1-5" target="_blank">Carte microSd 16Go</a> </li>
</ul>
<h3 style="text-align: left;">
<span style="font-weight: bold;"> </span></h3>
<h3 style="text-align: left;">
<span style="font-weight: bold;">INSTALLATION :</span><span style="font-weight: normal;"> </span></h3>
<div style="text-align: left;">
<div style="text-align: left;">
<span style="font-size: small; font-weight: normal;">Avant toutes choses, sur votre PC, formatez le disque dur USB en système de fichiers <b>NTFS </b>et donnez lui le nom de volume (Label) : <b>FullNode</b>. En formatant le disque en NTFS, vous pourrez
éventuellement récupérer facilement la blockchain pour la copier sur un
pc windows par exemple et démarrer rapidement un client bitcoin sur
celui-ci.</span></div>
<br />
<span style="font-weight: normal;">Récupérez la dernière image (.img) en date pour installer le système Raspbian, déclinaison de linux, sur la carte microSD</span><span style="font-weight: normal;">. </span></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="font-weight: normal;">La dernière version de l'image système pour le raspberry se trouve ici :</span></div>
<div style="text-align: left;">
<a href="https://www.raspberrypi.org/downloads/raspbian/" target="_blank"><span style="font-weight: normal;">https://www.raspberrypi.org/downloads/raspbian/</span></a></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="font-weight: normal;">Prendre la version "</span>Raspbian Buster with desktop and recommended software"<span style="font-weight: normal;"></span><span style="font-weight: normal;"> (c'est un fichier compressé en zip qui contient l'image .img à utiliser) :</span></div>
<div style="text-align: left;">
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-weight: normal;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvnYrwQdf1XWBAs9fKeEyk-DzOR56EJgl5xpuJtHciLCy2SKp6wzJSq0kWww6Xrfe4ZUFJGO5e1tG-sUIiCK0sQ1UKidZzqvM35ZXyYvSYhgw217Css6P2pfCUh-GGfgWn4DR2Vb4fiagK/s1600/2019-11-20+20_40_09-Window.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="272" data-original-width="445" height="195" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvnYrwQdf1XWBAs9fKeEyk-DzOR56EJgl5xpuJtHciLCy2SKp6wzJSq0kWww6Xrfe4ZUFJGO5e1tG-sUIiCK0sQ1UKidZzqvM35ZXyYvSYhgw217Css6P2pfCUh-GGfgWn4DR2Vb4fiagK/s320/2019-11-20+20_40_09-Window.png" width="320" /></a></span></div>
<span style="font-weight: normal;">
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: left;">
<div style="text-align: left;">
<span style="font-weight: normal;">Extraire l'image .img contenue dans
le fichier téléchargé dans un dossier de votre choix (vous pouvez
utiliser Winrar ou 7zip téléchargeable ici : <a href="http://www.7-zip.org/" target="_blank">http://www.7-zip.org/</a>)</span></div>
<br />
<div style="text-align: left;">
<span style="font-weight: normal;">Téléchargez et installez sur votre pc
l'utilitaire "<b>Win32DiskImager</b>" qui va permettre d’écrire l'image (.img) que vous venez de récupérer
sur la carte microSD : <a href="https://sourceforge.net/projects/win32diskimager/" target="_blank">https://sourceforge.net/projects/win32diskimager/</a></span></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="font-weight: normal;">Insérez la carte micro sd dans votre lecteur de cartes, lancer </span><span style="font-weight: normal;"><span style="font-weight: normal;">Win32DiskImager</span> puis sélectionnez l'image .img téléchargée, le lecteur où se trouve la carte sd et cliquez sur Write : </span></div>
<div style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs4mTgwKgxJRU-TDRvnWv0QI1urLc6ZR8JCppJmYdkU8yHgOq7fiIDt7-yI618CSobiPG6PolyrT9WgWdEUQTgdV7Z8dYbUc5pQ8Kamj14ClSKYTKP6GlSx79jnenEYPC5kG8q9meyXCt-/s1600/2019-11-20+20_50_48-Window.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="326" data-original-width="477" height="218" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs4mTgwKgxJRU-TDRvnWv0QI1urLc6ZR8JCppJmYdkU8yHgOq7fiIDt7-yI618CSobiPG6PolyrT9WgWdEUQTgdV7Z8dYbUc5pQ8Kamj14ClSKYTKP6GlSx79jnenEYPC5kG8q9meyXCt-/s320/2019-11-20+20_50_48-Window.png" width="320" /></a></div>
<div class="" style="clear: both; text-align: center;">
<span style="font-size: xx-small;"><span style="font-family: inherit;"> Le processus d'écriture prend quelques minutes</span></span></div>
<br />
<div class="" style="clear: both; text-align: left;">
</div>
<div class="" style="clear: both; text-align: left;">
</div>
<div class="" style="clear: both; text-align: left;">
Une fois l’écriture terminée, créer un fichier appelé <b>ssh </b>(sans extension) dans la racine de la carte sd.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFylBSOEgeI8INEMA9fZZY2yO16hhKFw3yD0WOGVknj62YRCunO28_TNdzDUAlENz8ai8d1adOOtH0PARayTJ7ZYpTniSBKbLUr1RDw_bw49ruhRs3hrP7WoP6fX6J9E-3IXP-wf38rTTy/s1600/2019-11-20+21_11_33-Window.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="421" data-original-width="603" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFylBSOEgeI8INEMA9fZZY2yO16hhKFw3yD0WOGVknj62YRCunO28_TNdzDUAlENz8ai8d1adOOtH0PARayTJ7ZYpTniSBKbLUr1RDw_bw49ruhRs3hrP7WoP6fX6J9E-3IXP-wf38rTTy/s320/2019-11-20+21_11_33-Window.png" width="320" /></a></div>
<div class="" style="clear: both; text-align: left;">
<br />
<span style="font-size: x-small;"><span style="font-family: inherit;"><span style="font-weight: normal;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"></span></span></span></span></span></span></span></span></div>
<br />
<h3 style="text-align: left;">
CONFIGURATION du Raspberry :</h3>
<h3 style="text-align: left;">
</h3>
<div style="text-align: left;">
<div style="text-align: left;">
<span style="font-weight: normal;"><span style="font-size: small;"><span style="font-family: inherit;"><span style="font-weight: normal;"><span style="font-family: inherit;">Insérer</span> la carte microSD dans le logement sd<span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;">, bra<span style="font-family: inherit;">nchez le <span style="font-family: inherit;">câble</span> micro HDMI sur la sortie hdmi 0<span style="font-family: inherit;">,</span> <span style="font-family: inherit;">câble</span> réseau ainsi que souris et clavier et disque dur externe au port(s)</span></span></span></span></span></span><span style="font-family: inherit;"><span style="font-weight: normal;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-weight: normal;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"> USB.</span></span></span></span></span></span></span> A</span></span></span><span style="font-family: inherit;">limentez le raspberry<span style="font-family: inherit;"> avec le <span style="font-family: inherit;">câble</span> d'ali<span style="font-family: inherit;">mentation. Attendre le démarrage..</span></span></span></span></span></span></span></span> </span></div>
</div>
<div style="text-align: left;">
<br />
<span style="font-weight: normal;">Au premier démarrage, le raspberry pi s'auto configure</span>, répondez aux différentes questions, donnez un mot de passe personnel au compte pi, acceptez la mise à jour du système :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifMoL9SEQpafV6mY7y-sfjJJTxpJFHq0jVPTd9v5XQ2iqRRZdyea_2J8HTdX9RCtu3Ehs2YTisyPRTH5_helm08UW98VsJ4G9YghQotnkZydHpzHyH5LYS3AQWofdqsbzUuGjVAyzZ-2B6/s1600/20191129_190059.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifMoL9SEQpafV6mY7y-sfjJJTxpJFHq0jVPTd9v5XQ2iqRRZdyea_2J8HTdX9RCtu3Ehs2YTisyPRTH5_helm08UW98VsJ4G9YghQotnkZydHpzHyH5LYS3AQWofdqsbzUuGjVAyzZ-2B6/s320/20191129_190059.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWLisG2Ce7I827lWnsDf3zWx-npdTBlFtDuEC8vET1skNUvfAZhzo3PoIjL2q2CAZ0u01IdbR6wma-UFYizHWrt3vdAfVjdmJuB3LrMjIbIvYrUJIViKjwqLcp78WEWkXz_3Q-CdZ8k4jq/s1600/20191129_190157.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWLisG2Ce7I827lWnsDf3zWx-npdTBlFtDuEC8vET1skNUvfAZhzo3PoIjL2q2CAZ0u01IdbR6wma-UFYizHWrt3vdAfVjdmJuB3LrMjIbIvYrUJIViKjwqLcp78WEWkXz_3Q-CdZ8k4jq/s320/20191129_190157.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
A la fin des questions, Redémarrez le raspberry :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQGNIUQ8zwzDZPSIBybSnvDqaGfMuM6jt5xklwMCISjxufTMXMqHqIkCeMwb7QkCcDBT5vws6SEspl6IAzbyJ2LSUhwjKbli01EtEif7a2LbL3212HsY3txv-In5uUhyphenhyphenQ61A-rcWRYlKIk/s1600/2019-11-30+15_44_59-20191129_190336.jpg+%25E2%2580%258E-+Photos.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="320" data-original-width="480" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQGNIUQ8zwzDZPSIBybSnvDqaGfMuM6jt5xklwMCISjxufTMXMqHqIkCeMwb7QkCcDBT5vws6SEspl6IAzbyJ2LSUhwjKbli01EtEif7a2LbL3212HsY3txv-In5uUhyphenhyphenQ61A-rcWRYlKIk/s320/2019-11-30+15_44_59-20191129_190336.jpg+%25E2%2580%258E-+Photos.png" width="320" /></a></div>
<br />
Après ce redémarrage, allez dans le menu "préférences", puis "configuration du raspberry", activez <b>SSH et VNC</b> :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_EEZHu-iJ65YOBvs3r5LwzkI0Bre7DLMBdQhgKFQj6zbzBZh3gPKVOurz-ifydMq5naCg3IeTn-GYcmggp3CMRFJr5HegSjUW64mQz_WagQuKKC5twyhnBUT45o-0jNiPfPW7v_cBX4L0/s1600/20191129_191527.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_EEZHu-iJ65YOBvs3r5LwzkI0Bre7DLMBdQhgKFQj6zbzBZh3gPKVOurz-ifydMq5naCg3IeTn-GYcmggp3CMRFJr5HegSjUW64mQz_WagQuKKC5twyhnBUT45o-0jNiPfPW7v_cBX4L0/s400/20191129_191527.jpg" width="400" /></a></div>
<br />
Configurer VNC Server sur le raspberry. Pour cela, allez sur la page de téléchargement :<br />
<a href="https://www.realvnc.com/fr/connect/download/vnc/" target="_blank">https://www.realvnc.com/fr/connect/download/vnc/</a><br />
Télécharger la dernière version de vnc server, cliquez sur "Raspberry pi" dans la fenêtre qui s'affiche, puis sur le bouton "Télécharger VNC Server 6.6.0" :<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0qs7NNkRKSog7I3qkLg95jmihpySAK1q5_NF2OZ1D2K_Nrwi5MtgzRSveWHnYFOIleLQ9bqKoUOaY1aDk57etwESXDuJ4Gdd-XCbJjGnB9eApWfDg0AD5JylxvDuRBEwYAGDshUKIoZBg/s1600/20191129_192610.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0qs7NNkRKSog7I3qkLg95jmihpySAK1q5_NF2OZ1D2K_Nrwi5MtgzRSveWHnYFOIleLQ9bqKoUOaY1aDk57etwESXDuJ4Gdd-XCbJjGnB9eApWfDg0AD5JylxvDuRBEwYAGDshUKIoZBg/s400/20191129_192610.jpg" width="400" /></a></div>
<br />
Lorsque le téléchargement est terminé, installez le package debian puis rebootez le raspberry :<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7I_UJmIdmTjmJCke4EoJr1QCgNboEwfzoYqMwQFz92rToC8BWCC1qss0WaOsGh1hhL7UEEfeho2ikGdrKMfA6D-dJB5E1JDmcwTl-u9bgbOKUg36W9EzNVEQitK0QvbHVNjUYQHZqZTIM/s1600/20191129_192645.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7I_UJmIdmTjmJCke4EoJr1QCgNboEwfzoYqMwQFz92rToC8BWCC1qss0WaOsGh1hhL7UEEfeho2ikGdrKMfA6D-dJB5E1JDmcwTl-u9bgbOKUg36W9EzNVEQitK0QvbHVNjUYQHZqZTIM/s400/20191129_192645.jpg" width="400" /></a></div>
<br />
Après le reboot, cliquez sur l'icone VNC en haut à droite de l’écran, puis dans la fenêtre qui s'ouvre, cliquez sur les 3 traits et sélectionnez le menu "Options". <u><b>Notez l'adresse IP</b></u> de votre raspberry qui s'affiche (ici 192.168.1.44) :<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG8HEOvVwxZ8qCBo5GvKeWgCfj-ZX-hYH6ptXV2F46mlE-LNuz3Vx_q2Jup3aWhtvgsGbmjVDqIU8A5Ij8y1a6Av4oplkc8XbmfA-cCA_T5RcLpGgiiGKFcnqSb79H50x9WI6bBJCvVC3p/s1600/20191129_193921.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG8HEOvVwxZ8qCBo5GvKeWgCfj-ZX-hYH6ptXV2F46mlE-LNuz3Vx_q2Jup3aWhtvgsGbmjVDqIU8A5Ij8y1a6Av4oplkc8XbmfA-cCA_T5RcLpGgiiGKFcnqSb79H50x9WI6bBJCvVC3p/s400/20191129_193921.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Dans le menu "sécurité", sur la droite, sélectionnez "Mot de passe VNC" dans le combo "Authentification". Spécifiez alors un mot de passe personnel sur 8 caractères :<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQkkDqMjM7W9Yq7Tj9fsGlCJ_zC_Q1_D94lEBX5Qk950CGusdAHKi7m9ftDO6GHRqzOCWaLaoOhUWW1Q_78kQ9lR-ydUhFzjJ5_kEc_fbuHBNx3wBZaCFgog2pUaTKT8cdHhlkx8LmKSMF/s1600/20191129_193902.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQkkDqMjM7W9Yq7Tj9fsGlCJ_zC_Q1_D94lEBX5Qk950CGusdAHKi7m9ftDO6GHRqzOCWaLaoOhUWW1Q_78kQ9lR-ydUhFzjJ5_kEc_fbuHBNx3wBZaCFgog2pUaTKT8cdHhlkx8LmKSMF/s400/20191129_193902.jpg" width="400" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
Vous pouvez alors télécharger, depuis votre plateforme personnelle windows ou autre, l'application VNC viewer ici : <a href="https://www.realvnc.com/fr/connect/download/viewer/" target="_blank">https://www.realvnc.com/fr/connect/download/viewer/</a> elle vous permettra de vous connecter à votre raspberry avec son adresse ip pour poursuivre l'installation facilement. Connectez vous avec VNC viewer avec votre adresse IP :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAV9YGgYSCMCX_qqlAXszJoY6HI876kz9kGq9bGMrB911dkSyaBvqpXFcrbxXLIiT7zGdMvCQqUXcEH2CubhW9kAY-rjWnueYC38Qkq4X-Y5vTWKdyU7g-E9pss_aQYHB0sAy9VelXA-mY/s1600/2019-11-29+20_17_48-VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="101" data-original-width="386" height="83" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAV9YGgYSCMCX_qqlAXszJoY6HI876kz9kGq9bGMrB911dkSyaBvqpXFcrbxXLIiT7zGdMvCQqUXcEH2CubhW9kAY-rjWnueYC38Qkq4X-Y5vTWKdyU7g-E9pss_aQYHB0sAy9VelXA-mY/s320/2019-11-29+20_17_48-VNC+Viewer.png" width="320" /></a></div>
Lancer une fenêtre terminal :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSQFrOAXUtTd4Q-Er8dCqPNHH2JNuTQcRDc3pSzAYTgmofLBMXurTgA_9cBX3ZBFYRPprpsdU55ZCFAvxWn0drqTtlBLgxhWl9tHOwWEwIpoMLNiCOmgtQIJJilob-M4rV9112GLJOSQZq/s1600/2019-11-29+19_58_57-pierre059.ddns.net_5900+%2528raspberrypi%2529+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="265" data-original-width="341" height="248" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSQFrOAXUtTd4Q-Er8dCqPNHH2JNuTQcRDc3pSzAYTgmofLBMXurTgA_9cBX3ZBFYRPprpsdU55ZCFAvxWn0drqTtlBLgxhWl9tHOwWEwIpoMLNiCOmgtQIJJilob-M4rV9112GLJOSQZq/s320/2019-11-29+19_58_57-pierre059.ddns.net_5900+%2528raspberrypi%2529+-+VNC+Viewer.png" width="320" /></a></div>
<br />
<span style="font-weight: normal;">Si vous n'avez pas effectué la mise à jour système au premier démarrage du raspberry, on commencera donc par la mise à jour de l'os raspbian (environ 15mn). Cette mise à jour peut être répétée régulièrement pour mettre à jour le système raspbian :<span style="font-size: x-small;"><b><code></code></b></span> <span style="font-size: x-small;"><code></code></span></span><br />
<div style="text-align: left;">
<br />
<span style="font-weight: normal;"> <span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;"><code></code></span></span></span></span></code><b><code><span style="color: white;"><span style="background-color: black;">sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade</span></span></code></b></span>
</span></div>
<div style="text-align: left;">
</div>
<br />
Redémarrez le raspberry : <span style="font-size: small;"><b><code><span style="color: white;"><span style="background-color: black;">sudo reboot</span></span></code></b></span><br />
<br />
** <i>Installation des paquets et bibliothèques nécessaires pour le lancement du bitcoin-core :</i><br />
<span style="background-color: black;"><span style="color: white;">sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils</span></span><span style="background-color: black;"><span style="color: white;">
libboost-system-dev libboost-filesystem-dev libboost-chrono-dev
libboost-program-options-dev libboost-test-dev libboost-thread-dev
libzmq3-dev</span></span><br />
<br />
** <i>Installation de QT5 graphique pour bitcoin-core client :</i><br />
<span style="background-color: black;"><span style="color: white;">sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler</span></span><br />
<br />
** <i>Récupération, compilation et Installation de BerkeleyDB 4.8 utilisé pour le Wallet bitcoin :</i><br />
<span style="background-color: black;"><span style="color: white;">mkdir ~/bin<br />cd ~/bin<br />wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz<br /><br />tar -xzvf db-4.8.30.NC.tar.gz<br />cd db-4.8.30.NC/build_unix/<br />../dist/configure --enable-cxx<br />make -j4<br />sudo make install</span></span> <br />
<span style="background-color: black;"><span style="color: white;">cd ..</span></span><br />
<br />
<span style="background-color: white;"><span style="color: white;"><span style="color: white;"> </span></span></span><span style="background-color: black;"><span style="color: white;"><span style="background-color: white;"><span style="color: black;">** <i>Récupération des sources de la dernière version du bitcoin core
0.19 et génération (pour mettre à jour en version ultérieure 0.19.1, il
suffit de répéter cette opération en précisant toujours -b 0.19 qui
permet de cibler la branche des versions 0.19.1 et versions
ultérieures).</i></span></span><br />
<span style="background-color: black;"><span style="color: white;">git clone -b 0.19 https://github.com/bitcoin/bitcoin.git<br />cd bitcoin/<br />./autogen.sh </span></span><br />
<br />
** <i>Vérification des sources bitcoin :</i><br />
<span style="background-color: black;"><span style="color: white;">./configure
CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2"
LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" --enable-upnp-default
--with-gui</span></span><br />
<span style="background-color: black;"><span style="color: white;"></span></span><br />
<span style="background-color: black;"><span style="color: white;"><span style="color: black;"><span style="background-color: white;">** <i>Compilation des sources. </i></span><span style="background-color: white;"><i>cette étape est très longue, environ 2h30 :</i></span></span></span></span><br />
<span style="background-color: black;"><span style="color: white;"><span style="color: black;"><span style="background-color: white;"></span></span></span></span>
<span style="background-color: black;"><span style="color: white;">sudo make -j2<br />sudo make install</span></span><br />
<br />
<span style="font-size: small;"><span style="color: black;"><span style="background-color: white;">A ce stade, je vous conseill<code></code>e <code></code>de
désactiver le wifi (en haut à droite de l’écran) et de n'utiliser qu'un câble réseau via le port Ethernet RJ45 pour
relier le nœud à votre réseau. Le nœud bitcoin sera ainsi plus fiable et consommera
moins si vous passez par un câble réseau
relié à votre box. A vous de voir..</span></span></span></span></span><br />
<span style="font-size: small;"><br /></span>
<span style="font-size: small;">Nous allons créer un raccourci sur le
bureau pour lancer le client bitcoin core. Pour cela, faire clic droit sur le
bureau, puis "Créer un nouveau ficher" , "Fichier Vide"</span><br />
<span style="font-size: small;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim3ZAkoyauc749U6bV3qaue4cEmUr8HVYFHsu-27Pv5PysCteRDkIKLtcpolDP5jN6CzHitEozB320z7d9-1zKyH6h0TugO4Cjp5kMVuIgjv2MHELzjC0O2uttsATPVteIWX66J6eCJTHJ/s1600/2019-11-30+17_23_00-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="295" data-original-width="468" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim3ZAkoyauc749U6bV3qaue4cEmUr8HVYFHsu-27Pv5PysCteRDkIKLtcpolDP5jN6CzHitEozB320z7d9-1zKyH6h0TugO4Cjp5kMVuIgjv2MHELzjC0O2uttsATPVteIWX66J6eCJTHJ/s400/2019-11-30+17_23_00-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" width="400" /></a></div>
<span style="font-size: small;"><br /></span>
<span style="font-size: small;"> Appelez le nouveau fichier "<b>Bitcoin.desktop</b>" et collez y le texte suivant, et enregistrez le :</span><br />
<br />
<span style="font-size: small;">[Desktop Entry]<br />Type=Application<br />Name=Bitcoin Core<br />Comment=Lancer Bitcoin Core<br />Icon=/home/pi/bin/bitcoin/share/pixmaps/bitcoin256.png<br />Exec=/home/pi/bin/bitcoin/src/qt/bitcoin-qt -datadir=/media/pi/FullNode<br />Terminal=false<br />Categories=scripts<br />Comment[fr_FR]=Bitcoin Core</span><br />
<span style="font-size: small;"><br /></span>
<br />
<span style="font-size: small;">Vous obtiendrez un icone comme celui-ci :</span><br />
<span style="font-size: small;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfcyONTxGowKQEQiU9k-QVS4qm-drFUk_a2yWpNYmsWLG6i2SAklvKGwpHJOunb9x72NLEDT9MMkEdE-8HGzAUZQUEhU0DZK_ocW4IiCw4rxyLd5rTSzSPCFuBZMU_PtyfwqOWc2DbhhGy/s1600/2019-11-30+17_25_02-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="116" data-original-width="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfcyONTxGowKQEQiU9k-QVS4qm-drFUk_a2yWpNYmsWLG6i2SAklvKGwpHJOunb9x72NLEDT9MMkEdE-8HGzAUZQUEhU0DZK_ocW4IiCw4rxyLd5rTSzSPCFuBZMU_PtyfwqOWc2DbhhGy/s1600/2019-11-30+17_25_02-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" /></a></div>
<span style="font-size: small;"><br /></span>
<span style="font-size: small;">Vérifiez que votre disque dur est bien connecté au raspberry pi via un port USB.</span><br />
<span style="font-size: small;">Pour lancer le client Bitcoin, cliquer sur cet icone puis "Exécuter" :</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcSF9brSm3qvySKibRgqEFxJzjHomg_m9WtydQjKNIZfEgcPSEv1NRfBzkCDaB5W0KkGGxSqqTqWL6CpcWGupl49765dfuOCsbd2o1mmA7i5QVQknVVnxQLXdgeWSPwiwJSVWIgitk0nBG/s1600/2019-11-30+17_26_59-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="320" data-original-width="913" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcSF9brSm3qvySKibRgqEFxJzjHomg_m9WtydQjKNIZfEgcPSEv1NRfBzkCDaB5W0KkGGxSqqTqWL6CpcWGupl49765dfuOCsbd2o1mmA7i5QVQknVVnxQLXdgeWSPwiwJSVWIgitk0nBG/s640/2019-11-30+17_26_59-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" width="640" /></a></div>
<br />
<span style="font-size: small;"><span style="background-color: white;">Le
client commence alors à se synchroniser avec le réseau et récupère la
blockchain. Avec la version 0.19, la synchronisation prend environ 48h pour récupérer la totalité de la blockchain et selon la rapidité de votre connexion à internet. </span></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<code>Dans le menu "A<span style="font-size: x-small;">i</span>de" du client bitcoin, cliquez sur "Fenêtre", puis "information" pour afficher l'état des connexions en cours :</code></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<code><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg37jOmFOqEjzEVFp6Ztpdss9CkldPtjY8kRbdgiEkJ3q7ZoBxHQ5nW0Rnreo4G6FDKbNEW76WpZzdacBWL8w0_oj9cQfBSHaurKXnEa-qk8zVrjsfr1uUwqk4h1dPs72MfbTdsfrGWlAsb/s1600/2019-11-30+18_16_17-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="892" data-original-width="1541" height="369" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg37jOmFOqEjzEVFp6Ztpdss9CkldPtjY8kRbdgiEkJ3q7ZoBxHQ5nW0Rnreo4G6FDKbNEW76WpZzdacBWL8w0_oj9cQfBSHaurKXnEa-qk8zVrjsfr1uUwqk4h1dPs72MfbTdsfrGWlAsb/s640/2019-11-30+18_16_17-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" width="640" /></a></code></div>
<code>
</code>
<br />
<div class="separator" style="clear: both; text-align: center;">
<code><br /></code></div>
<code>
</code>
Pour vérifier que votre noeud bitcoin est bien reconnu sur le réseau, rendez-vous sur <a href="https://bitnodes.21.co/" target="_blank">https://bitnodes.earn.com/</a><br />
<br />
Entrez votre adresse ip publique et cliquez sur "Check Node". Si votre noeud est opérationnel, il doit apparaitre en vert (Il faut auparavant avoir ouvert le port 8333 sur votre box) : <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzdVmz-DwWHxnF_D0r76gTBQX2ZLKHBoJHShjBGmZ-oy6zTO9HdMO3iPSzxkgeh3LweCrw7rLJ__ouBwFqENozuLqCcGJaY5gNY6ZLuhSzjo4Lpood5rIYqqb0WiPVLttt3I3aPDrWwiuX/s1600/2019-11-30+19_56_13-Global+Bitcoin+Nodes+Distribution+-+Bitnodes.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="225" data-original-width="813" height="110" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzdVmz-DwWHxnF_D0r76gTBQX2ZLKHBoJHShjBGmZ-oy6zTO9HdMO3iPSzxkgeh3LweCrw7rLJ__ouBwFqENozuLqCcGJaY5gNY6ZLuhSzjo4Lpood5rIYqqb0WiPVLttt3I3aPDrWwiuX/s400/2019-11-30+19_56_13-Global+Bitcoin+Nodes+Distribution+-+Bitnodes.png" width="400" /></a></div>
<br />
Pour surveiller le client bitcoin, on va créer un fichier appelé <b>surveillance.sh </b>:<br />
<br />
<span style="color: white;"><span style="background-color: black;">nano surveillance.sh</span></span><br />
<br />
<div style="text-align: left;">
C<span style="font-size: x-small;">opier le texte ci-dessous, puis collez le dans le fichier :</span></div>
<br />
<span style="font-size: small;"><textarea cols="60" name="txt" rows="3" style="height: 168px; width: 632px;" wrap="VIRTUAL">#!/bin/bash
#!/bin/bash
export MALLOC_ARENA_MAX=1
MEMOIRE_MAX=1550
DATADIR="/media/pi/FullNode"
MAXMEMPOOL=300
MAXCONNECTIONS=125
DBCACHE=300
PORT=8333
noir='\e[0;30m'
gris='\e[1;30m'
rougefonce='\e[0;31m'
rose='\e[1;31m'
vertfonce='\e[0;32m'
vertclair='\e[1;32m'
orange='\e[0;33m'
jaune='\e[1;33m'
bleufonce='\e[0;34m'
bleuclair='\e[1;34m'
violetfonce='\e[0;35m'
violetclair='\e[1;35m'
cyanfonce='\e[0;36m'
cyanclair='\e[1;36m'
grisclair='\e[0;37m'
blanc='\e[1;37m'
neutre='\e[0;m'
#if [ -e /home/pi/log_memoire.log ]
# then
# rm log_memoire.log
#fi
while :
do
clear
echo "Date : " $(date)
upSeconds=$(/usr/bin/cut -d. -f1 /proc/uptime)
secs=$((${upSeconds}%60))
mins=$((${upSeconds}/60%60))
hours=$((${upSeconds}/3600%24))
days=$((${upSeconds}/86400))
temps_fonctionnement=$(printf "%d jour(s) %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs")
upBitcoinQT=$(ps -e -o comm,etimes | grep bitcoin-qt | awk ' {print $2} ')
if [ -z $upBitcoinQT ]
then
duree_bitcoinQT_up="(ne tournait pas)"
else
secs=$((${upBitcoinQT}%60))
mins=$((${upBitcoinQT}/60%60))
hours=$((${upBitcoinQT}/3600%24))
days=$((${upBitcoinQT}/86400))
duree_bitcoinQT_up=$(printf "%d jour(s) %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs")
fi
memoire_utilisee=$(free -m | grep Mem | cut -d: -f 2 | cut -c17-30)
#echo $(date) $memoire_utilisee Mo used >>log_memoire.log
#echo "Test memoire utilisee : " $memoire_utilisee
if [ $memoire_utilisee -gt $MEMOIRE_MAX ]
then
pkill -TERM bitcoin-qt
echo Arret processus bitcoin plus de memoire
echo $(date) Arret processus bitcoin qui fonctionnait depuis $duree_bitcoinQT_up, memoire utilisee : $memoire_utilisee >>/home/pi/log_bitcoin.log
while pgrep bitcoin-qt >/dev/null 2>&1
do
sleep 10
done
sleep 10
echo relance processus bitcoin
echo $(date) Relance processus bitcoin-qt >>/home/pi/log_bitcoin.log
/home/pi/bitcoin/src/qt/bitcoin-qt -datadir=$DATADIR #</dev/null >/dev/null 2>&1 &
sleep 10
duree_bitcoinQT_up="10 secondes"
fi
#Recherche du processus bitcoin-qt en memoire. Si absent, on relance le bitcoin-core.
if pgrep bitcoin-qt >/dev/null 2>&1
then
echo "Bitcoin-qt en cours d'execution depuis " $duree_bitcoinQT_up
else
echo "Relance de bitcoin-qt"
echo $(date) "Relance de bitcoin-qt car n'etait plus en memoire" >>/home/pi/log_bitcoin.log
/home/pi/bitcoin/src/qt/bitcoin-qt -datadir=$DATADIR </dev/null >/dev/null 2>&1 &
sleep 10
duree_bitcoinQT_up="10 secondes"
fi
taille_debug=$(ls -l $DATADIR/debug.log| cut -d " " -f5)
if [ $taille_debug -gt 1024000 ]
then
echo 1 > $DATADIR/debug.log
fi
mem_bitcoinQT=$(ps aux | grep bitcoin-qt | grep -v grep | awk 'BEGIN { sum=0 } {sum=sum+$6; } END {printf("%d\n",sum / 1024)}')
memoire=$(free -m)
#echo $memoire
echo "Le RaspBerry 4 fonctionne depuis : " $temps_fonctionnement
echo "Memoire totale " $(echo $memoire | cut -d' ' -f 8)"M"
echo "Memoire utilisee par bitcoin-qt " $mem_bitcoinQT"M"
echo -e ${vertclair}"Memoire utilisee doit être <="$MEMOIRE_MAX"M " $(echo $memoire | cut -d' ' -f 9)"M"${neutre}
echo "Memoire disponible " $(echo $memoire | cut -d' ' -f13)"M"
echo "Taille fichier Log (octets) " $taille_debug
sleep 30
done
</textarea><code> </code></span><br />
<br />
<span style="font-size: small;"><code>Sauvegardez par CTRL-X </code></span><br />
<br />
Rendre le script exécutable :<br />
<br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;">chmod +x surveillance.sh</span></span> </code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code>Pour lancer le script, taper : </code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;">./surveillance.sh</span></span></code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<br />
<span style="font-size: small;"><code>Le script va alors lancer automatiquement le client bitcoin-qt en cas de plantage de celui-ci et surveiller la mémoire.</code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijP2II99y8J2yPakQWl048rgT-izz6U3FUVBHCQu6pjwoazF41Bt5zl6dH_1cMIOSaIGkRgIaoyJGLrqi9NrqGw8ofpxDMD1v41kz-61NGzbcDWJPJpREgiUXsw-9vL5qBoLE0FYt7sXjH/s1600/2019-12-02+18_54_12-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="847" data-original-width="1600" height="338" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijP2II99y8J2yPakQWl048rgT-izz6U3FUVBHCQu6pjwoazF41Bt5zl6dH_1cMIOSaIGkRgIaoyJGLrqi9NrqGw8ofpxDMD1v41kz-61NGzbcDWJPJpREgiUXsw-9vL5qBoLE0FYt7sXjH/s640/2019-12-02+18_54_12-pierre059.ddns.net_5900+%2528raspberrypi4%2529+-+VNC+Viewer.png" width="640" /></a></div>
<span style="font-size: small;"><code><br /></code></span>
<br />
<span style="font-size: small;"><code><br /></code></span>
</div>
<div style="text-align: left;">
</div>
</div>
</div>
ungaro59http://www.blogger.com/profile/00244263167814565609noreply@blogger.com0tag:blogger.com,1999:blog-2546213527854314913.post-21322244088179741552017-01-14T16:35:00.002+01:002018-03-31T17:01:00.955+02:00Limitation de la bande passante du noeud bitcoin (Orange pi)<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh16ny0Qvvq1vbmWRdd_-q7x_8CMqbfozpIgVG2s_4Vg0xDmQF7tWgUR0YcWrHGy_jVVYHgXFVisrIZGd2JSM6C9s0Dz_fF_j92HyMaWbOuygxqO_RYyKZjswMX8use2XzhCUfjHOKuiYv8/s1600/2017-01-14+16_34_18-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh16ny0Qvvq1vbmWRdd_-q7x_8CMqbfozpIgVG2s_4Vg0xDmQF7tWgUR0YcWrHGy_jVVYHgXFVisrIZGd2JSM6C9s0Dz_fF_j92HyMaWbOuygxqO_RYyKZjswMX8use2XzhCUfjHOKuiYv8/s320/2017-01-14+16_34_18-orangepiplus2e_0+-+VNC+Viewer.png" width="320" /></a></div>
<br />
J'ai déniché un petit script en batch unix pour limiter la bande passante du client bitcoin qui est plutôt gourmand si on le laisse faire. Pour info, sans ce script, le noeud bitcoin consomme en moyenne 30-40go par jour pour une bande passante en upload de 10mbit pour moi. J'ai donc limité la bande passante en upload à 2mbit pour limiter la consommation de data à environ 12-14go par jour ce qui est plus raisonnable. Selon la vitesse de votre connexion, vous pourrez adapter la vitesse d'upload. <br />
<br />
<a name='more'></a><br />
<br />
On va donc créer un fichier batch appelé <b>tc2.sh </b>:<br />
<br />
<span style="color: white;"><span style="background-color: black;">nano tc2.sh</span></span><br />
<br />
<div style="text-align: left;">
C<span style="font-size: x-small;">opier le texte ci-dessous, puis collez le dans le fichier (avec Shift-Insert):</span></div>
<br />
<span style="font-size: small;"><textarea cols="60" name="txt" rows="3" style="height: 168px; width: 632px;" wrap="VIRTUAL">#!/bin/bash
#
# tc uses the following units when passed as a parameter.
# kbps: Kilobytes per second
# mbps: Megabytes per second
# kbit: Kilobits per second
# mbit: Megabits per second
# bps: Bytes per second
# Amounts of data can be specified in:
# kb or k: Kilobytes
# mb or m: Megabytes
# mbit: Megabits
# kbit: Kilobits
# To get the byte figure from bits, divide the number by 8 bit
#
#
# Name of the traffic control command.
TC=/sbin/tc
# The network interface we're planning on limiting bandwidth.
IF=eth0 # Interface
# Download limit (in mega bits)
DNLD=3mbit # DOWNLOAD Limit
# Upload limit (in mega bits)
UPLD=2mbit # UPLOAD Limit
# IP address of the machine we are controlling
IP=192.168.1.16 # Host IP
# Filter options for limiting the intended interface.
U32="$TC filter add dev $IF protocol ip parent 1:0 prio 1 u32"
start() {
# We'll use Hierarchical Token Bucket (HTB) to shape bandwidth.
# For detailed configuration options, please consult Linux man
# page.
$TC qdisc add dev $IF root handle 1: htb default 30
$TC class add dev $IF parent 1: classid 1:1 htb rate $DNLD
$TC class add dev $IF parent 1: classid 1:2 htb rate $UPLD
$U32 match ip dst $IP/32 flowid 1:1
$U32 match ip src $IP/32 flowid 1:2
# The first line creates the root qdisc, and the next two lines
# create two child qdisc that are to be used to shape download
# and upload bandwidth.
#
# The 4th and 5th line creates the filter to match the interface.
# The 'dst' IP address is used to limit download speed, and the
# 'src' IP address is used to limit upload speed.
}
stop() {
# Stop the bandwidth shaping.
$TC qdisc del dev $IF root
}
restart() {
# Self-explanatory.
stop
sleep 1
start
}
show() {
# Display status of traffic control status.
$TC -s qdisc ls dev $IF
}
case "$1" in
start)
echo -n "Starting bandwidth shaping: "
start
echo "done"
;;
stop)
echo -n "Stopping bandwidth shaping: "
stop
echo "done"
;;
restart)
echo -n "Restarting bandwidth shaping: "
restart
echo "done"
;;
show)
echo "Bandwidth shaping status for $IF:"
show
echo ""
;;
*)
pwd=$(pwd)
echo "Usage: tc.bash {start|stop|restart|show}"
;;
esac
exit 0
</textarea><code> </code></span><br />
<br />
Vous pouvez bien sur personnaliser ce script avec vos propres valeurs en Upload et Download.<br />
Il suffit de modifier les lignes DNLD= et UPLD= dans le script.<br />
Pour la ligne IP= il faut mettre l'adresse IP que vous avez défini pour votre orange pi.<br />
<br />
<span style="font-size: small;"><code>Sauvegardez par CTRL-X </code></span><br />
<br />
Rendre le script exécutable :<br />
<br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;">chmod +x tc2.sh</span></span> </code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code>Pour lancer le script, et activer la limitation de bande passante, tapez :</code></span><br />
<span style="font-size: small;"><code><br /></code></span><span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;">sudo ./tc2.sh start</span></span></code></span><br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><br /></span></span></code></span>
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><br /></span></span></code></span>
<span style="font-size: small;"><code>Pour lancer le script, et supprimer la limitation de bande passante, tapez :</code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;">sudo ./tc2.sh stop</span></span></code></span><br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><br /></span></span></code></span></div>
ungaro59http://www.blogger.com/profile/00244263167814565609noreply@blogger.com0tag:blogger.com,1999:blog-2546213527854314913.post-76866337409502380822016-10-19T21:45:00.001+02:002018-02-27T21:42:55.331+01:00Watchdog - Script de surveillance de l'état du client bitcoin - orange pi<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIdy6eNYwVEfKSmFnItyn9bNHi7-zp5BAFvnMYwcIDiZxgTHyWjqNR4g0PJZbENHBo7FNEQFUMK_jnd7tDKJMEWMtKsZYIEdw_7kismqxqt5X2qeQrCxGhw7GUy2PtrQezm_4hkd-J3u3b/s1600/2016-10-19+21_29_34-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="226" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIdy6eNYwVEfKSmFnItyn9bNHi7-zp5BAFvnMYwcIDiZxgTHyWjqNR4g0PJZbENHBo7FNEQFUMK_jnd7tDKJMEWMtKsZYIEdw_7kismqxqt5X2qeQrCxGhw7GUy2PtrQezm_4hkd-J3u3b/s320/2016-10-19+21_29_34-orangepiplus2e_0+-+VNC+Viewer.png" width="320" /></a></div>
<br />
J'ai réalisé un petit script en batch unix pour surveiller le fonctionnement du client bitcoin et éventuellement le relancer automatiquement au cas où il se planterait ou que la mémoire occupée par le client dépasserait une taille trop importante pour la mémoire de l'orange pi.<br />
<br />
<a name='more'></a><br />
<br />
On va donc créer un fichier appelé <b>memoire.sh </b>:<br />
<br />
<span style="color: white;"><span style="background-color: black;">nano memoire.sh</span></span><br />
<br />
<div style="text-align: left;">
C<span style="font-size: x-small;">opier le texte ci-dessous, puis collez le dans le fichier :</span></div>
<br />
<span style="font-size: small;"><textarea cols="60" name="txt" rows="3" style="height: 168px; width: 632px;" wrap="VIRTUAL">#!/bin/bash
export MALLOC_ARENA_MAX=1
MEMOIRE_MAX=1550
DATADIR="/media/bitcoin/FullNode"
MAXMEMPOOL=300
MAXCONNECTIONS=125
DBCACHE=300
PORT=8333
noir='\e[0;30m'
gris='\e[1;30m'
rougefonce='\e[0;31m'
rose='\e[1;31m'
vertfonce='\e[0;32m'
vertclair='\e[1;32m'
orange='\e[0;33m'
jaune='\e[1;33m'
bleufonce='\e[0;34m'
bleuclair='\e[1;34m'
violetfonce='\e[0;35m'
violetclair='\e[1;35m'
cyanfonce='\e[0;36m'
cyanclair='\e[1;36m'
grisclair='\e[0;37m'
blanc='\e[1;37m'
neutre='\e[0;m'
#if [ -e /home/pi/log_memoire.log ]
# then
# rm log_memoire.log
#fi
while :
do
clear
echo "Date : " $(date)
upSeconds=$(/usr/bin/cut -d. -f1 /proc/uptime)
secs=$((${upSeconds}%60))
mins=$((${upSeconds}/60%60))
hours=$((${upSeconds}/3600%24))
days=$((${upSeconds}/86400))
temps_fonctionnement=$(printf "%d jour(s) %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs")
upBitcoinQT=$(ps -e -o comm,etimes | grep bitcoin-qt | awk ' {print $2} ')
if [ -z $upBitcoinQT ]
then
duree_bitcoinQT_up="(ne tournait pas)"
else
secs=$((${upBitcoinQT}%60))
mins=$((${upBitcoinQT}/60%60))
hours=$((${upBitcoinQT}/3600%24))
days=$((${upBitcoinQT}/86400))
duree_bitcoinQT_up=$(printf "%d jour(s) %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs")
fi
memoire_utilisee=$(free -m | grep Mem | cut -d: -f 2 | cut -c17-30)
#echo $(date) $memoire_utilisee Mo used >>log_memoire.log
#echo "Test memoire utilisee : " $memoire_utilisee
if [ $memoire_utilisee -gt $MEMOIRE_MAX ]
then
pkill -TERM bitcoin-qt
echo Arret processus bitcoin plus de memoire
echo $(date) Arret processus bitcoin qui fonctionnait depuis $duree_bitcoinQT_up, memoire utilisee : $memoire_utilisee >>/home/bitcoin/log_bitcoin.log
while pgrep bitcoin-qt >/dev/null 2>&1
do
sleep 10
done
sleep 10
echo relance processus bitcoin
echo $(date) Relance processus bitcoin-qt >>/home/bitcoin/log_bitcoin.log
bitcoin-qt -datadir=$DATADIR </dev/null >/dev/null 2>&1 &
sleep 10
duree_bitcoinQT_up="10 secondes"
fi
#Recherche du processus bitcoin-qt en memoire. Si absent, on relance le bitcoin-core.
if pgrep bitcoin-qt >/dev/null 2>&1
then
echo "Bitcoin-qt en cours d'execution depuis " $duree_bitcoinQT_up
else
echo "Relance de bitcoin-qt"
echo $(date) "Relance de bitcoin-qt car n'etait plus en memoire" >>/home/bitcoin/log_bitcoin.log
bitcoin-qt -datadir=$DATADIR </dev/null >/dev/null 2>&1 &
sleep 10
duree_bitcoinQT_up="10 secondes"
fi
taille_debug=$(ls -l /media/bitcoin/FullNode/debug.log| cut -d " " -f5)
if [ $taille_debug -gt 1024000 ]
then
echo 1 > /media/bitcoin/FullNode/debug.log
fi
mem_bitcoinQT=$(ps aux | grep bitcoin-qt | grep -v grep | awk 'BEGIN { sum=0 } {sum=sum+$6; } END {printf("%d\n",sum / 1024)}')
memoire=$(free -m)
#echo $memoire
echo "L'Orange pi fonctionne depuis : " $temps_fonctionnement
echo "Memoire totale " $(echo $memoire | cut -d' ' -f 8)"M"
echo "Memoire utilisee par bitcoin-qt " $mem_bitcoinQT"M"
echo -e ${vertclair}"Memoire utilisee doit être <="$MEMOIRE_MAX"M " $(echo $memoire | cut -d' ' -f 9)"M"${neutre}
echo "Memoire disponible " $(echo $memoire | cut -d' ' -f13)"M"
echo "Taille fichier Log (octets) " $taille_debug
sleep 30
done
</textarea><code> </code></span><br />
<br />
<span style="font-size: small;"><code>Sauvegardez par CTRL-X </code></span><br />
<br />
Rendre le script exécutable :<br />
<br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;">chmod +x memoire.sh</span></span> </code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code>Pour lancer le script, taper : </code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;">./memoire.sh</span></span></code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code>Si le client bitcoin n'est pas lancé, il sera lancé automatiquement par le script.</code></span><br />
<span style="font-size: small;"><code></code></span>
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code>Le script va surveiller que le client bitcoin est bien présent en mémoire et que la taille mémoire occupée est inférieure à 1,55 Go. Seuil au dessus duquel des problèmes de stabilité du système peuvent apparaitre. Si cette taille mémoire est dépassée, le client bitcoin est stoppé et relancé automatiquement.</code></span><br />
<span style="font-size: small;"><code><br /></code></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjixStYCfUI-RCJEJeT0unbYSor56ZITJNPfuaokZFxSDI7cSRcz9354I_ErE5alelRcbJ4L8FOJmDAZzySGKjaz_naqUHeYCBdD9kSG03hRJBMO8iwdja9dzI5HmzNDEWDNea789eJTGSh/s1600/2016-10-19+21_40_47-Origin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="339" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjixStYCfUI-RCJEJeT0unbYSor56ZITJNPfuaokZFxSDI7cSRcz9354I_ErE5alelRcbJ4L8FOJmDAZzySGKjaz_naqUHeYCBdD9kSG03hRJBMO8iwdja9dzI5HmzNDEWDNea789eJTGSh/s640/2016-10-19+21_40_47-Origin.png" width="640" /></a></div>
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code><br /></code></span></div>
ungaro59http://www.blogger.com/profile/00244263167814565609noreply@blogger.com0tag:blogger.com,1999:blog-2546213527854314913.post-8841520665101089512016-09-02T18:26:00.001+02:002019-05-13T12:26:14.991+02:00Configuration d'un noeud Bitcoin sur Orange Pi Plus 2e<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="text-align: left;">
<span style="font-weight: bold;"> <div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-1GrCYYFpT3rszLnrjlyVM-4U8mR_gqsssqVYJhg1nver4a24Omou5czfDFZQLn5Uz4hnJHIEGiKCM6viI2SyQJvZ9YA_8NYj8dc2HO1Yvab-uE-h0S9WxNoFf13QjRPa57bkB_7ifskX/s1600/2016-08-29+16_21_00-Orange+pi+-+pierre.demontravel%2540gmail.com+-+Gmail.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-1GrCYYFpT3rszLnrjlyVM-4U8mR_gqsssqVYJhg1nver4a24Omou5czfDFZQLn5Uz4hnJHIEGiKCM6viI2SyQJvZ9YA_8NYj8dc2HO1Yvab-uE-h0S9WxNoFf13QjRPa57bkB_7ifskX/s320/2016-08-29+16_21_00-Orange+pi+-+pierre.demontravel%2540gmail.com+-+Gmail.png" width="320" /></a></div>
</span></h3>
<h3 style="text-align: left;">
<span style="font-weight: bold;">AVANT-PROPOS</span></h3>
<h4>
</h4>
<div style="text-align: left;">
<span style="font-size: small;">Ce tutoriel permet de configurer le
client Bitcoin Core v0.15 (ou une version ultérieure) sur un nano ordinateur Orange pi plus 2e ou au choix un Orange pi win Plus. Ce nano computer, très bon marché, possède 2Go de mémoire RAM, parfait pour un noeud bitcoin. Un wallet Bitcoin peut aussi être utilisé. La Blockchain
sera stockée sur un disque dur externe 2,5" relié sur un port USB.
C'est le meilleur compromis car le client bitcoin travaille sans
arrêt sur le disque. Il faut donc éviter les cartes SD ou Clés USB qui
sont limitées dans le nombre d’écritures possibles, elles seraient vite hors d'usage. Le nano ordinateur Orange pi+ 2e comportant 2Go de mémoire, toutes les options par défaut du bitcoin-core pourront être conservées, contrairement au raspberry pi qui ne comporte qu'un 1Go de mémoire vive. On
s’intéressera aussi au coût à l'année que représente l'utilisation d'un
tel dispositif qui devra fonctionner en permanence sur le réseau.</span></div>
<br />
<a name='more'></a><br />
<br />
<h3 style="text-align: left;">
<span style="font-weight: bold;">ÉQUIPEMENTS NÉCESSAIRES POUR L'INSTALLATION :</span></h3>
<ul class="font_8" style="text-align: left;">
<li><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1HUg3vcQuTrp9xQhjjcmYpx3XFpX1EevGKUILvDry-w8dtZ3mGM-qp8U-s4feiSKuUGMkfF5OCAw-mcAyKCJ6O9ABt3GcWCiyBUw2k0vHNe-3EIo4TPLoHaQTkApq9ecn_3dgbl8tzp1C/s1600/2016-08-29+16_31_00-Orange+Pi+-+Orange+Pi+Plus.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="81" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1HUg3vcQuTrp9xQhjjcmYpx3XFpX1EevGKUILvDry-w8dtZ3mGM-qp8U-s4feiSKuUGMkfF5OCAw-mcAyKCJ6O9ABt3GcWCiyBUw2k0vHNe-3EIo4TPLoHaQTkApq9ecn_3dgbl8tzp1C/s200/2016-08-29+16_31_00-Orange+Pi+-+Orange+Pi+Plus.png" width="200" /></a></div>
<span style="font-size: 13px;">Un Orange pi plus 2e (Orange pi+ 2e chez <a href="https://www.amazon.fr/ILS-Orange-1-6GHZ-Open-source-Development/dp/0284926167" target="_blank">Amazon pour 66€</a>) <u><b>OU</b></u></span></li>
<li><span style="font-size: 13px;">Un Orange pi Win Plus ( <a href="https://fr.aliexpress.com/item/Orange-Pi-Win-Plus-Development-Board-A64-Quad-core-Support-linux-and-android-Beyond-Raspberry-Pi/32803012893.html" target="_blank">Orange pi win Plus à 35€50 avec bloc Alim chez Aliexpress)</a></span></li>
<li><span style="font-size: 13px;">Un boitier de protection<a href="https://www.amazon.fr/Aukru-Transparent-Raspberry-dissipateur-thermique/dp/B00UCSO6SW/ref=pd_sim_23_4?ie=UTF8&dpID=41rzn7vzNXL&dpSrc=sims&preST=_AC_UL160_SR160%2C160_&refRID=MV1F9E952TT6JTTQN9J0" target="_blank"></a></span></li>
<li><span style="font-size: 13px;">Une bonne alimentation 3A<a href="https://www.amazon.fr/Aukru-Chargeur-Adaptateur-Alimentation-Raspberry/dp/B01566WOAG?ie=UTF8&creative=22722&creativeASIN=B01566WOAG&hvdev=c&hvnetw=g&hvqmt=&linkCode=df0&ref_=asc_df_B01566WOAG33850327&tag=googshopfr-21" target="_blank"></a></span></li>
<li><span style="font-size: 13px;">Un disque dur externe 2,5" USB de 250Go (la blockchain représente environ 180go à ce jour 4/2018). Un disque dur externe 3,5" est possible avec une
alimentation externe. Pour ma part, j'utilise un disque 2,5" récupéré
dans un passeport western digital qui consomme peu (550ma contre 800ma
pour les plus courants) : </span><br /><h4>
<span style="font-weight: normal;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0CXlnfH7Epudhk2nfG7hUTc76rZBA7AoTvkW83_ODMGjoPCACP00JqthdKaTn8mJI_zkXK7rdSiG-a0R4hFrslX0AwsbDXIYUHml2f70FpXJjoqU_o8vuLiIEU9mWawDmimnGA_6OmNco/s1600/2016-05-11+14_38_40-disque-dur-interne-western-digital-blue-500-go-25.jpg+%2528Image+JPEG%252C+800%25C2%25A0%25C3%2597%25C2%25A0800+pix.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Disque dur usb pour le noeud bitcoin sur raspberry pi" border="0" height="138" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0CXlnfH7Epudhk2nfG7hUTc76rZBA7AoTvkW83_ODMGjoPCACP00JqthdKaTn8mJI_zkXK7rdSiG-a0R4hFrslX0AwsbDXIYUHml2f70FpXJjoqU_o8vuLiIEU9mWawDmimnGA_6OmNco/s200/2016-05-11+14_38_40-disque-dur-interne-western-digital-blue-500-go-25.jpg+%2528Image+JPEG%252C+800%25C2%25A0%25C3%2597%25C2%25A0800+pix.png" title="" width="200" /></a></span><span style="font-size: 13px;"> </span></h4>
</li>
<li><span style="font-size: 13px;">Un Câble HDMI</span></li>
<li><span style="font-size: 13px;">Un câble USB pour connecter le disque dur.<a href="http://www.cdiscount.com/informatique/cables-connectiques/cable-usb-20-avec-reprise/f-1072003-auc3548381495123.html" target="_blank"><br /></a></span></li>
<li><span style="font-size: 13px;">Un écran avec une entrée HDMI</span></li>
<li><span style="font-size: 13px;">Un clavier USB/souris USB</span></li>
<li><span style="font-size: 13px;">Une box reliée à internet</span></li>
<li><span style="font-size: 13px;">Un câble réseau RJ45.</span></li>
<li><span style="font-size: 13px;">Un PC avec un lecteur de carte SD/microSD. <a href="https://www.amazon.fr/Transcend-TS-RDF5K-Lecteur-cartes-MicroSD/dp/B009D79VH4/ref=sr_1_2?s=computers&ie=UTF8&qid=1463305204&sr=1-2&keywords=lecteur+de+carte+sd" target="_blank">Lecteur de carte SD</a></span></li>
<li><span style="font-size: 13px;">Une carte microSD de 8Go ou plus. </span><a href="https://www.amazon.fr/Carte-M%C3%A9moire-MicroSDHC-SanDisk-jusqu%C3%A0/dp/B00MWXUKDK/ref=sr_1_1?ie=UTF8&qid=1463305131&sr=8-1&keywords=microsd+8go" target="_blank">Carte microSd 8Go</a></li>
</ul>
<h3 style="text-align: left;">
<span style="font-weight: bold;"> </span></h3>
<h3 style="text-align: left;">
<span style="font-weight: bold;">INSTALLATION :</span><span style="font-weight: normal;"> </span></h3>
<div style="text-align: left;">
<span style="font-weight: normal;">Avant toutes choses, sur votre PC, formatez votre disque dur USB en système de fichiers <b>NTFS </b>et donnez lui le nom de volume (Label) : <b>FullNode</b>. En formatant le disque en NTFS, vous pourrez
éventuellement récupérer facilement la blockchain pour la copier sur un
pc windows par exemple et démarrer rapidement un client bitcoin sur
celui-ci.</span><br />
<br />
<span style="font-weight: normal;">Récupérez la dernière image (.img) en date pour installer le système Ubuntu, déclinaison de linux, sur la carte microSD</span><span style="font-weight: normal;">. </span></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="font-weight: normal;">La dernière version de l'image système pour orange pi plus 2e se trouve ici :</span></div>
<div style="text-align: left;">
<a href="http://www.armbian.com/orange-pi-plus-2e/" target="_blank"><span style="font-weight: normal;">https://dl.armbian.com/orangepiplus2e/</span></a></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="font-weight: normal;">Prendre la version "Ubuntu Xenial Desktop" (c'est un fichier compressé en 7zip qui contient l'image .raw à utiliser) :</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiakeSnV8mhG3Lz8dqaUdwQhyiACoQNPlQbzuMwdIkwjYnvySPTTZZERedg4NEgXtXpfuDw2twXyPg3zf17EsoB14cWRRWwXcCsdizmO5T8DuF2ABHGp2pJLk31X0GlYRWi3FFnLvlbnEuj/s1600/2018-02-13+19_54_43-orangepiplus2e+-+dl.armbian.com+_+orangepiplus2e.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="758" data-original-width="1564" height="308" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiakeSnV8mhG3Lz8dqaUdwQhyiACoQNPlQbzuMwdIkwjYnvySPTTZZERedg4NEgXtXpfuDw2twXyPg3zf17EsoB14cWRRWwXcCsdizmO5T8DuF2ABHGp2pJLk31X0GlYRWi3FFnLvlbnEuj/s640/2018-02-13+19_54_43-orangepiplus2e+-+dl.armbian.com+_+orangepiplus2e.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: left;">
<span style="font-weight: normal;">Extraire l'image .img contenue dans le fichier téléchargé dans un dossier de votre choix (vous pouvez utiliser Winrar ou 7zip téléchargeable ici : <a href="http://www.7-zip.org/" target="_blank">http://www.7-zip.org/</a>)</span></div>
<br />
<div style="text-align: left;">
<span style="font-weight: normal;">Téléchargez et installez sur votre pc
l'utilitaire "<b>Win32DiskImager</b>" qui va permettre d’écrire l'image (.img) que vous venez de récupérer
sur la carte microSD : <a href="https://sourceforge.net/projects/win32diskimager/">https://sourceforge.net/projects/win32diskimager/</a></span></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="font-weight: normal;">Insérez la carte micro sd dans votre lecteur de cartes, lancer </span><span style="font-weight: normal;"><span style="font-weight: normal;">Win32DiskImager</span> puis sélectionnez l'image .img téléchargée, le lecteur où se trouve la carte sd et cliquez sur Write : </span></div>
<div style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg58zEAHTUEtop1jUG9OB0t3L-DOpVPDyD2OVb63d9pczsiKwK1Y8PKBmX3wgtDav42rkLnceCJrBrFHLHLugxUHqgJDLWUQS9Pi2_bYzJPq-PIibys9jLya-O9ukuBWZ_AtWKAJ1n-8-oP/s1600/2016-08-29+17_48_29-Films+et+TV.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg58zEAHTUEtop1jUG9OB0t3L-DOpVPDyD2OVb63d9pczsiKwK1Y8PKBmX3wgtDav42rkLnceCJrBrFHLHLugxUHqgJDLWUQS9Pi2_bYzJPq-PIibys9jLya-O9ukuBWZ_AtWKAJ1n-8-oP/s320/2016-08-29+17_48_29-Films+et+TV.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="" style="clear: both; text-align: center;">
<span style="font-size: xx-small;"><span style="font-family: inherit;"> Le processus d'écriture prend quelques minutes</span></span></div>
<br />
<div class="" style="clear: both; text-align: left;">
<br />
<span style="font-size: small;"><span style="font-family: inherit;"><span style="font-weight: normal;"><span style="font-family: inherit;">Insérer</span> la carte microSD dans le logement sd<span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;">, bra<span style="font-family: inherit;">nchez le <span style="font-family: inherit;">câble</span> HDMI<span style="font-family: inherit;">,</span> <span style="font-family: inherit;">câble</span> réseau ainsi que souris et clavier. </span></span></span></span></span></span><span style="font-family: inherit;"><span style="font-weight: normal;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-weight: normal;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><b>Ne pas connecter le disque dur externe</b> aux ports USB pour l'instant.</span></span></span></span></span></span></span> A</span></span></span><span style="font-family: inherit;">limentez l'orange pi<span style="font-family: inherit;"> avec le <span style="font-family: inherit;">câble</span> d'ali<span style="font-family: inherit;">mentation. Attendre le démarrage..</span></span></span></span></span></span></span></span></div>
<br />
<h3 style="text-align: left;">
CONFIGURATION de l'Orange Pi :</h3>
<h3 style="text-align: left;">
</h3>
<div style="text-align: left;">
<span style="font-weight: normal;">Au premier démarrage, l'orange pi s'auto configure, le laisser démarrer jusqu'à ce qu'il se bloque <b>plus de 15 secondes</b> sur la ligne de demande du login (au 2eme démarrage automatique). </span></div>
<div style="text-align: left;">
<br />
<span style="font-weight: normal;">Entrez alors pour le login : <b>root</b></span></div>
<div style="text-align: left;">
<span style="font-weight: normal;">Mot de passe : <b>1234</b> (directement sur les touches au dessus des lettres, <b>pas</b> sur le clavier numérique)</span><br />
<span style="font-weight: normal;"><b><br /></b></span>
<span style="font-weight: normal;">Le système vous demande alors de retaper ce mot de passe (1234) et d'en entrer un nouveau à confirmer 2 fois (<b>Attention</b>, clavier QWERTY) :</span></div>
<div style="text-align: left;">
<span style="font-weight: normal;"><br /></span></div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrhUrKsBPAlnl0e9iYZ9ldIKLbxWtb_cZgMZn1GbffLMM4AX6A7HQHv8hlsjo4F8k9dnglOOFimRTjpQ6VQVRyssfteJ1d67mLBDGNMhHwwtc9F5F_HYiPeQzAr42fX2tctl78sdRxt6Xe/s1600/20160830_193732.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="114" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrhUrKsBPAlnl0e9iYZ9ldIKLbxWtb_cZgMZn1GbffLMM4AX6A7HQHv8hlsjo4F8k9dnglOOFimRTjpQ6VQVRyssfteJ1d67mLBDGNMhHwwtc9F5F_HYiPeQzAr42fX2tctl78sdRxt6Xe/s320/20160830_193732.jpg" width="320" /></a></div>
<span style="font-weight: normal;"><br /></span>
<span style="font-weight: normal;">On passe ensuite, sur l'écran de création d'un compte (Toujours en mode clavier Qwerty) :</span><br />
<span style="font-weight: normal;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIZBEokLf9WI8oExBz2xhnjDeCJ4iESTXJV80sgJd_nLRo8oJU1WnV21WtaZenwBinKszTDdQFoVO1yxAWvnhNuELO4NpryWlLAoNoZ7nqRArRWSBgiuvPCosFde1-wX91mHErbrSZHG8n/s1600/20160830_194029.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="584" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIZBEokLf9WI8oExBz2xhnjDeCJ4iESTXJV80sgJd_nLRo8oJU1WnV21WtaZenwBinKszTDdQFoVO1yxAWvnhNuELO4NpryWlLAoNoZ7nqRArRWSBgiuvPCosFde1-wX91mHErbrSZHG8n/s640/20160830_194029.jpg" width="640" /></a></div>
<span style="font-weight: normal;">Pour le nom du compte, tapez : <b>bitcoin</b> puis <ENTREE></span><br />
<span style="font-weight: normal;">Entrez ensuite un mot de passe personnel à confirmer 2 fois</span><br />
<span style="font-weight: normal;">Pour Full name, tapez <b>bitcoin</b></span><br />
<span style="font-weight: normal;">Room number :<b> 1 </b></span><br />
<span style="font-weight: normal;">Information correct?, répondre<b> Y</b> puis <ENTREE></span><br />
<span style="font-weight: normal;"><b> </b></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5MW4kOnKz3ElwLJXHurtf2-f4qtUDAJ05j1vHCOOWU_LXtqeDHCYN1yv9kwyRKkiKK_iLbGyhH2knwWmga_VQt8fUuCskEK3pma1-5q06K_INKhMUjK_OZzopIawoinwJdNDm4GcxWexd/s1600/20160830_194110.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="118" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5MW4kOnKz3ElwLJXHurtf2-f4qtUDAJ05j1vHCOOWU_LXtqeDHCYN1yv9kwyRKkiKK_iLbGyhH2knwWmga_VQt8fUuCskEK3pma1-5q06K_INKhMUjK_OZzopIawoinwJdNDm4GcxWexd/s640/20160830_194110.jpg" width="640" /></a></div>
<br />
<span style="font-weight: normal;">La création du compte est confirmée et le système demande alors si vous voulez changer la résolution de l'écran par défaut (1280*720). Si vous répondez <b>Y, vous prenez la main</b> (sinon, le système démarre)<b> :</b></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0E3g_07PiN4tbZM0ZB1lCCG9prSqMgJ6h0It9Qyknp90g4HDPYmOagyHyhYTPIMIMGwj6bm-IhrRVDnTMzOcx0Gm9O3rponsKZsmMXXeIXDXusPFhrbTWXmF0Fn6bf6SrPSCUhMcVBAR_/s1600/20160830_194304.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0E3g_07PiN4tbZM0ZB1lCCG9prSqMgJ6h0It9Qyknp90g4HDPYmOagyHyhYTPIMIMGwj6bm-IhrRVDnTMzOcx0Gm9O3rponsKZsmMXXeIXDXusPFhrbTWXmF0Fn6bf6SrPSCUhMcVBAR_/s640/20160830_194304.jpg" width="640" /></a></div>
<br />
<span style="font-weight: normal;">Pour ma part, je suis passé en 1080p60 sur mon téléviseur HD.</span><br />
<span style="font-weight: normal;">Pour cela, j'ai tapé :<b> h3disp -m 7 </b></span><br />
<span style="font-weight: normal;"><br />Après cela, tapez <b>reboot </b>pour relancer le système. Vous allez obtenir l’écran suivant :</span><br />
<span style="font-weight: normal;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxZsyWw_yNR3mjvPL1thuW7RwbT5P9wMRb6HiyJa4bbUOzZBQTWRfRTVv331_8K_hjkuMuUKXtmnF7dkch0sn58ddAeKsfdyhEV7kdD6G4Fm-mCkDCTvF5ZklJYcoQbz8yDlXYGEZ-z6wD/s1600/snapshot1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxZsyWw_yNR3mjvPL1thuW7RwbT5P9wMRb6HiyJa4bbUOzZBQTWRfRTVv331_8K_hjkuMuUKXtmnF7dkch0sn58ddAeKsfdyhEV7kdD6G4Fm-mCkDCTvF5ZklJYcoQbz8yDlXYGEZ-z6wD/s640/snapshot1.png" width="640" /></a></div>
<span style="font-weight: normal;"></span></div>
<div style="text-align: left;">
<br />
Passez en clavier français : Applications Menu, Settings, Keyboard.<br />
<br />
Allez dans l'onglet "Layout" et décochez "Use system defaults" :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKUSH708cPI68VkMSIfezaFsK7Er_iVTZva4z9UPxqyxEhtyicIlEcGbfolV9h_0t94gRVXYXBX6l-vdtqvI1D6Wa9TuI6sXOtTit2ASZiN4VfJvkRSyKqgVGiMjfx4gpK-YadApLciQKE/s1600/snapshot7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKUSH708cPI68VkMSIfezaFsK7Er_iVTZva4z9UPxqyxEhtyicIlEcGbfolV9h_0t94gRVXYXBX6l-vdtqvI1D6Wa9TuI6sXOtTit2ASZiN4VfJvkRSyKqgVGiMjfx4gpK-YadApLciQKE/s400/snapshot7.png" width="342" /></a></div>
<span id="goog_787848904"></span><span id="goog_787848905"></span><br />
<br />
Cliquez sur "Add" pour ajouter le clavier français (sélectionner "French" dans la liste déroulante) :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNmRDb7gypfqEruy88dnuQDTvZkmCveQAUHoULCH_FmG15JDWwnzDdBmeMdBaIjVb4WcfLY6OVR1iyFcQUwH4QrOcjjWzZz2xx7yo8y3LyNQ28Ubu_eCPt4LBoB-ByTXS_O_2QxTTnSwul/s1600/snapshot8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="267" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNmRDb7gypfqEruy88dnuQDTvZkmCveQAUHoULCH_FmG15JDWwnzDdBmeMdBaIjVb4WcfLY6OVR1iyFcQUwH4QrOcjjWzZz2xx7yo8y3LyNQ28Ubu_eCPt4LBoB-ByTXS_O_2QxTTnSwul/s400/snapshot8.png" width="400" /></a></div>
<br />
Sélectionnez le clavier Anglais et Supprimez le en cliquant sur le bouton "Delete" :<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge5hLRuFGlXpUDJT3ucRuD9RznBlBZfLTEFv8XUhoGSOK-EEoD0yZuqWPxegb-oQ4D21gl4rxjM1omI8jjUPyk44ArsvkF9_Enlu18Eqv16yHKOhwG5qQ0q7nu63YeHZLPt_F_lh0CP6PV/s1600/snapshot9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge5hLRuFGlXpUDJT3ucRuD9RznBlBZfLTEFv8XUhoGSOK-EEoD0yZuqWPxegb-oQ4D21gl4rxjM1omI8jjUPyk44ArsvkF9_Enlu18Eqv16yHKOhwG5qQ0q7nu63YeHZLPt_F_lh0CP6PV/s400/snapshot9.png" width="337" /></a></div>
<br />
<br />
<br />
A partir de maintenant, tout ce qui est en <span style="color: white;"><span style="background-color: black;">noir&blanc</span></span> devra être tapé dans une fenêtre terminal que vous pouvez lancer en cliquant sur "Terminal Emulator" dans le menu :<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxlLELNudmr_UfpLUoMM-Fsww6OmHewvuwVVP30orsAyFxA-L5wVzTSwBiBZAeuS6v-bHouajhetBE_vpnjlya8FlXT3Qj8ZGlow4n9G6J9Sm4dgdXW2NHEsAa6eqzD2QLIXIq-uZ77I8v/s1600/snapshot4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="304" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxlLELNudmr_UfpLUoMM-Fsww6OmHewvuwVVP30orsAyFxA-L5wVzTSwBiBZAeuS6v-bHouajhetBE_vpnjlya8FlXT3Qj8ZGlow4n9G6J9Sm4dgdXW2NHEsAa6eqzD2QLIXIq-uZ77I8v/s320/snapshot4.png" width="320" /></a></div>
</div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9qpgg57FdQystt0raRpt4Wnjd1oHI2mut1s0-eV6Mfhqy9c32cEdNiY0q7Sl7bLp2E4cNwPN2nS9wUG8AQawPAp_887BwKHawB5NI-mYEsWnelRm3yljKwVfpYfrdpz-x4uNKaIBdO3NX/s1600/snapshot5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="282" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9qpgg57FdQystt0raRpt4Wnjd1oHI2mut1s0-eV6Mfhqy9c32cEdNiY0q7Sl7bLp2E4cNwPN2nS9wUG8AQawPAp_887BwKHawB5NI-mYEsWnelRm3yljKwVfpYfrdpz-x4uNKaIBdO3NX/s400/snapshot5.png" width="400" /></a></div>
</div>
<div style="text-align: left;">
<br />
Dans la fenêtre terminal ci-dessus, tapez la commande "ifconfig" pour déterminer l'adresse ip qu'a prise l'orange pi :<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh_K26AaEGqoSubO-o15xX6Btg4agzMcw7VrhMmxjIJSdmaXfJm-luPCWV2j2gVyuuCJCWsHe3UYn2SiPbXLACADIT2-MzkmgAoAT_sdIyx1K6GbXpAs8aBVht7lqKKibsu6Cnt7EsYEOO/s1600/2018-02-13+21_10_17-.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="450" data-original-width="668" height="428" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh_K26AaEGqoSubO-o15xX6Btg4agzMcw7VrhMmxjIJSdmaXfJm-luPCWV2j2gVyuuCJCWsHe3UYn2SiPbXLACADIT2-MzkmgAoAT_sdIyx1K6GbXpAs8aBVht7lqKKibsu6Cnt7EsYEOO/s640/2018-02-13+21_10_17-.png" width="640" /></a></div>
<br />
Pour pouvoir effectuer les opérations ci-dessous plus facilement depuis un autre pc connecté au réseau local, Téléchargez l'utilitaire Putty sur cet autre ordinateur ici : https://www.putty.org/ <br />
<br />
Et depuis ce pc, lancez Putty et renseignez l'adresse ip de l'orange pi, puis cliquez sur open :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2EAW1bKITmVtlpr7c6CtkeaM9eZ4sWmQrE08lD9B9VRgE9gNpx4CGA3SgoQ9WDalnGF4v7N6ng3jX391d95Jl07G4_jWGMQQrSweD5pQ1B8IyAyt6prtC9iaPJmwb2i_PdIJWqUD7OHvB/s1600/2018-02-13+21_12_56-.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="441" data-original-width="451" height="390" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2EAW1bKITmVtlpr7c6CtkeaM9eZ4sWmQrE08lD9B9VRgE9gNpx4CGA3SgoQ9WDalnGF4v7N6ng3jX391d95Jl07G4_jWGMQQrSweD5pQ1B8IyAyt6prtC9iaPJmwb2i_PdIJWqUD7OHvB/s400/2018-02-13+21_12_56-.png" width="400" /></a></div>
<br />
A la première connexion, cliquez sur oui, vous êtes alors prêt pour effectuer les commandes ci-dessous par copier-coller dans la fenêtre putty :<br />
<br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;">On commence par la mise à jour de l'OS Armbian (<span style="background-color: white;">environ<span style="background-color: white;"> </span></span></span></span></span></span></code><b><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;">10 à 30mn). Ces mises à jours peuvent être répétées régulièrement pour mettre à jour le système unix :</span></span></span></span></code></b></span> <span style="font-size: small;"><code></code></span><br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;"><code></code></span></span></span></span></code><b><code><span style="color: white;"><span style="background-color: black;">sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade</span></span></code></b></span></div>
<div style="text-align: left;">
<br /></div>
Redémarrez l'Orange pi : <span style="font-size: small;"><b><code><span style="color: white;"><span style="background-color: black;">sudo reboot</span></span></code></b></span><br />
<br />
** <i>Installation des paquets et bibliothèques nécessaires pour le lancement du bitcoin-core :</i><br />
<span style="background-color: black;"><span style="color: white;">sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils</span></span><span style="background-color: black;"><span style="color: white;">
libboost-system-dev libboost-filesystem-dev libboost-chrono-dev
libboost-program-options-dev libboost-test-dev libboost-thread-dev
libzmq3-dev</span></span><br />
<br />
** <i>Installation de QT5 :</i><br />
<span style="background-color: black;"><span style="color: white;">sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler</span></span><br />
<br />
** <i>Récupération, compilation et Installation de BerkeleyDB 4.8 utilisé pour le Wallet bitcoin :</i><br />
<span style="background-color: black;"><span style="color: white;">mkdir ~/bin<br />cd ~/bin<br />wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz<br /><br />tar -xzvf db-4.8.30.NC.tar.gz<br />cd db-4.8.30.NC/build_unix/<br />../dist/configure --enable-cxx<br />make -j4<br />sudo make install</span></span> <br />
<span style="background-color: black;"><span style="color: white;">cd</span></span><br />
<br />
** <i>Récupération des sources de la dernière version du bitcoin core 0.18 et génération (pour mettre à jour en version ultérieure 0.18.1, il suffit de répéter cette opération en précisant toujours -b 0.18 qui permet de cibler la branche des versions 0.18.0 et versions ultérieures).</i><br />
<span style="background-color: black;"><span style="color: white;">git clone -b 0.18 https://github.com/bitcoin/bitcoin.git<br />cd bitcoin/<br />./autogen.sh </span></span><br />
<br />
** <i>Vérification des sources bitcoin :</i><br />
<span style="background-color: black;"><span style="color: white;">./configure CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2" LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" --enable-upnp-default --with-gui</span></span><br />
<span style="background-color: black;"><span style="color: white;"></span></span><br />
<span style="background-color: black;"><span style="color: white;"><span style="color: black;"><span style="background-color: white;">** <i>Compilation des sources. </i></span><span style="background-color: white;"><i>cette étape est très longue, environ 2h30 :</i></span></span></span></span><br />
<span style="background-color: black;"><span style="color: white;"><span style="color: black;"><span style="background-color: white;"></span></span></span></span>
<span style="background-color: black;"><span style="color: white;">sudo make -j2<br />sudo make install</span></span><br />
<br />
<span style="font-size: small;">A ce stade, je vous conseill<code></code>e <code></code>de
désactiver le wifi et de n'utiliser que le port Ethernet RJ45 pour relier le nœud au réseau. Le nœud sera ainsi plus fiable et consommera moins si vous passez par un câble réseau
relié à votre box. A vous de voir..<br />
<br />Donc, pour désactiver définitivement le wi-fi, taper :</span><br />
<span style="background-color: black;"><span style="color: white;"><span class="pln">sudo ifconfig wlan0 down </span><span class="pun">&&</span><span class="pln"> sleep </span><span class="lit">0.5</span><span class="pln"> </span><span class="pun">&&</span><span class="pln"> sudo rmmod </span><span class="pun">-</span><span class="pln">f </span><span class="lit">8189fs</span></span></span><span class="pln"> </span><br />
<br />
<span class="pln">Si par la suite, vous avez de nouveau besoin du wifi, taper : <span style="color: white;">:</span></span><br />
<div style="text-align: left;">
<span class="pln"><span style="color: white;"> </span></span><span style="background-color: black;"><span style="color: white;"><span class="pln">sudo modprobe </span><span class="lit">8189fs</span><span class="pln"> </span><span class="pun">&&</span><span class="pln"> sleep </span><span class="lit">0.5</span><span class="pln"> </span><span class="pun">&&</span><span class="pln"> sudo ifconfig wlan0 up</span></span></span></div>
<br />
Nous allons aussi devoir définir une adresse ip fixe à l'orange pi. Pas
obligatoire mais fortement recommandé. Ainsi il sera beaucoup plus aisé
de pouvoir l'atteindre depuis l’extérieur par exemple avec un logiciel
de prise en main à distance comme VNC que l'on va bientôt installer .<br />
<br />
Il faut pouvoir déterminer l'adresse ip que vous allez pouvoir utiliser pour votre orange pi.<br />
Pour cela, il faut vous connecter à votre box, perso je dois entrer
l'adresse 192.168.1.1 dans un navigateur pour m'y connecter depuis mon
pc. Parfois c'est 192.168.0.1. Dans la rubrique "Réseau", puis IP LAN,
on peut voir que le serveur DHCP délivre des adresses IP qui vont de
192.168.1.10 à 50. On peut réserver une adresse IP que le serveur DHCP
ne pourra pas prendre en ajoutant l'adresse MAC de la carte réseau de l'orange pi. Pour connaitre l'adresse MAC de la carte réseau de votre
orange pi, tapez :<br />
<br />
<code><span style="background-color: black;"><span style="color: white;">sudo ifconfig </span></span></code><br />
<code><span style="background-color: black;"><span style="color: white;"><br /></span></span></code>
<br />
ce qui renvoie plusieurs informations dont l'adresse mac de la carte réseau (entourée en rouge) :<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl_ncVfocxBawl3RL1zzLdLkRWtQV6uvw1xMFttz4N5ac3lc9eig0Bf0ybGpk3n9EgMpV_bqYCIzBL57RuDUcF98iBhs6GlE9GqqqsKItcsQyxFN_4fPO1CVoB2bvGkdlgOqzn3BygHuxh/s1600/2016-09-01+20_03_11-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="203" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl_ncVfocxBawl3RL1zzLdLkRWtQV6uvw1xMFttz4N5ac3lc9eig0Bf0ybGpk3n9EgMpV_bqYCIzBL57RuDUcF98iBhs6GlE9GqqqsKItcsQyxFN_4fPO1CVoB2bvGkdlgOqzn3BygHuxh/s640/2016-09-01+20_03_11-orangepiplus2e_0+-+VNC+Viewer.png" width="640" /></a></div>
<br />
Cette adresse MAC est à ajouter dans les<b> "Infos de location/réservation DHCP" </b>avec<b> </b>l'adresse IP de votre choix (entre 10 et 50 dans mon cas)<b>. </b>Faites un <b><span style="color: white;"><span style="background-color: black;">ping 192.168.1.x</span></span> </b>pour vérifier que l'adresse IP choisie n'est pas déjà utilisée (la réponse doit être "unreachable").<br />
<br />
<div style="text-align: left;">
La procédure est sensiblement la même sur les autres box des autres FAI.</div>
<br />
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyp5q1Ox2Wt4iuDkfLcV_LbLU2xn0WUVUZ18KuEFzShCXNifEefO_UHfViqQGS2swxFCIzy43Yk7TQ9qcCaFnUD21It51dwuBn65fWxxjLHzK82PkDpJos41V-S2vHLMc2HcisBOzFYELE/s1600/2016-09-01+20_14_58-Mon+Modem.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyp5q1Ox2Wt4iuDkfLcV_LbLU2xn0WUVUZ18KuEFzShCXNifEefO_UHfViqQGS2swxFCIzy43Yk7TQ9qcCaFnUD21It51dwuBn65fWxxjLHzK82PkDpJos41V-S2vHLMc2HcisBOzFYELE/s640/2016-09-01+20_14_58-Mon+Modem.png" width="563" /></a></div>
</div>
<br />
<span style="background-color: white;"><code>Dans notre exemple, j'ai choisi l'adresse IP <b>192.168.1.16</b>. </code></span>
<span style="background-color: white;"><code><b><u>une autre solution</u></b>,
plutôt que de définir l'adresse ip sur la box comme ci-dessus, est de
définir cette adresse depuis l'orange pi, pour cela tapez : </code></span><br />
<br />
<code><span style="background-color: black;"><span style="color: white;">sudo nano /etc/network/interfaces</span></span></code><br />
<br />
<div style="text-align: left;">
Au début du fichier, mettre en commentaire les lignes suivantes :<br />
#allow-hotplug eth0<br />
#no-auto-down eth0<br />
<br />
puis, modifier/ajouter les lignes comme ci-dessous :<br />
<br />
<form name="copy">
<div>
<textarea cols="60" name="txt" rows="3" style="height: 97px; width: 596px;" wrap="VIRTUAL"># Custom static IP address for eth0.
auto eth0
iface eth0 inet static
address 192.168.1.16
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
</textarea></div>
</form>
<span style="background-color: #cccccc;"><span style="background-color: white;">Pour les DNS (<i>dns-nameservers</i>), j'ai mis ceux de google, mais vous pouvez mettre ceux que vous voulez. Vous pouvez mettre ceux de votre FAI (Voir ici : <a href="http://www.ariase.com/fr/guides/adresses-dns.html" target="_blank">http://www.ariase.com/fr/guides/adresses-dns.html)</a></span></span><br />
<br />
La passerelle (<i>gateway</i>) de ma box a l'adresse 192.168.1.1. Chez free, par exemple, cette adresse
est 192.168.0.254 par défaut. Chez orange, c'est 192.168.1.1.. Vérifiez ces
informations avant de changer l'adresse IP.<br />
<br />
<div class="code">
<code><span style="color: white;"><span style="background-color: black;">sudo reboot </span></span></code><br />
<code></code></div>
<span style="background-color: white;"><br /></span><span style="color: blue; font-size: x-small;"><span style="background-color: #999999;"><code></code></span></span>
<span style="background-color: white;">Après le redémarrage, vérifier que l'adresse ip prévue est bien correcte avec <span style="color: white;"><span style="background-color: black;">sudo ifconfig</span></span> :</span> </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd34GNqSnNt-o5IlkM8jpl2PM3I3aZkfCTjGnQf1Hh0QA7zWkwJP7YI7I-djOA7EqDucJ0XbW5E3sYRjp4IofdEkinbu594A0n3axDK45hlCcs7RZCo7NcJ7-cb8G1mUBiJ3sNxRK8kPGU/s1600/2016-09-01+20_34_50-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="444" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd34GNqSnNt-o5IlkM8jpl2PM3I3aZkfCTjGnQf1Hh0QA7zWkwJP7YI7I-djOA7EqDucJ0XbW5E3sYRjp4IofdEkinbu594A0n3axDK45hlCcs7RZCo7NcJ7-cb8G1mUBiJ3sNxRK8kPGU/s640/2016-09-01+20_34_50-orangepiplus2e_0+-+VNC+Viewer.png" width="640" /></a></div>
<br /></div>
<div style="text-align: left;">
<div class="code">
<h3 style="text-align: left;">
PRISE EN MAIN A DISTANCE DE L'ORANGE PI :</h3>
<span style="color: blue; font-size: x-small;"><span style="background-color: #999999;"><code></code></span></span></div>
<div class="code">
<span style="background-color: white;">Si vous le souhaitez, vous pouvez
installer un serveur pour la prise en main à distance de l'orange pi. Ainsi, plus besoin de clavier ou souris à raccorder. Vous
pourrez vérifier le bon fonctionnement du noeud depuis votre pc ou votre
téléphone portable/tablette.</span></div>
<div class="code">
<span style="background-color: white;">Tout d'abord, il faudra
configurer votre box pour accepter les connexions vers le port utilisé
par le serveur VNC sur le raspberry. C'est ce qu'on appelle une
redirection de port. Ce port d’écoute est le <b>5900</b> par défaut. </span></div>
<div class="code">
<span style="background-color: white;">Connectez vous à votre box (pour moi, je tape
192.168.1.1 dans mon navigateur puis mon nom d'utilisateur/mot de passe personnel). Pour une freebox, c'est </span><span style="background-color: white;"><a href="http://mafreebox.freebox.fr/" style="text-align: justify;">http://mafreebox.freebox.fr</a> par exemple. Dans la partie "<b>Réseau</b>", puis "<b>Paramètres Avancés</b>" et "<b>Transfert de port</b>s",
il faut ajouter le port 5900 qui va être redirigé vers l'adresse IP de
notre réseau local du raspberry (pour moi, 192.168.1.16) comme
ci-dessous :</span></div>
</div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsM8TzCpwE18RdW_WJs7TclqksTS6ZSUrwKMjjURgfFDGlEeC3h_cErPdJLvm7wV_9gk5Z1nulQSpW4f-YX5IicLZEK-xHpprKthyphenhyphenyiBibeU557frnqi_muAYr6AI7FB_qc9d9IdKz4rNs/s1600/2016-05-12+21_57_15-Mon+Modem.png" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXAsrTQOsZyt6msR24uRMPPGWsYvQNDAL6okA9PaMvVfKzdWMSxBkvoYVOi3fuSttqfbU2dlCnqkz-BbNcXEVzjt8dVHeGYgf8BE_9KqLCTOSUa1PRlH6Vv8CogaexVp-VC5ptNrgvwsf5/s1600/2016-05-12+21_57_15-Mon+Modem.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="432" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXAsrTQOsZyt6msR24uRMPPGWsYvQNDAL6okA9PaMvVfKzdWMSxBkvoYVOi3fuSttqfbU2dlCnqkz-BbNcXEVzjt8dVHeGYgf8BE_9KqLCTOSUa1PRlH6Vv8CogaexVp-VC5ptNrgvwsf5/s640/2016-05-12+21_57_15-Mon+Modem.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi12MgEIzgaufbCdPFtKHV5VzP2UNHhQH9NPlYBF4TNvI7_MrlLkZ-0DXz9okIaWc9uCVW6G5uHmOQxgwL_OlpJWB1rX1IftI1J-309sQuv1iScXClFq5luzcbR26FsOIm_-FS1pSoKFdMO/s1600/2016-05-12+21_57_15-Mon+Modem.png" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<span style="background-color: white;">Ainsi, lorsque je me connecterai
depuis internet via mon pc ou téléphone portable, j'entrerai l'adresse
IP publique de ma box ainsi que </span><span style="background-color: white;">le port 5900. Ce qui redirigera toutes les données vers l'adresse ip locale 192.168.1.16 et le port 5900 de mon orange pi.</span>
<br />
<div class="code">
<br />
<span style="background-color: white;">Sur l'orange pi :</span></div>
<div class="code">
<span style="background-color: white;"><code>Installer le serveur vnc X11vnc :</code></span><span style="background-color: white;"><code><code> </code></code></span><br />
<br />
<span style="color: white;"><span style="background-color: black;"><code>sudo aptitude install x11vnc</code></span></span><span style="background-color: white;"><code><span style="color: white;"><span style="background-color: black;"><code></code></span></span><br /></code></span><span style="background-color: white;"><code><span style="background-color: black;"><span style="color: white;">x11vnc -storepasswd </span></span></code></span></div>
<div class="code">
<span style="background-color: white;"><code><span style="background-color: black;"><span style="color: white;"><br /></span></span></code></span></div>
<div class="code">
<span style="background-color: white;"><code>=> Entrez un mot de passe personnel pour la connexion à distance (8 caractères).</code></span>
<br />
<div class="code">
<span style="background-color: white;"><code><br />Pour démarrer automatiquement le serveur vnc au démarrage de l'orange pi :</code></span></div>
<span style="background-color: white;"><code><br /></code></span><span style="background-color: white;"><code><span style="color: white;"><span style="background-color: black;">cd ~/.config</span></span></code></span><span style="background-color: white;"><code></code></span><span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code> </code></code></span></code></span></code></span><br />
<span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code><span style="color: white;"><span style="background-color: black;">mkdir autostart</span></span> </code></code></span></code></span></code></span><br />
<span style="background-color: white;"><code><span style="color: white;"><span style="background-color: black;">cd autostart</span></span></code></span><span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code> </code></code></span></code></span></code></span><br />
<span style="background-color: white;"><code><span style="color: white;"><span style="background-color: black;">nano x11vnc.desktop </span></span></code></span></div>
<div class="code">
<br />
<div style="text-align: left;">
C<span style="font-size: x-small;">opier le texte ci-dessous, puis collez le dans le fichier :</span></div>
<br />
<form name="copy">
<div style="text-align: left;">
<span style="font-size: small;"><textarea cols="60" name="txt" rows="3" style="height: 168px; width: 632px;" wrap="VIRTUAL">[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=X11VNC
Comment=
Exec=x11vnc -repeat -forever -usepw -display :0 -ultrafilexfer -rfbport 5900 -o /home/bitcoin/x11vnc.log
StartupNotify=false
Terminal=false
Hidden=false</textarea><code> </code></span><br />
<br />
<span style="font-size: small;"><code>Sauvegardez par CTRL-X et redémarrez l'orange pi.</code></span><br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;">sudo reboot </span></span></code></span>
<span style="font-size: small;"><code></code><code> </code></span></div>
</form>
<div style="text-align: left;">
<div style="text-align: left;">
<div class="code">
<span style="font-size: small;"><code></code></span><br />
<span style="font-size: small;"><code>Vérifier que le serveur vnc fonctionne correctement :</code></span></div>
</div>
<span style="font-size: small;">
</span>
<br />
<div style="text-align: left;">
<span style="font-size: small;"><code><span style="background-color: white;"><code></code></span><span style="color: white;"><span style="background-color: black;">ps -ef | grep vnc</span></span></code></span></div>
<br />
<br />
<span style="font-size: small;"><code><span style="background-color: black;"><span style="background-color: white;">Doit retourner une ligne comme indiqué ci-dessous : </span></span></code></span></div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaRZExgk2ZfbFCcdSf0YeYvA6jxX9lU-eH_Zgvu0Bu0AGqZdmKgrf4c-GykzACI0vvWtb173KKi20vCj6X_IiDBByqY7bPb4m4gPqmo-ZOvf-xALQRgSk9S-aRaAQnuj6vPG0_tdg0FMof/s1600/2016-09-01+19_54_12-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="62" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaRZExgk2ZfbFCcdSf0YeYvA6jxX9lU-eH_Zgvu0Bu0AGqZdmKgrf4c-GykzACI0vvWtb173KKi20vCj6X_IiDBByqY7bPb4m4gPqmo-ZOvf-xALQRgSk9S-aRaAQnuj6vPG0_tdg0FMof/s640/2016-09-01+19_54_12-orangepiplus2e_0+-+VNC+Viewer.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
<div style="text-align: left;">
<div style="text-align: left;">
<span style="font-size: small;"><code><span style="background-color: black;"><span style="background-color: white;"><span style="background-color: white;">Maintenant, sur
votre PC, Tablette ou Téléphone portable, vous devez installer une
application cliente pour vous connecter à l'orange pi. Sur PC, j'ai
choisi le client Vnc Viewer (il en existe d'autres comme ultra vnc, real
vnc..) : </span>
</span></span></code></span></div>
<span style="font-size: small;">
</span>
<br />
<div class="code">
<span style="font-size: small;">
</span>
<br />
<div style="text-align: left;">
<span style="font-size: small;"><span style="background-color: white;">Vous pouvez le télécharger ici :<a href="https://www.realvnc.com/download/viewer/"> https://www.realvnc.com/download/viewer/</a></span></span><span style="font-size: small;">
</span></div>
</div>
<div class="code" style="text-align: left;">
<span style="font-size: small;"><span style="background-color: white;">Aucune installation n'est nécessaire, vous récupérez un programme que vous pouvez exécuter directement.</span></span></div>
<div style="text-align: left;">
<span style="font-size: small;">
</span></div>
<div class="code" style="text-align: left;">
<span style="font-size: small;"><span style="background-color: white;">Cela donne ceci lorsque vous le lancez :</span></span></div>
<div class="code">
<span style="background-color: white;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1WN4pc0btULxDfpLL2cJJOx2N-Wx8DUcUYO_gatI8kDXo5z8LLc9RXwZDxXPM8Lm4fozMQ0Y6RjfMUKsNZIs3klI-blnjeex-tlG3bswZjnLOLzjSajVNTHCurwR74DlPMKdAs1RBK-cP/s1600/2016-05-12+20_54_40-Blogger%25C2%25A0_+Bitcoin+Full+Node+sur+RaspBerry+Pi+-+Modifier+l%2527article.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Client VNC sur pc" border="0" height="162" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1WN4pc0btULxDfpLL2cJJOx2N-Wx8DUcUYO_gatI8kDXo5z8LLc9RXwZDxXPM8Lm4fozMQ0Y6RjfMUKsNZIs3klI-blnjeex-tlG3bswZjnLOLzjSajVNTHCurwR74DlPMKdAs1RBK-cP/s320/2016-05-12+20_54_40-Blogger%25C2%25A0_+Bitcoin+Full+Node+sur+RaspBerry+Pi+-+Modifier+l%2527article.png" title="" width="320" /></a></div>
<div class="code">
<span style="background-color: white;"><br /></span></div>
<div class="code">
<span style="background-color: white;">Au niveau de la ligne VNC Server, indiquez votre adresse ip publique puis le port sous la forme :</span></div>
<div class="code">
<span style="background-color: white;">XX.XX.XX.XX:5900 ou sur votre PC, vous pouvez entrer l'adresse ip locale : 192.168.1.16:5900</span></div>
<div class="code">
<span style="background-color: white;">(Vous pouvez trouver votre adresse publique en vous connectant sur le site <a href="http://www.mon-ip.com/">http://www.mon-ip.com/</a> par exemple).</span><br />
<br />
Connectez le disque dur externe sur un port USB de l'orange pi (<u><b>sur le connecteur qui comporte 2 ports USB</b></u> car ce sont ceux qui fournissent un courant suffisant pour un disque dur externe 2,5"). Après quelques secondes, un icône doit apparaitre sur le bureau, représentant le disque dur connecté avec son libellé (FullNode) :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl8W7qmebAn2I6LTIaLyTbDx5_9V6Ot9pzyW4ZYtf01EzrptdTpvBgn8jjuJKhRN9pKkxbXELbA8aUB0ihq7cmweWZehVk1K_JRjtwaljxHXthXzPgBmk-0reAqihGetuUSIkRm3x-i06O/s1600/2016-09-01+20_46_55-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl8W7qmebAn2I6LTIaLyTbDx5_9V6Ot9pzyW4ZYtf01EzrptdTpvBgn8jjuJKhRN9pKkxbXELbA8aUB0ihq7cmweWZehVk1K_JRjtwaljxHXthXzPgBmk-0reAqihGetuUSIkRm3x-i06O/s1600/2016-09-01+20_46_55-orangepiplus2e_0+-+VNC+Viewer.png" /></a></div>
<br />
Faire clic droit sur cet icône, puis 'Open', Notez le chemin sur lequel le disque est monté (ici : <b>/media/bitcoin/FullNode</b>. A noter : Lors d'un redémarrage de l'Orange pi, il <u><b>faudra double cliquer sur cet icone pour monter le disque dur avant de relancer le client bitcoin</b></u>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC20sj-41bSd-27MT3En0yNeUOWcbWAiPfK_Xf4lhZeK9Jpuo9_gdgqaxxhi9S9xpcxObJZgd1dBDjmLdKPWgw5cJG6lMGFImm4TRAjopOmBBpupApDW-RximC1UrMtJGjJrV2xg7mi0zH/s1600/2016-09-01+20_49_54-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="444" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC20sj-41bSd-27MT3En0yNeUOWcbWAiPfK_Xf4lhZeK9Jpuo9_gdgqaxxhi9S9xpcxObJZgd1dBDjmLdKPWgw5cJG6lMGFImm4TRAjopOmBBpupApDW-RximC1UrMtJGjJrV2xg7mi0zH/s640/2016-09-01+20_49_54-orangepiplus2e_0+-+VNC+Viewer.png" width="640" /></a></div>
<br />
<span style="font-size: small;">Nous allons créer un raccourci sur le bureau, pour lancer le bitcoin core. Pour cela, faire clic droit sur le bureau, puis "Create Launcher" : </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2pHffQC14JoFmjnMSIC9KmTjCNKdDPq4hhQbGo4aNVZFqHnl8me_FUW11qtT-X1yg4b5c12Dkh4qwA_Y7WMXBTcYsxiN7qVM74tLoU7cLwjc9E73hMmPfvzVWO20Xz3wEvEbJdpjsW70g/s1600/snapshot10.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2pHffQC14JoFmjnMSIC9KmTjCNKdDPq4hhQbGo4aNVZFqHnl8me_FUW11qtT-X1yg4b5c12Dkh4qwA_Y7WMXBTcYsxiN7qVM74tLoU7cLwjc9E73hMmPfvzVWO20Xz3wEvEbJdpjsW70g/s1600/snapshot10.png" /></a></div>
<br />
Entrez les informations suivantes.<br />
Dans la case "Command", entrez : <b>/usr/local/bin/bitcoin-qt</b> <b>-datadir=/media/bitcoin/FullNode</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgckwcWFNdhePyO_uTu_K0AOzgOnlkeFIohCQtl9XacfebQXWT06zh5cNjsApVkLRz7iLyWpYjFddwVPefFAwjy3_7QYV0DOsWW17MRKyA1lr-Xa9QXyV9lyZn1zJrvP2TpwkUiM1JhFfCh/s1600/2016-09-01+21_03_42-orangepiplus2e_0+-+VNC+Viewer.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgckwcWFNdhePyO_uTu_K0AOzgOnlkeFIohCQtl9XacfebQXWT06zh5cNjsApVkLRz7iLyWpYjFddwVPefFAwjy3_7QYV0DOsWW17MRKyA1lr-Xa9QXyV9lyZn1zJrvP2TpwkUiM1JhFfCh/s320/2016-09-01+21_03_42-orangepiplus2e_0+-+VNC+Viewer.png" width="284" /></a></div>
<br />
Cliquez
sur le bouton "No icon", la fenêtre suivante apparait après une
vingtaine de secondes, cliquez sur la petite flèche en haut à droite : <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtQfSEXYJeiHRFYFw9dZWQ-aMyyGeLFhL0CphYa2uFDG3iJlroMXp1P5upsDFy3vWV87HSdtCU7UCwm6ZETELKsawUx3WpsVVwBg64oWTroZDrnGTDSAOhQRSQYXhf96gA4c1OTmZWRf4P/s1600/2016-09-01+21_04_31-orangepiplus2e_0+-+VNC+Viewer.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="476" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtQfSEXYJeiHRFYFw9dZWQ-aMyyGeLFhL0CphYa2uFDG3iJlroMXp1P5upsDFy3vWV87HSdtCU7UCwm6ZETELKsawUx3WpsVVwBg64oWTroZDrnGTDSAOhQRSQYXhf96gA4c1OTmZWRf4P/s640/2016-09-01+21_04_31-orangepiplus2e_0+-+VNC+Viewer.png" width="640" /></a></div>
<br />
Sélectionnez "Image Files" : <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAHA-RPDwIPI3KJTKySTwA-GJkVHWy_Q6ibs8HjmSbNj9l8rByR2XbroRKGV3uTwnp9pdE8l-NtB4HJ5KOV94rfITEhb7tomV8ZYPoOiSPTiiAES3ljeo4hbBwa0kXgL6Za95EefzxfaiB/s1600/snapshot11.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="323" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAHA-RPDwIPI3KJTKySTwA-GJkVHWy_Q6ibs8HjmSbNj9l8rByR2XbroRKGV3uTwnp9pdE8l-NtB4HJ5KOV94rfITEhb7tomV8ZYPoOiSPTiiAES3ljeo4hbBwa0kXgL6Za95EefzxfaiB/s640/snapshot11.png" width="640" /></a></div>
<br />
<span style="font-size: small;"> Puis descendez dans l’arborescence pour sélectionner au final, le chemin suivant :</span><br />
<span style="font-size: small;"><span style="font-size: small;"><b> /home/bitcoin/bin/db-4.8.30.NC/build_unix/bitcoin/share/pixmaps</b> :</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: small;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNd6_1PMF6r2bdizUt6i47GVI_EmIb_kfDnzQXuQu1PIfn1W8K9wcO3aaaslCDLSRwhqqvUAX7ZhVTD6WsLdIFk0RrVTa5E4-uiCOr9nvVIR5yrfEY4lCd9_M_Cn04D92j5xC6EL8gVxac/s1600/2016-09-01+21_07_41-orangepiplus2e_0+-+VNC+Viewer.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="354" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNd6_1PMF6r2bdizUt6i47GVI_EmIb_kfDnzQXuQu1PIfn1W8K9wcO3aaaslCDLSRwhqqvUAX7ZhVTD6WsLdIFk0RrVTa5E4-uiCOr9nvVIR5yrfEY4lCd9_M_Cn04D92j5xC6EL8gVxac/s640/2016-09-01+21_07_41-orangepiplus2e_0+-+VNC+Viewer.png" width="640" /></a></span></div>
<br />
<span style="font-size: small;">Et sélectionnez le fichier icône :<b> bitcoin256.xpm</b></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilpi9pMS-t21y-et_TkXD2aQOIqqDNdztHAuyhAyyJM6NWfaLutxES0L215O9R-MU2dO91ziq1w0MElsxkJOTiV8RePurHfQESoJqkmQRwk4ZT_P7Fj74KoA_Q2H3_af_H53R7z_VCl2OP/s1600/2016-09-01+21_08_26-orangepiplus2e_0+-+VNC+Viewer.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="483" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilpi9pMS-t21y-et_TkXD2aQOIqqDNdztHAuyhAyyJM6NWfaLutxES0L215O9R-MU2dO91ziq1w0MElsxkJOTiV8RePurHfQESoJqkmQRwk4ZT_P7Fj74KoA_Q2H3_af_H53R7z_VCl2OP/s640/2016-09-01+21_08_26-orangepiplus2e_0+-+VNC+Viewer.png" width="640" /></a></div>
<br />
<span style="font-size: small;">Pour finir, cliquez sur "<b>Create</b>" : </span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: small;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg98R0NS50WseDcY5V_ffpeLo8BTqbFQgCVEYkTGFejVo6ppB1WU_ccDRcU1tz-rupLzOwFIJWXcJjDohj4GmhAvt4xOz8QYSKz1IdU7UT18m0z6TgBXbDbRhOTeSELJLaM8C1o5AZ5Nqr/s1600/2016-09-01+21_08_52-orangepiplus2e_0+-+VNC+Viewer.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg98R0NS50WseDcY5V_ffpeLo8BTqbFQgCVEYkTGFejVo6ppB1WU_ccDRcU1tz-rupLzOwFIJWXcJjDohj4GmhAvt4xOz8QYSKz1IdU7UT18m0z6TgBXbDbRhOTeSELJLaM8C1o5AZ5Nqr/s320/2016-09-01+21_08_52-orangepiplus2e_0+-+VNC+Viewer.png" width="278" /></a></span></div>
<br />
<span style="font-size: small;"> Voila, notre raccourci bitcoin, sur le bureau :</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx4FEUZO5CPMLK7bBLq0NbSimWBz9SydPF35fvZaCu_v3UW5bfI8Np-pmkktNCYMbvQK1mT7t5zHSDA1jXgVmLaQQ4PT7CoC03IZ7NjzsmNpWloH9DmQpVh7GqY-omGxE9DAqdtRH3MYSO/s1600/2016-09-01+22_03_17-orangepiplus2e_0+-+VNC+Viewer.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx4FEUZO5CPMLK7bBLq0NbSimWBz9SydPF35fvZaCu_v3UW5bfI8Np-pmkktNCYMbvQK1mT7t5zHSDA1jXgVmLaQQ4PT7CoC03IZ7NjzsmNpWloH9DmQpVh7GqY-omGxE9DAqdtRH3MYSO/s320/2016-09-01+22_03_17-orangepiplus2e_0+-+VNC+Viewer.png" width="235" /></a></div>
<h3 style="text-align: left;">
CONFIGURATION POUR LE CLIENT BITCOIN :</h3>
Avant
de lancer le client bitcoin, nous allons configurer la box pour que le
client puisse accepter les connections entrantes sur le port par défaut :
<b>8333.</b> Ainsi vous pourrez partager la blockchain avec d'autres.<br />
<br />
<div class="code">
<span style="background-color: white;">Connectez vous à votre box (pour moi, je tape
192.168.1.1 dans mon navigateur puis mon nom d'utilisateur/mot de passe personnel). Dans la partie "<b>Réseau</b>", puis "<b>Paramètres Avancés</b>" et "<b>Transfert de port</b>s",
il faut ajouter le port 8333 qui va être redirigé vers l'adresse IP de
notre réseau local du raspberry (pour moi, 192.168.1.16) comme
ci-dessous :</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidiQkV1NhQNzyNrJsCDhsxuwwKUF8iK8ZTq_uyS309odjgr6B2V7H9EeCYL5rGDyRwgxUt4uQnTiekk01ne4erqr6U5VjWNvrsR4lQghGeVUJhW-_2v3dOFqBEVNX7IpgX8JSgEKzvtR7t/s1600/2016-05-14+17_40_41-Clipboard.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="440" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidiQkV1NhQNzyNrJsCDhsxuwwKUF8iK8ZTq_uyS309odjgr6B2V7H9EeCYL5rGDyRwgxUt4uQnTiekk01ne4erqr6U5VjWNvrsR4lQghGeVUJhW-_2v3dOFqBEVNX7IpgX8JSgEKzvtR7t/s640/2016-05-14+17_40_41-Clipboard.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIKXYIdhDY4gVVtrMSfhqBxN3GCKDNRFdg2N7OWojcLRIwVsJ6-dnS_GwvzO2IRxTtoRIQRJXLaJsShHk6h7P7IUOqUaTCauVUW9TnzTBbOovffMZpEW500WzNHOXTTK8H-F3eW3fMjbk6/s1600/2016-05-12+21_57_15-Mon+Modem.png" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Une fois la box configurée, vous pouvez lancer le client bitcoin sur le bureau. Double cliquez sur l'icone <b>bitcoin-qt</b> sur le bureau : </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtkjpjRU-EeB94n0RLBrr0SAstZ4NebSZooVAO-iRSeXnJ5QNpAr8nrEzfvKK7a_gxqh5yVH5oev6Vfqqxyf6vuF1B1HCIJe9G5cO68-grZhmMzl6bi17lqeBrNJymEIymISF8wtUcyPZi/s1600/2016-09-01+22_02_57-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtkjpjRU-EeB94n0RLBrr0SAstZ4NebSZooVAO-iRSeXnJ5QNpAr8nrEzfvKK7a_gxqh5yVH5oev6Vfqqxyf6vuF1B1HCIJe9G5cO68-grZhmMzl6bi17lqeBrNJymEIymISF8wtUcyPZi/s1600/2016-09-01+22_02_57-orangepiplus2e_0+-+VNC+Viewer.png" /></a></div>
<div class="" style="clear: both; text-align: left;">
La première fois, une fenêtre s'affiche, cliquez sur "<b>Mark Executable</b>" :</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkAqk8VUDoFJolPNNswrEz8Y2HS0bCv64YzW2gdglawN8W9SYvR9dzLEGubkmdtLUQaKC-su5YD28U8QEoRI29N1tDX5OGWVOyvC5_PKIya_4JFDtnL0f26DhK1aANJPn1_edB2AyPjYqM/s1600/2016-09-01+22_11_15-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="173" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkAqk8VUDoFJolPNNswrEz8Y2HS0bCv64YzW2gdglawN8W9SYvR9dzLEGubkmdtLUQaKC-su5YD28U8QEoRI29N1tDX5OGWVOyvC5_PKIya_4JFDtnL0f26DhK1aANJPn1_edB2AyPjYqM/s400/2016-09-01+22_11_15-orangepiplus2e_0+-+VNC+Viewer.png" width="400" /></a></div>
<br />
Le client bitcoin démarre <b>:</b></div>
<div class="code">
<b><br /></b> </div>
<div class="code" style="text-align: center;">
<b><span id="goog_1142801868"></span><span id="goog_1142801869"></span></b> </div>
<div class="code">
</div>
<div class="code">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbrAXrfcFj5gSI1iXIuDYJSp_J15r8FXOAMEdiINMY1bmrtn9wiooijXNsqi-XeClLK3x1fLkOj8Adp58eideD9ilITBYdJJ1D0cQ9tmqsFMVNcT90nVnud7VOTC9_tQ7i3pPoiSgkUTaX/s1600/2016-09-01+22_35_38-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="230" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbrAXrfcFj5gSI1iXIuDYJSp_J15r8FXOAMEdiINMY1bmrtn9wiooijXNsqi-XeClLK3x1fLkOj8Adp58eideD9ilITBYdJJ1D0cQ9tmqsFMVNcT90nVnud7VOTC9_tQ7i3pPoiSgkUTaX/s320/2016-09-01+22_35_38-orangepiplus2e_0+-+VNC+Viewer.png" width="320" /></a></div>
<br />
<br />
<span style="background-color: white;">Le
client commence alors à se synchroniser avec le réseau et récupère la
blockchain. Avec la version 0.13, la synchronisation prend environ 48h pour récupérer la totalité de la blockchain. </span><br />
<br /></div>
<br />
Je vous conseille d'ouvrir
une fenêtre terminal et de lancer une petite commande pour vérifier dans
le log que tout se passe bien :<br />
<br />
<code><span style="background-color: white;"><code></code></span><span style="color: white;"><span style="background-color: black;">cd /media/bitcoin/FullNode</span></span></code><br />
<code><span style="background-color: white;"><code></code></span><span style="color: white;"><span style="background-color: black;">tail -f debug.log</span></span></code><br />
<code><br /></code>
<code>Ce qui donne :</code><br />
<div class="separator" style="clear: both; text-align: center;">
<code><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk7mZovQkkGM2-yeAA1AAgpIeg8VSDAJFr-zvIkQxcEDP94ooqyrpe_d4wuqBeLEk_4z9tIsdIA6qz_JsjOZAuLHK_z4nL_ZpDUZpYX4Nvei8CB4LKXgEWNIbh714be2xhD-f8egUWQ4v7/s1600/2016-05-14+18_08_51-rokos_0+-+VNC+Viewer.png" style="margin-left: 1em; margin-right: 1em;"><img alt="debug.log bitcoin" border="0" height="154" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk7mZovQkkGM2-yeAA1AAgpIeg8VSDAJFr-zvIkQxcEDP94ooqyrpe_d4wuqBeLEk_4z9tIsdIA6qz_JsjOZAuLHK_z4nL_ZpDUZpYX4Nvei8CB4LKXgEWNIbh714be2xhD-f8egUWQ4v7/s640/2016-05-14+18_08_51-rokos_0+-+VNC+Viewer.png" title="" width="640" /></a></code></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: x-small;">la blockchain bitcoin en cours de récupération</span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<code>Dans le menu "A<span style="font-size: small;">i</span>de" du client bitcoin, cliquez sur "Fenêtre de débogage", pour afficher l'état des connexions en cours :</code></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXhE27sGgDL-XSZXeTdNZtI9tQEb2UuaNevOIYxGTPGDmXeLqu2XsrPIFlyaFc8eS27Z1Slv4vl-jA2ZpgQEytBq2oog4RsvANSfcXgakP8Xrwtg2vVKVAygqZy7JFN9-QQkjjWHjt1lb2/s1600/2016-09-02+18_16_14-orangepiplus2e_0+-+VNC+Viewer.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="425" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXhE27sGgDL-XSZXeTdNZtI9tQEb2UuaNevOIYxGTPGDmXeLqu2XsrPIFlyaFc8eS27Z1Slv4vl-jA2ZpgQEytBq2oog4RsvANSfcXgakP8Xrwtg2vVKVAygqZy7JFN9-QQkjjWHjt1lb2/s640/2016-09-02+18_16_14-orangepiplus2e_0+-+VNC+Viewer.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
Pour vérifier que votre noeud bitcoin est bien reconnu sur le réseau, rendez-vous sur <a href="https://bitnodes.21.co/">https://bitnodes.21.co/</a><br />
<br />
Entrez votre adresse ip publique et cliquez sur "Check Node". Si votre noeud est opérationnel, il doit apparaitre en vert :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUpcroEekjrVniTSANRGAUfq7PRZR20WvMwcXzLvQyOnO5kBU2CVcd9VialJFUDIxILHRLAZoAW6gmlBlwC93vCPgFI8ZfHiEVHxXP65qtHNx8I2_aSK9mXgXPOJHXNCEYOdmhlLsf21bi/s1600/2016-05-15+11_28_21-Films+et+TV.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Noeud bitcoin sur le site https://bitnodes.21.co" border="0" height="416" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUpcroEekjrVniTSANRGAUfq7PRZR20WvMwcXzLvQyOnO5kBU2CVcd9VialJFUDIxILHRLAZoAW6gmlBlwC93vCPgFI8ZfHiEVHxXP65qtHNx8I2_aSK9mXgXPOJHXNCEYOdmhlLsf21bi/s640/2016-05-15+11_28_21-Films+et+TV.png" title="" width="640" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
En cliquant sur le lien de votre noeud, vous pourrez obtenir des informations sur la disponibilité de celui-ci : </div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA5z8CWLaO1iaUIOH3FPL4oknkHc5kifiNEIKTopuh8HKd3hZdqYhYkOifstKtZPJXvCnnIj9IxV4Z7anMGgfDTXqzuF3htFpl1Ehlkxg6i0SinAVaWLHUZbCNe85C6BRjwtdrhx5mzr81/s1600/2016-09-05+19_19_52-89.159.178.184_8333+-+Bitnodes.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA5z8CWLaO1iaUIOH3FPL4oknkHc5kifiNEIKTopuh8HKd3hZdqYhYkOifstKtZPJXvCnnIj9IxV4Z7anMGgfDTXqzuF3htFpl1Ehlkxg6i0SinAVaWLHUZbCNe85C6BRjwtdrhx5mzr81/s640/2016-09-05+19_19_52-89.159.178.184_8333+-+Bitnodes.png" width="452" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI-htLu0Xvyq1Lo6XxpYd06SEmRRG9sv0QwxMS7yH4DOcAEadqrUubqWUaxqiu2xiPydVdHmt-6LsZQwVyzLy2ptZ6nAWxlkY_Ar4fprRioXXg6o9P67cv0YPo1GsKfnBr-_NkODwahhpf/s1600/2016-05-15+15_23_55-87.231.21.54_8333+-+Bitnodes.png" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div style="text-align: left;">
Après plusieurs jours de fonctionnement non-stop, la mémoire utilisée de l'orange pi préserve encore environ 500mo de mémoire libre, donc, tout va bien :<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
</div>
<h3 style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT8M4c5HCLbpa6KBYvWb12mA-zwpyTQ6Btm5YkpGnkYwzLgip00Y4d6J4rebZnbxhBSyrva-2-9zad4y5gmUFV_gITVY4fiea9MDk7lOhAX2bm1Cn5AXjAXpF6N38jw0GF4P3bLf3awLQt/s1600/2016-09-05+18_16_55-orangepiplus2e_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="338" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT8M4c5HCLbpa6KBYvWb12mA-zwpyTQ6Btm5YkpGnkYwzLgip00Y4d6J4rebZnbxhBSyrva-2-9zad4y5gmUFV_gITVY4fiea9MDk7lOhAX2bm1Cn5AXjAXpF6N38jw0GF4P3bLf3awLQt/s640/2016-09-05+18_16_55-orangepiplus2e_0+-+VNC+Viewer.png" width="640" /></a></div>
</h3>
<h3 style="text-align: left;">
CONSOMMATION DU DISPOSITIF :</h3>
<div style="text-align: left;">
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: small;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6OmpIg9X9Ooa_SRVrpEZBYCdr7Cyk8jyq9hVl2NDP_6TaQT0iUqJY4VxKFIJiZS64PKavqjhp2ZYNsE3o6UcZB3FlfuRNgaJFr9MDmUC2W50q_wjZ2ST-xyQm7rigsW-xeZKqdzJb72YT/s1600/20160902_125544.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6OmpIg9X9Ooa_SRVrpEZBYCdr7Cyk8jyq9hVl2NDP_6TaQT0iUqJY4VxKFIJiZS64PKavqjhp2ZYNsE3o6UcZB3FlfuRNgaJFr9MDmUC2W50q_wjZ2ST-xyQm7rigsW-xeZKqdzJb72YT/s400/20160902_125544.jpg" width="400" /></a></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div style="text-align: center;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOdDqJSP_OWrbETbgijCyKpPtd3FggJXjFN-dWm-sPpfWaR6j5chaop0F1Wub4jUKBqe5xe_98pnRDqujrXe381eOTC6Nl7552qgiOp1YBvidVLcaE7pFKULwF2TqQeLk5g4IqwwPo4ZRE/s1600/20160905_190909.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOdDqJSP_OWrbETbgijCyKpPtd3FggJXjFN-dWm-sPpfWaR6j5chaop0F1Wub4jUKBqe5xe_98pnRDqujrXe381eOTC6Nl7552qgiOp1YBvidVLcaE7pFKULwF2TqQeLk5g4IqwwPo4ZRE/s640/20160905_190909.jpg" width="360" /></a></div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<span style="font-size: small;">Comme on peut le voir sur la photo, l'ensemble du dispositif coute en moyenne <b>6,47€ / an.</b></span></div>
<br />
<div style="text-align: left;">
<span style="font-size: small;">Tout cela reste négligeable : environ <b>0,54€ / mois</b> pour faire tourner un noeud bitcoin chez soi.. Alors, à vous, maintenant, </span><br />
<span style="font-size: small;"><span style="font-size: x-large;"><b>lancez vous !.. </b></span></span></div>
<div style="text-align: left;">
<span style="font-size: small;"> </span> </div>
</div>
</div>
<br /></div>
</div>
</div>
ungaro59http://www.blogger.com/profile/00244263167814565609noreply@blogger.com0Paris, France48.856614 2.352221900000017748.6894645 2.0294984000000178 49.0237635 2.6749454000000177tag:blogger.com,1999:blog-2546213527854314913.post-6113268557812550812016-06-07T22:49:00.006+02:002016-06-14T20:56:31.214+02:00Installation de Munin sur le noeud bitcoin (statistiques graphiques)<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitSc2_9BZaH61AHaQ9eXo4nCtmG4snmJzUxGrRo5bZFWNXHyUxpoqF6tyDnDIeqxKxyUm4S5KLKby8thLdkjPDBMIYQthmjJ5P1CQwsVr_d4sRCR6y8mNgHCAonakCW-7FYz1WtOZ8Gpc4/s1600/2016-06-09+19_38_35-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoY90F7SBhvCN2l5Y5giokcA0UFmgL80Ma-Z_frD0E6WuVG22ZZ6GWSAoO9wrGPOEgWXN0_M9r6y6w98uhzfkmNlbgQ2VP54MMpmZgV3G8zw3TInLuY5iVqxqc7bw6aoBmA0u7wvOD_ovQ/s1600/2016-06-07+22_25_30-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoY90F7SBhvCN2l5Y5giokcA0UFmgL80Ma-Z_frD0E6WuVG22ZZ6GWSAoO9wrGPOEgWXN0_M9r6y6w98uhzfkmNlbgQ2VP54MMpmZgV3G8zw3TInLuY5iVqxqc7bw6aoBmA0u7wvOD_ovQ/s320/2016-06-07+22_25_30-Munin.png" width="320" /></a></div>
<br />
<b>INSTALLATION DE MUNIN ET CONFIGURATION DU RASPBERRY PI</b><br />
<br />
<span style="font-size: small;"><b>Avant Propos </b></span><br />
<br />
Si vous avez suivi le tuto concernant l'installation et la configuration du noeud bitcoin, vous serez surement intéressé de pouvoir consulter à tout moment l'état du noeud de façon plus complète grâce à un serveur web consultable à distance.<b> </b>Pour cela, nous allons installer sur le raspberry un logiciel permettant d'effectuer un suivi via des graphiques de l'état du système et du fonctionnement du noeud en général.<br />
<br />
<br />
<a name='more'></a><br />
<br />
<b>INSTALLATION DU SERVEUR WEB APACHE ET MUNIN</b><br />
<br />
Nous allons commencer par installer un serveur web apache :<br />
<br />
<span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code><b></b></code>sudo apt-get install apache2 libcgi-fast-perl libapache2-mod-fcgid</span></span></span><br />
<br />
Vérifier l'installation d'apache en tapant l'adresse ip de votre raspberry dans un navigateur. Vous devez obtenir la page de démarrage du serveur web apache :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimtGSGPgF9GvVUgshjZam5klXQ2jl1Jp-ZfVkQ11KitG-wEH7Z14TciOLY3YeXgNoToR7Pq4WFqPd-9a7_5D8OpMHXgwtN49Wg0Ws1GFCjq2ptKY1Sx_f9JDOBFQaZQdxbGj_UJ6mt-icl/s1600/2016-06-07+22_40_09-Apache2+Debian+Default+Page_+It+works.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="532" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimtGSGPgF9GvVUgshjZam5klXQ2jl1Jp-ZfVkQ11KitG-wEH7Z14TciOLY3YeXgNoToR7Pq4WFqPd-9a7_5D8OpMHXgwtN49Wg0Ws1GFCjq2ptKY1Sx_f9JDOBFQaZQdxbGj_UJ6mt-icl/s640/2016-06-07+22_40_09-Apache2+Debian+Default+Page_+It+works.png" width="640" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Installer le calculateur basique (nécessaire à un plugin munin pour bitcoin) :</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code>sudo apt-get install bc</span></span></span></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
Installer le grapheur munin :</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code>sudo apt-get install </span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">munin munin-node munin-plugins-extra </span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Pour éviter de solliciter la carte sd du raspberry pour les écritures des données statistiques du grapheur, nous allons créer des dossiers sur le disque USB externe.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Pour cela, taper :</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code>cd /home/pi/bitcoinData</span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code>mkdir munin</span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code>mkdir munin/dbdir</span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code>mkdir munin/htmldir</span></span></span></span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code>mkdir munin/logdir</span></span></span></span></span></span> </span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
Modifier le fichier <b>munin.conf</b> et changer les dossiers de base pour les faire pointer sur le disque dur externe:</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"> </span></span></span></span></span></span></span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">sudo nano </span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">/etc/munin/munin.conf</span></span></span></span></span></span></span></span></span></div>
<br />
Coller le texte suivant dans le fichier :<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
dbdir /home/pi/bitcoinData/munin/dbdir</div>
htmldir /home/pi/bitcoinData/munin/htmldir<br />
logdir /home/pi/bitcoinData/munin/logdir<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIkt6HfAGGKRAJ3vl7aM87EM6vyzRuJ6hH93ptdpn5z05iToSqtv0ZQtUuDyDXlcXe4xhG2svleIzo7c26yFZkzKrg0YJDzPen91P0j6QgPJaao3_Fxi-5zqNkonRIPitp3nJOD8fTNyNK/s1600/2016-06-08+18_01_02-rokos_0+-+VNC+Viewer.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="409" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIkt6HfAGGKRAJ3vl7aM87EM6vyzRuJ6hH93ptdpn5z05iToSqtv0ZQtUuDyDXlcXe4xhG2svleIzo7c26yFZkzKrg0YJDzPen91P0j6QgPJaao3_Fxi-5zqNkonRIPitp3nJOD8fTNyNK/s640/2016-06-08+18_01_02-rokos_0+-+VNC+Viewer.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">Relancer le service munin : </span></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">sudo </span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">service </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">munin-node restart</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
re-configuration de munin pour tenir compte des nouveaux paramètres :</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code>su - root</span></span></span></span></span></span></span></span></span> (tapez votre mot de passe root, par défaut <b>raspberry</b>)</div>
<div class="separator" style="clear: both; text-align: left;">
root@rokos:~# <span style="color: white;"><span style="background-color: black;">su - munin --shell=/bin/bash</span></span></div>
munin@rokos:~$ <span style="color: white;"><span style="background-color: black;">munin-cron</span></span><br />
<br />
=> Attendre 2 mn le temps que la config se fasse sur le DD externe.<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Créer le fichier "bitcoind" :</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">sudo nano /etc/munin/plugin-conf.d/bitcoind</span></span></span></span></span></span> </span></span></span></div>
<br />
Lui coller le contenu suivant :<br />
[bitcoind*]<br />
user pi<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBk670voTvrhndAZauzXMpaGo7gccDD1BQdaxgJI2vy8GeQ70Txy9LNNqh6KjvmiaCef-olpcj1F-IUQzcJmbOmS9VuiUWQ4OmFN9rHRode32nktdxFGABoEA-71rYNcUhUQX5Qx0jVNGv/s1600/2016-06-08+18_03_58-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="184" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBk670voTvrhndAZauzXMpaGo7gccDD1BQdaxgJI2vy8GeQ70Txy9LNNqh6KjvmiaCef-olpcj1F-IUQzcJmbOmS9VuiUWQ4OmFN9rHRode32nktdxFGABoEA-71rYNcUhUQX5Qx0jVNGv/s640/2016-06-08+18_03_58-rokos_0+-+VNC+Viewer.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
Copier le fichier de configuration bitcoin sur le lecteur USB :</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">cp /home/pi/.bitcoin/bitcoin.conf /home/pi/bitcoinData/bitcoin.conf</span></span></span></span></span></span> </span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Modifier le contenu du fichier apache24.conf pour autoriser les utilisateurs à se connecter au serveur web :</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">sudo nano /etc/munin/apache24.conf</span></span></span></span></span></span></span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Modifier le fichier comme suit :<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Alias /munin /home/pi/bitcoinData/munin/htmldir</div>
<Directory /home/pi/bitcoinData/munin/htmldir><br />
# Require local<br />
Require all granted<br />
Options FollowSymLinks SymLinksIfOwnerMatch<br />
Options None<br />
</Directory><br />
<br />
ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph<br />
<Location /munin-cgi/munin-cgi-graph><br />
# Require local<br />
Require all granted<br />
Options FollowSymLinks SymLinksIfOwnerMatch<br />
<IfModule mod_fcgid.c><br />
SetHandler fcgid-script<br />
</IfModule><br />
<IfModule !mod_fcgid.c><br />
SetHandler cgi-script<br />
</IfModule><br />
</Location><br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2EuKIH96dCE9M7kF-2Y-ZNKqOIUQZqZoyt8bn8ldr_HkYoMgXLFMt4-E5klF-YPvxamWp9PGzzUzdBVWSR50DadZAcmrYFY7E75L3hUW3hyphenhyphenNvuCa_NVwia4l-px4JyH9PPbt49VvZcZXw/s1600/2016-06-08+18_08_31-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="454" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2EuKIH96dCE9M7kF-2Y-ZNKqOIUQZqZoyt8bn8ldr_HkYoMgXLFMt4-E5klF-YPvxamWp9PGzzUzdBVWSR50DadZAcmrYFY7E75L3hUW3hyphenhyphenNvuCa_NVwia4l-px4JyH9PPbt49VvZcZXw/s640/2016-06-08+18_08_31-rokos_0+-+VNC+Viewer.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Relancer le serveur Apache :</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">sudo </span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">service apache2 restart </span></span></span></span></span></span></span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">Relancer le service munin : </span></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">sudo </span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">service </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">munin-node restart</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Se connecter avec un navigateur avec l'adresse ip locale de votre raspberry : <br />
<b>http://Votre Adresse IP/munin</b><br />
<br />
Vous devez obtenir ce retour :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiirjbUwr3jjpu1fu0U9E5Notr4A8gX3A-GUxqHHJ2xieouvMvNFLUQ7cIMQIoo3io2cRhGSVylCXKt39LPEtFLItvWk9wp-ZpCi8HWiE-BOUtoFAtioj1JrbB19wDVscIsBa1H6k2ggBIm/s1600/2016-06-08+18_12_56-Films+et+TV.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="275" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiirjbUwr3jjpu1fu0U9E5Notr4A8gX3A-GUxqHHJ2xieouvMvNFLUQ7cIMQIoo3io2cRhGSVylCXKt39LPEtFLItvWk9wp-ZpCi8HWiE-BOUtoFAtioj1JrbB19wDVscIsBa1H6k2ggBIm/s640/2016-06-08+18_12_56-Films+et+TV.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje8chnMs19EpvtEKKTnjGIWb3OKjijVyFY8BAJVf9L0m8CHS4pdA9UEzukVIEiVHSG_rPlTRXqRV0VWSXHrH6mneWhzQL8I5CH9-DN-YyWBVwscEiku0oIYRjdsQi4IkaRfacINggmPizO/s1600/2016-06-08+18_24_04-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="568" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje8chnMs19EpvtEKKTnjGIWb3OKjijVyFY8BAJVf9L0m8CHS4pdA9UEzukVIEiVHSG_rPlTRXqRV0VWSXHrH6mneWhzQL8I5CH9-DN-YyWBVwscEiku0oIYRjdsQi4IkaRfacINggmPizO/s640/2016-06-08+18_24_04-Munin.png" width="640" /></a></div>
<br />
A ce niveau, la catégorie "bitcoind" ne doit pas être présente, il faut ajouter les plugins qui permettent de surveiller le fonctionnement du noeud bitcoin et de bitcoin core.<br />
<b><br /></b>
<b>INSTALLATION DES PLUGINS BITCOIN </b><br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;"></span></b></span></span></span></span></span><br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;">Vous pouvez installer uniquement les plugins qui vous intéressent :</span></b></span></span></span></span></span><br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;"></span></b></span></span></span></span></span><br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;"><span style="color: magenta;">1) bitcoind_blockchain_verification</span> </span></b></span></span></span></span></span><br />
<br />
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPVaLxgRDRvpd-R694sp9R8F3KzU6Me0ewcxl3pdlU36AIAT_RqyfT6vaWG1X0V4_8DxGjIji8KIL1_VYRaCTAK4Fm39XqybvTkiR8aXVUmIHIHLpVnROUtqBozVPVTSPNlgq1OGpCuwld/s1600/2016-06-08+19_46_53-Munin.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="199" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPVaLxgRDRvpd-R694sp9R8F3KzU6Me0ewcxl3pdlU36AIAT_RqyfT6vaWG1X0V4_8DxGjIji8KIL1_VYRaCTAK4Fm39XqybvTkiR8aXVUmIHIHLpVnROUtqBozVPVTSPNlgq1OGpCuwld/s320/2016-06-08+19_46_53-Munin.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
Plugin permettant de surveiller le pourcentage de récupération de la blockchain. Si le noeud fonctionne en permanence, vous serez toujours près des 100%<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;"> </span></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">cd /usr/share/munin/plugins</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo nano bitcoind_blockchain_verification </span></span><br />
<br />
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span><br />
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 173px; width: 606px;" wrap="VIRTUAL">#!/bin/sh
# -*- sh -*-
# vim: ft=sh
: << =cut
=head1 NAME
bitcoind_blockchain_verification - Plugin to monitor the blockchain verification percentage
=head1 CONFIGURATION
[bitcoind*]
user pi
env.binary bitcoin-cli
env.data_dir /home/pi/bitcoinData
=head1 AUTHOR
Cedric Felizard
=head1 LICENSE
AGPLv3+
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf
=cut
BINARY=${binary:-"/usr/local/bin/bitcoin-cli"}
DATA_DIR=${data_dir:-"/home/pi/bitcoinData"}
if [ "$1" = "autoconf" ]; then
autoconf="yes"
command -v $BINARY >/dev/null || autoconf="no"
echo $autoconf
exit 0
fi
if [ "$1" = "config" ]; then
echo 'graph_title Blockchain verification'
echo 'graph_vlabel percentage'
echo 'graph_category bitcoind'
echo 'graph_info This graph shows the blockchain verification progress.'
echo 'bitcoind_blockchain_verification.label blockchain verification'
echo 'bitcoind_blockchain_verification.info The current progress of the blockchain verification.'
exit 0
fi
pourcent=$($BINARY -datadir=$DATA_DIR getblockchaininfo | grep verificationprogress | grep -o '[0-9.]*')
pourcent=$(echo $pourcent"*100"|bc)
echo "bitcoind_blockchain_verification.value $pourcent"
</textarea></div>
</form>
CTRL-X pour sauvegarder et quitter.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;"></span></span><span style="color: white;"><span style="background-color: black;">sudo chmod 755 bitcoind_blockchain_verification </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">cd /etc/munin/plugins </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /<span style="font-family: "courier new" , "courier" , monospace;">etc</span>/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo ln -s /usr/share/munin/plugins/bitcoind_blockchain_verification bitcoind_blockchain_verification</span></span> <br />
<br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;"><span style="color: magenta;">2) bitcoind_connections</span> </span></b></span></span></span></span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9KNrEDYqPLs8boTBO73C5DcCxH4VG47Yxayao6RNS8LBGD0243Wi2C5brPn1I4wUGdz4bjgn66vrmJ58sbH5OtUy1Ootd_DSAxAG9_DYD5ItyyFqP1ViHVMq1aqw_Bil6U6H1ZaxQvDs3/s1600/2016-06-08+20_51_34-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9KNrEDYqPLs8boTBO73C5DcCxH4VG47Yxayao6RNS8LBGD0243Wi2C5brPn1I4wUGdz4bjgn66vrmJ58sbH5OtUy1Ootd_DSAxAG9_DYD5ItyyFqP1ViHVMq1aqw_Bil6U6H1ZaxQvDs3/s320/2016-06-08+20_51_34-Munin.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
Plugin
permettant de surveiller le nombre de connections entrantes et sortantes de votre noeud bitcoin (par défaut le nombre de connections sortantes est limité à un maximum de 8, tandis que le nombre de connections entrantes peut-être configuré à votre guise, par défaut 125).</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">cd /usr/share/munin/plugins</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo nano bitcoind_connections </span></span><br />
<br />
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span><br />
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 173px; width: 606px;" wrap="VIRTUAL">#!/bin/sh
# -*- sh -*-
# vim: ft=sh
: << =cut
=head1 NAME
bitcoind_connections - Plugin to monitor the number of open connections
=head1 CONFIGURATION
[bitcoind*]
user pi
env.binary bitcoin-cli
env.data_dir /home/pi/bitcoinData
=head1 AUTHOR
Cedric Felizard
=head1 LICENSE
AGPLv3+
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf
=cut
BINARY=${binary:-"/usr/local/bin/bitcoin-cli"}
DATA_DIR=${data_dir:-"/home/pi/bitcoinData"}
if [ "$1" = "autoconf" ]; then
autoconf="yes"
command -v $BINARY >/dev/null || autoconf="no"
echo $autoconf
exit 0
fi
#peers=$($BINARY -datadir=$DATA_DIR getpeerinfo | grep addrlocal | awk -F '"' '{print $4}' | grep ':8333$' | sort | uniq -c | sed 's/:8333$//' | awk '{print $2 " " $1}')
if [ "$1" = "config" ]; then
echo 'graph_title Connection count'
echo 'graph_vlabel number of connections'
echo 'graph_category bitcoind'
echo 'graph_info This graph shows the number of open connections.'
echo 'total.label total'
echo 'outbound.label outbound'
echo 'inbound.label inbound'
exit 0
fi
echo "total.value $($BINARY -datadir=$DATA_DIR getconnectioncount)"
echo "outbound.value $($BINARY -datadir=$DATA_DIR getpeerinfo | grep -c '"inbound": false')"
echo "inbound.value $($BINARY -datadir=$DATA_DIR getpeerinfo | grep -c '"inbound": true')"
</textarea></div>
</form>
CTRL-X pour sauvegarder et quitter.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo chmod 755 bitcoind_connections </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">cd /etc/munin/plugins </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /<span style="font-family: "courier new" , "courier" , monospace;">etc</span>/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo ln -s /usr/share/munin/plugins/bitcoind_connections </span></span><span style="color: white;"><span style="background-color: black;">bitcoind_connections</span></span> <br />
<br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;"><span style="color: magenta;">3) bitcoind_network_traffic</span></span></b></span></span></span></span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIcKAiuycd1jGS6f5KEn4CquN_y_oABXWYLyi1EzZ0bP9GdwNtILdtAXosvcCFV0m_sGPYgQjI-CPQST4Usk08BqTsvzG3oduI4G7BCKfD8xZHSRLvZpmqSXv_T8MwG98XwSC6ra4n5OTB/s1600/2016-06-08+22_43_27-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="219" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIcKAiuycd1jGS6f5KEn4CquN_y_oABXWYLyi1EzZ0bP9GdwNtILdtAXosvcCFV0m_sGPYgQjI-CPQST4Usk08BqTsvzG3oduI4G7BCKfD8xZHSRLvZpmqSXv_T8MwG98XwSC6ra4n5OTB/s320/2016-06-08+22_43_27-Munin.png" width="320" /></a></div>
<br />
Ce plugin permet de suivre l'évolution du trafic réseau en entrée/sortie généré par le noeud bitcoin depuis son lancement.<br />
<br />
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">cd /usr/share/munin/plugins</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo nano bitcoind_network_traffic </span></span><br />
<br />
<br />
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span><br />
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 173px; width: 606px;" wrap="VIRTUAL">#!/bin/sh
# -*- sh -*-
# vim: ft=sh
: << =cut
=head1 NAME
bitcoind_network_traffic - Plugin to monitor the network traffic
=head1 CONFIGURATION
[bitcoind*]
user pi
env.binary bitcoin-cli
env.data_dir /home/pi/bitcoinData
=head1 AUTHOR
Cedric Felizard
=head1 LICENSE
AGPLv3+
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf
=cut
BINARY=${binary:-"/usr/local/bin/bitcoin-cli"}
DATA_DIR=${data_dir:-"/home/pi/bitcoinData"}
if [ "$1" = "autoconf" ]; then
autoconf="yes"
command -v $BINARY >/dev/null || autoconf="no"
echo $autoconf
exit 0
fi
if [ "$1" = "config" ]; then
echo 'graph_title Network traffic'
echo 'graph_vlabel bytes'
echo 'graph_category bitcoind'
echo 'graph_info This graph shows the sum of incoming and outgoing traffic.'
echo 'bitcoind_network_traffic.label Total network traffic'
echo 'bitcoind_network_traffic.info The network traffic.'
echo 'bitcoind_network_traffic_outbound.label outbound'
echo 'bitcoind_network_traffic_inbound.label inbound'
exit 0
fi
echo "bitcoind_network_traffic.value $($BINARY -datadir=$DATA_DIR getnettotals | grep totalbytes | grep -o '[0-9]*' | sed "N;s/\n/+/" | bc)"
echo "bitcoind_network_traffic_outbound.value $($BINARY -datadir=$DATA_DIR getnettotals | grep totalbytessent | grep -o '[0-9]*')"
echo "bitcoind_network_traffic_inbound.value $($BINARY -datadir=$DATA_DIR getnettotals | grep totalbytesrecv | grep -o '[0-9]*')"
</textarea></div>
</form>
CTRL-X pour sauvegarder et quitter.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo chmod 755 bitcoind_network_traffic</span></span><span style="color: white;"><span style="background-color: black;"> </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">cd /etc/munin/plugins </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /<span style="font-family: "courier new" , "courier" , monospace;">etc</span>/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo ln -s /usr/share/munin/plugins/bitcoind_network_traffic bitcoind_network_traffic</span></span><span style="color: white;"><span style="background-color: black;"></span></span> <br />
<br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;"><span style="color: magenta;">4) bitcoind_blocks</span></span></b></span></span></span></span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Oh4p3sGbBAapQoCWvRaBAzv1sc1o8puWdztRkhc2X_lAgThaLMf4NDJV8EkqvwMtiPtjE7HSbcnqnNURJ62H3tz8mt9SC4gnfNHZ6uTYeyqFdrnBOG4XXQ_ngd6OY7wWeqsJCRrU1inm/s1600/2016-06-09+19_20_57-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="201" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Oh4p3sGbBAapQoCWvRaBAzv1sc1o8puWdztRkhc2X_lAgThaLMf4NDJV8EkqvwMtiPtjE7HSbcnqnNURJ62H3tz8mt9SC4gnfNHZ6uTYeyqFdrnBOG4XXQ_ngd6OY7wWeqsJCRrU1inm/s320/2016-06-09+19_20_57-Munin.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Ce plugin indique le nombre de blocks actuellement dans la blockchain.<br />
<br />
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">cd /usr/share/munin/plugins</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo nano bitcoind_blocks </span></span><br />
<br />
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span><br />
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 173px; width: 606px;" wrap="VIRTUAL">#!/bin/sh
# -*- sh -*-
# vim: ft=sh
: << =cut
=head1 NAME
bitcoind_blocks - Plugin to monitor the number of blocks
=head1 CONFIGURATION
[bitcoind*]
user pi
env.binary bitcoin-cli
env.data_dir /home/pi/bitcoinData
=head1 AUTHOR
Cedric Felizard
=head1 LICENSE
AGPLv3+
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf
=cut
BINARY=${binary:-"/usr/local/bin/bitcoin-cli"}
DATA_DIR=${data_dir:-"/home/pi/bitcoinData"}
if [ "$1" = "autoconf" ]; then
autoconf="yes"
command -v $BINARY >/dev/null || autoconf="no"
echo $autoconf
exit 0
fi
if [ "$1" = "config" ]; then
echo 'graph_title Block count'
echo 'graph_vlabel number of blocks'
echo 'graph_category bitcoind'
echo 'graph_info This graph shows the number of blocks.'
echo 'bitcoind_blocks.label blocks'
echo 'bitcoind_blocks.info The current number of blocks.'
exit 0
fi
echo "bitcoind_blocks.value $($BINARY -datadir=$DATA_DIR getblockcount)"
</textarea></div>
</form>
CTRL-X pour sauvegarder et quitter.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo chmod 755 bitcoind_blocks</span></span><span style="color: white;"><span style="background-color: black;"> </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">cd /etc/munin/plugins </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /<span style="font-family: "courier new" , "courier" , monospace;">etc</span>/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo ln -s /usr/share/munin/plugins/bitcoind_blocks bitcoind_blocks </span></span><br />
<br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;"><span style="color: magenta;">5) bitcoind_mempool_bytes</span></span></b></span></span></span></span></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitSc2_9BZaH61AHaQ9eXo4nCtmG4snmJzUxGrRo5bZFWNXHyUxpoqF6tyDnDIeqxKxyUm4S5KLKby8thLdkjPDBMIYQthmjJ5P1CQwsVr_d4sRCR6y8mNgHCAonakCW-7FYz1WtOZ8Gpc4/s1600/2016-06-09+19_38_35-Munin.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitSc2_9BZaH61AHaQ9eXo4nCtmG4snmJzUxGrRo5bZFWNXHyUxpoqF6tyDnDIeqxKxyUm4S5KLKby8thLdkjPDBMIYQthmjJ5P1CQwsVr_d4sRCR6y8mNgHCAonakCW-7FYz1WtOZ8Gpc4/s320/2016-06-09+19_38_35-Munin.png" width="320" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Oh4p3sGbBAapQoCWvRaBAzv1sc1o8puWdztRkhc2X_lAgThaLMf4NDJV8EkqvwMtiPtjE7HSbcnqnNURJ62H3tz8mt9SC4gnfNHZ6uTYeyqFdrnBOG4XXQ_ngd6OY7wWeqsJCRrU1inm/s1600/2016-06-09+19_20_57-Munin.png" style="margin-left: 1em; margin-right: 1em;"></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Ce plugin permet de connaitre le nombre de transactions en attente dans la mempool.<br />
<br />
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">cd /usr/share/munin/plugins</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo nano bitcoind_mempool_bytes </span></span><br />
<br />
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span><br />
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 173px; width: 606px;" wrap="VIRTUAL">#!/bin/sh
# -*- sh -*-
# vim: ft=sh
: << =cut
=head1 NAME
bitcoind_mempool - Plugin to monitor the size of the mempool
=head1 CONFIGURATION
[bitcoind*]
user pi
env.binary bitcoin-cli
env.data_dir /home/pi/bitcoinData
=head1 AUTHOR
Cedric Felizard
=head1 LICENSE
AGPLv3+
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf
=cut
#METRIC=${0##*/bitcoind_mempool_}
#case $METRIC in
# size|bytes);;
# *) exit 1;;
#esac
METRIC="size"
BINARY=${binary:-"/usr/local/bin/bitcoin-cli"}
DATA_DIR=${data_dir:-"/home/pi/bitcoinData"}
if [ "$1" = "autoconf" ]; then
autoconf="yes"
command -v $BINARY >/dev/null || autoconf="no"
echo $autoconf
exit 0
fi
if [ "$1" = "config" ]; then
echo "graph_title MempoolsizeTxs"
echo "graph_vlabelTxs"
echo "graph_category bitcoind"
echo "${METRIC}.label mempool (${METRIC})"
exit 0
fi
mempool="$($BINARY -datadir=$DATA_DIR getmempoolinfo)"
value=$(echo "$mempool" | grep $METRIC | grep -o '[0-9]*')
echo "${METRIC}.value $(echo $value)"
</textarea></div>
</form>
CTRL-X pour sauvegarder et quitter.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo chmod 755 bitcoind_mempool_bytes</span></span><span style="color: white;"><span style="background-color: black;"> </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">cd /etc/munin/plugins </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /<span style="font-family: "courier new" , "courier" , monospace;">etc</span>/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo ln -s /usr/share/munin/plugins/bitcoind_mempool_bytes bitcoind_mempool_bytes </span></span><br />
<br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;"><span style="color: magenta;">6) bitcoind_estimatefee7</span></span></b></span></span></span></span></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioFISO-9jFTwQ6s7tnn1D7O87WfToY6eSyKSfOdWigvkep2eM1oYQDzGnAXvT1CliSbppFw2VlG3y6Okp5TkBlWpxN_j6-tn8DYH3LoEQM4ZmqWk6dfCzwU4zpcwtlsLS4UlUZRaLTBwXw/s1600/2016-06-09+22_00_35-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="201" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioFISO-9jFTwQ6s7tnn1D7O87WfToY6eSyKSfOdWigvkep2eM1oYQDzGnAXvT1CliSbppFw2VlG3y6Okp5TkBlWpxN_j6-tn8DYH3LoEQM4ZmqWk6dfCzwU4zpcwtlsLS4UlUZRaLTBwXw/s320/2016-06-09+22_00_35-Munin.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Ce plugin permet d'estimer les frais d'une transaction bitcoin prioritaire (à confirmer dans les 7 blocs suivants). Permet d'avoir une idée sur l'engorgement du reseau bitcoin. Plus les frais sont elevés, plus le reseau bitcoin sature..<span style="color: white;">n,</span><br />
<br />
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">cd /usr/share/munin/plugins</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo nano bitcoind_estimatefee7 </span></span><br />
<br />
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span><br />
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 173px; width: 606px;" wrap="VIRTUAL">#!/bin/sh
# -*- sh -*-
# vim: ft=sh
: << =cut
=head1 NAME
bitcoind_estimatefee7 - Plugin frais de transactions dans les 7 blocs
=head1 CONFIGURATION
[bitcoind*]
user pi
env.binary bitcoin-cli
env.data_dir /home/pi/bitcoinData
=head1 AUTHOR
Cedric Felizard
=head1 LICENSE
AGPLv3+
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf
=cut
BINARY=${binary:-"/usr/local/bin/bitcoin-cli"}
DATA_DIR=${data_dir:-"/home/pi/bitcoinData"}
if [ "$1" = "autoconf" ]; then
autoconf="yes"
command -v $BINARY >/dev/null || autoconf="no"
echo $autoconf
exit 0
fi
if [ "$1" = "config" ]; then
echo 'graph_title Frais de transaction prioritaire (7 blocs)'
echo 'graph_vlabel Frais de transaction'
echo 'graph_category bitcoind'
echo 'graph_info Frais de transaction dans les 7 blocs (prioritaire).'
echo 'bitcoind_estimatefee7.label estimatefee7'
echo 'bitcoind_estimatefee7.info Frais de transaction.'
exit 0
fi
echo "bitcoind_estimatefee7.value $($BINARY -datadir=$DATA_DIR estimatefee 7)"
</textarea></div>
</form>
CTRL-X pour sauvegarder et quitter.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo chmod 755 </span></span><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;">bitcoind_estimatefee7</span></span></span></span><span style="color: white;"><span style="background-color: black;"> </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">cd /etc/munin/plugins </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /<span style="font-family: "courier new" , "courier" , monospace;">etc</span>/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo ln -s /usr/share/munin/plugins/</span></span><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;">bitcoind_estimatefee7</span></span></span></span> </span></span><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;">bitcoind_estimatefee7</span></span></span></span> </span></span><br />
<br />
<span style="background-color: white;"><span style="color: blue;"><span style="color: #674ea7;"><span style="color: #8e7cc3;"><span style="color: #8e7cc3;"><b><span style="color: cyan;"><span style="color: magenta;">7) bitcoind_cout_transaction_euro</span></span></b></span></span></span></span></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQUxPyzsqBTAYYeD_tjEY306hlVAGXec6iGC4ZH938LelsckgaSxA6dIN4_4JrHy2EhVFeyryJnJ-ZyYv5-vRYilE43T_SI82QGmckqY-NThfPtYerUCqip_Q8D6gs7cw1RRT9kqIUiSpj/s1600/2016-06-11+14_49_27-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQUxPyzsqBTAYYeD_tjEY306hlVAGXec6iGC4ZH938LelsckgaSxA6dIN4_4JrHy2EhVFeyryJnJ-ZyYv5-vRYilE43T_SI82QGmckqY-NThfPtYerUCqip_Q8D6gs7cw1RRT9kqIUiSpj/s320/2016-06-11+14_49_27-Munin.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Dnas le même ordre d'idée, ce
plugin permet d'estimer les frais d'une transaction bitcoin prioritaire
(à confirmer dans les 7 blocs suivants) mais en Euro. La conversion se fait directement avec le dernier cours connu du bitcoin sur la plateforme Kraken.com<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">. </span></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br />
<div style="text-align: left;">
<span style="font-family: inherit; font-size: small;"><br /></span></div>
<div style="text-align: left;">
<div style="text-align: left;">
<span style="font-family: inherit; font-size: small;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: x-small;"><span style="color: white; font-size: xx-small;"><span style="background-color: black;"><span style="font-size: xx-small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: xx-small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: xx-small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: xx-small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: xx-small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: x-small;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">Pour récupérer le dernier cours connu du bitcoin sur kraken, nous allons utiliser l'api fournie par kraken dans un petit script en python :</span></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
</div>
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;"><br /></span></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
<br />
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="font-family: "courier new" , "courier" , monospace;">n<span style="font-family: "courier new" , "courier" , monospace;">ano /home/pi/kraken.py</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span><br />
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;"><br /></span></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
<br />
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span><br />
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 173px; width: 606px;" wrap="VIRTUAL">import json
import requests
# URL: https://api.kraken.com/0/public/Ticker
#ticker = "XXBTZEUR"
def krak(ticker):
uri = "https://api.kraken.com/0/public/Ticker"
j_feed = uri + "?pair=" + ticker
r = requests.get(j_feed)
last_trade = r.json()["result"][ticker]["c"]
for numbers in last_trade:
btc = last_trade[0]
size = last_trade[1]
if ticker is "XXBTZEUR":
#x = ( "Dernier trade: %s BTC at %s EUR" ) %(size, btc)
x = ( "%s" ) %(btc)
return x
else:
btc = float(btc) / float(fx_rate)
#x = ( "Dernier trade: %s BTC at %s EURx" ) %(size, round(btc,5))
x = ( "%s" ) %(btc)
return x
print krak("XXBTZEUR")
</textarea></div>
</form>
CTRL-X pour sauvegarder et quitter.<br />
<br />
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">cd /usr/share/munin/plugins</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo nano bitcoind_cout_transaction_euro </span></span><br />
<br />
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span><br />
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 173px; width: 606px;" wrap="VIRTUAL">#!/bin/sh
# -*- sh -*-
# vim: ft=sh
: << =cut
=head1 NAME
bitcoind_cout_transaction_euro - Plugin to monitor the number of blocks
=head1 CONFIGURATION
[bitcoind*]
user pi
env.binary bitcoin-cli
env.data_dir /home/pi/bitcoinData
=head1 AUTHOR
Cedric Felizard
=head1 LICENSE
AGPLv3+
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf
=cut
BINARY=${binary:-"/usr/bin/python"}
DATA_DIR=${data_dir:-"/home/pi/bitcoinData"}
if [ "$1" = "autoconf" ]; then
autoconf="yes"
command -v $BINARY >/dev/null || autoconf="no"
echo $autoconf
exit 0
fi
if [ "$1" = "config" ]; then
echo 'graph_title Cout transaction prioritaire en euro (7 blocs)'
echo 'graph_args --base 1000 -l 0 -r --lower-limit 0'
echo 'graph_scale no'
echo 'graph_vlabel Cout Euro'
echo 'graph_category bitcoind'
echo 'graph_info Ce graph montre le prix en euro dune transaction prioritai$
echo 'bitcoind_cout_transaction_euro.label cout'
echo 'bitcoind_cout_transaction_euro.info cout transaction prioritaire euro$
exit 0
fi
last_trade=$($BINARY /home/pi/kraken.py)
cout_transaction_btc=$(/usr/local/bin/bitcoin-cli -datadir=$DATA_DIR estimatefe$
cout_transaction_euro=$(echo $last_trade*$cout_transaction_btc|bc)
echo "bitcoind_cout_transaction_euro.value $cout_transaction_euro"
</textarea></div>
</form>
CTRL-X pour sauvegarder et quitter.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo chmod 755 </span></span><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;">bitcoind_cout_transaction_euro</span></span></span></span><span style="color: white;"><span style="background-color: black;"> </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /usr/share/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">cd /etc/munin/plugins </span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">pi@rokos /<span style="font-family: "courier new" , "courier" , monospace;">etc</span>/munin/plugins $</span> <span style="color: white;"><span style="background-color: black;">sudo ln -s /usr/share/munin/plugins/</span></span><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;">bitcoind_cout_transaction_euro</span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;"><span style="color: white;"><span style="background-color: black;"></span></span></span></span> </span></span><br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">Lorsque toutes les configurations de plugins sont faites, relancer le service munin : </span></code></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: large;"><span style="color: black;"><span style="background-color: white;"><code><span style="font-size: small;">pi@rokos~$</span> </code></span></span></span><span style="font-size: small;"><code></code></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">sudo </span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">service </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;"><span style="color: white;"><span style="background-color: black;"><span style="font-size: small;">munin-node restart</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </div>
<b></b><br />
<b>Tester un plugin (exemple avec le plugin bitcoind_extimatefee7) : </b><span style="color: white;"></span><br />
<span style="color: white;"><span style="background-color: black;"></span></span><br />
<span style="color: white;"><span style="background-color: black;">cd /etc/munin/plugins</span></span><br />
<span style="color: white;"><span style="background-color: black;">sudo munin-run bitcoind_estimatefee7</span></span><b><br /></b>
<br />
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU6WrbsP-_afrmmqQlS5xeH7YRhFTOBqQdBwvLG7gq0x7by10n2ADBbLcue_ascs5TcqQsC9fqsDUVJOiPyVqUwJ97EKj0rqu4bYYV_dqVKaXttm5d_jfrIGpUnlSKqaboXwZaR9XlHG8w/s1600/2016-06-09+22_05_01-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="142" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU6WrbsP-_afrmmqQlS5xeH7YRhFTOBqQdBwvLG7gq0x7by10n2ADBbLcue_ascs5TcqQsC9fqsDUVJOiPyVqUwJ97EKj0rqu4bYYV_dqVKaXttm5d_jfrIGpUnlSKqaboXwZaR9XlHG8w/s640/2016-06-09+22_05_01-rokos_0+-+VNC+Viewer.png" width="640" /></a></div>
<br />
<br />
Si tout est ok, le plugin doit renvoyer les valeurs visibles sur le graphe.<b><br /></b>
<br />
<b><br /></b>
<br />
Pour pouvoir maintenant accéder aux graphiques depuis internet, il faut configurer votre box pour
que le serveur apache puisse accepter les connections<b>.</b> <br />
<br />
<br />
<span style="background-color: white;">Connectez vous à votre box (pour moi, je tape
192.168.1.1 dans mon navigateur puis mon nom d'utilisateur/mot de passe personnel). Dans la partie "<b>Réseau</b>", puis "<b>Paramètres Avancés</b>" et "<b>Transfert de port</b>s",
il faut ajouter le port <b>80</b> qui va être redirigé vers l'adresse IP de
notre réseau local du raspberry (pour moi, 192.168.1.16) comme
ci-dessous :</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKmalRw3Y_OIavvdrdBGrNiglPh6cFNXaTlloshD5ZWDqvB3S3eIsPhKXeA8jmHulrVI1F7_yu-KciTckhpqKfakul0z0zMYNKQZhIL5Rc1leyq0MA7VJt31eMD48E-Zpe15JjTq-un17N/s1600/2016-06-11+16_10_32-Mon+Modem.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="524" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKmalRw3Y_OIavvdrdBGrNiglPh6cFNXaTlloshD5ZWDqvB3S3eIsPhKXeA8jmHulrVI1F7_yu-KciTckhpqKfakul0z0zMYNKQZhIL5Rc1leyq0MA7VJt31eMD48E-Zpe15JjTq-un17N/s640/2016-06-11+16_10_32-Mon+Modem.png" width="640" /></a></div>
<br />
Voila, maintenant, vous pouvez accéder aux statistiques de votre noeud bitcoin depuis n'importe quel appareil relié à internet avec votre adresse IP publique.<br />
<br />
Tapez dans votre navigateur :<b> http://<span style="font-family: "courier new" , "courier" , monospace;">Votre adresse ip publique</span>/munin</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHJuQ4OQV7gf_hIN2pgM-v1YA16H2AAI02lgIeQqoi5xuaYtSvqaWHK4rto-lVZO5YX02gDFRbyp0FtG31KE_YCX4yWc9i5ctcu2-hPQl9z2o_Hq1Hv1999lh1AaPwByaJxLqNcqhkyJja/s1600/2016-06-11+16_16_22-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHJuQ4OQV7gf_hIN2pgM-v1YA16H2AAI02lgIeQqoi5xuaYtSvqaWHK4rto-lVZO5YX02gDFRbyp0FtG31KE_YCX4yWc9i5ctcu2-hPQl9z2o_Hq1Hv1999lh1AaPwByaJxLqNcqhkyJja/s640/2016-06-11+16_16_22-Munin.png" width="636" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWY2AcEFdCPuVUFIiOiDktv8tNfrGftLjU7stKIi16GC95VkdEAanpakhqx5QG5-18S0Cf197QOIFg0KihLNqJ2tZV2T2wJWSyL6rtm7OlYEn0WnX2FqZKjA8ASnNWlYRp3SneXcfLdFDE/s1600/2016-06-11+16_16_22-Munin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<br /></div>
ungaro59http://www.blogger.com/profile/00244263167814565609noreply@blogger.com0tag:blogger.com,1999:blog-2546213527854314913.post-89340815689826520682016-05-15T15:25:00.000+02:002016-08-31T15:10:14.860+02:00Configuration d'un noeud bitcoin sur raspberry Pi 2 ou raspberry Pi 3<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
</h2>
<h2 style="text-align: left;">
</h2>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhwoTlNrNtdWCFQzYjJA4llO92v6prcIbcL0EJ1msqZnl_9PXd0XHgJnaF25n6694UHQ4EgJFS4Qr9Z4z_cq00fW2diIF7tf_lDWNxc-Ry9KxU_EiaHfUhOLS6e1Ro991oJwi-0aAWME5W/s1600/bitcoin-raspi.jpg" imageanchor="1"><img border="0" height="181" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhwoTlNrNtdWCFQzYjJA4llO92v6prcIbcL0EJ1msqZnl_9PXd0XHgJnaF25n6694UHQ4EgJFS4Qr9Z4z_cq00fW2diIF7tf_lDWNxc-Ry9KxU_EiaHfUhOLS6e1Ro991oJwi-0aAWME5W/s320/bitcoin-raspi.jpg" width="320" /></a></div>
<h3 style="text-align: left;">
<span style="font-weight: bold;">AVANT-PROPOS</span></h3>
<h4>
</h4>
<span style="font-size: small;">Ce tutoriel permet de configurer le client Bitcoin Core v0.12.1 (ou une version ultérieure) sur un Raspberry Pi 2 ou 3. Un wallet Bitcoin peut aussi être utilisé. La Blockchain sera stockée sur un disque dur externe 2,5" relié sur les ports USB. Ceci est le meilleur compromis car le client bitcoin travaille sans arrêt sur le disque. Il faut donc éviter les cartes SD ou Clés USB qui sont limitées dans le nombre d’écritures possibles. Par ailleurs, nous devrons configurer le bitcoin-core pour que son utilisation H24 puisse s’accorder avec la petite mémoire ram du raspberry pi (1Go). On s’intéressera aussi au coût à l'année que représente l'utilisation d'un tel dispositif qui devra fonctionner en permanence. </span><br />
<span style="font-size: small;"></span><br />
<a name='more'></a><span style="font-size: small;"><br /></span>
<br />
<h3 style="text-align: left;">
<span style="font-weight: bold;">ÉQUIPEMENTS NÉCESSAIRES POUR L'INSTALLATION :</span></h3>
<ul class="font_8" style="text-align: left;">
<li><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk9SMTiCWpxTt4Citx16rt8J6NuxehwdatUnu8ul4ZH00tHrpTUVCQvOW4OBj0nWqt9vW2oB8DL8Cpaj0bh30Xq4cPsMkUQq0do87rdqYv7pwicyPjlZDlWinsbEM4OsoMmDo9gpouSjt6/s1600/raspberry-pi-logo.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="112" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk9SMTiCWpxTt4Citx16rt8J6NuxehwdatUnu8ul4ZH00tHrpTUVCQvOW4OBj0nWqt9vW2oB8DL8Cpaj0bh30Xq4cPsMkUQq0do87rdqYv7pwicyPjlZDlWinsbEM4OsoMmDo9gpouSjt6/s200/raspberry-pi-logo.png" width="200" /></a><span style="font-size: 13px;">Un Raspberry Pi 2 ou Pi 3 (<a href="http://fr.farnell.com/raspberry-pi/raspberrypi3-modb-1gb/sbc-raspberry-pi-3-mod-b-1gb-ram/dp/2525225?selectedCategoryId=&exaMfpn=true&categoryId=&searchRef=SearchLookAhead&iscrfnonsku=false" target="_blank">RaspBerry pi 3 chez Farnell à 38€ TTC</a>)</span></li>
<li><span style="font-size: 13px;">Un boitier de protection pour le raspberry : <a href="https://www.amazon.fr/Aukru-Transparent-Raspberry-dissipateur-thermique/dp/B00UCSO6SW/ref=pd_sim_23_4?ie=UTF8&dpID=41rzn7vzNXL&dpSrc=sims&preST=_AC_UL160_SR160%2C160_&refRID=MV1F9E952TT6JTTQN9J0" target="_blank">(Boitier à 7€)</a></span></li>
<li><span style="font-size: 13px;">Une bonne alimentation 3A chez amazon : <a href="https://www.amazon.fr/Aukru-Chargeur-Adaptateur-Alimentation-Raspberry/dp/B01566WOAG?ie=UTF8&creative=22722&creativeASIN=B01566WOAG&hvdev=c&hvnetw=g&hvqmt=&linkCode=df0&ref_=asc_df_B01566WOAG33850327&tag=googshopfr-21" target="_blank">(Alimentation 3A 5V pour raspberry à 10€99)</a></span></li>
<li><span style="font-size: 13px;">Un disque dur externe 2,5" USB de 160Go minimum. Un disque dur externe 3,5" est possible avec une alimentation externe. Pour ma part, j'utilise un disque 2,5" récupéré dans un passeport western digital qui consomme peu (550ma contre 800ma pour les plus courants) : </span><br /><h4>
<span style="font-weight: normal;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0CXlnfH7Epudhk2nfG7hUTc76rZBA7AoTvkW83_ODMGjoPCACP00JqthdKaTn8mJI_zkXK7rdSiG-a0R4hFrslX0AwsbDXIYUHml2f70FpXJjoqU_o8vuLiIEU9mWawDmimnGA_6OmNco/s1600/2016-05-11+14_38_40-disque-dur-interne-western-digital-blue-500-go-25.jpg+%2528Image+JPEG%252C+800%25C2%25A0%25C3%2597%25C2%25A0800+pix.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Disque dur usb pour le noeud bitcoin sur raspberry pi" border="0" height="138" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0CXlnfH7Epudhk2nfG7hUTc76rZBA7AoTvkW83_ODMGjoPCACP00JqthdKaTn8mJI_zkXK7rdSiG-a0R4hFrslX0AwsbDXIYUHml2f70FpXJjoqU_o8vuLiIEU9mWawDmimnGA_6OmNco/s200/2016-05-11+14_38_40-disque-dur-interne-western-digital-blue-500-go-25.jpg+%2528Image+JPEG%252C+800%25C2%25A0%25C3%2597%25C2%25A0800+pix.png" title="" width="200" /></a></span><span style="font-size: 13px;"> </span></h4>
</li>
<li><span style="font-size: 13px;">Un Câble HDMI</span></li>
<li><span style="font-size: 13px;">Un câble USB avec reprise d'alimentation (pour le disque dur). <a href="http://www.cdiscount.com/informatique/cables-connectiques/cable-usb-20-avec-reprise/f-1072003-auc3548381495123.html" target="_blank">Cable USB en Y</a></span></li>
<li><span style="font-size: 13px;">Un écran avec une entrée HDMI</span></li>
<li><span style="font-size: 13px;">Un clavier USB/souris USB</span></li>
<li><span style="font-size: 13px;">Une box reliée à internet</span></li>
<li><span style="font-size: 13px;">Un câble réseau RJ45.</span></li>
<li><span style="font-size: 13px;">Un PC avec un lecteur de carte SD/microSD. <a href="https://www.amazon.fr/Transcend-TS-RDF5K-Lecteur-cartes-MicroSD/dp/B009D79VH4/ref=sr_1_2?s=computers&ie=UTF8&qid=1463305204&sr=1-2&keywords=lecteur+de+carte+sd" target="_blank">Lecteur de carte SD</a></span></li>
<li><span style="font-size: 13px;">Une carte microSD de 8Go ou plus. </span><a href="https://www.amazon.fr/Carte-M%C3%A9moire-MicroSDHC-SanDisk-jusqu%C3%A0/dp/B00MWXUKDK/ref=sr_1_1?ie=UTF8&qid=1463305131&sr=8-1&keywords=microsd+8go" target="_blank">Carte microSd 8Go</a></li>
</ul>
<h3 style="text-align: left;">
<span style="font-weight: bold;"> </span></h3>
<h3 style="text-align: left;">
<span style="font-weight: bold;">INSTALLATION :</span><span style="font-weight: normal;"> </span></h3>
<div style="text-align: left;">
<span style="font-weight: normal;">Avant toutes choses, sur votre PC, formatez votre disque dur USB en système de fichiers <b>NTFS </b>et donnez lui le nom de volume (Label) : "<b>RaspNode</b>" par exemple. En formatant le disque en NTFS, vous pourrez éventuellement récupérer facilement la blockchain pour la copier sur un pc windows par exemple et démarrer rapidement un client bitcoin sur celui-ci.</span><br />
<br />
<span style="font-weight: normal;">Récupérez la dernière image (.img) en date pour installer le système ROKOS CORE (plus d'infos sur cette distribution ici : <a href="http://rokos.space/">http://rokos.space/</a> et sur bitcointalk : <a href="https://bitcointalk.org/index.php?topic=1312616.0">https://bitcointalk.org/index.php?topic=1312616.0</a>) sur la carte microSD (Version modifiée de l'OS </span><span style="font-weight: normal;"><span style="font-weight: normal;">raspbian </span>prévu pour le raspberry). L'avantage est que la dernière version du bitcoin core 0.12.1 est déjà présente sur l'image Rokos. Donc pas de galère pour installer le client bitcoin.</span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-weight: normal;">La dernière version de l'image rokos avec le bitcoin core 0.12.1 se trouve ici :</span></div>
<div style="text-align: left;">
<a href="https://drive.google.com/drive/u/0/folders/0BwuLO_wTMb77SDlKc1h2VTFkX0E?pageId=115436172483724579040"><span style="font-weight: normal;">https://drive.google.com/drive/u/0/folders/0BwuLO_wTMb77SDlKc1h2VTFkX0E?pageId=115436172483724579040</span></a></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh88m1iyJwsHulU4L2vxjB8J32rRgs0UlprTQWlA2hA9qxhCTsVqC39bgLGe9F-goMuDer98qe9rcLGT_95ejE5w-DdhRDdJVHtyRgu6xW9air4LlXDSioEDP538ojZ-IUzEhQAnnr9J0O1/s1600/2016-05-10+18_21_43-Downloads+-+Google%25C2%25A0Drive.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Raspberry OS Rokos pour bitcoin" border="0" height="352" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh88m1iyJwsHulU4L2vxjB8J32rRgs0UlprTQWlA2hA9qxhCTsVqC39bgLGe9F-goMuDer98qe9rcLGT_95ejE5w-DdhRDdJVHtyRgu6xW9air4LlXDSioEDP538ojZ-IUzEhQAnnr9J0O1/s640/2016-05-10+18_21_43-Downloads+-+Google%25C2%25A0Drive.png" title="Raspberry OS Rokos pour bitcoin" width="640" /></a></div>
<div style="text-align: left;">
<div style="text-align: center;">
<span style="font-size: x-small;">Récupérez la version indiquée par la flèche</span></div>
<br /></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="font-weight: normal;">Téléchargez et installez sur votre pc l'utilitaire "Win32DiskImager" qui va permettre d’écrire l'image (.img) sur la carte microSD : <a href="https://sourceforge.net/projects/win32diskimager/">https://sourceforge.net/projects/win32diskimager/</a></span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-weight: normal;">Insérez la carte micro sd dans votre lecteur de cartes, lancer </span><span style="font-weight: normal;"><span style="font-weight: normal;">Win32DiskImager</span> puis sélectionnez l'image .img téléchargée, le lecteur où se trouve la carte sd et cliquez sur Write : </span></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj59NMi-yeXfl2N8SkoRmXO1J2_VhwGBiyTmM-RHy94N3QpIVJ48nlVXo_lBykQvsuSc8De8ycxXb1shDUchGVKrZuBr2Xnc1jCyB6x9E6wf43Crf0GbRmWD7nYNkM3kNnsWv5S1WIZjC5a/s1600/2016-05-10+20_53_07-Films+et+TV.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Win32DiskImager" border="0" height="163" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj59NMi-yeXfl2N8SkoRmXO1J2_VhwGBiyTmM-RHy94N3QpIVJ48nlVXo_lBykQvsuSc8De8ycxXb1shDUchGVKrZuBr2Xnc1jCyB6x9E6wf43Crf0GbRmWD7nYNkM3kNnsWv5S1WIZjC5a/s320/2016-05-10+20_53_07-Films+et+TV.png" title="Win32DiskImager" width="320" /></a></div>
<div class="" style="clear: both; text-align: center;">
<span style="font-size: x-small;"><span style="font-family: inherit;">Le processus d'écriture prend quelques minutes</span></span><br />
<br /></div>
<div class="" style="clear: both; text-align: left;">
<span style="font-size: x-small;"><span style="font-family: inherit;"><span style="font-size: small;"><span style="font-weight: normal;"><span style="font-family: inherit;">Insérer</span> la carte microSD dans le r<span style="font-family: inherit;">asp<span style="font-family: inherit;">berry pi<span style="font-family: inherit;">, bra<span style="font-family: inherit;">nchez le <span style="font-family: inherit;">câble</span> HDMI<span style="font-family: inherit;">,</span> <span style="font-family: inherit;">câble</span> réseau ainsi que souris et clavier. </span></span></span></span></span></span></span></span><span style="font-size: x-small;"><span style="font-family: inherit;"><span style="font-size: small;"><span style="font-weight: normal;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-size: x-small;"><span style="font-family: inherit;"><span style="font-size: small;"><span style="font-weight: normal;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><b>Ne pas connecter le disque dur externe</b> aux ports USB pour l'instant.</span></span></span></span></span></span></span></span></span> A</span></span></span><span style="font-family: inherit;">limentez le<span style="font-family: inherit;"> raspberry avec le <span style="font-family: inherit;">câble</span> d'ali<span style="font-family: inherit;">mentation. Attendre le démarrage..</span></span></span></span></span></span></span></span></span></div>
<div class="" style="clear: both; text-align: left;">
<span style="font-size: x-small;"><span style="font-family: inherit;"><span style="font-size: small;"><span style="font-weight: normal;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"><span style="font-family: inherit;"> </span></span></span></span></span></span></span><span class="anchor" id="raspconfig"></span>
</span></span></div>
<h3 style="text-align: left;">
CONFIGURATION du RASPBERRY :</h3>
<h3 style="text-align: left;">
</h3>
<div style="text-align: left;">
<span style="font-weight: normal;">Au premier démarrage, le raspberry sera en en mode commande.</span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-weight: normal;">Taper :</span><span style="font-size: small;"><code></code></span><span style="font-size: small;"><code> </code></span></div>
<div style="text-align: left;">
<span style="font-size: small;"><code>pi@rokos~$</code></span><b><span style="font-size: small;"><code> </code></span></b><span style="color: white;"><span style="background-color: black;"><b><span style="color: black;"><span style="background-color: white;"><b><span style="font-size: small;"><code></code></span></b></span></span>sudo raspi-config<span style="background-color: white;"><span style="color: black;"> </span></span></b><span style="background-color: white;"><span style="color: black;">(Attention, vous êtes en clavier qwerty)</span></span> </span></span></div>
<br />
<br />
Le menu suivant apparait :<span style="font-weight: normal;"> </span><br />
<h4>
</h4>
<h4>
</h4>
<h4>
<span style="font-weight: normal;"><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7uXu-zBmD3q3loerxI1vJRh62TPguTzytXy6i7t189ibtx7jgLsBFyg9KgY0dTnEjUtroEV9Wy5Nu4HRQj5nDGpyElTARmoUYFbUV5XG7IWYUttmHpvADm-Df5tQ0ThW86nA53ZSRGxE6/s1600/2016-05-11+21_51_42-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Menu de configuration raspberry pi" border="0" height="275" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7uXu-zBmD3q3loerxI1vJRh62TPguTzytXy6i7t189ibtx7jgLsBFyg9KgY0dTnEjUtroEV9Wy5Nu4HRQj5nDGpyElTARmoUYFbUV5XG7IWYUttmHpvADm-Df5tQ0ThW86nA53ZSRGxE6/s640/2016-05-11+21_51_42-rokos_0+-+VNC+Viewer.png" title="Menu de configuration raspberry pi" width="640" /></a></div>
</span></h4>
<h4>
</h4>
<div class="separator" style="clear: both; text-align: center;">
</div>
- Sélectionnez “<b>1 Expand File System</b>" ce qui permet d'occuper tout le reste de la carte SD.<br />
- Sélectionnez “<b>3 Boot options"</b> et choisir l'option <b>B4 Desktop autologin </b>ce qui permettra de démarrer le raspberry en mode graphique au prochain démarrage.<br />
<br />
Quitter le menu en sélectionnant <Finish> avec la touche <TAB> puis <ENTREE> et acceptez le redémarrage du raspberry.<br />
Vous allez redémarrer cette fois en mode graphique, vous devriez obtenir l’écran suivant :<span style="font-weight: normal;"> </span><br />
<br />
<div style="text-align: center;">
<span style="font-weight: normal;"> </span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfO9LiWB5Hvfu7iQrLtkwXVd0NVWphSvpIcOeE-Ko293jsVwS_RJMr2o5sAP2JkfecUeigvhuEFTn-DtHnsRg7Q3aKIVwy5h0TKMMcpgp9nNUdE-KMlT7LSmj-YbKB41vxWmsaftvZq38J/s1600/1.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="ROKOS OS pour noeud bitcoin" border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfO9LiWB5Hvfu7iQrLtkwXVd0NVWphSvpIcOeE-Ko293jsVwS_RJMr2o5sAP2JkfecUeigvhuEFTn-DtHnsRg7Q3aKIVwy5h0TKMMcpgp9nNUdE-KMlT7LSmj-YbKB41vxWmsaftvZq38J/s640/1.jpg" title="ROKOS OS pour noeud bitcoin" width="640" /></a><span style="font-weight: normal;"> </span></div>
<h4>
<span style="font-weight: normal;">Nous allons maintenant configurer le clavier pour le mettre en AZERTY. </span></h4>
<h4>
<span style="font-weight: normal;">Sélectionnez le menu "Préférences", "Configuration du Raspberry pi" :</span><span style="font-weight: normal;"> </span></h4>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibxiZShnuc6OHE_5lolHvc1LTicAJ9mxuGZ9qXVY2NZOlI8bmey7RDRewEdVFYGoj8Veq_OFGPXK-2d2WAFOntQbTHT9aGCPea69KjHOnhIp77Ck04VQx0Ij_yXmC8WbbzMs2MgXGTShHd/s1600/2016-05-11+21_21_49-Program+Manager.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Configuration du raspberry pi" border="0" height="198" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibxiZShnuc6OHE_5lolHvc1LTicAJ9mxuGZ9qXVY2NZOlI8bmey7RDRewEdVFYGoj8Veq_OFGPXK-2d2WAFOntQbTHT9aGCPea69KjHOnhIp77Ck04VQx0Ij_yXmC8WbbzMs2MgXGTShHd/s320/2016-05-11+21_21_49-Program+Manager.png" title="Configuration du raspberry pi" width="320" /></a></div>
<h4 style="text-align: center;">
<span style="font-weight: normal;"> Puis sélectionnez l'onglet "Localisation" et réglez le clavier français comme ci-dessous (Set Keyboard) : </span></h4>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9zmn8qogIfAml6lPHXsVEQemN8_O8HQQFfNxXy9wWc7A3kLz3VeKXSARnP55B3efj_8bxwcX5iiVL1Wf41-I3ekk2B9KP8BcqSD82ktNAUDu26xoxQoxrhr7Xn38rMEoT33qQYGFyXAoQ/s1600/2016-05-11+21_27_19-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Configuration du clavier raspberry pi" border="0" height="273" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9zmn8qogIfAml6lPHXsVEQemN8_O8HQQFfNxXy9wWc7A3kLz3VeKXSARnP55B3efj_8bxwcX5iiVL1Wf41-I3ekk2B9KP8BcqSD82ktNAUDu26xoxQoxrhr7Xn38rMEoT33qQYGFyXAoQ/s320/2016-05-11+21_27_19-rokos_0+-+VNC+Viewer.png" title="Configuration du clavier raspberry pi" width="320" /></a></div>
<h4 style="text-align: center;">
<span style="font-weight: normal;">Régler la localisation (Set Locale) comme ci-dessous : </span></h4>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBK_cR7Rrr7Fz9RwlDVLGSpUZCf-Yh3u6glDu1Il4IkgpF8aTwkL8TyArdmolEbQGRVkhXbeikzl9YMUfCf3I9GP2zSxwzruK6LmZYTHkSp38Su65TJ3P5soLd6aTNF_eVF6hG7yN3NfbF/s1600/2016-05-11+21_56_54-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Configuration de la localisation raspberry pi" border="0" height="145" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBK_cR7Rrr7Fz9RwlDVLGSpUZCf-Yh3u6glDu1Il4IkgpF8aTwkL8TyArdmolEbQGRVkhXbeikzl9YMUfCf3I9GP2zSxwzruK6LmZYTHkSp38Su65TJ3P5soLd6aTNF_eVF6hG7yN3NfbF/s320/2016-05-11+21_56_54-rokos_0+-+VNC+Viewer.png" title="Configuration de la localisation raspberry pi" width="320" /></a></div>
<h4 style="text-align: center;">
</h4>
<h4 style="text-align: center;">
<span style="font-weight: normal;">Et le fuseau horaire (Set Timezone) : </span></h4>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIEG-bFZre-ALjwFiXtnInqFFvyN9tB8rtvvovyApBEBu1ItfhuBksLODObdir4ue-kvi7vdIKGDIUkdrlWqEDXbrbaDrjbsmHCSw_PB09g_2tlo5-nliwFmDNjmeH0yDJCDxWBqjuoAwq/s1600/2016-05-11+21_57_55-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Configuration du fuseau horaire raspberry pi" border="0" height="186" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIEG-bFZre-ALjwFiXtnInqFFvyN9tB8rtvvovyApBEBu1ItfhuBksLODObdir4ue-kvi7vdIKGDIUkdrlWqEDXbrbaDrjbsmHCSw_PB09g_2tlo5-nliwFmDNjmeH0yDJCDxWBqjuoAwq/s320/2016-05-11+21_57_55-rokos_0+-+VNC+Viewer.png" title="Configuration du fuseau horaire raspberry pi" width="320" /></a></div>
<h4 style="text-align: center;">
<span style="font-weight: normal;"> Onglet "Performance", réglez la mémoire du GPU à 16 Mo : </span></h4>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT6UIUUV6wPoVvpY4omWjfGJ8gyDIbZj_tnlmTc19frtaCKlNq9mJhhMJHFhT19kt7bWlI48H5S-ZmTAH8zXRQA0VXlj2kpHqyjhKMtUkx6t-R7BMphlDAozzDtQPubGcvAjtWzkXWzpFt/s1600/2016-05-11+21_59_10-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Configuration memoire GPU raspberry pi" border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT6UIUUV6wPoVvpY4omWjfGJ8gyDIbZj_tnlmTc19frtaCKlNq9mJhhMJHFhT19kt7bWlI48H5S-ZmTAH8zXRQA0VXlj2kpHqyjhKMtUkx6t-R7BMphlDAozzDtQPubGcvAjtWzkXWzpFt/s400/2016-05-11+21_59_10-rokos_0+-+VNC+Viewer.png" title="Configuration memoire GPU raspberry pi" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<h4 style="text-align: center;">
<span style="font-weight: normal;"></span></h4>
<h4 style="text-align: center;">
<a href="https://www.blogger.com/blogger.g?blogID=2546213527854314913" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><br /></a><a href="https://www.blogger.com/blogger.g?blogID=2546213527854314913" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="https://www.blogger.com/blogger.g?blogID=2546213527854314913" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><span style="font-weight: normal;"></span></h4>
<h4>
</h4>
=> Acceptez la demande de redémarrage du raspberry après cette mise à jour de la mémoire GPU.<br />
<br />
<span style="font-weight: normal;"></span><br />
A partir de maintenant, tout ce qui est en <span style="color: white;"><span style="background-color: black;">noir&blanc</span></span> devra être tapé dans une fenêtre terminal que vous pouvez lancer en cliquant sur l’icône<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQsuF0-3p2u05leVLwzaBPLRpkcddLg1gakiCzqAHWif3mZ2ur6IJbFkdMPFdH_8nVPLj7PgCGQk06C2X4oEWHLwLqTUPOGBSfcsUuu7RMEkp7Cd9t8FMtimiUkKfAyZ-phnAaTGmQclT7/s1600/2016-05-11+16_52_05-2016-05-11+13_53_59-%2528Image+PNG%252C+1360%25C2%25A0%25C3%2597%25C2%25A0768+pixels%2529+-+Redimensionn%25C3%25A9e+%252888%2525%2529.png+-+.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Icone terminal raspberry pi" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQsuF0-3p2u05leVLwzaBPLRpkcddLg1gakiCzqAHWif3mZ2ur6IJbFkdMPFdH_8nVPLj7PgCGQk06C2X4oEWHLwLqTUPOGBSfcsUuu7RMEkp7Cd9t8FMtimiUkKfAyZ-phnAaTGmQclT7/s1600/2016-05-11+16_52_05-2016-05-11+13_53_59-%2528Image+PNG%252C+1360%25C2%25A0%25C3%2597%25C2%25A0768+pixels%2529+-+Redimensionn%25C3%25A9e+%252888%2525%2529.png+-+.png" title="Icone terminal raspberry pi" /></a>depuis la barre de tache :<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGW25NfU5ZhTcVP4XNJnmNwWUgvoS4rMHpSHHq2AUV6P-Oo38xUZyTgmP1AEEJezT-Zjl7wnoJ9COmNCTyUpPqvHETwkGsMsjzDBVzjwmlqNgxlNl7OyQcY37dbessiJcqEt5_ClUhRIps/s1600/2016-05-11+13_55_36-Clipboard.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Icone terminal raspberry pi" border="0" height="23" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGW25NfU5ZhTcVP4XNJnmNwWUgvoS4rMHpSHHq2AUV6P-Oo38xUZyTgmP1AEEJezT-Zjl7wnoJ9COmNCTyUpPqvHETwkGsMsjzDBVzjwmlqNgxlNl7OyQcY37dbessiJcqEt5_ClUhRIps/s320/2016-05-11+13_55_36-Clipboard.png" title="Icone terminal raspberry pi" width="320" /></a></div>
<div style="text-align: left;">
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF36Fxlp6TUlfwD1HjODrNXjM3O-MllzIdcA8lk9F0jc50eTAd7hnf3-l666JEj4mNhkwjquaHVuUtvoUECUIPKzgY1d1hgFhBwcFPrnOqWquSkGfCZQEHuvb6C7PRX1GXV03I8GrF8nFq/s1600/2016-05-14+09_15_06-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="fenetre terminal raspberry pi" border="0" height="281" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF36Fxlp6TUlfwD1HjODrNXjM3O-MllzIdcA8lk9F0jc50eTAd7hnf3-l666JEj4mNhkwjquaHVuUtvoUECUIPKzgY1d1hgFhBwcFPrnOqWquSkGfCZQEHuvb6C7PRX1GXV03I8GrF8nFq/s400/2016-05-14+09_15_06-rokos_0+-+VNC+Viewer.png" title="Fenetre terminal raspberry pi" width="400" /></a></div>
<br />
<br />
Avant de démarrer les configurations proprement dites, il est nécessaire de <b>mettre à jour</b> le firmware et l'OS du raspberry.<span style="font-size: small;"> Mise à jour du firmware du raspberry (environ 2-3mn) :</span><span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;"><span style="color: white;"></span> </span></span></span></span></code></span><br />
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: small;"><code>pi@rokos~$</code></span><b><span style="font-size: small;"><code> <span style="color: white;"><span style="background-color: black;">sudo rpi-update</span></span></code></span></b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvMJTdcpiXN-YjYiELzj1XzLhZVU143SudZDO7JiAW1Ecz5OkXEV2rNMiin5ubZhswIIWKWu1ixj0PPRw-_KjSMLi5I7hncvGQjmk7N_snA4I-M42qzC_m75BZFVX3QrCh8cuyNhTEJ-hw/s1600/2016-05-14+13_07_25-2016-05-14-130327_1824x984_scrot.png+%25E2%2580%258E-+Photos.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Mise a jour du firmware raspberry pi" border="0" height="516" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvMJTdcpiXN-YjYiELzj1XzLhZVU143SudZDO7JiAW1Ecz5OkXEV2rNMiin5ubZhswIIWKWu1ixj0PPRw-_KjSMLi5I7hncvGQjmk7N_snA4I-M42qzC_m75BZFVX3QrCh8cuyNhTEJ-hw/s640/2016-05-14+13_07_25-2016-05-14-130327_1824x984_scrot.png+%25E2%2580%258E-+Photos.png" title="Mise a jour du firmware raspberry pi" width="640" /></a></div>
<br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;">Redémarrer le raspberry :</span></span></span></span></code></span><br />
<br />
<span style="font-size: small;"><code>pi@rokos~$</code></span><b><span style="font-size: small;"><code> <span style="color: white;"><span style="background-color: black;">reboot</span></span></code></span></b><br />
<br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;">Mise à jour de l'OS (<span style="background-color: white;">environ<span style="background-color: white;"> </span></span></span></span></span></span></code></span><b><span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;">30-35 mn) :</span></span></span></span></code></span></b><br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;"><span style="font-size: small;"><code>pi@rokos~$</code></span><span style="font-size: small;"><code> </code></span></span></span></span></span></code></span><b><span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;">sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade</span></span></code></span></b><br />
<div style="text-align: left;">
<div style="text-align: left;">
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: small;"><code><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF7wYYNzjufYFarU_5j4dGDIobJ1aRwEj078DetstLiq8yw1Zq8gr6o4udLoCgKt4soVV__DHq6lV_keXuqQvkWl3eotE4rlntwQN5fuPeKWWY7aFmybO1g5QFpSgP8dvwnCh0xXCES6nw/s1600/2016-05-14+13_41_02-2016-05-14-133749_1824x984_scrot.png+%25E2%2580%258E-+Photos.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Mise à jour de l'OS raspberry" border="0" height="411" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF7wYYNzjufYFarU_5j4dGDIobJ1aRwEj078DetstLiq8yw1Zq8gr6o4udLoCgKt4soVV__DHq6lV_keXuqQvkWl3eotE4rlntwQN5fuPeKWWY7aFmybO1g5QFpSgP8dvwnCh0xXCES6nw/s640/2016-05-14+13_41_02-2016-05-14-133749_1824x984_scrot.png+%25E2%2580%258E-+Photos.png" title="Mise à jour de l'OS raspberry" width="640" /></a></code></span></div>
<span style="font-size: small;"></span><br />
<span style="font-size: small;"></span><br />
<span style="font-size: small;"><code></code></span>
Redémarrez le raspberry :<br />
<span style="font-size: small;"><code><br /></code></span>
<span style="font-size: small;"><code>pi@rokos~$</code></span><b><span style="font-size: small;"><code> <span style="color: white;"><span style="background-color: black;">reboot</span></span></code></span></b><br />
<b><span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><br /></span></span></code></span></b>
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"></span></span></code></span>
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"></span></span></code></span><br />
<span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><span style="color: black;"><span style="background-color: white;">Si tout s'est bien passé, vous devriez obtenir le message suivant :</span></span></span></span></code></span><b><span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><br /></span></span></code></span></b><br />
<b><span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><br /></span></span></code></span></b></div>
</div>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd72tDzeH0NdqemDirBmM4AsU0mu-GwkFP4dx3ZXFN7sa-FvZ_2PwyJQdGrYpdW6OidK8uJU8W_JZy2cU3BpBDDVhOCRyYpPMqfU4K9Nmr94L37c6U7vUKHhMZzYajxpdLyk6BRMwG5Ox0/s1600/2016-05-30+18_39_36-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="273" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd72tDzeH0NdqemDirBmM4AsU0mu-GwkFP4dx3ZXFN7sa-FvZ_2PwyJQdGrYpdW6OidK8uJU8W_JZy2cU3BpBDDVhOCRyYpPMqfU4K9Nmr94L37c6U7vUKHhMZzYajxpdLyk6BRMwG5Ox0/s640/2016-05-30+18_39_36-rokos_0+-+VNC+Viewer.png" width="640" /></a></div>
<br />
<div style="text-align: center;">
<br /></div>
A ce stade, si vous utilisez un raspberry pi 3, je vous conseill<code></code>e <code></code>de désactiver le bluetooth et le wi-fi et de n'utiliser que le port ethernet RJ45 pour relier le noeud au réseau. En effet, le wi-fi peut provoquer des pointes d'alimentation jusqu'à 2A ! Ceci peut être préjudiciable pour l'alimentation du disque dur externe et provoquer des erreurs sur les ports USB si votre alimentation n'était pas suffisante. De plus, le noeud sera plus fiable si vous passez par un câble réseau relié à votre box. A vous de voir..<br />
<br />
Donc, pour désactiver bluetooth et wi-fi, il faut éditer le fichier ci-dessous :<br />
<br /></div>
<div style="text-align: left;">
<span style="font-size: small;"><code>pi@rokos~$</code></span><b><span style="font-size: small;"><code> <span style="color: white;"><span style="background-color: black;">sudo nano /etc/modprobe.d/raspi-blacklist.conf</span></span></code></span></b></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<br />
<div style="text-align: left;">
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span></div>
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 107px; width: 602px;" wrap="VIRTUAL">#wifi
blacklist brcmfmac
blacklist brcmutil
#bt
blacklist btbcm
blacklist hci_uart</textarea></div>
</form>
<br />
<code>pi@rokos~$ <span style="color: white;"><span style="background-color: black;">sudo reboot </span></span></code><br />
<code><br /></code>
<code><br /></code>
<code><u><b>POUR CEUX QUI UTILISENT UN RASPBERRY PI 2 :</b></u></code><span style="font-size: small;"><code> </code></span><br />
<span style="font-size: small;"><code>Si vous utilisez un raspberry pi 2, il est nécessaire de mettre à jour un paramètre pour augmenter la puissance des ports USB qui fournissent par défaut au maximum 600ma. Ce qui dans la plupart des cas n'est pas suffisant pour alimenter correctement un disque dur externe USB 2,5" sans alimentation externe ou Hub USB externe alimenté. Pour ce faire, éditer le fichier de configuration /boot/config.txt :</code></span><br />
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: small;"><code></code></span></div>
<div style="text-align: left;">
<span style="font-size: small;"><code>pi@rokos~$ <span style="color: white;"><span style="background-color: black;">sudo nano /boot/config.txt</span></span></code></span></div>
<div style="text-align: left;">
<span style="font-size: small;"><code></code></span></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<br />
<span style="font-size: small;"><code>Ajouter cette ligne dans le fichier :</code></span><br />
<span style="font-size: small;"><code></code></span></div>
<br />
<span style="font-size: small;"><code>max_usb_current=1</code></span><code> </code><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeCDWxeBkx0ZcmK1sK_gVpJjuPBxvGz6kui8G3ioAStd9pUjMozbJX79XDRg_HPy6ec_hSNaKPVw-quReD8peulVyT59nVYKmteKm2VGsMBYWm5QtnMjEMhFEhF1ObLIBG5GeH6meRXGRR/s1600/2016-05-14+14_08_16-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="442" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeCDWxeBkx0ZcmK1sK_gVpJjuPBxvGz6kui8G3ioAStd9pUjMozbJX79XDRg_HPy6ec_hSNaKPVw-quReD8peulVyT59nVYKmteKm2VGsMBYWm5QtnMjEMhFEhF1ObLIBG5GeH6meRXGRR/s640/2016-05-14+14_08_16-rokos_0+-+VNC+Viewer.png" width="640" /></a></div>
<br />
<code>Sauvegardez le fichier avec CTRL-X et quittez l'éditeur..<br /><br />En ajoutant cette ligne la puissance des 4 ports USB passera de 600ma à 1200ma. Ce qui est parfaitement suffisant pour alimenter un disque dur USB 2,5" qui consomme en général 800ma.</code></div>
<code><br /></code>
<code></code><br />
<div style="text-align: left;">
Nous allons maintenant créer un dossier qui sera le point d'entrée pour les data de la blockchain bitcoin sur le disque dur USB. Nous l’appellerons <b>bitcoinData</b> sous le home directory de connexion (/home/pi/bitcoinData/) :</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<div class="code">
<div style="text-align: left;">
<span style="font-size: small;"><code>pi@rokos~$</code></span><b><span style="font-size: small;"><code> <span style="color: white;"><span style="background-color: black;">mkdir ~/bitcoinData</span></span></code></span></b></div>
<div style="text-align: left;">
<b><span style="font-size: small;"><code><span style="color: white;"><span style="background-color: black;"><br /></span></span></code></span></b></div>
Connectez le disque dur externe sur <b>2 ports USB</b> différents comme ci-dessous avec le câble en Y et attendre quelques secondes. Repartissez les 2 prises USB sur les 2 blocs de 2 ports pour répartir la charge. Une fenêtre s'affiche pour déterminer l'action à effectuer, cliquez sur Annuler.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNQ4s1lQq7hd3lMqnwfli9gNg9Cj1FrYcEMPnmDZFlg-83aNNsTn96iRn2dhFpI5fp_doizdzDEBHdZuv_o61SW7dxCPgA930Ej8pK-hGTQeR0OALbAO4hroqNksD2cNx74R-EMyePS4Ut/s1600/2016-05-14+15_16_13-20160514_151322.jpg+%25E2%2580%258E-+Photos.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Cablage disque dur USB sur le raspberry" border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNQ4s1lQq7hd3lMqnwfli9gNg9Cj1FrYcEMPnmDZFlg-83aNNsTn96iRn2dhFpI5fp_doizdzDEBHdZuv_o61SW7dxCPgA930Ej8pK-hGTQeR0OALbAO4hroqNksD2cNx74R-EMyePS4Ut/s320/2016-05-14+15_16_13-20160514_151322.jpg+%25E2%2580%258E-+Photos.png" title="Cablage disque dur USB sur le raspberry" width="227" /></a></div>
<br />
Pour connaitre le nom du disque qui vient d'être branché, taper : <br />
<br />
<div class="code">
<code>pi@rokos~$ <span style="color: white;"><span style="background-color: black;">sudo blkid</span></span></code></div>
<div class="code">
<span style="background-color: white;"><code><code><br /></code></code></span>
<span style="background-color: white;"><code><code>Vous allez obtenir plusieurs lignes dont une de ce type :</code></code></span><br />
<span style="background-color: white;"><code><code><br /></code></code></span></div>
<div class="code">
<span style="color: blue;"><span style="background-color: #999999;"><code><code>/dev/sda1: LABEL="<Label de votre disque usb>" UUID="<Un numéro>" TYPE="ntfs"</code></code></span></span><br />
<span style="color: blue;"><span style="background-color: #999999;"><code><code><br /></code></code></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6gm3IDcT8682viAB6u3M9pmlrc0nHPSBLxchfueRqXTDQlEXApVaR3YT1MEDsGJyq_-LCRZWgq-QojPDg7RNc7NvuMXQVWW1jJ3_tcxDAvvv6EKSc6JR4iBuoTAfpFVj4XqZxtdiFWo6Q/s1600/2016-05-14+09_18_13-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Identification du disque dur USB du raspberry" border="0" height="352" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6gm3IDcT8682viAB6u3M9pmlrc0nHPSBLxchfueRqXTDQlEXApVaR3YT1MEDsGJyq_-LCRZWgq-QojPDg7RNc7NvuMXQVWW1jJ3_tcxDAvvv6EKSc6JR4iBuoTAfpFVj4XqZxtdiFWo6Q/s640/2016-05-14+09_18_13-rokos_0+-+VNC+Viewer.png" title="Identification du disque dur USB du raspberry" width="640" /></a></div>
<span style="color: blue;"><span style="background-color: #999999;"><code><code><br /></code></code></span></span>
<span style="color: blue;"><span style="background-color: #999999;"><code><code></code></code></span></span><br />
<br />
Vous devriez identifier le disque avec le label que vous avez mis plus haut en le formatant (RaspNode).<br />
Notez le nom du disque (ici <b>/dev/sda1</b>) et son type qui doit être <b>ntfs</b> (formaté plus haut sur votre pc). Pour indiquer au raspberry de monter automatiquement le disque dur USB au démarrage, nous allons lui dire de le monter dans notre dossier "bitcoinData" créé ci-dessus. Pour ce faire, il faut modifier le fichier <b>fstab</b> :<br />
<br />
<div class="code">
<code>pi@rokos~$ <span style="background-color: black;"><span style="color: white;">sudo nano /etc/fstab</span></span></code></div>
<br />
<span style="background-color: white; font-size: small;"><code><code>Ajoutez cette ligne à la suite des autres : </code> </code></span></div>
<div style="text-align: left;">
<span style="color: blue; font-size: small;"><span style="background-color: #999999;"><code><span style="color: white;"><span style="background-color: black;"><b>/dev/sda1</b> /home/pi/bitcoinData <b>ntfs</b> uid=pi,gid=pi,umask=0000,sync,auto,nosuid,rw,nouser 0 0</span></span> </code></span></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha342v-1L2ESR535eG0_0f4rXZI9FS2QKZ40rhFl3A1wfH8fVtpruJA6CPnCYTGBFPRIRa3C-4E0B9WycIe-RihWlvqCmG4LJ4x1MItyAliy4TTQ0L7u6XeDefezzpBRrBEwH6xI4aupuI/s1600/2016-06-07+18_47_36-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha342v-1L2ESR535eG0_0f4rXZI9FS2QKZ40rhFl3A1wfH8fVtpruJA6CPnCYTGBFPRIRa3C-4E0B9WycIe-RihWlvqCmG4LJ4x1MItyAliy4TTQ0L7u6XeDefezzpBRrBEwH6xI4aupuI/s640/2016-06-07+18_47_36-rokos_0+-+VNC+Viewer.png" width="640" /></a></div>
<br />
<br />
Sauvegardez le fichier avec CTRL-X.<br />
<br />
Nous allons aussi devoir définir une adresse ip fixe au raspberry. Pas obligatoire mais fortement recommandé. Ainsi il sera beaucoup plus aisé de pouvoir l'atteindre depuis l’extérieur par exemple avec un logiciel de prise en main à distance comme VNC que l'on va bientôt installer .<br />
<br />
Il faut pouvoir déterminer l'adresse ip que vous allez pouvoir utiliser pour votre raspberry.<br />
Pour cela, il faut vous connecter à votre box, perso je dois entrer l'adresse 192.168.1.1 dans un navigateur pour m'y connecter depuis mon pc. Parfois c'est 192.168.0.1. Dans la rubrique "Réseau", puis IP LAN, on peut voir que le serveur DHCP délivre des adresses IP qui vont de 192.168.1.10 à 50. On peut réserver une adresse IP que le serveur DHCP ne pourra pas prendre en ajoutant l'adresse MAC de la carte réseau du raspberry. Pour connaitre l'adresse MAC de la carte réseau de votre raspberry, tapez :<br />
<br />
<br />
<code>pi@rokos~$ <span style="background-color: black;"><span style="color: white;">ifconfig</span></span></code><br />
<code><span style="background-color: black;"><span style="color: white;"><br /></span></span></code>
<code><span style="background-color: black;"><span style="color: white;"><span style="color: black;"><span style="background-color: white;">En rouge, nous avons l'adresse MAC de la carte<span style="color: white;"> <span style="color: black;">réseau </span></span>du raspberry :</span></span></span></span></code>
<code><span style="background-color: black;"><span style="color: white;"><span style="background-color: white;"></span><br /></span></span></code>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP8f2Lb4X_KaO-NCTmmLGw6nVrx6bGPLVMDQJVhuIOljOo6T8-6-WmRDfSL7WYUt-wwjNFZ7lYFy0kzaHwKrbQcmdMNfpjb-euLiX0GIW20Zye9edUb8HSKsQRUrdOOPzjammvWwpeXdyD/s1600/2016-05-12+19_07_12-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Adresse mac du raspberry Bitcoin Node" border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP8f2Lb4X_KaO-NCTmmLGw6nVrx6bGPLVMDQJVhuIOljOo6T8-6-WmRDfSL7WYUt-wwjNFZ7lYFy0kzaHwKrbQcmdMNfpjb-euLiX0GIW20Zye9edUb8HSKsQRUrdOOPzjammvWwpeXdyD/s640/2016-05-12+19_07_12-rokos_0+-+VNC+Viewer.png" title="" width="640" /></a></div>
<br />
Cette adresse MAC est à ajouter dans les<b> "Infos de location/réservation DHCP" </b>avec<b> </b>l'adresse IP de votre choix (entre 10 et 50 dans mon cas)<b>. </b>Faites un <b><span style="color: white;"><span style="background-color: black;">ping 192.168.1.x</span></span> </b>pour vérifier que l'adresse IP choisie n'est pas déjà utilisée (la réponse doit être "unreachable").<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc42KNIpp0JKxlpNXJTmUxP-tV1yPRvSz-r0_pEYHYIN5n3saRxDoxD582jRtB7ZauRt2OLABui4c7MIMnhU6Uh3k-EBvQ-ecbigM6Eajfp88wDuALOcMOfMEHvVzIuHdfuhHIsTjf_L2a/s1600/2016-05-12+19_00_01-Mon+Modem.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="490" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc42KNIpp0JKxlpNXJTmUxP-tV1yPRvSz-r0_pEYHYIN5n3saRxDoxD582jRtB7ZauRt2OLABui4c7MIMnhU6Uh3k-EBvQ-ecbigM6Eajfp88wDuALOcMOfMEHvVzIuHdfuhHIsTjf_L2a/s640/2016-05-12+19_00_01-Mon+Modem.png" width="640" /></a></div>
<br />
La procédure est sensiblement la même sur les autres box des autres FAI.<br />
<br />
Dans notre exemple, j'ai choisi l'adresse IP <b>192.168.1.16</b>. Pour définir cette adresse au raspberry, tapez :<br />
<br />
<code>pi@rokos~$ <span style="background-color: black;"><span style="color: white;">sudo nano /etc/dhcpcd.conf</span></span></code> <span class="crayon-syntax crayon-syntax-inline crayon-theme-classic crayon-theme-classic-inline crayon-font-monaco" id="crayon-5734aebb5c05f597479788" style="font-size: 12px !important; font-size: 12px !important; line-height: 15px !important;"><span class="crayon-pre crayon-code" style="-moz-tab-size: 4; -o-tab-size: 4; -webkit-tab-size: 4; font-size: 12px !important; font-size: 12px !important; line-height: 15px !important; tab-size: 4;"><span class="crayon-v"></span></span></span><br />
<br />
puis, à la fin du fichier, ajouter ce qui suit :<br />
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 97px; width: 596px;" wrap="VIRTUAL"># Custom static IP address for eth0.
interface eth0
static ip_address=192.168.1.16/24
static routers=192.168.1.1
static domain_name_servers=8.8.8.8 8.8.4.4
</textarea></div>
</form>
</div>
</div>
</div>
<span style="background-color: #cccccc;"><br /></span>
<span style="background-color: #cccccc;"><span style="background-color: white;">Pour les DNS (<i>domain name servers</i>), j'ai mis ceux de google, mais vous pouvez mettre ceux que vous voulez. Vous pouvez mettre ceux de votre FAI (Voir ici : <a href="http://www.ariase.com/fr/guides/adresses-dns.html" target="_blank">http://www.ariase.com/fr/guides/adresses-dns.html)</a></span></span><br />
<br />
Le routeur (<i>static routers</i>) de ma box a l'adresse 192.168.1.1. Chez free, par exemple, cette adresse
est 192.168.0.254 par défaut. Chez orange, c'est 192.168.1.1.. Vérifiez ces
informations avant de changer l'adresse IP.<br />
<br />
Remplacez l'adresse ip et celle de votre box par les vôtres. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7UJg0OcyB3UZydpjoKy0b-r2SS3miMnwUAty0I2NZg7E8pMcV6zbaK8vStSLdPY0Z1zaZgA1U2QHKDyFplLTQf-FOr2ObfNuLawYjRQ_zd31kI-2L_Q6ok1QlPi3DZmq2qxcpYysRKreB/s1600/2016-05-15+18_50_44-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="448" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7UJg0OcyB3UZydpjoKy0b-r2SS3miMnwUAty0I2NZg7E8pMcV6zbaK8vStSLdPY0Z1zaZgA1U2QHKDyFplLTQf-FOr2ObfNuLawYjRQ_zd31kI-2L_Q6ok1QlPi3DZmq2qxcpYysRKreB/s640/2016-05-15+18_50_44-rokos_0+-+VNC+Viewer.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjogYU_zBy6dQnqLfOi0ywAZvNH3yq-f8l_JwdypUIiDs-EB05ZVvSsJUALvXLNS1kLEMRQ1WKvTaYR-M9UIXlqdczWvWk875DIdjzcfTU9I0IOkJMIotcVRyEnAQ3j4WEnnyuNYGk1eTim/s1600/2016-05-12+19_32_01-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<br />
CTRL-X pour sauvegarder. Redémarrez votre Raspberry Pi : <br />
<br />
<div class="code">
<code>pi@rokos~$ <span style="color: white;"><span style="background-color: black;">reboot </span></span></code><br />
<code><span style="color: white;"></span></code></div>
<div class="code">
<span style="background-color: white;"><br /></span><span style="color: blue; font-size: small;"><span style="background-color: #999999;"><code></code></span></span>
<span style="background-color: white;">Après le redémarrage, vérifier que l'adresse ip prévue est bien correcte avec <span style="color: white;"><span style="background-color: black;">ifconfig</span></span> :</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil5lRabmKa82SQcF1JBnN4gybT9ZqjnW6sc_qhYINCPv8yjmBjWh3kA_KytXmxh0SL0FMiibRIuI88Z8fq0j-LlPgeK-03K1dB4gsjZW3m2fAFc8Yq5BPA6gTalC4qpLG8-l3q3hhwxpqL/s1600/2016-05-14+16_27_08-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Verification adresse ip fixe sur le raspberry" border="0" height="132" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil5lRabmKa82SQcF1JBnN4gybT9ZqjnW6sc_qhYINCPv8yjmBjWh3kA_KytXmxh0SL0FMiibRIuI88Z8fq0j-LlPgeK-03K1dB4gsjZW3m2fAFc8Yq5BPA6gTalC4qpLG8-l3q3hhwxpqL/s400/2016-05-14+16_27_08-rokos_0+-+VNC+Viewer.png" title="" width="400" /></a></div>
<span style="background-color: white;"><br /></span><span style="color: blue; font-size: small;"><span style="background-color: #999999;"><code></code></span></span></div>
<div class="code">
<h3 style="text-align: left;">
PRISE EN MAIN A DISTANCE DU RASPBERRY :</h3>
<span style="color: blue; font-size: small;"><span style="background-color: #999999;"><code></code></span></span></div>
<div class="code">
<span style="background-color: white;">Si vous le souhaitez, vous pouvez installer un serveur pour la prise en main à distance du raspberry. Ainsi, plus besoin de clavier ou souris raccordés au raspberry. Vous pourrez vérifier le bon fonctionnement du noeud depuis votre pc ou votre téléphone portable/tablette.</span></div>
<div class="code">
</div>
<div class="code">
<span style="background-color: white;">Tout d'abord, il faudra configurer votre box pour accepter les connexions vers le port utilisé par le serveur VNC sur le raspberry. C'est ce qu'on appelle une redirection de port. Ce port d’écoute est le <b>5900</b> par défaut. </span></div>
<div class="code">
</div>
<div class="code">
<span style="background-color: white;">Connectez vous à votre box (pour moi, je tape
192.168.1.1 dans mon navigateur puis mon nom d'utilisateur/mot de passe personnel). Pour une freebox, c'est </span><span style="background-color: white;"><span style="color: black;"></span><a href="http://mafreebox.freebox.fr/" style="text-align: justify;">http://mafreebox.freebox.fr</a> par exemple. Dans la partie "<b>Réseau</b>", puis "<b>Paramètres Avancés</b>" et "<b>Transfert de port</b>s", il faut ajouter le port 5900 qui va être redirigé vers l'adresse IP de notre réseau local du raspberry (pour moi, 192.168.1.16) comme ci-dessous :</span></div>
<div class="code">
<span style="background-color: white;"></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="code">
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsM8TzCpwE18RdW_WJs7TclqksTS6ZSUrwKMjjURgfFDGlEeC3h_cErPdJLvm7wV_9gk5Z1nulQSpW4f-YX5IicLZEK-xHpprKthyphenhyphenyiBibeU557frnqi_muAYr6AI7FB_qc9d9IdKz4rNs/s1600/2016-05-12+21_57_15-Mon+Modem.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXAsrTQOsZyt6msR24uRMPPGWsYvQNDAL6okA9PaMvVfKzdWMSxBkvoYVOi3fuSttqfbU2dlCnqkz-BbNcXEVzjt8dVHeGYgf8BE_9KqLCTOSUa1PRlH6Vv8CogaexVp-VC5ptNrgvwsf5/s1600/2016-05-12+21_57_15-Mon+Modem.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="432" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXAsrTQOsZyt6msR24uRMPPGWsYvQNDAL6okA9PaMvVfKzdWMSxBkvoYVOi3fuSttqfbU2dlCnqkz-BbNcXEVzjt8dVHeGYgf8BE_9KqLCTOSUa1PRlH6Vv8CogaexVp-VC5ptNrgvwsf5/s640/2016-05-12+21_57_15-Mon+Modem.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi12MgEIzgaufbCdPFtKHV5VzP2UNHhQH9NPlYBF4TNvI7_MrlLkZ-0DXz9okIaWc9uCVW6G5uHmOQxgwL_OlpJWB1rX1IftI1J-309sQuv1iScXClFq5luzcbR26FsOIm_-FS1pSoKFdMO/s1600/2016-05-12+21_57_15-Mon+Modem.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAdA7K1V5XWjSFvisatlp2uaOJsFwz_4y4dZjtpUSxcl1NyHF2R5FD_9z9c-UJMY6WgNUcYfVMiO7yIIejSjbj4W2vtWpmx8ELqZOxT6wsnGYi5_ZeQ6_ADupAYN8SI6ZYtWUOpZMo_YUZ/s1600/2016-05-12+21_57_15-Mon+Modem.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></span></div>
<span style="background-color: white;">
</span>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<span style="background-color: white;">
</span></div>
<div class="code">
</div>
<div class="code">
<span style="background-color: white;">Ainsi, lorsque je me connecterai depuis internet via mon pc ou téléphone portable, j'entrerai l'adresse IP publique de ma box ainsi que le port 5900. Ce qui redirigera toutes les données vers l'adresse ip locale 192.168.1.16 et le port 5900 de mon raspberry.</span></div>
<div class="code">
</div>
<div class="code">
<br />
<span style="background-color: white;">Sur le raspberry :</span></div>
<div class="code">
<span style="background-color: white;"><code>Installer le serveur vnc X11vnc :</code></span><span style="background-color: white;"><code><code> </code></code></span><br />
<br />
<span style="background-color: white;"><code><code>pi@rokos~$ </code></code></span><span style="color: white;"><span style="background-color: black;"><code>sudo apt-get install x11vnc</code></span></span><span style="background-color: white;"><code><span style="color: white;"><span style="background-color: black;"><code><span style="color: white;"></span></code></span></span><br /></code></span><span style="background-color: white;"><code><span style="background-color: white;"><code><code>pi@rokos~$ </code></code></span><span style="background-color: black;"><span style="color: white;">x11vnc -storepasswd</span></span></code></span><br />
<br />
<span style="background-color: white;"><code>=> Entrez un mot de passe personnel et robuste pour la connexion à distance (8 caractères).</code></span></div>
<div class="code">
<span style="background-color: white;"><code><br />Pour démarrer automatiquement le serveur vnc au démarrage du raspberry :</code></span></div>
<div class="code">
<span style="background-color: white;"><code><br /></code></span><span style="background-color: white;"><code><b><span style="background-color: white;"><code><span style="background-color: white;"><code><code><span style="color: #6aa84f;"><span style="color: lime;">pi@rokos</span></span> <span style="color: #674ea7;">~ $</span></code></code></span></code></span></b> <span style="color: white;"><span style="background-color: black;">cd .config</span></span></code></span><span style="background-color: white;"><code></code></span><span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code> </code></code></span></code></span></code></span><br />
<span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code><b><span style="color: #6aa84f;"><span style="color: lime;">pi@rokos</span></span> </b><span style="color: #674ea7;"><b>~/.config </b>$</span></code></code></span></code></span> <span style="color: white;"><span style="background-color: black;">cd autostart</span></span></code></span><span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code> </code></code></span></code></span></code></span><br />
<span style="background-color: white;"><code><b><span style="background-color: white;"><code><span style="background-color: white;"><code><code><span style="color: #6aa84f;"><span style="color: lime;">pi@rokos</span></span> <span style="color: #674ea7;">~/.config/autostart $</span></code></code></span></code></span></b> <span style="color: white;"><span style="background-color: black;">nano x11vnc.desktop</span></span><br /> </code></span></div>
<div class="code">
<br />
<div style="text-align: left;">
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span></div>
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 156px; width: 613px;" wrap="VIRTUAL">[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=X11VNC
Comment=
Exec=x11vnc -repeat -forever -usepw -display :0 -ultrafilexfer -rfbport 5900 -o /home/pi/x11vnc.log
StartupNotify=false
Terminal=false
Hidden=false
</textarea></div>
</form>
<span style="background-color: #cccccc;"></span></div>
<div class="code">
<span style="background-color: white;"><code></code></span></div>
<div class="code">
<span style="background-color: white;"><code></code></span></div>
<div class="code">
<span style="background-color: white;"><code></code></span></div>
<div class="code">
<span style="background-color: white;"><code></code></span></div>
<div class="code">
<span style="background-color: white;"><code></code></span></div>
<div class="code">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe3XFxlgojOeHxyVkAagyrRw4kZ2T_ASoWsA6W3CO3kd5A8RLhToVVdydH819jlAUUmia755XRoD4S8vvhU4pYNiLhgg8wlHAZCtBqTlV2IphQjSAkrWNgi2-vYHfbaXsk5AjJV5Gobtja/s1600/2016-05-30+17_54_53-rokos_0+-+VNC+Viewer.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="347" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe3XFxlgojOeHxyVkAagyrRw4kZ2T_ASoWsA6W3CO3kd5A8RLhToVVdydH819jlAUUmia755XRoD4S8vvhU4pYNiLhgg8wlHAZCtBqTlV2IphQjSAkrWNgi2-vYHfbaXsk5AjJV5Gobtja/s640/2016-05-30+17_54_53-rokos_0+-+VNC+Viewer.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
</div>
<div>
</div>
<div>
<br />
<div style="text-align: left;">
<span style="font-size: small;"><code>Sauvegardez par CTRL-X et redémarrez le raspberry.</code></span></div>
</div>
<div>
</div>
<div>
<div class="code">
<code>pi@rokos~$ <span style="color: white;"><span style="background-color: black;">reboot </span></span></code><br />
<code></code></div>
</div>
<div>
<span style="font-size: small;"><br /></span>
<span style="font-size: small;"><code>Vérifier que le serveur vnc fonctionne correctement :</code></span></div>
<div>
<code><span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code>pi@rokos~$</code></code></span></code></span> </code></span><span style="color: white;"><span style="background-color: black;">ps -ef | grep vnc</span></span></code></div>
</div>
<div class="code">
<br />
<span style="background-color: white;">Doit retourner une ligne comme indiqué ci-dessous : </span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizqMvvLSvgrohAc-L29bOGGummYszUd85UecZXK6XU7cE9mBZhOrBOxSbYWOdENDPty0MrESdMiCgXsiD5mTmzkLLZKtL3MoeapjA3tfNdlyG7mMH5_p1fWDaDI5cqjK4xGCi-sue5yWIh/s1600/2016-05-12+20_42_29-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Processus VNC sur le raspberry" border="0" height="185" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizqMvvLSvgrohAc-L29bOGGummYszUd85UecZXK6XU7cE9mBZhOrBOxSbYWOdENDPty0MrESdMiCgXsiD5mTmzkLLZKtL3MoeapjA3tfNdlyG7mMH5_p1fWDaDI5cqjK4xGCi-sue5yWIh/s640/2016-05-12+20_42_29-rokos_0+-+VNC+Viewer.png" title="" width="640" /></a></div>
<div class="code">
</div>
<div class="code">
<br />
<span style="background-color: white;">Maintenant, sur votre PC, Tablette ou Téléphone portable, vous devez installer une application cliente pour vous connecter au raspberry. Sur PC, j'ai choisi le client Vnc Viewer (il en existe d'autres comme ultra vnc, real vnc..) : </span></div>
<div class="code">
</div>
<div class="code">
<br />
<span style="background-color: white;">Vous pouvez le télécharger ici :<a href="https://www.realvnc.com/download/viewer/"> https://www.realvnc.com/download/viewer/</a></span></div>
<div class="code">
<span style="background-color: white;">Aucune installation n'est nécessaire, vous récupérez un programme que vous pouvez exécuter directement.</span></div>
<div class="code">
<span style="background-color: white;">Cela donne ceci lorsque vous le lancez :</span></div>
<div class="code">
<span style="background-color: white;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1WN4pc0btULxDfpLL2cJJOx2N-Wx8DUcUYO_gatI8kDXo5z8LLc9RXwZDxXPM8Lm4fozMQ0Y6RjfMUKsNZIs3klI-blnjeex-tlG3bswZjnLOLzjSajVNTHCurwR74DlPMKdAs1RBK-cP/s1600/2016-05-12+20_54_40-Blogger%25C2%25A0_+Bitcoin+Full+Node+sur+RaspBerry+Pi+-+Modifier+l%2527article.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Client VNC sur pc" border="0" height="162" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1WN4pc0btULxDfpLL2cJJOx2N-Wx8DUcUYO_gatI8kDXo5z8LLc9RXwZDxXPM8Lm4fozMQ0Y6RjfMUKsNZIs3klI-blnjeex-tlG3bswZjnLOLzjSajVNTHCurwR74DlPMKdAs1RBK-cP/s320/2016-05-12+20_54_40-Blogger%25C2%25A0_+Bitcoin+Full+Node+sur+RaspBerry+Pi+-+Modifier+l%2527article.png" title="" width="320" /></a></div>
<div class="code">
<span style="background-color: white;"><br /></span></div>
<div class="code">
<span style="background-color: white;">Au niveau de la ligne VNC Server, indiquez votre adresse ip publique puis le port sous la forme :</span></div>
<div class="code">
<span style="background-color: white;">XX.XX.XX.XX:5900 </span></div>
<div class="code">
<span style="background-color: white;">(Vous pouvez trouver votre adresse publique en vous connectant sur le site <a href="http://www.mon-ip.com/">http://www.mon-ip.com/</a> par exemple).</span></div>
<div class="code">
<span style="background-color: white;"><br /></span></div>
<div class="code">
<span style="background-color: white;">Une fois connecté, vous obtenez le bureau du raspberry et pouvez naviguer comme si vous étiez connectés directement avec vos clavier/souris :</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8POMCw-2YCYXy_U2KD7lrEFs64QsodzGFF2sUCE9W-QCZL1zNWOCitVuMckESQHePomx5h1Rsk5n1DgD0Ht2zYk6zmplnH3Cd4GQk4hU0crTDBUCxkVHkzV-xyFbXhcVy4Ji-S75TyDCl/s1600/2016-05-12+21_01_54-.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="ROKOS OS raspberry pi" border="0" height="356" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8POMCw-2YCYXy_U2KD7lrEFs64QsodzGFF2sUCE9W-QCZL1zNWOCitVuMckESQHePomx5h1Rsk5n1DgD0Ht2zYk6zmplnH3Cd4GQk4hU0crTDBUCxkVHkzV-xyFbXhcVy4Ji-S75TyDCl/s640/2016-05-12+21_01_54-.png" title="" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="code">
<span style="background-color: white;"><br /></span></div>
<div class="code">
<span style="background-color: white;">Sur un téléphone portable/tablette android, télécharger aussi le client vnc viewer et le configurer avec votre adresse ip publique :</span></div>
<div class="code">
<span style="background-color: white;"><a href="https://play.google.com/store/apps/details?id=com.realvnc.viewer.android&hl=fr">https://play.google.com/store/apps/details?id=com.realvnc.viewer.android&hl=fr</a></span></div>
<div class="code">
<span style="background-color: white;">Pour Iphone IOS : </span></div>
<div class="code">
<span style="background-color: white;"><a href="https://itunes.apple.com/fr/app/vnc-viewer/id352019548?mt=8">https://itunes.apple.com/fr/app/vnc-viewer/id352019548?mt=8</a> </span></div>
<div class="code">
<span style="background-color: white;"> </span></div>
<div class="code">
<span style="background-color: white;"></span></div>
<div class="code">
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
CONFIGURATION DU CLIENT BITCOIN :</h3>
<div style="text-align: left;">
<span style="font-size: small;">Pour que le client bitcoin démarre correctement et ne se plante pas sur le long terme en prenant toute la mémoire disponible de notre raspberry, nous devons configurer un fichier de paramètres qui s'appelle "<b>bitcoin.conf</b>" :</span></div>
<div style="text-align: left;">
<span style="font-size: small;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white;"><code><b><span style="background-color: white;"><code><span style="background-color: white;"><code><code><span style="color: #6aa84f;"><span style="color: lime;">pi@rokos</span></span> <span style="color: #674ea7;">~ $</span></code></code></span></code></span></b> <span style="color: white;"><span style="background-color: black;">cd .bitcoin</span></span></code></span><span style="background-color: white;"><code></code></span><span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code></code></code></span></code></span></code></span></div>
<div style="text-align: left;">
<span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code><b><span style="color: #6aa84f;"><span style="color: lime;">pi@rokos</span></span> </b><span style="color: #674ea7;"><b>~/.bitcoin </b>$</span></code></code></span></code></span> <span style="color: white;"><span style="background-color: black;">nano bitcoin.conf</span></span></code></span><span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code></code></span></code></span></code></span></div>
<div style="text-align: left;">
<span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code></code></code></span></code></span></code></span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
C<span style="font-size: small;">opier le texte ci-dessous, puis collez le dans le fichier :</span></div>
<br />
<form name="copy">
<div align="center">
<textarea cols="60" name="txt" rows="3" style="height: 148px; width: 613px;" wrap="VIRTUAL">#Nom utilisateur et mot de passe de votre noeud (a choisir par vous)
rpcuser=rpcuser
rpcpassword=MonMotDePassePersonnel
#Dossier contenant les fichiers de la blockchain
datadir=/home/pi/bitcoinData
#Permettra d'interroger le serveur pour nous renvoyer des informations statistiques du noeud
server=1
#Mémoire maximale de la mémoire de pool (transactions non confirmées).
maxmempool=150
#Limiter a 30 le nombre de connexions avec le réseau bitcoin
maxconnections=30
#Pour limiter l'usage de la mémoire RAM du raspberry 50Mo au lieu de 100 par défaut. On peut même mettre moins.
dbcache=50
</textarea></div>
</form>
<div style="text-align: left;">
Pour plus d'explications sur les paramètres utilisés et utilisables, voir ici : <a href="https://en.bitcoin.it/wiki/Running_Bitcoin">https://en.bitcoin.it/wiki/Running_Bitcoin</a><br />
<br />
<br />
Modifiez le mot de passe en face de "rpcpassword" et mettez un mot de passe à votre convenance (le plus long possible et compliqué).<br />
<br />
Sauvegardez le fichier avec CTRL-X.<br />
<br />
Avant de lancer le client bitcoin, nous allons configurer la box pour que le client puisse accepter les connections entrantes sur le port par défaut : <b>8333.</b> Ainsi vous pourrez partager la blockchain avec d'autres.<br />
<br />
<div class="code">
<span style="background-color: white;">Connectez vous à votre box (pour moi, je tape
192.168.1.1 dans mon navigateur puis mon nom d'utilisateur/mot de passe personnel). Dans la partie "<b>Réseau</b>", puis "<b>Paramètres Avancés</b>" et "<b>Transfert de port</b>s",
il faut ajouter le port 8333 qui va être redirigé vers l'adresse IP de
notre réseau local du raspberry (pour moi, 192.168.1.16) comme
ci-dessous :</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidiQkV1NhQNzyNrJsCDhsxuwwKUF8iK8ZTq_uyS309odjgr6B2V7H9EeCYL5rGDyRwgxUt4uQnTiekk01ne4erqr6U5VjWNvrsR4lQghGeVUJhW-_2v3dOFqBEVNX7IpgX8JSgEKzvtR7t/s1600/2016-05-14+17_40_41-Clipboard.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="440" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidiQkV1NhQNzyNrJsCDhsxuwwKUF8iK8ZTq_uyS309odjgr6B2V7H9EeCYL5rGDyRwgxUt4uQnTiekk01ne4erqr6U5VjWNvrsR4lQghGeVUJhW-_2v3dOFqBEVNX7IpgX8JSgEKzvtR7t/s640/2016-05-14+17_40_41-Clipboard.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIKXYIdhDY4gVVtrMSfhqBxN3GCKDNRFdg2N7OWojcLRIwVsJ6-dnS_GwvzO2IRxTtoRIQRJXLaJsShHk6h7P7IUOqUaTCauVUW9TnzTBbOovffMZpEW500WzNHOXTTK8H-F3eW3fMjbk6/s1600/2016-05-12+21_57_15-Mon+Modem.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
Une fois la box configurée, vous pouvez lancer le client bitcoin sur votre raspberry :</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7948Av_fEGkYH9LA2WZTzhpRObJaNrniU4U25vrkszhH06sZTTPW_weDnLvsGlHP3AoLxQr47NsQnLTH4dHDE1kmgfLd0bWZHJOQuzDWIspx3BFkFH_TKfhpDfMoYu9HdIWcNBhQoAWcM/s1600/2016-05-14+17_48_44-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Lancement du client bitcoin sur OS ROKOS" border="0" height="277" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7948Av_fEGkYH9LA2WZTzhpRObJaNrniU4U25vrkszhH06sZTTPW_weDnLvsGlHP3AoLxQr47NsQnLTH4dHDE1kmgfLd0bWZHJOQuzDWIspx3BFkFH_TKfhpDfMoYu9HdIWcNBhQoAWcM/s400/2016-05-14+17_48_44-rokos_0+-+VNC+Viewer.png" title="" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Vous pouvez créer un raccourci sur le bureau en faisant un clic droit sur "Bitcoin Core Client" puis "Ajouter au bureau".<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Le client bitcoin démarre et la led du disque dur externe doit s'agiter.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF4tkTM3itu4VtpmaTIMdgV2thKyvz2rZOWiJYq79UAmKkyAGTNM6vMEBAHJrO_6LGcEafPWlU4xhbGUovKSITMBp6rUXtd4tpOJmloFNDHhOxCiT8C5EcZ9lbxt_k3CVRuT0cJO92xhTu/s1600/2016-05-14+18_02_53-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF4tkTM3itu4VtpmaTIMdgV2thKyvz2rZOWiJYq79UAmKkyAGTNM6vMEBAHJrO_6LGcEafPWlU4xhbGUovKSITMBp6rUXtd4tpOJmloFNDHhOxCiT8C5EcZ9lbxt_k3CVRuT0cJO92xhTu/s320/2016-05-14+18_02_53-rokos_0+-+VNC+Viewer.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<span style="background-color: white;">Le client commence alors à se synchroniser avec le réseau et récupère la blockchain. Ce qui peut prendre une bonne dizaine de jours pour être complétement synchronisé avec le réseau (oui oui c'est long !) :</span><br />
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white;"></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white;"></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl33TaUE90npYMGn0XNmL7R7bwf9vci6MQy8Ynb6s2VBr-OedTzeCPU4AeGtPrPjjFCV3e4vmczu_uJwHFzcYfARa70kDz9zvlhiCG5e9QhbckghJn8ohvZzHrZL59pTsemhFkaql4h_V/s1600/2016-05-14+18_04_05-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Client Bitcoin Core" border="0" height="341" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl33TaUE90npYMGn0XNmL7R7bwf9vci6MQy8Ynb6s2VBr-OedTzeCPU4AeGtPrPjjFCV3e4vmczu_uJwHFzcYfARa70kDz9zvlhiCG5e9QhbckghJn8ohvZzHrZL59pTsemhFkaql4h_V/s400/2016-05-14+18_04_05-rokos_0+-+VNC+Viewer.png" title="" width="400" /></a></span></div>
</div>
<br />
Sinon, il y a une solution plus rapide, c'est de télécharger la blockchain avec un lien torrent. Sur bitcointalk, il y a une page qui parle de ça : <a href="https://bitcointalk.org/index.php?topic=1310261.msg14391871#msg14391871">https://bitcointalk.org</a><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOdhJt7JQr9v21B2qOlT8CnME1ZtSBVf9Jr7bCNn1bC52Y2iS9B2bQwTyw64OkAK2Gg7YBuY3ZerrynuIv6xoebAXMiy2At6MNZKs80Dlmu6-aeAjHH6PQykm9MkeYh2jfFXc2lfwJeKXZ/s1600/2016-06-29+14_22_29-188.165.200.51_8333+-+Bitnodes.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOdhJt7JQr9v21B2qOlT8CnME1ZtSBVf9Jr7bCNn1bC52Y2iS9B2bQwTyw64OkAK2Gg7YBuY3ZerrynuIv6xoebAXMiy2At6MNZKs80Dlmu6-aeAjHH6PQykm9MkeYh2jfFXc2lfwJeKXZ/s1600/2016-06-29+14_22_29-188.165.200.51_8333+-+Bitnodes.png" /></a></div>
/index.php?topic=1310261.msg14391871#msg14391871<br />
La dernière blockchain date de d'avril 2016. Il suffit alors de décompresser l'archive à la racine du disque dur USB et vous gagnez 7 ans de recup..<br />
<br />
<br />
Je vous conseille d'ouvrir une fenêtre terminal et de lancer une petite commande pour vérifier dans le log que tout se passe bien :<br />
<br />
<div>
<code><span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code>pi@rokos~$</code></code></span></code></span> </code></span><span style="color: white;"><span style="background-color: black;">cd ~/bitcoinData</span></span></code><br />
<code><span style="background-color: white;"><code><span style="background-color: white;"><code><span style="background-color: white;"><code><code>pi@rokos~$</code></code></span></code></span> </code></span><span style="color: white;"><span style="background-color: black;">tail -f debug.log</span></span></code><br />
<code><br /></code>
<code>Ce qui donne :</code><br />
<div class="separator" style="clear: both; text-align: center;">
<code><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk7mZovQkkGM2-yeAA1AAgpIeg8VSDAJFr-zvIkQxcEDP94ooqyrpe_d4wuqBeLEk_4z9tIsdIA6qz_JsjOZAuLHK_z4nL_ZpDUZpYX4Nvei8CB4LKXgEWNIbh714be2xhD-f8egUWQ4v7/s1600/2016-05-14+18_08_51-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="debug.log bitcoin" border="0" height="154" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk7mZovQkkGM2-yeAA1AAgpIeg8VSDAJFr-zvIkQxcEDP94ooqyrpe_d4wuqBeLEk_4z9tIsdIA6qz_JsjOZAuLHK_z4nL_ZpDUZpYX4Nvei8CB4LKXgEWNIbh714be2xhD-f8egUWQ4v7/s640/2016-05-14+18_08_51-rokos_0+-+VNC+Viewer.png" title="" width="640" /></a></code></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: x-small;">la blockchain bitcoin en cours de récupération</span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<code>Dans le menu "Aide" du client bitcoin, cliquez sur "Fenêtre de débogage", pour afficher l'état des connexions en cours :</code></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<code><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaUlyt7ZJVeBVw6HKZOwbzZKJlbVrFRrR4O9dQofnTzTvlvBq2Hx6k6a6kUx_hZxXxNX0TBMnm5-4DHFnSj4edv0fCpSZwUOkSLhLkwqnGaHe5eUCM1RTt0K51-gl-jFlVJuwnFZyrS5Dg/s1600/2016-05-14+18_13_50-rokos_0+-+VNC+Viewer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Fenetre de debogage bitcoin" border="0" height="542" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaUlyt7ZJVeBVw6HKZOwbzZKJlbVrFRrR4O9dQofnTzTvlvBq2Hx6k6a6kUx_hZxXxNX0TBMnm5-4DHFnSj4edv0fCpSZwUOkSLhLkwqnGaHe5eUCM1RTt0K51-gl-jFlVJuwnFZyrS5Dg/s640/2016-05-14+18_13_50-rokos_0+-+VNC+Viewer.png" title="" width="640" /></a></code></div>
<code><br /></code>
<code>Si tout est correctement configuré, bientôt, vous verrez arriver des connexions en entrée, ce qui montrera que vous partagez la blockchain avec les autres nœuds connectés.</code><br />
<br />
Pour vérifier que votre noeud bitcoin est bien reconnu sur le réseau, rendez-vous sur <a href="https://bitnodes.21.co/">https://bitnodes.21.co/</a><br />
<br />
Entrez votre adresse ip publique et cliquez sur "Check Node". Si votre noeud est opérationnel, il doit apparaitre en vert :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUpcroEekjrVniTSANRGAUfq7PRZR20WvMwcXzLvQyOnO5kBU2CVcd9VialJFUDIxILHRLAZoAW6gmlBlwC93vCPgFI8ZfHiEVHxXP65qtHNx8I2_aSK9mXgXPOJHXNCEYOdmhlLsf21bi/s1600/2016-05-15+11_28_21-Films+et+TV.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Noeud bitcoin sur le site https://bitnodes.21.co" border="0" height="416" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUpcroEekjrVniTSANRGAUfq7PRZR20WvMwcXzLvQyOnO5kBU2CVcd9VialJFUDIxILHRLAZoAW6gmlBlwC93vCPgFI8ZfHiEVHxXP65qtHNx8I2_aSK9mXgXPOJHXNCEYOdmhlLsf21bi/s640/2016-05-15+11_28_21-Films+et+TV.png" title="" width="640" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
En cliquant sur le lien de votre noeud, vous pourrez obtenir des informations sur la disponibilité de celui-ci : </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-PR2OyQzoSZMhBCKCb797YTDSswWnCD95yeP9xgwYSRoekJ96PGZRmFahjzfdJ9ps_at-pcVDgV6URZOMLZlK7obbs0oyMyebCFbCIof5ykepnVuorTHgIzhy2kyW_XlixmdmSO0vZpXB/s1600/2016-06-29+14_22_29-188.165.200.51_8333+-+Bitnodes.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-PR2OyQzoSZMhBCKCb797YTDSswWnCD95yeP9xgwYSRoekJ96PGZRmFahjzfdJ9ps_at-pcVDgV6URZOMLZlK7obbs0oyMyebCFbCIof5ykepnVuorTHgIzhy2kyW_XlixmdmSO0vZpXB/s640/2016-06-29+14_22_29-188.165.200.51_8333+-+Bitnodes.png" width="489" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI-htLu0Xvyq1Lo6XxpYd06SEmRRG9sv0QwxMS7yH4DOcAEadqrUubqWUaxqiu2xiPydVdHmt-6LsZQwVyzLy2ptZ6nAWxlkY_Ar4fprRioXXg6o9P67cv0YPo1GsKfnBr-_NkODwahhpf/s1600/2016-05-15+15_23_55-87.231.21.54_8333+-+Bitnodes.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfUFt6YuP2gqzk7NDCPk-G0MgKFZR2hh9jQDumkZzver16RWBmwKpGjSaAweEPr0oZKNfJYoJZze4HbuonBPLs9zUnSbyURGadwz3GP6RT7ZQCkeCGfYFlZT39gmemhO60j40iOPMwXcMF/s1600/2016-05-15+11_32_00-85.168.194.154_8333+-+Bitnodes.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM4jvEW1g64USB2X_vhlkN6lyyBrgeQT3bVjpTZXVBDpuiiVoVOVt-aThM9wA0ePC8D-8LnQ3hFurAxkTmsvTIPrlWJuzkAc6BdQb9vyTpdIqu7eFKqASea0NCtK-HJjHvVbvu7p3wcWTM/s1600/2016-05-15+11_32_00-85.168.194.154_8333+-+Bitnodes.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div style="text-align: left;">
Après plusieurs jours de fonctionnement non-stop, la mémoire utilisée du raspberry plafonne à 753M :</div>
<h3 style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2V96Ld3EBDSij8Q7MwnynjTA3H_ILuVHc7NvWcfpyH9Y1pAGuirl7KjWckPgTyRgMtEW8FdyM5ML8W95Vyz3YnC6_gBHm_AR76VKheYz_6C-rP1qhlE9way6HKmnLxN0pYFkcFZ0WDwS4/s1600/2016-05-15+13_36_07-.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="354" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2V96Ld3EBDSij8Q7MwnynjTA3H_ILuVHc7NvWcfpyH9Y1pAGuirl7KjWckPgTyRgMtEW8FdyM5ML8W95Vyz3YnC6_gBHm_AR76VKheYz_6C-rP1qhlE9way6HKmnLxN0pYFkcFZ0WDwS4/s640/2016-05-15+13_36_07-.png" width="640" /></a></h3>
<h3 style="text-align: center;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
CONSOMMATION DU DISPOSITIF :</h3>
<div style="text-align: left;">
<span style="font-size: small;">Comme on peut le voir sur la photo, l'ensemble du dispositif consomme environ 5,6W.</span></div>
<div style="text-align: left;">
<span style="font-size: small;">Sur une journée complète, nous arrivons à 5.6W*24~=135W consommé.</span></div>
<div style="text-align: left;">
<span style="font-size: small;">Sur une année complète, cela monte à 135*365=49275W, soit 49,3 Kw consommés.</span></div>
<div style="text-align: left;">
<span style="font-size: small;">Au prix du kilowatt en France en 2016 :</span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: small;">- Tarif TTC sans heures creuses : 0.1503€/Kw. Soit 49,3*0.1503=<b>7€40</b> pour une année</span></div>
<div style="text-align: left;">
<span style="font-size: small;">- Tarif TTC avec heures creuses : 0.1474€/kw. Soit 49,3*0.1474=<b>7€27</b> pour une année</span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: small;">Tout cela reste négligeable : environ 0,60€ / mois pour faire tourner un noeud bitcoin chez soi.. Alors, lancez vous !.. </span></div>
<div style="text-align: left;">
<span style="font-size: small;"> </span> </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigP_8PFPnDx5plbJzRETBEGtcZ4XFbmE5iXph88d14J4zm1Ge77qt6cqOzA0B6gKnU5-OCGNE__llBkPELxz_7LNkxEquq4u-bdCR6Et7l5okPbQ36dQLuNwWC59i03j_4e7SBX0W-FxHY/s1600/2016-05-15+11_05_27-20160515_110033.jpg+%25E2%2580%258E-+Photos.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Consommation du Noeud bitcoin raspberry disque dur USB" border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigP_8PFPnDx5plbJzRETBEGtcZ4XFbmE5iXph88d14J4zm1Ge77qt6cqOzA0B6gKnU5-OCGNE__llBkPELxz_7LNkxEquq4u-bdCR6Et7l5okPbQ36dQLuNwWC59i03j_4e7SBX0W-FxHY/s640/2016-05-15+11_05_27-20160515_110033.jpg+%25E2%2580%258E-+Photos.png" title="" width="640" /></a></div>
<h3 style="text-align: left;">
</h3>
</div>
</div>
<br />
<h3 style="text-align: left;">
</h3>
</div>
<div class="code">
<span style="background-color: white;"><br /></span></div>
<div class="code">
<span style="background-color: white;"><br /></span><span style="color: blue; font-size: small;"><span style="background-color: #999999;"><code></code></span></span></div>
<div style="text-align: left;">
</div>
</div>
ungaro59http://www.blogger.com/profile/00244263167814565609noreply@blogger.com6Île-de-France, France48.853872731656558 2.329101562548.686643231656561 2.0063780625 49.021102231656556 2.6518250625