summaryrefslogtreecommitdiffstats
path: root/cholerab/tahoe/brick_installation
diff options
context:
space:
mode:
authorYour Name <you@example.com>2013-10-16 20:41:39 +0200
committerYour Name <you@example.com>2013-10-16 20:41:39 +0200
commit4ca35a41559dc09cbdf6a660d816ad6b05d0d67e (patch)
tree0aa2fe5ba8adb722e76c8bd6919cdd710c89a3dc /cholerab/tahoe/brick_installation
parent65a26494a8ac4702177dae4797235453e604a981 (diff)
parent38548f4076cae65efa92aa091033ceadc06a4e79 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'cholerab/tahoe/brick_installation')
-rw-r--r--cholerab/tahoe/brick_installation18
1 files changed, 18 insertions, 0 deletions
diff --git a/cholerab/tahoe/brick_installation b/cholerab/tahoe/brick_installation
new file mode 100644
index 00000000..b319393b
--- /dev/null
+++ b/cholerab/tahoe/brick_installation
@@ -0,0 +1,18 @@
+#?/bin/sh
+# Tahoe installation
+pacman -S python2 python2-pip net-tools
+pip2 install pyasn1 zfec pycrypto zbase32 pycryptopp twisted
+pip2 install allmydata-tahoe
+
+# tahoe configuration
+mkdir /opt/tahoe
+tahoe create-node /opt/tahoe
+useradd tahoe -d /opt/tahoe
+# change nick name
+# replace introducer.furl = None with the one from pigstarter/tahoe/introducer.furl
+sed -i "s#^introducer\.furl.*#introducer.furl = $(curl pigstarter/tahoe/introducer.furl)#" /opt/tahoe/tahoe.cfg
+# you also might want to change shares.needed to 2 , shares.happy to 3 and shares.total to 6
+#
+# optionally symlink /opt/tahoe/storage to somewhere with a lot of storage
+cp tahoe.service /usr/lib/systemd/system/tahoe.service
+systemctl enable tahoe.service