installer-une-brique.pin 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. #!/usr/bin/env pinpoint
  2. # https://developer.gnome.org/pygtk/stable/pango-markup-language.html
  3. # http://apps.timwhitlock.info/emoji/tables/unicode
  4. # http://www.w3schools.com/charsets/ref_utf_geometric.asp
  5. [img/intro.png]
  6. [fill]
  7. [font=Sans 50px]
  8. -- [transition=text-slide-down] [font=Sans 60px] [text-align=center] [fit]
  9. <b>Installer une Brique Internet</b>
  10. <small><i>Labeur, Better, Bonheur</i></small>
  11. -- [transition=slide-up] [font=Sans 60px] [text-align=center] [fit]
  12. <b>AG FFDN 2015</b>
  13. <i>Labeur 😼</i>
  14. -- [img/repo.png] [text-align=center] [bottom] [fit]
  15. Télécharger l'image Debian/YunoHost
  16. + vérifier le MD5
  17. -- []
  18. <b>Décompresser l'image et l'installer sur la carte SD :</b>
  19. <tt>% tar xf labriqueinternet_*.img.tar.xz
  20. % sudo dd if=/tmp/labriqueinternet_*.img of=/dev/mmcblk0</tt>
  21. -- []
  22. <b>Trouver l'IPv4 privée de la Brique 😖 :</b>
  23. <tt>% sudo apt-get install arp-scan
  24. % sudo arp-scan --local | grep -P '\t02'
  25. 192.168.1.42 02:14:06:42:f5:18 (Unknown)</tt>
  26. -- []
  27. <b>Se connecter en SSH sur la Brique :</b>
  28. <tt>% ssh root@192.168.1.42</tt>
  29. -- []
  30. <b>Changer le mot de passe root :</b>
  31. <tt>(current) UNIX password:
  32. Enter new UNIX password:
  33. Retype new UNIX password:</tt>
  34. -- []
  35. <b>Mettre Debian et YunoHost à jour :</b>
  36. <tt>% apt-get update &amp;&amp; apt-get dist-upgrade</tt>
  37. -- []
  38. <b>Faire la post-install de YunoHost :</b>
  39. <tt>% yunohost tools postinstall
  40. Main domain: poney.ninja
  41. New administration password:
  42. Confirm new administration password:</tt>
  43. -- []
  44. <b>Temporairement créer le NDD en local 😓 :</b>
  45. <tt>% echo '192.168.1.42 poney.ninja' >> /etc/hosts</tt>
  46. -- [img/connect_admin.png] [bottom]
  47. Se connecter à l'admin YunoHost
  48. -- [img/new_user.png] [bottom]
  49. Créer l'utilisateur principal
  50. -- [img/install_vpnclient.png] [bottom]
  51. Installer VPN Client (adresse GitHub)
  52. -- [img/install_hotspot.png] [bottom]
  53. Installer Wifi Hotspot (adresse GitHub)
  54. -- [img/access_user_vpnclient.png] [bottom]
  55. Limiter l'accès de l'admin de VPN Client
  56. -- [img/access_user_hotspot.png] [bottom]
  57. Limiter l'accès de l'admin de Wifi Hotspot
  58. -- [img/connect_user.png] [bottom]
  59. Se connecter avec l'utilisateur principal
  60. -- [img/config_vpnclient.png] [bottom] [fit]
  61. Configurer le compte VPN
  62. -- [img/config_hotspot.png] [bottom] [fit]
  63. Configurer le point d'accès Wifi
  64. -- []
  65. <b>Trouver la bonne configuration DNS avec les IP du compte VPN :</b>
  66. <tt>@ 14400 IN A 80.67.188.42
  67. * 14400 IN A 80.67.188.42
  68. @ 14400 IN AAAA 2001:913::42
  69. * 14400 IN AAAA 2001:913::42
  70. _xmpp-client._tcp 14400 IN SRV 0 5 5222 poney.ninja.
  71. _xmpp-server._tcp 14400 IN SRV 0 5 5269 poney.ninja.
  72. @ 14400 IN MX 5 poney.ninja.</tt>
  73. -- [transition=slide-up] [font=Sans 60px] [text-align=center] [fit]
  74. <b>Entre les deux AG FFDN</b>
  75. <i>Better 😺</i>
  76. -- [transition=text-slide-down] [img/dotcubefiles.png] [bottom]
  77. Arrivée des fichiers .cube
  78. -- [img/upload_dotcube.png] [bottom]
  79. Configuration du VPN en 1 clic
  80. -- [img/vpnclient_works.png] [bottom]
  81. And it works, bitches!
  82. -- [transition=text-slide-down] [img/installsd_help.png] [bottom]
  83. Arrivée de install-sd.sh
  84. -- [img/installsd_install.png] [bottom]
  85. 1 seule commande à taper pour créer une carte SD
  86. -- [transition=text-slide-down] [img/scripts.png] [bottom]
  87. Arrivée des scripts de configuration
  88. -- [img/scripts_inside.png] [bottom]
  89. Utiles, mais hardcores... 😱
  90. -- [transition=slide-up] [font=Sans 60px] [text-align=center] [fit]
  91. <b>AG FFDN 2016</b>
  92. <i>Bonheur 😻</i>
  93. -- [transition=text-slide-down] [img/hypercube1.png] [bottom]
  94. Arrivée de l'HyperCube
  95. -- [img/hypercube2.png] [bottom]
  96. 1) Quelques questions pour situer l'utilisateur
  97. -- [img/hypercube3.png] [bottom]
  98. 2) Upload du fichier .cube
  99. -- [img/hypercube4.png] [bottom]
  100. 3) Configuration de YunoHost et du Wifi
  101. -- [img/hypercube5.png] [bottom]
  102. Guide d'installation dynamique
  103. -- []
  104. <b>Étapes du guide :</b>
  105. <b>1)</b> Télécharger le fichier .hypercube
  106. <b>2)</b> Utiliser install-sd.sh
  107. <b>3)</b> Brancher la Brique et patienter
  108. ⇢ <i>Le wifi apparaît, c'est terminé 😘</i>
  109. -- [img/hypercube6.png] [bottom]
  110. C'est aussi un générateur de .cube pour les assos 😉
  111. -- [img/dbffdn.png]
  112. <b>Chères assos, vous pouvez supporter la Brique Internet :</b>
  113. ▸ <b>Essentiel :</b> Fournir systématiquement des .cube avec vos comptes VPN
  114. ▸ <b>Merveilleux :</b> Fournir des Briques clé-en-main (comme dans la vidéo) !
  115. ▸ <b>Bonus :</b> Vous ajouter sur la carte des assos participantes
  116. -- [transition=page-curl-both] [font=Sans 60px] [fit] [command=firefox --new-window https://install.labriqueinter.net]
  117. <b>Démonstration</b>
  118. -- [img/installsd_cubes.png] [bottom]
  119. Débogage : Trouver l'adresse de l'interface de debug
  120. -- [img/hypercube_debug.png] [bottom] [fit]
  121. Débogage : Visualisation de l'avancement de l'installation