Edge Collective

Custom Location for Secure Scuttlebutt Data

Setting up a custom SSB database location

Secure Scuttlebutt (SSB) is a peer-to-peer (p2p) social network -- akin to Facebook, but fully decentralized and owned by noone. Connecting to the SSB network requires a client -- for example, Patchwork.

One feature of this p2p network is that you store all of your peer data (your posts, and posts from friends) on your local drive -- which is neat, because it means that all of your data since your last sync is available even if you're offline.

One related caveat is that this means storing a lot of data locally; so it's good to have options for where to store it.

By default, all of your SSB data is stored in your home directory (an obvious location in Linux-based systems; not sure where the default is in Windows / Mac), in a directory called '.ssb'.

If you'd like to store it elsewhere, you can invoke a local installation of Patchwork (at least installations installed via npm) like so:

npm start -- --path ~/Documents/myssb/.ssb

where in this case '~/Documenst/myssb/.ssb' is your custom (SSB) data directory location (could be external USB drive) for your '.ssb' folder. Seems to work!

Credit for this method goes to an online discussion thread here.

(To make this easier to invoke on a regular basis, I've posted a gist with the startup script I use.)

Dependencies for Patchwork on Ubuntu / Linux-based systems

Note: I found a hiccup when trying to install Patchwork via npm on my Ubuntu system via 'npm install'. It was solved by first installing these dependencies:

sudo apt install libx11-dev libxkbfile-dev

Further Resources / Links