Signed-off-by: Daira Hopwood <daira@jacaranda.org>
-----
Install ``git`` from your distribution's package manager.
-----
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
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
* 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,
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,
bin\tahoe --version-and-path
It is normal for this command to print warnings and
debugging output on some systems. Do not 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
mkdir ../grid
bin/tahoe create-introducer ../grid/introducer
mkdir ../grid
bin/tahoe create-introducer ../grid/introducer
mkdir ..\grid
bin\tahoe create-introducer ..\grid\introducer
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
Leave the introducer running in that Command Prompt,
and in a separate Command Prompt (with the same current
set /p FURL=<..\grid\introducer\private\introducer.furl
bin\tahoe create-node --introducer=%FURL% ..\grid\server
set /p FURL=<..\grid\introducer\private\introducer.furl
bin\tahoe create-node --introducer=%FURL% ..\grid\server
Both Linux and Windows
----------------------
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::
shares.happy = 1
shares.total = 1
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::
3457 for alice, and 3458 for bob.
Now start all of the nodes (the introducer should still be
3457 for alice, and 3458 for bob.
Now start all of the nodes (the introducer should still be
bin/tahoe start ../grid/server
bin/tahoe start ../grid/alice
bin/tahoe start ../grid/server
bin/tahoe start ../grid/alice
mkdir -p ../local/alice ../local/bob
bin/tahoe -d ../grid/alice magic-folder create magic: alice ../local/alice
mkdir -p ../local/alice ../local/bob
bin/tahoe -d ../grid/alice magic-folder create magic: alice ../local/alice
mkdir ..\local\alice ..\local\bob
bin\tahoe -d ..\grid\alice magic-folder create magic: alice ..\local\alice
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
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
bin/tahoe start ..\grid\alice
bin/tahoe start ..\grid\bob
=======
You can now experiment with creating files and directories in
=======
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
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.
Deleting a directory will have no effect.
Subdirectories do not currently work on Windows.