Skip to content

Instantly share code, notes, and snippets.

@nojacko nojacko/setup.sh
Last active May 16, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.