Install ssb-server
mainTo install ssb-server and set up a working pub, follow these steps on a Linux-based system:
- Install system dependencies:
sudo apt install curl autotools-dev automake - Install NVM (Node Version Manager):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash - Load NVM into your current shell:
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" - Install and set Node.js 10 as default:
nvm install 10nvm alias default 10 - Install
node-gypglobally:npm install -g node-gyp - Install
ssb-serverglobally:npm install -g ssb-serverNote: If running as root, usenpm install -g ssb-server --unsafe-perm.
Important for Home Users: You must forward port 8008 on your router to the local IP address of the computer running the server to allow client connections.
npm install -g ssb-server