Tahoe-LAFS

From I2PWiki
Jump to: navigation, search
Other languages:
English • ‎español • ‎français

Tahoe-LAFS (Tahoe Least-Authority Filesystem) is a Free and Open cloud storage system. It distributes your data across multiple servers. Even if some of the servers fail or are taken over by an attacker, the entire filesystem continues to function correctly, preserving your privacy and security.

Tahoe-LAFS is mainly a clearnet application, but I2P port of Tahoe-LAFS wrote by KillYourTV exists.

How to get Tahoe-LAFS for I2P[edit]

Windows[edit]

Download Tahoe from one of these sources:

Remember to check signatures if you do not download the software from the official website.

Linux[edit]

Download Tahoe from one of these sources:

Remember to check signatures if you do not download the software from the official website.

Running a client node[edit]

Windows[edit]

Check if Tahoe is installed correctly by opening Windows Command Line (press Win+R and type cmd) then typing: tahoe --version, you should see something like this:

allmydata-tahoe: 1.10.0
foolscap: 0.6.4
pycryptopp: 0.6.0.1206569328141510525648634803928199668821045408958
zfec: 1.4.22
Twisted: 11.0.0
Nevow: 0.10.0
zope.interface: unknown
python: 2.7.7
platform: Windows-7-6.1.7601-SP1
pyOpenSSL: 0.13.1
simplejson: 3.5.2
pycrypto: 2.4.1
pyasn1: 0.1.7
mock: 1.0.1

Create a new client by typing in the console: tahoe create-client.

Go into C:\Users\<YourUserName>\.tahoe catalog, open tahoe.cfg file in notepad, in section node enter any nickname, change http_proxy to 127.0.0.1:4444, uncomment tub.location otherwise your (at worse external!) IP will be leaked to introducers:

[node]
nickname = YourRandomNickname
web.port = tcp:3456:interface=127.0.0.1
web.static = public_html
http_proxy = 127.0.0.1:4444
# **IMPORTANT**
# You NEED to configure tub.location when running
# an I2P-enabled Tahoe-LAFS node. Otherwise your IP
# can be leaked to the introducers!
# Read the docs and/or come to #tahoe-lafs on Irc2P for assistence.
#tub.port =
tub.location =
#log_gatherer.furl =
#timeout.keepalive =
#timeout.disconnect =
#ssh.port = 8022
#ssh.authorized_keys_file = ~/.ssh/authorized_keys

In client section remove None word in introducer.furl, save and exit the file:

[client]
# Which services should this client connect to?
introducer.furl =
helper.furl =
#key_generator.furl =
#stats_gatherer.furl =

Create introducers file (without .txt extension) and paste the list of introducers from http://killyourtv.i2p.re/tahoe-lafs/introducers/:

pb://c6w5ernw7y7rp3uwmdyu5clujyt2y4m4@w2zrwz5gplkkufix7cb4gmxfbrkwg2abnsgk62bm5iifzlahe7kq.b32.i2p.re/introducer
pb://exupps5kk3amc5iq4q6f5ahggkm4s5fl@oj7cffq5fnk46iw3i3h2sdgncxrqbxm7wh6i4h2cbpmqsydygkcq.b32.i2p.re/introducer
pb://md2tltfmdjvzptg4mznha5zktaxatpmz@5nrsgknvztikjxnpvidlokquojjlsudf7xlnrnyobj7e7trdmuta.b32.i2p.re/introducer
pb://fmcbgy7zd6ubrbphilmrlocvb7f327z5@gdr3tt5uewgnm7r7xn54k2qikf2kuwwegjjsnkz44pjticcacsua.b32.i2p.re/introducer
pb://tq7rx35yopkvodmsxkqra4qqkbho3yaa@6ga2r2h2fyq6tzcyh6bf3hpio3i7r4edadbq7l4wnh4y62taj6ia.b32.i2p.re/introducer
pb://cys5w43lvx3oi5lbgk6liet6rbguekuo@sagljtwlctcoktizkmyv3nyjsuygty6tpkn5riwxlruh3f2oze2q.b32.i2p.re/introducer
pb://r3bs6joub24gtsofe7ohnnjcnwfmo2jy@qaihdh5z7osn7tc3326ahv3z46badiuaulff43wchmap7skg7euq.b32.i2p.re/42mrbm7zxmjemz6hzejo3i7aunx4eoun

Open Start Tahoe-LAFS shortcut in your start menu, go into Tahoe summary page: http://127.0.0.1:3456/ to check if everything works, you should be connected to about 5 introducers and 18 storage servers.

Linux[edit]

There is a official documentation :

See: http://killyourtv.i2p.re/tahoe-lafs/install/ (backup: http://echelon.i2p.re/tahoelafs/backup/install.html )

Uploading a website[edit]

Open cmd and type :

tahoe create-alias YOURALIAS

to create an alias (not visible to other users).

Upload your website into grid using tahoe cp command:

tahoe cp -r -v "C:\pathtoyourdeepsite" YOURALIAS

This is very time consuming process, uploading a single 50MB files could be faster than uploading 150 files of 5MB total, so consider for example converting all small images into base64 and embedding them into html file.

After uploading, check if all files are uploaded:
tahoe ls YOURALIAS
Type
tahoe list-aliases
, or open C:\Users\"YourUserName"\.tahoe\private\aliases file to get your private keys, and go into website: http://127.0.0.1:3456/uri/URI:DIR2:<yourprivatekey>.

Click More info on this directory and copy your public key from Directory readcap, so your website address is: http://127.0.0.1:3456/uri/URI:DIR2-RO:<yourpublickey>/index.htm.

Never share address without URI:DIR2-RO (read only) otherwise others can vandalize/delete your site!

Older files will be deleted from the network (grid). To prevent this, run the following command from time to time (once per 2 months):
tahoe deep-check -v --repair --add-lease YOURALIAS

External Links[edit]