-----
Install ``git`` from your distribution's package manager.
-Then run these commands:
+Then run these commands::
git clone -b 2438.magic-folder-stable.5 https://github.com/tahoe-lafs/tahoe-lafs.git
cd tahoe-lafs
* Install git from
https://github.com/git-for-windows/git/releases/download/v2.6.2.windows.1/Git-2.6.2-32-bit.exe
-Then (for any version) run these commands in a Command Prompt:
+Then (for any version) run these commands in a Command Prompt::
git clone -b 2438.magic-folder-stable.5 https://github.com/tahoe-lafs/tahoe-lafs.git
cd tahoe-lafs
python setup.py build
Open a new Command Prompt with the same current directory,
-then run:
+then run::
bin\tahoe --version-and-path
It is normal for this command to print warnings and
debugging output on some systems. Do not run
-"python setup.py test", because it currently hangs on
+``python setup.py test``, because it currently hangs on
Windows.
Linux
-----
-Run these commands:
+Run these commands::
mkdir ../grid
bin/tahoe create-introducer ../grid/introducer
Windows
-------
-Run:
+Run::
mkdir ..\grid
bin\tahoe create-introducer ..\grid\introducer
Leave the introducer running in that Command Prompt,
and in a separate Command Prompt (with the same current
-directory), run:
+directory), run::
set /p FURL=<..\grid\introducer\private\introducer.furl
bin\tahoe create-node --introducer=%FURL% ..\grid\server
Both Linux and Windows
----------------------
-(Replace "/" with "\" for Windows paths.)
+(Replace ``/`` with ``\`` for Windows paths.)
-Edit ../grid/alice/tahoe.cfg, and make the following
-changes to the [node] and [client] sections:
+Edit ``../grid/alice/tahoe.cfg``, and make the following
+changes to the [node] and [client] sections::
[node]
nickname = alice
shares.happy = 1
shares.total = 1
-Edit ../grid/bob/tahoe.cfg, and make the following
-change to the [node] section, and the same change as
-above to the [client] section:
+Edit ``../grid/bob/tahoe.cfg``, and make the following
+change to the ``[node]`` section, and the same change as
+above to the ``[client]`` section::
[node]
nickname = bob
3457 for alice, and 3458 for bob.
Now start all of the nodes (the introducer should still be
-running from above):
+running from above)::
bin/tahoe start ../grid/server
bin/tahoe start ../grid/alice
Linux
-----
-Run:
+Run::
mkdir -p ../local/alice ../local/bob
bin/tahoe -d ../grid/alice magic-folder create magic: alice ../local/alice
Windows
-------
-Run:
+Run::
mkdir ..\local\alice ..\local\bob
bin\tahoe -d ..\grid\alice magic-folder create magic: alice ..\local\alice
bin\tahoe -d ..\grid\bob magic-folder join %INVITECODE% bob ..\local\bob
Then close the Command Prompt windows that are running the alice and bob
-nodes, and open two new ones in which to run:
+nodes, and open two new ones in which to run::
bin/tahoe start ..\grid\alice
bin/tahoe start ..\grid\bob
=======
You can now experiment with creating files and directories in
-../local/alice and /local/bob; any changes should be propagated
-to the other directory.
+``../local/alice`` and ``/local/bob``; any changes should be
+propagated to the other directory.
Note that when a file is deleted, the corresponding file in the
-other directory will be renamed to a filename ending in ".backup".
+other directory will be renamed to a filename ending in ``.backup``.
Deleting a directory will have no effect.
Subdirectories do not currently work on Windows.