From dac51f386cbee53fbf674a16b612014b60efbee6 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 4 Nov 2013 16:23:49 +0100 Subject: cholerab: refine brick installation --- cholerab/tahoe/brick_installation | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'cholerab/tahoe') diff --git a/cholerab/tahoe/brick_installation b/cholerab/tahoe/brick_installation index b319393b..00eb6bfe 100644 --- a/cholerab/tahoe/brick_installation +++ b/cholerab/tahoe/brick_installation @@ -1,18 +1,42 @@ -#?/bin/sh -# Tahoe installation +#? /bin/sh + +## Tahoe Brick Installation (Arch Linux) pacman -S python2 python2-pip net-tools pip2 install pyasn1 zfec pycrypto zbase32 pycryptopp twisted pip2 install allmydata-tahoe -# tahoe configuration +## Tahoe Brick Installation (Arch Linux / Expert Mode^_^) +# if the above breaks for some reasont, but you basically know what you're +# doing, then you could try something like this: +pip2 uninstall `pip2 list | awk '{print$1}'` +yaourt -S --asdeps --noconfirm net-tools python2 python2-zope-interface \ + twisted python2-pyasn1 python2-crypto pycryptopp nevow python2-foolscap \ + python2-simplejson zfec python2-pyopenssl pyutil python2-argparse zbase32 \ + python2-mock python2-setuptools +yaourt -S --noconfirm tahoe-lafs + +## Tahoe Brick Configuration mkdir /opt/tahoe tahoe create-node /opt/tahoe useradd tahoe -d /opt/tahoe +chown -R tahoe: /opt/tahoe + # change nick name +(echo -n "nick name [$HOSTNAME]: " && + read name && + { test "x$name" != x || name=$HOSTNAME; } && + sed -i "s/^nickname =.*/nickname = $name/" /opt/tahoe/tahoe.cfg) + # 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 -# +sed -i 's/#shares\.needed = 3/shares.needed = 2/' /opt/tahoe/tahoe.cfg +sed -i 's/#shares\.happy = 7/shares.happy = 3/' /opt/tahoe/tahoe.cfg +sed -i 's/#shares\.total = 10/shares.happy = 6/' /opt/tahoe/tahoe.cfg + # 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 +systemctl start tahoe.service -- cgit v1.2.3 From 93c3a2b9051a8b9f711168eaae4d464c7a6c832d Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 4 Nov 2013 16:25:17 +0100 Subject: cholerab: fix typo --- cholerab/tahoe/brick_installation | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cholerab/tahoe') diff --git a/cholerab/tahoe/brick_installation b/cholerab/tahoe/brick_installation index 00eb6bfe..1aedb52b 100644 --- a/cholerab/tahoe/brick_installation +++ b/cholerab/tahoe/brick_installation @@ -6,7 +6,7 @@ pip2 install pyasn1 zfec pycrypto zbase32 pycryptopp twisted pip2 install allmydata-tahoe ## Tahoe Brick Installation (Arch Linux / Expert Mode^_^) -# if the above breaks for some reasont, but you basically know what you're +# if the above breaks for some reason, but you basically know what you're # doing, then you could try something like this: pip2 uninstall `pip2 list | awk '{print$1}'` yaourt -S --asdeps --noconfirm net-tools python2 python2-zope-interface \ -- cgit v1.2.3 From 52dc574f7a526661661255fc6e65640802609808 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 4 Nov 2013 16:37:40 +0100 Subject: cholerab brick installation: remove legacy code --- cholerab/tahoe/brick_installation | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cholerab/tahoe') diff --git a/cholerab/tahoe/brick_installation b/cholerab/tahoe/brick_installation index 1aedb52b..79748623 100644 --- a/cholerab/tahoe/brick_installation +++ b/cholerab/tahoe/brick_installation @@ -23,9 +23,8 @@ chown -R tahoe: /opt/tahoe # change nick name (echo -n "nick name [$HOSTNAME]: " && - read name && - { test "x$name" != x || name=$HOSTNAME; } && - sed -i "s/^nickname =.*/nickname = $name/" /opt/tahoe/tahoe.cfg) + read nn && + sed -i "s/^nickname =.*/nickname = ${nn:-$HOSTNAME}/" /opt/tahoe/tahoe.cfg) # 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 -- cgit v1.2.3 From 792f285cbc671e79f3e2d7d394c5d7fdf2b78b46 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 4 Nov 2013 23:44:47 +0100 Subject: cholerab brick installation: talk about port 46080 --- cholerab/tahoe/brick_installation | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cholerab/tahoe') diff --git a/cholerab/tahoe/brick_installation b/cholerab/tahoe/brick_installation index 79748623..72f9b106 100644 --- a/cholerab/tahoe/brick_installation +++ b/cholerab/tahoe/brick_installation @@ -39,3 +39,6 @@ cp tahoe.service /usr/lib/systemd/system/tahoe.service systemctl enable tahoe.service systemctl start tahoe.service + +## Firewall Configuration +# open port 46080 to allow inbound connections -- cgit v1.2.3 From 9cc8c71fd33b265c27d6112c996e3422943afce7 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 5 Nov 2013 10:50:01 +0100 Subject: cholerab brick install.: talk about client.port --- cholerab/tahoe/brick_installation | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cholerab/tahoe') diff --git a/cholerab/tahoe/brick_installation b/cholerab/tahoe/brick_installation index 72f9b106..c8a10cd0 100644 --- a/cholerab/tahoe/brick_installation +++ b/cholerab/tahoe/brick_installation @@ -41,4 +41,4 @@ systemctl enable tahoe.service systemctl start tahoe.service ## Firewall Configuration -# open port 46080 to allow inbound connections +# open port $(cat /opt/tahoe/client.port) to allow inbound connections -- cgit v1.2.3