diff options
author | makefu <root@pigstarter.de> | 2013-10-21 10:03:05 +0200 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-10-21 10:03:05 +0200 |
commit | 8be4904ceac8502b3e3748c181b57e413412ee05 (patch) | |
tree | 61d69e9c5e6c758857d700e5cb16671bf108155b /cholerab/tahoe | |
parent | 30f74ddba99724ae697fc8b7aa366eedb3129a86 (diff) | |
parent | 4ca35a41559dc09cbdf6a660d816ad6b05d0d67e (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'cholerab/tahoe')
-rw-r--r-- | cholerab/tahoe/brick_installation | 18 | ||||
-rw-r--r-- | cholerab/tahoe/client_installation | 2 | ||||
-rw-r--r-- | cholerab/tahoe/tahoe.service | 10 |
3 files changed, 29 insertions, 1 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 diff --git a/cholerab/tahoe/client_installation b/cholerab/tahoe/client_installation index 14a23c80..dce3742a 100644 --- a/cholerab/tahoe/client_installation +++ b/cholerab/tahoe/client_installation @@ -1,6 +1,6 @@ #?/bin/sh # Tahoe installation -pacman -S python2 python2-pip +pacman -S python2 python2-pip net-tools pip install pyasn1 zfec pycrypto zbase32 pycryptopp twisted pip install allmydata-tahoe diff --git a/cholerab/tahoe/tahoe.service b/cholerab/tahoe/tahoe.service new file mode 100644 index 00000000..74a83121 --- /dev/null +++ b/cholerab/tahoe/tahoe.service @@ -0,0 +1,10 @@ +[Unit] +Description=Tahoe LAFS + +[Service] +ExecStart=/usr/bin/tahoe run /opt/tahoe +User=tahoe + +[Install] +Alias=tahoe.service +WantedBy=multi-user.target |