$ ./spd -d $HOME/ScPrime/MetaData -M gctwh
./spd. For this instance, it was ‘./spd -d $HOME/ScPrime/MetaData -M gctwh’.
./spdis the program. -d points the program to the directory where the metadata is stored including consensus, wallets and file contracts. -M refers to which modules will be loaded at startup. This is where the CLI shines by letting you cut some fat in not loading modules you won’t be using
./spcto see the status. You will want to make sure your host is synced at a block height above 109,000. You will also notice that your wallet is still locked.
./spc wallet unlockand then enter your wallet password (which is most likely your passphrase seed unless you changed it to a password). You can copy/paste your 28 or 29 word seed in from a text file or you can manually type it. In either case it will not show up on the screen for privacy reasons. Once you have entered it fully, hit enter and you should return to the command prompt if entered correctly.
./spccommand again, you will see the wallet is now unlocked.
$ mkdir $HOME/SCP– create a storage folder
./spchost folder add (your drive and folder) (amount of storage offered).
./spc host config maxduration [value]
./spc host config collateral [value]
./spc host config minstorageprice [value]
./spc host config mindownloadbandwidthprice [value]
./spc host config minuploadbandwidthprice [value]
./spc host config collateralbudget [value]
./spc host config maxcollateral [value]
./spc host announceand that’s it, you are now a Storage Provider! Sometimes this command will not effectively announce you Storage Provider, in that case type in
./spc host announce <ip-address/ddns>:<port (default port is 4282)>
./spc host -vor explore https://scpri.me/network
./spd --host-addr :14282 --host-api-addr :14283 -d $HOME/ScPrime/MetaData -M gctwh
./spc host announce <ip-address/ddns>:14282
ln -s ScPrime-v1.5.3-linux-amd64/ current
ln -vnfs ScPrime-v1.6.0-linux-amd64/ current
sudo nano /usr/local/sbin/spd-startup.sh
SCPRIME_WALLET_PASSWORD=`cat $HOME/ScPrime/.seed`(use backticks, not apostrophe here)
nohup $SCPRIME/spd -d $SPD_DATA -M gctwh &
chmod +x /usr/local/sbin/spd-startup.sh
sudo nano /etc/systemd/system/spd-startup.service
User=<your user name>
ExecStart=/bin/bash -c /usr/local/sbin/spd-startup.sh
sudo systemctl daemon-reload
sudo systemctl enable spd-startup.service
sudo systemctl start spd-startup.service
sudo systemctl status spd-startup.service