installer-une-brique.pin 4.0 KB

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