123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <title>reveal.js</title>
- <link rel="stylesheet" href="css/reveal.css">
- <link rel="stylesheet" href="css/theme/black.css">
- <!-- Theme used for syntax highlighting of code -->
- <link rel="stylesheet" href="lib/css/zenburn.css">
- <!-- Printing and PDF exports -->
- <script>
- var link = document.createElement( 'link' );
- link.rel = 'stylesheet';
- link.type = 'text/css';
- link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
- document.getElementsByTagName( 'head' )[0].appendChild( link );
- </script>
- </head>
- <body>
- <div class="reveal">
- <div class="slides">
- <section background-image="file:///home/jops/Documents/Formazione/javascript/desig-patter-js/image/troll.png" data-background-size="100px" data-background-repeat="repeat">
- <h2>Mastodon lato admin</h2>
- <img src="http://localhost:1947/images/mastodon.png" height="400" >
- <p>
- Hack or Di(Y|e) chapter 4.<br>
- 9/11/18 @ XM24
- </p>
- <p>
- <small>Created by Bida</small>
- </p>
- <aside class="notes">
- <ul>
- <li>per far partire la presentazione cliccare s</li>
- <li>comando$ node plugin/notes-server/</li>
- </ul>
- </aside>
- </section>
- <section data-markdown>
- # Premessa
- ## social network autogestito
- Strumento utile per condividere informazioni e discuterle assieme
- </section>
- <section data-markdown>
- # Premessa
- Mastodon
- [https://github.com/tootsuite/mastodon](https://github.com/tootsuite/mastodon)
- Fediverso
- [http://fediverse.party](http://fediverse.party)
- </section>
- <section data-markdown>
- ## Manifesto
- https://mastodon.bida.im/about/more
- tutela della privacy e dell'anonimato: non pubblichiamo né conserviamo dati sensibili di alcuna persona
- </section>
- <section>
- <h3>Puntate precedenti</h3>
- <ul>
- <li>social network, perche' mastodon</li>
- <li>presentazioni xm24 e hackmeeting</li>
- </ul>
-
- <aside class="notes">
- </aside>
- </section>
- <section>
- <h3>Installazione Docker - Prerequisites</h3>
-
- <ul>
- <li>Working basic (Linux) server with Nginx (or Apache2; not officially supported).</li>
- <li>Recent stable version of Docker.</li>
- <li>Recent stable version of Docker-compose.</li>
- </ul>
- </aside>
- </section>
- <section>
- <h3>Setting up</h3>
- Clone Mastodon's repository.
-
- <pre class="bash"><code># Clone mastodon to ~/live directory
- git clone https://github.com/tootsuite/mastodon.git live
- # Change directory to ~/live
- cd ~/live
- # Checkout to the latest stable branch
- git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
- </code>
-
- <aside class="notes">
- ricorda che nel docker compose il postgres e redis di default non persistono
- </aside>
- </section>
- <section>
- <h3>Usa una prebuilt image o build una tua immagine</h3>
- <ul>
- <li>https://hub.docker.com/r/tootsuite/mastodon/</li>
- <li>apri il docker compose: decommenta i punti .build</li>
- <li>edita file parte image, in base alla release che vuoi</li>
- <li>cp .env.production.sample .env.production (per la configurazione)</li>
- <li>docker-compose build</li>
- <li>chown -R 991:991 public</li>
- </ul>
-
- <aside class="notes">
- ricorda che nel docker compose il postgres e redis di default non persistono
- </aside>
- </section>
- <section>
- <h3>Building the app</h3>
- Ora che hai generato l'immagine, puoi generare l'istanza e configurarla
- <pre class="bash"><code>docker-compose run --rm web bundle exec rake mastodon:setup</code></pre>
- questo e' un wizard per generare le opzioni che dovrai inserire nel file .env.production
- <pre class="bash"><code>docker-compose up -d</code></pre>
- </aside>
- </section>
- <section>
- <h3>Configurazione Nginx</h3>
-
- facciamo vedere la nostra configurazione.<br>
- Non salviamo gli ip
-
- </aside>
- </section>
- <section>
- <h3>Rake task (Ruby on rails)</h3>
- Per poter gestire il server, cancellazione cache, trasformare un utente in admin, rebuild elastic search etc...
- https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/List-of-Rake-tasks.md
-
- </aside>
- </section>
- <section>
- <h3>Utenti</h3>
- <ul>
- <li>1485 utenti iscritti</li>
- <li>questa settimana: 378 attivi (25% degli iscritti)</li>
- <li>questa settimana: 236 hanno scritto almeno un toot (16% degli iscritti)</li>
- <li>questa settimana: 140 lurk (37% degli attivi, feed reader)</li>
- </ul>
- </aside>
- </section>
- <section>
- <h3>Macchina</h3>
- <ul>
- <li>vps su gandi</li>
- <li>4 core</li>
- <li>8gb ram</li>
- <li>250 gb storage</li>
- <li>backup + nfs + rsnapshot</li>
- <li>monitoraggio nagios</li>
- </ul>
- </aside>
- </section>
- <section>
- <h3>Lato Admin</h3>
- <ul>
- <li>come siamo strutturati</li>
- <li>backend</li>
- <li>organizzazione scambio comunicazioni segnalazini</li>
- <li>istanze e blocchi </li>
- <li>dialogo, silenziazione, blocco</li>
- </ul>
- </aside>
- </section>
- <section>
- <h3>come siamo strutturati</h3>
- <ul>
- <li>ci sentiamo periodicamente</li>
- <li>almeno 3 tecnici</li>
- <li>almeno 3 non tecnici, amministratori</li>
- <li>avere un canale per sentirsi immediatamente</li>
- </ul>
- </aside>
- </section>
- <section>
- <h3>backend</h3>
- <ul>
- <li>mastodon nasce come sn focalizzato contro i molestatori</li>
- <li>vediamo l'interfaccia</li>
- </ul>
- </aside>
- </section>
- <section>
- <h3>organizzazione scambio comunicazioni segnalazioni</h3>
- <ul>
- <li>toot pubblici</li>
- <li>segnalazioni</li>
- <li>da social network in privato</li>
- <li>in mailing list</li>
- <li>nell'assemblea di istanza: 8 dicembre</li>
- </ul>
- </aside>
- </section>
- <section>
- <h3>istanze e blocchi</h3>
- <ul>
- <li>esistono liste pubbliche</li>
- <li>la nostra e' in costruzione</li>
- <li>vediamo!</li>
- </ul>
- </aside>
- </section>
- <section>
- <h3>dialogo, silenziazione, blocco</h3>
- <ul>
- <li>policy</li>
- <li>segnalazioni</li>
- <li>silenziazione</li>
- <li>blocco</li>
- </ul>
- </aside>
- </section>
-
- </div>
- </div>
- <script src="lib/js/head.min.js"></script>
- <script src="js/reveal.js"></script>
- <script>
- // More info https://github.com/hakimel/reveal.js#configuration
- Reveal.initialize({
- history: true,
- // More info https://github.com/hakimel/reveal.js#dependencies
- dependencies: [
- { src: 'plugin/markdown/marked.js' },
- { src: 'plugin/markdown/markdown.js' },
- { src: 'plugin/notes/notes.js', async: true },
- { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
- ]
- });
- </script>
- </body>
- </html>
|