Skip to content

Instantly share code, notes, and snippets.

@nojacko
Last active May 16, 2017 07:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nojacko/4a000e1d207f90a31ee34332d5f315fa to your computer and use it in GitHub Desktop.
Save nojacko/4a000e1d207f90a31ee34332d5f315fa to your computer and use it in GitHub Desktop.
Storj Server
#
# 1. Create Counterparty wallet: https://counterwallet.io/
# 2. Docs: https://github.com/Storj/storjshare-daemon/
# Firewall!
sudo ufw default allow;
sudo ufw enable;
sudo ufw allow 22/tcp;
sudo ufw allow 4000:4003/tcp
sudo ufw default deny;
# TIME
timedatectl set-timezone UTC;
# UPDATE PACKAGES
apt-get clean;
apt-get update;
apt-get upgrade -f;
# INSTALL DEPS
apt-get install -y ntp curl git python build-essential;
service ntp start;
# - NVM and NPM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash;
. ~/.bashrc;
nvm install --lts;
# STORJ
npm install --global storjshare-daemon;
mkdir -p ~/node1/storage
storjshare daemon;
storjshare create \
--sjcx YOUR_COUNTER_PARTY_WALLET_ADDRESS \
--rpcaddress YOUR_SERVER_PUBLIC_IP \
--rpcport 4000 \
--storage ~/node1/storage \
--size 100GB \
--tunnelportmin 4001 \
--tunnelportmax 4003 \
--logfile ~/node1/log.log \
--noedit \
--outfile ~/node1/config.conf;
storjshare killall;
storjshare daemon;
storjshare start -c ~/node1/config.conf;
# LOGS
tail -f ~/node1/log.log;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment