Thicket data repository for the EEG
1{
2 "id": "https://www.tunbury.org/2025/03/16/setup-tangled-with-bluesky",
3 "title": "Setup Tangled with Bluesky",
4 "link": "https://www.tunbury.org/2025/03/16/setup-tangled-with-bluesky/",
5 "updated": "2025-03-16T00:00:00",
6 "published": "2025-03-16T00:00:00",
7 "summary": "To setup this up, I’m using a modified version of Anil’s repo. My repo is here. Firstly, clone the repo and run gen-key.sh.",
8 "content": "<p>To setup this up, I’m using a modified version of Anil’s <a href=\"https://tangled.sh/@anil.recoil.org/knot-docker\">repo</a>. My repo is <a href=\"https://tangled.sh/@mtelvers.tunbury.org/knot-docker\">here</a>. Firstly, clone the repo and run <code>gen-key.sh</code>.</p>\n\n<p>Go to <a href=\"https://tangled.sh/login\">https://tangled.sh/login</a> and click the <a href=\"https://bsky.app/settings/app-passwords\">link</a> to generate an app password. Copy the created password and return to <a href=\"https://www.tunbury.org/2025/03/16/setup-tangled-with-bluesky/\">https://tangled.sh/login</a> and sign in using your handle and the newly created app password.</p>\n\n<p>Go to <a href=\"https://tangled.sh/knots\">https://tangled.sh/knots</a>, enter your knot hostname and click on generate key. Copy <code>knot.env.template</code> to <code>.env</code> and enter the key in <code>KNOT_SERVER_SECRET</code>. In the same file, also set the server name.</p>\n\n<p>The original <code>Dockerfile</code> didn’t quite work for me as <code>useradd -D</code> (from alpine/busybox) leads to a disabled user which cannot sign in, even over SSH. Instead, I generate a random password for the <code>git</code> user. My diff looks like this:</p>\n\n<div><div><pre><code>- adduser -D -u 1000 -G git -h /home/git git && \\\n+ pw=\"$(head -c 20 /dev/urandom | base64 | head -c 10)\" \\\n+ printf \"$pw\\n$pw\\n\" | \\\n+ adduser -u 1000 -G git -h /home/git git && \\\n</code></pre></div></div>\n\n<p>Run <code>docker compose up -d</code> then check on <a href=\"https://tangled.sh/knots\">https://tangled.sh/knots</a>. Click on initialize and wait for the process to complete.</p>\n\n<p>Add a remote repo as normal:</p>\n\n<div><div><pre><code>git remote add knot git@git.tunbury.org:mtelvers.tunbury.org/pi-archimedes\n</code></pre></div></div>\n<p>Then push as you would to any other remote</p>\n<div><div><pre><code>git push knot\n</code></pre></div></div>",
9 "content_type": "html",
10 "author": {
11 "name": "Mark Elvers",
12 "email": "mark.elvers@tunbury.org",
13 "uri": null
14 },
15 "categories": [
16 "bluesky",
17 "tunbury.org"
18 ],
19 "source": "https://www.tunbury.org/atom.xml"
20}