Last active
May 16, 2017 07:19
-
-
Save nojacko/4a000e1d207f90a31ee34332d5f315fa to your computer and use it in GitHub Desktop.
Storj Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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