2007-06-11 16:40:54 +00:00
|
|
|
Welcome to the Allmydata-Tahoe project. This project implements a secure,
|
2007-06-29 22:33:38 +00:00
|
|
|
distributed, fault-tolerant storage grid. All of the source code is available
|
|
|
|
under a Free Software licence.
|
2007-03-28 17:48:29 +00:00
|
|
|
|
2007-04-30 20:06:09 +00:00
|
|
|
The basic idea is that the data in this storage grid is spread over all
|
2007-04-05 00:55:35 +00:00
|
|
|
participating nodes, using an algorithm that can recover the data even if a
|
|
|
|
majority of the nodes are no longer available.
|
|
|
|
|
2007-04-30 20:06:09 +00:00
|
|
|
The interface to the storage grid allows you to store and fetch files, either
|
2007-04-28 00:13:25 +00:00
|
|
|
by self-authenticating cryptographic identifier or by filename and path.
|
2007-03-28 17:48:29 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
See the web site for all kinds of information, news, and community
|
2007-06-11 16:40:54 +00:00
|
|
|
contributions, and prebuilt packages for Debian-like systems:
|
2007-05-02 19:54:26 +00:00
|
|
|
|
|
|
|
http://allmydata.org
|
|
|
|
|
2007-04-27 05:16:13 +00:00
|
|
|
|
2007-05-02 05:34:33 +00:00
|
|
|
LICENCE:
|
|
|
|
|
2007-09-12 18:31:57 +00:00
|
|
|
This program is free software; you can redistribute it and/or modify it
|
|
|
|
under the terms of the GNU General Public License as published by the Free
|
|
|
|
Software Foundation; either version 2 of the License, or (at your option)
|
|
|
|
any later version, with the added permission that, if you become obligated
|
|
|
|
to release a derived work under this licence (as per section 2.b), you may
|
|
|
|
delay the fulfillment of this obligation for up to 12 months. If you are
|
|
|
|
obligated to release code under section 2.b of this licence, you are
|
|
|
|
obligated to release it under these same terms, including the 12-month grace
|
|
|
|
period clause. See the COPYING file for details.
|
2007-05-02 05:34:33 +00:00
|
|
|
|
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
GETTING PRECOMPILED BINARIES FOR DEBIAN-LIKE SYSTEMS:
|
2007-08-09 03:44:03 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
Pre-compiled binaries are available for Debian or Ubuntu. Please see the
|
|
|
|
following web page for instructions:
|
2007-08-09 03:44:03 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
http://allmydata.org/trac/tahoe/wiki/DownloadDebianPackages
|
2007-04-30 05:16:33 +00:00
|
|
|
|
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
DEPENDENCIES:
|
2007-04-27 20:47:15 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
If you aren't getting a pre-compiled binary, then you'll have to ensure that
|
|
|
|
the following packages are installed before you install Tahoe.
|
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
Note: All of the following dependencies can probably be installed through
|
|
|
|
your standard package management tool if you are running on a modern Unix
|
2007-09-21 02:32:54 +00:00
|
|
|
operating system. For example, on an debian-like system, you can do "sudo
|
|
|
|
apt-get install gcc make python-dev python-twisted python-pyopenssl".
|
2007-04-27 20:47:15 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
+ a C compiler (language)
|
2007-03-28 17:48:29 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
+ GNU make (build tool)
|
2007-04-27 05:16:13 +00:00
|
|
|
|
2007-09-14 02:17:30 +00:00
|
|
|
+ Python 2.4 or newer (tested against 2.4, and 2.5.1 ), including
|
|
|
|
development headers (language)
|
2007-04-27 05:16:13 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
http://python.org/
|
2007-04-27 04:00:49 +00:00
|
|
|
|
2007-09-15 22:05:35 +00:00
|
|
|
+ Twisted Python (tested against 2.2.0, 2.4.0, and 2.5.0) (network and
|
|
|
|
operating system integration library)
|
2007-04-30 04:56:23 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
http://twistedmatrix.com/
|
2007-04-26 21:28:15 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
You need the following subpackages, which are included in the default
|
|
|
|
Twisted distribution:
|
2007-04-26 21:28:15 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
* core (the standard Twisted package)
|
|
|
|
* web, trial, conch
|
2007-04-30 04:56:23 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
Twisted requires zope.interface, a copy of which is included in the
|
2007-09-15 22:05:35 +00:00
|
|
|
Twisted distribution. Note that Twisted does *not* require the entire Zope
|
|
|
|
distribution, merely the much smaller zope.interface component.
|
2007-09-23 12:47:11 +00:00
|
|
|
zope.interface is easy_install-able, so if you have Python and
|
|
|
|
easy_install installed then you can install zope.interface by running
|
|
|
|
"easy_install zope.interface".
|
2007-04-26 21:28:15 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
+ Python PyOpenSSL (0.6 or later) (secure transport layer)
|
2007-04-26 21:28:15 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
http://pyopenssl.sourceforge.net
|
2007-04-26 21:28:15 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
To install PyOpenSSL on Windows-native, download this:
|
|
|
|
http://allmydata.org/source/pyOpenSSL-0.6.win32-py2.5.exe
|
|
|
|
|
2007-09-21 20:40:28 +00:00
|
|
|
or for Python 2.4, this:
|
|
|
|
|
|
|
|
http://allmydata.org/source/pyOpenSSL-0.6.win32-py2.4.exe
|
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
To install PyOpenSSL on Windows-cygwin, install the OpenSSL development
|
|
|
|
libraries with the cygwin package management tool, then get the pyOpenSSL
|
|
|
|
source code, cd into it, and run "python ./setup.py install".
|
|
|
|
|
2007-09-21 20:40:28 +00:00
|
|
|
+ the pywin32 package: required only on Windows
|
|
|
|
|
|
|
|
http://sourceforge.net/projects/pywin32/
|
|
|
|
|
|
|
|
(Tested with build 210, and known to not work with build 204.
|
|
|
|
Feedback with details of other builds is greatly appreciated.)
|
|
|
|
|
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
In addition, the following Python packages are required, but they will
|
|
|
|
normally be automatically installed as a side effect of installing Tahoe.
|
2007-09-15 22:05:35 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
+ Python setuptools (build and distribution tool)
|
2007-04-30 04:56:23 +00:00
|
|
|
|
2007-08-07 21:15:54 +00:00
|
|
|
Note: The build process will automatically download and install setuptools
|
|
|
|
if it is not present. However, if an old, incompatible version of
|
|
|
|
setuptools is present (< v0.6c6 on Cygwin, or < v0.6a9 on other
|
|
|
|
platforms), then the build will fail.
|
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
So if the build fails due to your current version of setuptools being
|
|
|
|
incompatible, you can either upgrade or uninstall your version of
|
|
|
|
setuptools and try again.
|
2007-04-26 21:28:15 +00:00
|
|
|
|
2007-05-02 19:54:26 +00:00
|
|
|
http://peak.telecommunity.com/DevCenter/EasyInstall#installation-instructions
|
2007-04-30 04:56:23 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
+ zfec (erasure coding library)
|
2007-04-27 04:00:49 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
http://cheeseshop.python.org/pypi/zfec
|
2007-05-01 19:41:35 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
zfec is packaged in a setuptools-compatible way and included in the Python
|
|
|
|
Package Index (PyPI), so it will be automatically installed when you
|
2007-09-23 12:47:11 +00:00
|
|
|
install Tahoe (see INSTALLING). It can be manually installed by running
|
|
|
|
"easy_install zfec".
|
2007-04-26 21:28:15 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
+ Python foolscap (secure remote object library)
|
|
|
|
|
|
|
|
http://cheeseshop.python.org/pypi/foolscap
|
|
|
|
|
|
|
|
foolscape is packaged in a setuptools-compatible way and included in the
|
|
|
|
Python Package Index (PyPI), so it will be automatically installed when
|
2007-09-23 12:47:11 +00:00
|
|
|
you install Tahoe (see INSTALLING). It can be manually installed by
|
|
|
|
running "easy_install foolscap".
|
2007-09-21 02:32:54 +00:00
|
|
|
|
|
|
|
+ Python simplejson (JSON parser)
|
2007-05-16 15:34:33 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
http://cheeseshop.python.org/pypi/simplejson
|
|
|
|
|
|
|
|
simplejson is packaged in a setuptools-compatible way and included in the
|
|
|
|
Python Package Index (PyPI), so it will be automatically installed when
|
2007-09-23 12:47:11 +00:00
|
|
|
you install Tahoe (see INSTALLING). It can be manually installed by
|
|
|
|
running "easy_install simplejson".
|
2007-09-21 02:32:54 +00:00
|
|
|
|
|
|
|
+ Python Nevow (0.6.0 or later) (web presentation language)
|
|
|
|
|
|
|
|
http://divmod.org/trac/wiki/DivmodNevow
|
|
|
|
|
|
|
|
Note that the current version of Nevow (0.9.18) requires Twisted 2.4.0 or
|
|
|
|
later.
|
|
|
|
|
|
|
|
Nevow is packaged in a setuptools-compatible way and included in the
|
|
|
|
Python Package Index (PyPI), so it will be automatically installed when
|
2007-09-23 12:47:11 +00:00
|
|
|
you install Tahoe (see INSTALLING). It can be manually installed by
|
|
|
|
running "easy_install nevow".
|
2007-09-21 02:32:54 +00:00
|
|
|
|
2007-06-13 20:09:36 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
GETTING THE SOURCE CODE:
|
2007-04-27 05:16:13 +00:00
|
|
|
|
2007-09-21 18:53:56 +00:00
|
|
|
You need the source code if you are going to install The Debian Way, The
|
|
|
|
Setuptools Way, or The Running-In-Place Way (see below). You do not need the
|
|
|
|
source code if you are getting precompiled binaries for Debian or Ubuntu (see
|
|
|
|
above), or if you are going to install The easy_install Way (see below).
|
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
The code is available via darcs by running the following command:
|
2007-03-28 17:48:29 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
darcs get http://allmydata.org/source/tahoe/trunk tahoe
|
2007-04-09 23:14:44 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
This will create a directory named "tahoe" in the current working directory
|
|
|
|
and put a copy of the latest source code into it. Later, if you want to get
|
|
|
|
any new changes, then cd into that directory and run the command "darcs
|
|
|
|
pull".
|
2007-03-28 17:48:29 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
Tarballs of sources are available at:
|
|
|
|
|
|
|
|
http://allmydata.org/source/tahoe/
|
2007-03-28 17:48:29 +00:00
|
|
|
|
2007-04-27 05:16:13 +00:00
|
|
|
|
2007-04-05 00:55:35 +00:00
|
|
|
INSTALLING:
|
|
|
|
|
2007-09-21 20:42:57 +00:00
|
|
|
There are four ways to do it: The Setuptools Way, The easy_install
|
|
|
|
Way, The Running-In-Place Way, and The Debian Way. Choose one:
|
2007-04-30 05:16:33 +00:00
|
|
|
|
2007-09-12 23:02:53 +00:00
|
|
|
The Setuptools Way:
|
2007-08-09 03:32:45 +00:00
|
|
|
|
2007-09-21 19:04:01 +00:00
|
|
|
Get the source code (see above).
|
|
|
|
|
|
|
|
Run 'python setup.py install'. This will compile and install the Tahoe code
|
|
|
|
to the standard location for your operating system (on unix, that is
|
|
|
|
somewhere inside /usr/lib/). It will also acquire and install the
|
2007-09-21 02:32:54 +00:00
|
|
|
easy_install-able dependencies (zfec, foolscap, simplejson, nevow, and if
|
|
|
|
on Windows pywin32) to the same place.
|
2007-08-07 19:13:24 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
To install it to a non-standard location, learn about setuptools's
|
2007-09-12 23:02:53 +00:00
|
|
|
"--single-version-externally-managed" flag, and visit
|
2007-09-21 16:43:45 +00:00
|
|
|
http://allmydata.org/trac/tahoe/wiki/SetuptoolsAndGNUStow .
|
2007-05-02 19:54:26 +00:00
|
|
|
|
2007-09-12 23:02:53 +00:00
|
|
|
The easy_install Way:
|
2007-04-05 00:55:35 +00:00
|
|
|
|
2007-09-21 19:04:01 +00:00
|
|
|
You don't need to download the source code first.
|
|
|
|
|
2007-09-12 23:02:53 +00:00
|
|
|
Tahoe is registered with the Python Package Index (PyPI), so the
|
|
|
|
'easy_install' tool can download and install it for you. Just type
|
|
|
|
'easy_install allmydata-tahoe' from any shell. That will download the most
|
|
|
|
recent Tahoe source tarball, unpack it in a temporary directory, install it
|
|
|
|
to the standard location, then download and install any easy_install-able
|
2007-09-21 02:32:54 +00:00
|
|
|
dependencies that you need (zfec, foolscap, simplejson, nevow, and if on
|
|
|
|
Windows pywin32). (This will work only if you already have the other --
|
|
|
|
non-easy_install-able -- dependencies.)
|
2007-04-05 00:55:35 +00:00
|
|
|
|
2007-04-30 05:16:33 +00:00
|
|
|
The Running-In-Place Way:
|
2007-04-05 00:55:35 +00:00
|
|
|
|
2007-09-21 19:04:01 +00:00
|
|
|
Get the source code (see above).
|
|
|
|
|
2007-09-12 23:02:53 +00:00
|
|
|
You can use Tahoe without installing it. Once you've built Tahoe then you
|
2007-09-12 23:48:45 +00:00
|
|
|
can execute "./bin/allmydata-tahoe". (When the allmydata-tahoe script is in
|
|
|
|
an Tahoe source distribution, it adds the necessary directory to the Python
|
|
|
|
"sys.path".)
|
2007-04-30 04:56:23 +00:00
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
If you do not already have installed the easy_install-able dependencies
|
|
|
|
(zfec, foolscap, simplejson, nevow, and if on Windows pywin32) then you can
|
|
|
|
install them into a local subdirectory of the Tahoe source distribution by
|
|
|
|
executing "make build-deps". (The allmydata-tahoe script will discover them
|
|
|
|
and add them to the "sys.path".)
|
|
|
|
|
2007-09-21 20:42:57 +00:00
|
|
|
The Debian Way:
|
|
|
|
|
|
|
|
The Debian Way is to build .deb files which you can then install with
|
|
|
|
"dpkg".
|
|
|
|
|
|
|
|
This requires certain debian packages (build-essential, fakeroot,
|
|
|
|
devscripts, debhelper, cdbs) to be installed first, since they are used to
|
|
|
|
construct the tahoe .deb files. A full list of these required packages can
|
|
|
|
be found in the "Build-Depends" line in the misc/DIST/debian/control in the
|
|
|
|
top-level tahoe directory (replacing the word DIST with etch, dapper, edgy,
|
|
|
|
or feisty as appropriate).
|
|
|
|
|
|
|
|
Get the source code (see above).
|
|
|
|
|
|
|
|
If you're running on a debian system, run 'make deb-etch', 'make deb-sid',
|
|
|
|
'make deb-edgy', or 'make deb-feisty' from within the tahoe top-level
|
|
|
|
directory to construct a debian package named 'allmydata-tahoe' which you
|
|
|
|
can then install with dpkg.
|
|
|
|
|
2007-04-05 00:55:35 +00:00
|
|
|
|
2007-05-02 06:42:01 +00:00
|
|
|
TESTING THAT IT IS PROPERLY INSTALLED
|
|
|
|
|
2007-09-21 02:32:54 +00:00
|
|
|
'make test' runs the unit test suites. (This can take a long time on
|
|
|
|
slow computers. There are a lot of tests and some of them do a lot of
|
2007-09-21 20:57:25 +00:00
|
|
|
public-key cryptography.) If all tests pass, then you have all the
|
|
|
|
dependencies installed, either because they are installed into your system
|
|
|
|
or because they are installed into a local subdirectory because you ran
|
|
|
|
"make build-deps" (see "The Running-In-Place Way", above).
|
|
|
|
|
|
|
|
Executing the allmydata-tahoe script from the "bin" subdirectory will work
|
|
|
|
only if Tahoe itself is installed, either because it is installed into the
|
|
|
|
local subdirectory (as per "The Running-In-Place Way") or because it is
|
|
|
|
installed into your system (as per the other three ways of installing).
|
2007-04-05 00:55:35 +00:00
|
|
|
|
2007-03-28 17:48:29 +00:00
|
|
|
|
|
|
|
RUNNING:
|
|
|
|
|
2007-09-21 20:57:25 +00:00
|
|
|
Run the "allmydata-tahoe" executable.
|
|
|
|
|
|
|
|
If you installed "The Running-In-Place Way", then it is in your source tree,
|
|
|
|
in the "bin" subdirectory thereof. If you installed in one of the other
|
|
|
|
tree ways, then it has been copied into your operating system's files,
|
|
|
|
perhaps in "/usr/bin" on Unix, or in "C:\Python25\Scripts" on Window.
|
|
|
|
|
2007-08-09 03:47:42 +00:00
|
|
|
This tool is used to create, start, and stop nodes. Each node lives in a
|
|
|
|
separate base directory, inside of which you can add files to configure and
|
|
|
|
control the node. Nodes also read and write files within that directory.
|
2007-06-11 16:40:54 +00:00
|
|
|
|
|
|
|
A grid consists of a single central 'introducer and vdrive' node and one or
|
|
|
|
more 'client' nodes. If you are joining an existing grid, the
|
2007-04-30 16:57:52 +00:00
|
|
|
introducer-and-vdrive node will already be running, and you'll just need to
|
2007-05-02 04:03:23 +00:00
|
|
|
create a client node. If you're creating a brand new grid, you'll need to
|
2007-04-30 16:57:52 +00:00
|
|
|
create both an introducer-and-vdrive and a client (and then invite other
|
2007-04-30 20:06:09 +00:00
|
|
|
people to create their own client nodes and join your grid).
|
2007-04-30 16:57:52 +00:00
|
|
|
|
|
|
|
The introducer (-and-vdrive) node is constructed by running 'allmydata-tahoe
|
2007-05-02 04:03:23 +00:00
|
|
|
create-introducer --basedir $HERE'. Once constructed, you can start the
|
2007-04-20 00:30:21 +00:00
|
|
|
introducer by running 'allmydata-tahoe start --basedir $HERE' (or, if you
|
|
|
|
are already in the introducer's base directory, just type 'allmydata-tahoe
|
2007-05-02 04:03:23 +00:00
|
|
|
start'). Inside that base directory, there will be a pair of files
|
|
|
|
'introducer.furl' and 'vdrive.furl'. Make a copy of these, as they'll be
|
2007-04-20 00:30:21 +00:00
|
|
|
needed on the client nodes.
|
2007-03-28 17:48:29 +00:00
|
|
|
|
|
|
|
To construct a client node, pick a new working directory for it, then run
|
2007-05-02 04:03:23 +00:00
|
|
|
'allmydata-tahoe create-client --basedir $HERE'. Copy the two .furl files
|
2007-04-20 00:30:21 +00:00
|
|
|
from the introducer into this new directory, then run 'allmydata-tahoe start
|
2007-05-02 04:03:23 +00:00
|
|
|
--basedir $HERE'. After that, the client node should be off and running.
|
|
|
|
The first thing it will do is connect to the introducer and introduce itself
|
|
|
|
to all other nodes on the grid. You can follow its progress by looking at
|
2007-08-09 03:53:28 +00:00
|
|
|
the $HERE/logs/twistd.log file.
|
2007-03-28 17:48:29 +00:00
|
|
|
|
|
|
|
To actually use the client, enable the web interface by writing a port
|
|
|
|
number (like "8080") into a file named $HERE/webport and then restarting the
|
2007-06-06 16:49:18 +00:00
|
|
|
node with 'allmydata-tahoe restart --basedir $HERE'. This will prompt the
|
2007-03-28 17:48:29 +00:00
|
|
|
client node to run a webserver on the desired port, through which you can
|
2007-06-06 16:49:18 +00:00
|
|
|
view, upload, download, and delete files. This 'webport' file is actually a
|
|
|
|
"strports specification", defined in
|
|
|
|
http://twistedmatrix.com/documents/current/api/twisted.application.strports.html
|
|
|
|
, so you can have it only listen on a local interface by writing
|
|
|
|
"tcp:8080:interface=127.0.0.1" to this file, or make it use SSL by writing
|
|
|
|
"ssl:8443:privateKey=mykey.pem:certKey=cert.pem" instead.
|
2007-03-28 17:48:29 +00:00
|
|
|
|
2007-04-27 03:16:48 +00:00
|
|
|
A client node directory can also be created without installing the code
|
2007-05-02 04:03:23 +00:00
|
|
|
first. Just use 'make create-client', and a new directory named 'CLIENTDIR'
|
|
|
|
will be created inside the top of the source tree. Copy the relevant .furl
|
2007-04-27 03:16:48 +00:00
|
|
|
files in, set the webport, then start the node by using 'make start-client'.
|
2007-05-02 04:03:23 +00:00
|
|
|
To stop it again, use 'make stop-client'. Similar makefile targets exist
|
|
|
|
for making and running an introducer node.
|
2007-04-27 03:16:48 +00:00
|
|
|
|
2007-05-22 21:01:40 +00:00
|
|
|
If you are behind a firewall and you can configure your firewall to forward
|
|
|
|
TCP connections on a port to the computer running your Tahoe node, then you
|
|
|
|
can configure the Tahoe node to announce itself as being available on that
|
|
|
|
IP address and port. The way to do this is to create a file named
|
|
|
|
$HERE/advertised_ip_addresses, in which you can put IP addresses and port numbers in
|
|
|
|
"dotted-quad:port" form, e.g. "209.97.232.113:1345". You can put multiple
|
|
|
|
IP-address-and-port-number entries into this file, on separate lines.
|
|
|
|
|
2007-05-02 04:03:23 +00:00
|
|
|
There is a public grid available for testing. Look at the wiki page
|
2007-04-27 03:16:48 +00:00
|
|
|
(http://allmydata.org) for the necessary .furl data.
|
2007-04-28 00:13:25 +00:00
|
|
|
|