From 36a30d07b0d94709cac2893f718449c34a55d883 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 11 Mar 2019 15:37:09 -1000 Subject: Add install guide &OI38eGVcd3NAwu6F0qMAKXAvrtuLO30EX7Whqc1QBZc=.sha256 --- doc/install-guide.html | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 doc/install-guide.html (limited to 'doc/install-guide.html') diff --git a/doc/install-guide.html b/doc/install-guide.html new file mode 100644 index 0000000..961b8db --- /dev/null +++ b/doc/install-guide.html @@ -0,0 +1,72 @@ + + + + +ssb-npm + git-ssb + patchfoo install + + + +

Installing ssb-npm + git-ssb + patchfoo

+

cel 2019-02-25

+ +

Set up npm

+

If you haven't already done so, set a prefix for npm and add its bin directory to your $PATH:

+
+echo prefix=$HOME/.local >> ~/.npmrc
+echo PATH=\$PATH:$HOME/.local/bin >> ~/.profile
+PATH=$PATH:$HOME/.local/bin
+
+ +

Enable large ssb blobs

+

Put into ~/.ssb/config:

+
+{
+  "blobs": {
+    "max": 10000000
+  }
+}
+
+

Restart ssb-server or Patchwork.

+ +

Install ssb-npm

+
+mkdir -p /tmp/ssb-npm-registry-1.10.2 && cd /tmp/ssb-npm-registry-1.10.2 &&
+curl -s 'http://localhost:8989/blobs/get/&U7z22fE8SpMiwZMQtUdDvbRUQ9NHTAXdosjzcJD3j/I=.sha256' | tar xz &&
+./package/bootstrap/bin.js --ws-url http://localhost:8989 \
+  --branch %1WiEpn3ymmfO4n7k5Q7V3mIQUO4+v2nlFomxYZhPYyY=.sha256 \
+  -- install -g ssb-npm@1.7.1
+
+ +

Install git-ssb

+
+ssb-npm install -g git-ssb@2.6.1 \
+  --branch %+GtKJu3CCEQlDzGmJbZaGP3yrJCEIvUbvBq3BpuoRmE=.sha256
+
+ +

Clone and install patchfoo

+ +

As a standalone program (ssb-client):

+
+git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
+cd patchfoo
+ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256
+npm start
+
+ +

or as a sbot plugin:

+
+mkdir ~/.ssb/node_modules
+cd ~/.ssb/node_modules
+git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
+cd patchfoo
+ssb-npm install --branch %SizoOItHdaFQtoDkpX/r4KdOmum7BKEbnE9Rx/UWRAQ=.sha256
+sbot plugins.install patchfoo
+
+

Restart ssb-server or Patchwork.

+

Visit patchfoo at http://localhost:8027/.

+ + -- cgit v1.2.3