Sfoglia il codice sorgente

Syncthing instructions

Bob Mottram 9 anni fa
parent
commit
167acecca9
2 ha cambiato i file con 166 aggiunte e 72 eliminazioni
  1. 9
    5
      doc/EN/usage.org
  2. 157
    67
      website/EN/usage.html

+ 9
- 5
doc/EN/usage.org Vedi File

@@ -109,13 +109,11 @@ In another terminal log into Freedombone:
109 109
 ssh username@domainname -p 2222
110 110
 #+END_SRC
111 111
 
112
-[[file:images/controlpanel/control_panel_user.jpg]]
113
-
114 112
 Then select *File Synchronization*.
115 113
 
116 114
 [[file:images/controlpanel/control_panel_file_sync.jpg]]
117 115
 
118
-Select *Show device ID* and copy the long string of letters and numbers shown (usually select then CTRL+c).
116
+Select *Show device ID* and copy the long string of letters and numbers shown, using the shift key then select the text followed by right click then select copy.
119 117
 
120 118
 Open a non-Tor browser and enter  *http://127.0.0.1:8384* as the URL. You should now see the minimalistic user interface. Under *Remote Devices* select *Add Remote Device*. In the *Device ID* field paste the string you just copied (CTRL+v). The Device name can be anything. Under *Share Folders with Device* check *default* (or whatever folder you created on your local machine), then save.
121 119
 
@@ -127,9 +125,15 @@ Install Syncthing and Connectbot from F-droid.
127 125
 
128 126
 Set up Connectbot to log into Freedombone.
129 127
 
130
-Open Syncthing, select the menu and then press on *Device ID*. It will be copied to the clipboard. 
128
+Select *File Synchronization*.
129
+
130
+Select *Show device ID* and copy the long string of letters by pressing anywhere on the screen, selecting the *menu* then *copy* and then selecting the ID string. This is very tricky on a small screen, so expect to fail multiple times before you succeed in copying the text.
131
+
132
+Open Syncthing and select the devices tab. Press on *+* and then paste the device ID with a long press followed by *Paste*. You may need to remove any stray characters which were copied during the previous haphazard selection process. Add a name, which can be anything.
133
+
134
+Now select the menu (top left or menu button) and then press on *Device ID*. It will be copied to the clipboard. Go back to Connectbot and from the control panel select *File Synchronization* followed by *Add an ID*. You can then paste in the ID with a long press, and optionally add a description for the device. When that's done you can disconnect from Connectbot.
131 135
 
132
-Select *Devices* then *Add*.
136
+Now wait for a few minutes or more. Eventually you should receive some notifications (swipe down from the top to see them) which will allow you to confirm the connection. You will be asked to select a location where files will be  stored.
133 137
 * Play Music
134 138
 ** With the DLNA service
135 139
 An easy way to play music on any mobile device in your home is to use the DLNA service. Copy your music into a directory called "/Music/" on a USB thumb drive and then insert it into from socket on the Beaglebone.

+ 157
- 67
website/EN/usage.html Vedi File

@@ -3,7 +3,7 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2016-04-10 Sun 11:07 -->
6
+<!-- 2016-04-10 Sun 18:37 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 9
 <title></title>
@@ -339,13 +339,103 @@ Subsequently even if dynamic DNS isn't working you may still be able to administ
339 339
 Freedombone provides Syncthing shared directories for each user on the system, plus a single shared directory for all users. The expected most common scenario here is that of a family in which members may not want to share <i>all of their files</i> with each other, but might want to share some in a common pool (eg. birthday photos). You can also easily share between different servers.
340 340
 </p>
341 341
 </div>
342
+
343
+<div id="outline-container-orgheadline11" class="outline-3">
344
+<h3 id="orgheadline11">On a laptop</h3>
345
+<div class="outline-text-3" id="text-orgheadline11">
346
+<p>
347
+Install syncthing:
348
+</p>
349
+
350
+<div class="org-src-container">
351
+
352
+<pre class="src src-bash">curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
353
+<span class="org-builtin">echo</span> <span class="org-string">"deb http://apt.syncthing.net/ syncthing release"</span> | sudo tee /etc/apt/sources.list.d/syncthing.list
354
+sudo apt-get update
355
+sudo apt-get install syncthing
356
+</pre>
357
+</div>
358
+
359
+<p>
360
+Add syncthing to your startup applications, so that it begins running when your system starts. Then either restart your system or run the command "syncthing" from a terminal.
361
+</p>
362
+
363
+<p>
364
+In another terminal log into Freedombone:
365
+</p>
366
+
367
+<div class="org-src-container">
368
+
369
+<pre class="src src-bash">ssh username@domainname -p 2222
370
+</pre>
371
+</div>
372
+
373
+<p>
374
+Then select <b>File Synchronization</b>.
375
+</p>
376
+
377
+
378
+<div class="figure">
379
+<p><img src="images/controlpanel/control_panel_file_sync.jpg" alt="control_panel_file_sync.jpg" />
380
+</p>
381
+</div>
382
+
383
+<p>
384
+Select <b>Show device ID</b> and copy the long string of letters and numbers shown, using the shift key then select the text followed by right click then select copy.
385
+</p>
386
+
387
+<p>
388
+Open a non-Tor browser and enter  <b><a href="http://127.0.0.1:8384/">http://127.0.0.1:8384/</a></b> as the URL. You should now see the minimalistic user interface. Under <b>Remote Devices</b> select <b>Add Remote Device</b>. In the <b>Device ID</b> field paste the string you just copied (CTRL+v). The Device name can be anything. Under <b>Share Folders with Device</b> check <b>default</b> (or whatever folder you created on your local machine), then save.
389
+</p>
390
+
391
+<p>
392
+From the top menu select <b>Actions</b> and then <b>Show ID</b>, then copy the ID string (usually select then CTRL+c). Go back to the terminal control panel menu and select <b>Add an ID</b> then paste what you just copied (CTRL+v). Optionally you can also provide a description so that you later can know what that string corresponds to.
393
+</p>
394
+
395
+<p>
396
+Now wait for a few minutes. Eventually you will see a message appear within the browser asking if you want to add a new device (the Freedombone system). Say yes to that, and specify <b>~/Sync</b> as the directory to synchronize to. You can now copy files into your <b>~/Sync</b> directory and they will automatically be synced to the server.
397
+</p>
398
+</div>
399
+</div>
400
+<div id="outline-container-orgheadline12" class="outline-3">
401
+<h3 id="orgheadline12">On Android</h3>
402
+<div class="outline-text-3" id="text-orgheadline12">
403
+<p>
404
+Install Syncthing and Connectbot from F-droid.
405
+</p>
406
+
407
+<p>
408
+Set up Connectbot to log into Freedombone.
409
+</p>
410
+
411
+<p>
412
+Select <b>File Synchronization</b>.
413
+</p>
414
+
415
+<p>
416
+Select <b>Show device ID</b> and copy the long string of letters by pressing anywhere on the screen, selecting the <b>menu</b> then <b>copy</b> and then selecting the ID string. This is very tricky on a small screen, so expect to fail multiple times before you succeed in copying the text.
417
+</p>
418
+
419
+<p>
420
+Open Syncthing and select the devices tab. Press on <b>+</b> and then paste the device ID with a long press followed by <b>Paste</b>. You may need to remove any stray characters which were copied during the previous haphazard selection process. Add a name, which can be anything.
421
+</p>
422
+
423
+<p>
424
+Now select the menu (top left or menu button) and then press on <b>Device ID</b>. It will be copied to the clipboard. Go back to Connectbot and from the control panel select <b>File Synchronization</b> followed by <b>Add an ID</b>. You can then paste in the ID with a long press, and optionally add a description for the device. When that's done you can disconnect from Connectbot.
425
+</p>
426
+
427
+<p>
428
+Now wait for a few minutes or more. Eventually you should receive some notifications (swipe down from the top to see them) which will allow you to confirm the connection. You will be asked to select a location where files will be  stored.
429
+</p>
430
+</div>
431
+</div>
342 432
 </div>
343 433
 <div id="outline-container-orgheadline5" class="outline-2">
344 434
 <h2 id="orgheadline5">Play Music</h2>
345 435
 <div class="outline-text-2" id="text-orgheadline5">
346
-</div><div id="outline-container-orgheadline11" class="outline-3">
347
-<h3 id="orgheadline11">With the DLNA service</h3>
348
-<div class="outline-text-3" id="text-orgheadline11">
436
+</div><div id="outline-container-orgheadline13" class="outline-3">
437
+<h3 id="orgheadline13">With the DLNA service</h3>
438
+<div class="outline-text-3" id="text-orgheadline13">
349 439
 <p>
350 440
 An easy way to play music on any mobile device in your home is to use the DLNA service. Copy your music into a directory called "<i>Music</i>" on a USB thumb drive and then insert it into from socket on the Beaglebone.
351 441
 </p>
@@ -420,17 +510,17 @@ GNU Social has a clutter-free mobile user interface which can be accessed via a
420 510
 <div id="outline-container-orgheadline7" class="outline-2">
421 511
 <h2 id="orgheadline7">Social Network</h2>
422 512
 <div class="outline-text-2" id="text-orgheadline7">
423
-</div><div id="outline-container-orgheadline12" class="outline-3">
424
-<h3 id="orgheadline12">Domains</h3>
425
-<div class="outline-text-3" id="text-orgheadline12">
513
+</div><div id="outline-container-orgheadline14" class="outline-3">
514
+<h3 id="orgheadline14">Domains</h3>
515
+<div class="outline-text-3" id="text-orgheadline14">
426 516
 <p>
427 517
 Both Hubzilla and GNU Social try to obtain certificates automatically at the time of installation via Let's Encrypt. This will likely mean that in order for this to work you'll need to have obtained at least one "official" domain via a domain selling service, since Let's Encrypt mostly doesn't seem to work with free subdomains from sites such as freeDNS.
428 518
 </p>
429 519
 </div>
430 520
 </div>
431
-<div id="outline-container-orgheadline13" class="outline-3">
432
-<h3 id="orgheadline13">Initial install</h3>
433
-<div class="outline-text-3" id="text-orgheadline13">
521
+<div id="outline-container-orgheadline15" class="outline-3">
522
+<h3 id="orgheadline15">Initial install</h3>
523
+<div class="outline-text-3" id="text-orgheadline15">
434 524
 <p>
435 525
 On first visiting your Hubzilla site you'll see the login screen. The first thing you need to do is <b>register</b> a new user. The first user on the system then becomes its administrator.
436 526
 </p>
@@ -447,16 +537,16 @@ On first visiting your Hubzilla site you'll see the login screen. The first thin
447 537
 <div id="outline-container-orgheadline8" class="outline-2">
448 538
 <h2 id="orgheadline8">Chat Services</h2>
449 539
 <div class="outline-text-2" id="text-orgheadline8">
450
-</div><div id="outline-container-orgheadline14" class="outline-3">
451
-<h3 id="orgheadline14">IRC</h3>
452
-<div class="outline-text-3" id="text-orgheadline14">
540
+</div><div id="outline-container-orgheadline16" class="outline-3">
541
+<h3 id="orgheadline16">IRC</h3>
542
+<div class="outline-text-3" id="text-orgheadline16">
453 543
 <p>
454 544
 IRC is useful for multi-user chat. The classic use case is for software development where many engineers might need to coordinate their activities, but it's also useful for meetings, parties and general socialising.
455 545
 </p>
456 546
 </div>
457
-<div id="outline-container-orgheadline15" class="outline-4">
458
-<h4 id="orgheadline15">Irssi</h4>
459
-<div class="outline-text-4" id="text-orgheadline15">
547
+<div id="outline-container-orgheadline17" class="outline-4">
548
+<h4 id="orgheadline17">Irssi</h4>
549
+<div class="outline-text-4" id="text-orgheadline17">
460 550
 <p>
461 551
 The easiest way to use irssi is to connect to your system, like this:
462 552
 </p>
@@ -472,9 +562,9 @@ Then select <b>IRC</b> from the menu. Irssi is automatically set up to connect t
472 562
 </p>
473 563
 </div>
474 564
 </div>
475
-<div id="outline-container-orgheadline16" class="outline-4">
476
-<h4 id="orgheadline16">XChat</h4>
477
-<div class="outline-text-4" id="text-orgheadline16">
565
+<div id="outline-container-orgheadline18" class="outline-4">
566
+<h4 id="orgheadline18">XChat</h4>
567
+<div class="outline-text-4" id="text-orgheadline18">
478 568
 <p>
479 569
 If you are using the XChat client:
480 570
 </p>
@@ -513,9 +603,9 @@ Click <b>close</b> and then <b>connect</b>.
513 603
 </div>
514 604
 </div>
515 605
 
516
-<div id="outline-container-orgheadline17" class="outline-4">
517
-<h4 id="orgheadline17">Changing or removing the IRC password</h4>
518
-<div class="outline-text-4" id="text-orgheadline17">
606
+<div id="outline-container-orgheadline19" class="outline-4">
607
+<h4 id="orgheadline19">Changing or removing the IRC password</h4>
608
+<div class="outline-text-4" id="text-orgheadline19">
519 609
 <p>
520 610
 By default the IRC server is set up to require a password for users to log in. The password is the same for all users. If you want to change or remove the password:
521 611
 </p>
@@ -533,12 +623,12 @@ Select <i>Administrator controls</i> then <b>IRC Menu</b> and then change the pa
533 623
 </div>
534 624
 </div>
535 625
 
536
-<div id="outline-container-orgheadline23" class="outline-3">
537
-<h3 id="orgheadline23">XMPP/Jabber</h3>
538
-<div class="outline-text-3" id="text-orgheadline23">
539
-</div><div id="outline-container-orgheadline18" class="outline-4">
540
-<h4 id="orgheadline18">Using with Profanity</h4>
541
-<div class="outline-text-4" id="text-orgheadline18">
626
+<div id="outline-container-orgheadline25" class="outline-3">
627
+<h3 id="orgheadline25">XMPP/Jabber</h3>
628
+<div class="outline-text-3" id="text-orgheadline25">
629
+</div><div id="outline-container-orgheadline20" class="outline-4">
630
+<h4 id="orgheadline20">Using with Profanity</h4>
631
+<div class="outline-text-4" id="text-orgheadline20">
542 632
 <p>
543 633
 The <a href="http://profanity.im/">Profanity</a> shell based user interface and is perhaps the simplest way to use XMPP from a laptop. It's also a good way to ensure that your OTR keys are the same even when logging in from different laptops or devices, and it also means that if those devices later become compomised then there are no locally stored OTR keys to be found.
544 634
 </p>
@@ -628,9 +718,9 @@ When accessed via the user control panel the client is automatically routed thro
628 718
 </p>
629 719
 </div>
630 720
 </div>
631
-<div id="outline-container-orgheadline19" class="outline-4">
632
-<h4 id="orgheadline19">Using with Jitsi</h4>
633
-<div class="outline-text-4" id="text-orgheadline19">
721
+<div id="outline-container-orgheadline21" class="outline-4">
722
+<h4 id="orgheadline21">Using with Jitsi</h4>
723
+<div class="outline-text-4" id="text-orgheadline21">
634 724
 <p>
635 725
 Jitsi is the recommended communications client for desktop or laptop systems, since it includes the <i>off the record</i> (OTR) feature which provides some additional security beyond the usual SSL certificates.
636 726
 </p>
@@ -660,9 +750,9 @@ You can also <a href="https://www.youtube.com/watch?v=vgx7VSrDGjk">see this vide
660 750
 </p>
661 751
 </div>
662 752
 </div>
663
-<div id="outline-container-orgheadline20" class="outline-4">
664
-<h4 id="orgheadline20">Using with Ubuntu</h4>
665
-<div class="outline-text-4" id="text-orgheadline20">
753
+<div id="outline-container-orgheadline22" class="outline-4">
754
+<h4 id="orgheadline22">Using with Ubuntu</h4>
755
+<div class="outline-text-4" id="text-orgheadline22">
666 756
 <p>
667 757
 The default XMPP client in Ubuntu is Empathy.  Using Empathy isn't as secure as using Jitsi, since it doesn't include the <i>off the record</i> feature, but since it's the default it's what many users will have easy access to.
668 758
 </p>
@@ -680,17 +770,17 @@ Click on <b>Advanced</b> and make sure that <b>Encryption required</b> and <b>Ig
680 770
 </p>
681 771
 </div>
682 772
 </div>
683
-<div id="outline-container-orgheadline21" class="outline-4">
684
-<h4 id="orgheadline21">Using Tor Messenger</h4>
685
-<div class="outline-text-4" id="text-orgheadline21">
773
+<div id="outline-container-orgheadline23" class="outline-4">
774
+<h4 id="orgheadline23">Using Tor Messenger</h4>
775
+<div class="outline-text-4" id="text-orgheadline23">
686 776
 <p>
687 777
 Tor Messenger is a messaging client which supports XMPP, and its onion routing enables you to protect the metadata of chat interactions to some extent by making it difficult for an adversary to know which server is talking to which. You can download Tor Messenger from <a href="https://torproject.org/">torproject.org</a> and the setup is pretty simple.
688 778
 </p>
689 779
 </div>
690 780
 </div>
691
-<div id="outline-container-orgheadline22" class="outline-4">
692
-<h4 id="orgheadline22">Using with Android</h4>
693
-<div class="outline-text-4" id="text-orgheadline22">
781
+<div id="outline-container-orgheadline24" class="outline-4">
782
+<h4 id="orgheadline24">Using with Android</h4>
783
+<div class="outline-text-4" id="text-orgheadline24">
694 784
 <p>
695 785
 Install <a href="https://f-droid.org/">F-Droid</a>
696 786
 </p>
@@ -726,16 +816,16 @@ Then select <b>Next</b>. When chatting you can use the lock icon to encrypt your
726 816
 </div>
727 817
 </div>
728 818
 </div>
729
-<div id="outline-container-orgheadline24" class="outline-3">
730
-<h3 id="orgheadline24">Tox</h3>
731
-<div class="outline-text-3" id="text-orgheadline24">
819
+<div id="outline-container-orgheadline26" class="outline-3">
820
+<h3 id="orgheadline26">Tox</h3>
821
+<div class="outline-text-3" id="text-orgheadline26">
732 822
 <p>
733 823
 Tox is an encrypted peer-to-peer messaging system and so should work without Freedombone. It uses a system of nodes which act as a sort of directory service allowing users to find and connect to each other. The Tox node ID on the Freedombone can be found within the README within your home directory. If you have other users connect to your node then you will be able to continue chatting even when no other nodes are available.
734 824
 </p>
735 825
 </div>
736
-<div id="outline-container-orgheadline25" class="outline-4">
737
-<h4 id="orgheadline25">Using the Toxic client</h4>
738
-<div class="outline-text-4" id="text-orgheadline25">
826
+<div id="outline-container-orgheadline27" class="outline-4">
827
+<h4 id="orgheadline27">Using the Toxic client</h4>
828
+<div class="outline-text-4" id="text-orgheadline27">
739 829
 <p>
740 830
 Log into your system with:
741 831
 </p>
@@ -759,12 +849,12 @@ Then from the menu select <b>Tox Chat</b>. Tox is encrypted by default and also
759 849
 </div>
760 850
 </div>
761 851
 
762
-<div id="outline-container-orgheadline28" class="outline-3">
763
-<h3 id="orgheadline28">VoIP (Voice chat)</h3>
764
-<div class="outline-text-3" id="text-orgheadline28">
765
-</div><div id="outline-container-orgheadline26" class="outline-4">
766
-<h4 id="orgheadline26">Using with Ubuntu</h4>
767
-<div class="outline-text-4" id="text-orgheadline26">
852
+<div id="outline-container-orgheadline30" class="outline-3">
853
+<h3 id="orgheadline30">VoIP (Voice chat)</h3>
854
+<div class="outline-text-3" id="text-orgheadline30">
855
+</div><div id="outline-container-orgheadline28" class="outline-4">
856
+<h4 id="orgheadline28">Using with Ubuntu</h4>
857
+<div class="outline-text-4" id="text-orgheadline28">
768 858
 <p>
769 859
 Within the software center search for "mumble" and install the client then run it. Skip through the audio setup wizard.
770 860
 </p>
@@ -778,9 +868,9 @@ Click on "add new" to add a new server and enter the default domain name for the
778 868
 </p>
779 869
 </div>
780 870
 </div>
781
-<div id="outline-container-orgheadline27" class="outline-4">
782
-<h4 id="orgheadline27">Using with Android</h4>
783
-<div class="outline-text-4" id="text-orgheadline27">
871
+<div id="outline-container-orgheadline29" class="outline-4">
872
+<h4 id="orgheadline29">Using with Android</h4>
873
+<div class="outline-text-4" id="text-orgheadline29">
784 874
 <p>
785 875
 Install <a href="https://f-droid.org/">F-Droid</a>
786 876
 </p>
@@ -807,24 +897,24 @@ Selecting the server by pressing on it then connects you to the server so that y
807 897
 </div>
808 898
 </div>
809 899
 </div>
810
-<div id="outline-container-orgheadline29" class="outline-3">
811
-<h3 id="orgheadline29">SIP phones</h3>
812
-<div class="outline-text-3" id="text-orgheadline29">
900
+<div id="outline-container-orgheadline31" class="outline-3">
901
+<h3 id="orgheadline31">SIP phones</h3>
902
+<div class="outline-text-3" id="text-orgheadline31">
813 903
 <p>
814 904
 Freedombone also supports SIP phones The username and domain is the same as for your email address, and the SIP password and extension number will appear within the README file in your home directory. Various SIP client options are available, such as CSipSimple on Android and Jitsi on desktop or laptop machines. Ideally use clients which support ZRTP, which will provide the best level of security.
815 905
 </p>
816 906
 </div>
817
-<div id="outline-container-orgheadline30" class="outline-4">
818
-<h4 id="orgheadline30">About ZRTP</h4>
819
-<div class="outline-text-4" id="text-orgheadline30">
907
+<div id="outline-container-orgheadline32" class="outline-4">
908
+<h4 id="orgheadline32">About ZRTP</h4>
909
+<div class="outline-text-4" id="text-orgheadline32">
820 910
 <p>
821 911
 <a href="https://jitsi.org/Documentation/ZrtpFAQ">ZRTP</a> appears to be the current best standard to end-to-end encrypted voice calls, combining good security with simplicity of use. When the initial cryptographic negotiation between phones is done at the start of a call a short authentication string (SAS) is calculated and displayed at both ends. To check that there isn't anyone intercepting the call and acting as a <i>man in the middle</i> - as <a href="https://en.wikipedia.org/wiki/Stingray_phone_tracker">stingray type devices</a> try to do - the short authentication string can be read out and verbally confirmed between the callers. If it's the same then you can be pretty confident that the call is secure.
822 912
 </p>
823 913
 </div>
824 914
 </div>
825
-<div id="outline-container-orgheadline31" class="outline-4">
826
-<h4 id="orgheadline31">Using with CSIPSimple</h4>
827
-<div class="outline-text-4" id="text-orgheadline31">
915
+<div id="outline-container-orgheadline33" class="outline-4">
916
+<h4 id="orgheadline33">Using with CSIPSimple</h4>
917
+<div class="outline-text-4" id="text-orgheadline33">
828 918
 <p>
829 919
 Add an account. Under <b>General Wizards</b> choose <b>Expert</b> and enter the following details:
830 920
 </p>
@@ -880,9 +970,9 @@ If everything is working the account should appear in green with a status of <b>
880 970
 </p>
881 971
 </div>
882 972
 </div>
883
-<div id="outline-container-orgheadline32" class="outline-4">
884
-<h4 id="orgheadline32">Using with Ring</h4>
885
-<div class="outline-text-4" id="text-orgheadline32">
973
+<div id="outline-container-orgheadline34" class="outline-4">
974
+<h4 id="orgheadline34">Using with Ring</h4>
975
+<div class="outline-text-4" id="text-orgheadline34">
886 976
 <p>
887 977
 From the menu select <b>Manage accounts</b>.
888 978
 </p>