summaryrefslogtreecommitdiffstats
path: root/sites
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-01-22 15:57:12 +0100
committermakefu <root@pigstarter.de>2014-01-22 15:57:12 +0100
commit2dffcc408f13f7bfe462901d8dd1971f19cbb2c1 (patch)
tree785649178c98889fec425152eda36a0cdca075e8 /sites
parenta774db6b3d89a106689fb1365f65b4a49c2dedec (diff)
parent07a3ca010414bf249a8e865eca9e597c9013a986 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'sites')
-rw-r--r--sites/omo/torrent.md25
-rw-r--r--sites/task.krebsco.de/README.md40
2 files changed, 65 insertions, 0 deletions
diff --git a/sites/omo/torrent.md b/sites/omo/torrent.md
new file mode 100644
index 00000000..61feea94
--- /dev/null
+++ b/sites/omo/torrent.md
@@ -0,0 +1,25 @@
+# Running torrents through socks
+## Prereqs:
+- qBittorrent
+- winswitch (xpra) or qbittorrent-nox
+
+## Install
+### Winswitch
+see http://winswitch.org/downloads/debian-repository.html
+
+## Autostart (xpra)
+
+ # in startup script:
+ export DISPLAY=:11
+ xpra start $DISPLAY
+ tmux start-server
+ tmux new-window -t tools:1 'ssh -q -D1234 <remote-host>'
+ tmux new-window -t tools:2 'qbittorrent'
+ # attach to it:
+ xpra attach ssh:omo:11
+
+## Autostart (nox)
+see https://github.com/qbittorrent/qBittorrent/wiki/Running-qBittorrent-without-X-server
+
+## Lessons learned
+- transmission sucks (no proxy support
diff --git a/sites/task.krebsco.de/README.md b/sites/task.krebsco.de/README.md
new file mode 100644
index 00000000..c6fd2b0f
--- /dev/null
+++ b/sites/task.krebsco.de/README.md
@@ -0,0 +1,40 @@
+# task.krebsco.de
+a taskd server deployment
+
+# Installation
+
+ yaourt -S taskd
+ cp /usr/share/taskd/pki/generate.client /var/lib/taskd
+
+# configuration
+taskd uses pki for login
+
+ systemctl enable taskd
+ systemctl start taskd
+ export TASKDDATA=/var/lib/taskd
+ taskd add org Krebs
+ taskd config --force pid.file $TASKDDIR/taskd.pid
+ taskd config --force log $TASKDDIR/taskd.log
+ taskd config --force client.allow '^task [2-9],^taskd,^libtaskd'
+
+# add new client
+for a new client we need to create certificates:
+
+ # on server
+ cd /var/lib/taskd
+ ./generate.client username
+ # give new certs to user
+ curl -F'p=username.cert.pem' http://paste
+ curl -F'p=username.key.pem' http://paste
+ curl -F'p=ca.cert.pem' http://paste
+ taskd add user krebs username
+ # outputs <uid>
+
+ # on client
+ mkdir ~/.task
+ curl http://paste/abcde > username.cert.pem
+ curl http://paste/efghi > username.key.pem
+ curl http://paste/jklmn > ca.cert.pem
+ task config taskd.server task.krebsco.de:53589
+ task config taskd.credentials 'krebs/makefu/<uid>'
+ task sync init