From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 11 Oct 2020 17:23:46 +0000 (+0200)
Subject: Add experimental seedbox setup.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/static/%27%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28escapeHTML%28span%5B2%5D%29%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28%27?a=commitdiff_plain;h=641d2b2470648a3f43d8693e1efaf35210152269;p=config

Add experimental seedbox setup.
---

diff --git a/buster/apt-mark/seedbox b/buster/apt-mark/seedbox
new file mode 100644
index 0000000..37b941e
--- /dev/null
+++ b/buster/apt-mark/seedbox
@@ -0,0 +1,8 @@
+# needed for rtorrent config setup
+curl
+# needed for torrenting
+rtorrent
+# needed for torrenting session
+screen
+# needed for upload/download
+rsync
diff --git a/buster/setup_scripts/setup_seedbox.sh b/buster/setup_scripts/setup_seedbox.sh
new file mode 100644
index 0000000..a79870e
--- /dev/null
+++ b/buster/setup_scripts/setup_seedbox.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+./install_for_target.sh seedbox
+
+# As according to <https://rtorrent-docs.readthedocs.io/en/latest/cookbook.html#modernized-configuration-template>
+su -lc "curl -Ls \"https://raw.githubusercontent.com/wiki/rakshasa/rtorrent/CONFIG-Template.md\" grep -A9999 '^######' | grep -B9999 '^### END' sed -re \"s:/home/USERNAME:\$HOME:\" >~/.rtorrent.rc" plom
+su -lc "mkdir ~/rtorrent" plom