From: Zooko O'Whielacronx Date: Fri, 4 Jan 2008 19:27:42 +0000 (-0700) Subject: new licences, move details from README to doc/install-details.html X-Git-Tag: allmydata-tahoe-0.7.0~34 X-Git-Url: https://git.rkrishnan.org/listings/pb2server.py?a=commitdiff_plain;h=49a9fddb1d21250e007ca0cec6432e3cd42f9332;p=tahoe-lafs%2Ftahoe-lafs.git new licences, move details from README to doc/install-details.html --- diff --git a/COPYING b/COPYING deleted file mode 100644 index f8fd5e70..00000000 --- a/COPYING +++ /dev/null @@ -1,353 +0,0 @@ -In addition to the terms of the GNU General Public License, this licence also -comes 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 ("grace period"). 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. - -This licence also comes with the added permission that you may link this -program with the OpenSSL library and distribute executables, as long as you -follow the requirements of this licence in regard to all of the software in -the executable aside from OpenSSL. - - - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - 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. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/COPYING.GPL b/COPYING.GPL new file mode 100644 index 00000000..8b7796c1 --- /dev/null +++ b/COPYING.GPL @@ -0,0 +1,345 @@ +This licence also comes with the added permission that you may link this +program with the OpenSSL library and distribute executables, as long as you +follow the requirements of this licence in regard to all of the software in +the executable aside from OpenSSL. + + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/COPYING.TGPPL b/COPYING.TGPPL new file mode 100644 index 00000000..7d99c451 --- /dev/null +++ b/COPYING.TGPPL @@ -0,0 +1,48 @@ + +Transitive Grace Period Public Licence ("TGPPL") v. 1.0 + +This Transitive Grace Period Public Licence (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work: + +Licensed under the Transitive Grace Period Public Licence version 1.0 + + 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following: + + 1. to reproduce the Original Work in copies, either alone or as part of a collective work; + + 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work; + + 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Transitive Grace Period Public Licence no later than 12 months after You distributed or communicated said copies; + + 4. to perform the Original Work publicly; and + + 5. to display the Original Work publicly. + + 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works. + + 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work. + + 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license. + + 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c). + + 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work. + + 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer. + + 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation. + + 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c). + + 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware. + + 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License. + + 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License. + + 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. + + 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + + 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You. + + 16. Modification of This License. This License is Copyright \a9 2007 Zooko Wilcox-O'Hearn. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Transitive Grace Period Public Licence" or "TGPPL" and you may not use those names in the name of your Modified License; and (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License. diff --git a/README b/README index afff1ad1..259c6a4e 100644 --- a/README +++ b/README @@ -11,339 +11,17 @@ See the web site for information, news, and discussion: http://allmydata.org -DEPENDENCIES: +INSTALLING -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. +See doc/install.html . -There are two kinds of dependencies, "manual dependencies" and -"easy_install-able dependencies". The latter kind are normally automatically -satisfied for you when you install Tahoe, but if something goes wrong, please -see the EASY_INSTALLABLE DEPENDENCIES section below. -All of the manual dependencies can probably be installed through your -standard package management tool if you are running on a modern Unix -operating system. For example, on an debian-like system, you can do "sudo -apt-get install build-essential python-dev python-twisted python-pyopenssl". +LICENCE -The Manual Dependencies: - - + a C compiler (language) - - + GNU make (build tool) - - + Python 2.4 or newer (tested against 2.4.4, and 2.5.1 -- note that 2.4.1 is - known not to work due to a bug in its base-32 encoder), including - development headers i.e. "Python.h" (language) - - http://python.org/ - - + Twisted Python (tested against 2.2.0, 2.4.0, and 2.5.0) (network and - operating system integration library) - - http://twistedmatrix.com/ - - Installing from the Twisted source tarball works on all known supported - platforms, including cygwin. - - You need the following subpackages, which are included in the default - Twisted distribution: - - * core (the standard Twisted package) - * web, trial, conch - - Twisted requires that you manually install zope.interface, a copy of which - is included in the Twisted distribution. Note that Twisted does *not* - require the entire Zope distribution, merely the much smaller - zope.interface component. - - + OpenSSL, including development headers (cryptography library) - - http://openssl.org - - + Crypto++, including development headers (cryptography library) - - http://cryptopp.com - - + Python PyOpenSSL (0.6 or later) (secure transport layer) - - http://pyopenssl.sourceforge.net - - To install PyOpenSSL on 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". - - -GETTING THE SOURCE CODE: - -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). - -The code is available via darcs by running the following command: - -darcs get http://allmydata.org/source/tahoe/trunk tahoe - -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". - -Tarballs of sources are available at: - -http://allmydata.org/source/tahoe/ - - -INSTALLING: - -There are four ways to do it: The easy_install Way, The Setuptools Way, The -Running-In-Place Way, and The Debian Way. Choose one. If you're not sure, -choose the easy_install way. - - The easy_install Way: - - You don't need to download the source code first. You do need to have the - "easy_install" tool installed first: - - http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install - - The 'easy_install' tool can download and install tahoe 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 - dependencies that you need (setuptools, zfec, foolscap, simplejson, nevow, - and pycryptopp). (This will work only if you have already installed the - dependencies listed in the MANUAL DEPENDENCIES section, above.) - - The end result will be that the Tahoe code is installed to the standard - location for libraries on your operating system (on unix, that is somewhere - inside /usr/lib/), and the "tahoe" executable will be installed to the - standard location for executables on operating system. - - The Setuptools Way: - - 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 - easy_install-able dependencies (setuptools, zfec, foolscap, simplejson, - nevow, and pycryptopp) to the same place. (This will work only if you have - already installed the dependencies listed in the MANUAL DEPENDENCIES - section, above.) - - (To install it to a non-standard location, see - http://allmydata.org/trac/tahoe/wiki/SetuptoolsAndGNUStow .) - - The end result will be that the Tahoe code is installed to the standard - location for libraries on your operating system (on unix, that is somewhere - inside /usr/lib/), and the "tahoe" executable will be installed to the - standard location for executables on operating system. - - The Running-In-Place Way: - - You can use Tahoe without installing it. The steps are these: - - 1. Get the source code (see above). - - 2. Run "make build-auto-deps" to install the easy_install-able dependencies - (setuptools, zfec, foolscap, simplejson, nevow, and pycryptopp) into a - local subdirectory of the Tahoe source distribution. (Note that when the - dependent libraries are updated, you should use "make clean" before - "make build-auto-deps" to make sure you will get the newest versions). - - 3. Build Tahoe by running "make". - - 4. Once you've built it then you can execute "./bin/tahoe". (When the tahoe - script is in a Tahoe source distribution, it adds the necessary - directory to the Python "sys.path". It also looks for any dependencies - that you installed by "make build-auto-deps" and includes them in the - sys.path.) See the RUNNING section, below. - - 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. - - -TESTING THAT IT IS PROPERLY INSTALLED - - If you have gotten the source code, then you can run 'make check-deps' - checks that all of the required Python package dependencies are installed. - You can run '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 public-key cryptography.) - - Executing the 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). - - -RUNNING: - - Run the "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 - three ways, then it has been installed into your operating system's - filesystem, perhaps in "/usr/bin" on Unix, or in "C:\Python25\Scripts" on - Window. - - The "tahoe" utility 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. - - 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 - introducer-and-vdrive node will already be running, and you'll just need to - create a client node. If you're creating a brand new grid, you'll need to - create both an introducer-and-vdrive and a client (and then invite other - people to create their own client nodes and join your grid). - - The introducer (-and-vdrive) node is constructed by running 'tahoe - create-introducer --basedir $HERE'. Once constructed, you can start the - introducer by running 'tahoe start --basedir $HERE' (or, if you are already - in the introducer's base directory, just type 'tahoe 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 needed on the client - nodes. (If you want to use a publically available test grid, get the - introducer.furl and vdrive.furl files from - http://allmydata.org/trac/tahoe/wiki/TestGrid instead of running your own - introducer.) - - To construct a client node, pick a new working directory for it, then run - 'tahoe create-client --basedir $HERE'. Copy the two .furl files from the - introducer into this new directory, then run 'tahoe start --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 the - $HERE/logs/twistd.log file. - - create-client will put port specification into a file named $HERE/webport, - unless overridden by the --webport option to create-client. The presence of - a port specification in the webport file prompts the client node to run a - webserver on the desired port, through which you can view, upload, download, - and delete files. The contents of the 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:8123:interface=127.0.0.1" to this file (that's what create-client does - by default), or make it use SSL by writing - "ssl:8123:privateKey=mykey.pem:certKey=cert.pem" instead. - - A client node directory can also be created without installing the code - 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 - files in, set the webport, then start the node by using 'make start-client'. - To stop it again, use 'make stop-client'. Similar makefile targets exist - for making and running an introducer node. - - 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. - - There is a public grid available for testing. The necessary .furl files are - in docs/testgrid/*.furl . More information is available on - http://allmydata.org/trac/tahoe/wiki/TestGrid . - - -LICENCE: - - 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. - - -EASY_INSTALLABLE DEPENDENCIES - -The following Python packages are required, but normally they are -automatically installed as a side-effect of installing Tahoe. - - + Python setuptools (build and distribution tool) - - http://peak.telecommunity.com/DevCenter/EasyInstall#installation-instructions - - The Tahoe install 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 install will fail. - - If the install fails due to your current version of setuptools being - incompatible, please either upgrade or uninstall your version of - setuptools and re-run the install. - - + zfec (1.0.3 or later) (erasure coding library) - - http://cheeseshop.python.org/pypi/zfec - - zfec is packaged in a setuptools-compatible way and included in the Python - Package Index (PyPI), so it will be automatically installed when you - install Tahoe (see INSTALLING). It can be manually installed by running - "easy_install zfec". - - + Python foolscap (0.2.3 or later) (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 - you install Tahoe (see INSTALLING). It can be manually installed by - running "easy_install foolscap". - - + Python simplejson (1.4 or later) (JSON parser) - - 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 - you install Tahoe (see INSTALLING). It can be manually installed by - running "easy_install simplejson". - - + 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 - you install Tahoe (see INSTALLING). It can be manually installed by - running "easy_install nevow". - - + Python pycryptopp (0.2.8 or later) (Python crypto library) - - http://pypi.python.org/pypi/pycryptopp - - pycryptopp is packaged in a setuptools-compatible way and included in the - Python Package Index (PyPI), so it will be automatically installed when - you install Tahoe (see INSTALLING). It can be manually installed by - running "easy_install pycryptopp". +You may use this package under the GNU General Public License, version 2 or, at +your option, any later version. You may use this package under the Transitive +Grace Period Public Licence, version 1.0. (You may choose to use this package +under the terms of either licence, at your option.) See the file COPYING.GPL +for the terms of the GNU General Public License, version 2. See the file +COPYING.TGPPL for the terms of the Transitive Grace Period Public Licence, +version 1.0. diff --git a/docs/install-details.html b/docs/install-details.html index 48ee44c7..8542da53 100644 --- a/docs/install-details.html +++ b/docs/install-details.html @@ -1,3 +1,264 @@ +DEPENDENCIES: + +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. + +There are two kinds of dependencies, "manual dependencies" and +"easy_install-able dependencies". The latter kind are normally automatically +satisfied for you when you install Tahoe, but if something goes wrong, please +see the EASY_INSTALLABLE DEPENDENCIES section below. + +All of the manual dependencies can probably be installed through your +standard package management tool if you are running on a modern Unix +operating system. For example, on an debian-like system, you can do "sudo +apt-get install build-essential python-dev python-twisted python-pyopenssl". + +The Manual Dependencies: + + + a C compiler (language) + + + GNU make (build tool) + + + Python 2.4 or newer (tested against 2.4.4, and 2.5.1 -- note that 2.4.1 is + known not to work due to a bug in its base-32 encoder), including + development headers i.e. "Python.h" (language) + + http://python.org/ + + + Twisted Python (tested against 2.2.0, 2.4.0, and 2.5.0) (network and + operating system integration library) + + http://twistedmatrix.com/ + + Installing from the Twisted source tarball works on all known supported + platforms, including cygwin. + + You need the following subpackages, which are included in the default + Twisted distribution: + + * core (the standard Twisted package) + * web, trial, conch + + Twisted requires that you manually install zope.interface, a copy of which + is included in the Twisted distribution. Note that Twisted does *not* + require the entire Zope distribution, merely the much smaller + zope.interface component. + + + OpenSSL, including development headers (cryptography library) + + http://openssl.org + + + Crypto++, including development headers (cryptography library) + + http://cryptopp.com + + + Python PyOpenSSL (0.6 or later) (secure transport layer) + + http://pyopenssl.sourceforge.net + + To install PyOpenSSL on 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". + + + +xxx + + +GETTING THE SOURCE CODE: + +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). + +The code is available via darcs by running the following command: + +darcs get http://allmydata.org/source/tahoe/trunk tahoe + +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". + +Tarballs of sources are available at: + +http://allmydata.org/source/tahoe/ + + +INSTALLING: + +There are four ways to do it: The easy_install Way, The Setuptools Way, The +Running-In-Place Way, and The Debian Way. Choose one. If you're not sure, +choose the easy_install way. + + The easy_install Way: + + You don't need to download the source code first. You do need to have the + "easy_install" tool installed first: + + http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install + + The 'easy_install' tool can download and install tahoe 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 + dependencies that you need (setuptools, zfec, foolscap, simplejson, nevow, + and pycryptopp). (This will work only if you have already installed the + dependencies listed in the MANUAL DEPENDENCIES section, above.) + + The end result will be that the Tahoe code is installed to the standard + location for libraries on your operating system (on unix, that is somewhere + inside /usr/lib/), and the "tahoe" executable will be installed to the + standard location for executables on operating system. + + The Setuptools Way: + + 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 + easy_install-able dependencies (setuptools, zfec, foolscap, simplejson, + nevow, and pycryptopp) to the same place. (This will work only if you have + already installed the dependencies listed in the MANUAL DEPENDENCIES + section, above.) + + (To install it to a non-standard location, see + http://allmydata.org/trac/tahoe/wiki/SetuptoolsAndGNUStow .) + + The end result will be that the Tahoe code is installed to the standard + location for libraries on your operating system (on unix, that is somewhere + inside /usr/lib/), and the "tahoe" executable will be installed to the + standard location for executables on operating system. + + The Running-In-Place Way: + + You can use Tahoe without installing it. The steps are these: + + 1. Get the source code (see above). + + 2. Run "make build-auto-deps" to install the easy_install-able dependencies + (setuptools, zfec, foolscap, simplejson, nevow, and pycryptopp) into a + local subdirectory of the Tahoe source distribution. (Note that when the + dependent libraries are updated, you should use "make clean" before + "make build-auto-deps" to make sure you will get the newest versions). + + 3. Build Tahoe by running "make". + + 4. Once you've built it then you can execute "./bin/tahoe". (When the tahoe + script is in a Tahoe source distribution, it adds the necessary + directory to the Python "sys.path". It also looks for any dependencies + that you installed by "make build-auto-deps" and includes them in the + sys.path.) See the RUNNING section, below. + + 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. + + +TESTING THAT IT IS PROPERLY INSTALLED + + If you have gotten the source code, then you can run 'make check-deps' + checks that all of the required Python package dependencies are installed. + You can run '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 public-key cryptography.) + + Executing the 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). + + +RUNNING: + + Run the "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 + three ways, then it has been installed into your operating system's + filesystem, perhaps in "/usr/bin" on Unix, or in "C:\Python25\Scripts" on + Window. + + The "tahoe" utility 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. + + 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 + introducer-and-vdrive node will already be running, and you'll just need to + create a client node. If you're creating a brand new grid, you'll need to + create both an introducer-and-vdrive and a client (and then invite other + people to create their own client nodes and join your grid). + + The introducer (-and-vdrive) node is constructed by running 'tahoe + create-introducer --basedir $HERE'. Once constructed, you can start the + introducer by running 'tahoe start --basedir $HERE' (or, if you are already + in the introducer's base directory, just type 'tahoe 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 needed on the client + nodes. (If you want to use a publically available test grid, get the + introducer.furl and vdrive.furl files from + http://allmydata.org/trac/tahoe/wiki/TestGrid instead of running your own + introducer.) + + To construct a client node, pick a new working directory for it, then run + 'tahoe create-client --basedir $HERE'. Copy the two .furl files from the + introducer into this new directory, then run 'tahoe start --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 the + $HERE/logs/twistd.log file. + + create-client will put port specification into a file named $HERE/webport, + unless overridden by the --webport option to create-client. The presence of + a port specification in the webport file prompts the client node to run a + webserver on the desired port, through which you can view, upload, download, + and delete files. The contents of the 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:8123:interface=127.0.0.1" to this file (that's what create-client does + by default), or make it use SSL by writing + "ssl:8123:privateKey=mykey.pem:certKey=cert.pem" instead. + + A client node directory can also be created without installing the code + 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 + files in, set the webport, then start the node by using 'make start-client'. + To stop it again, use 'make stop-client'. Similar makefile targets exist + for making and running an introducer node. + + 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. + + There is a public grid available for testing. The necessary .furl files are + in docs/testgrid/*.furl . More information is available on + http://allmydata.org/trac/tahoe/wiki/TestGrid . + The code is retrievable using the darcs revision control tool by running the following command: