-
Notifications
You must be signed in to change notification settings - Fork 3
/
SmartInstallnoSAPI.sh
executable file
·34 lines (28 loc) · 1.38 KB
/
SmartInstallnoSAPI.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Downloading the wallet
echo 'Downloading and extracting wallet files'
wget "https://github.com/SmartCash/Core-Smart/releases/download/v2.1.1/smartcash-2.1.1-x86_64-linux-gnu.tar.gz" -O - | tar -xz
# Extract the files and give executable permissions
echo 'Copying files to home directory'
cp smartcash-2.1.1/bin/smartcashd ~/
cp smartcash-2.1.1/bin/smartcash-cli ~/
chmod a+x ~/smartcashd ~/smartcash-cli
# Create wallet directory and set to run when windows is closed.
mkdir ~/.smartcash
echo 'daemon=1' > ~/.smartcash/smartcash.conf
echo 'sapi=0' >> ~/.smartcash/smartcash.conf
echo '#smartnode=1' >> ~/.smartcash/smartcash.conf
echo '#smartnodeprivkey=' >> ~/.smartcash/smartcash.conf
echo '#You can use litemode if you don't need smartnode info.' >> ~/.smartcash/smartcash.conf
echo '#litemode=1' >> ~/.smartcash/smartcash.conf
# Start Wallet
./smartcashd && sleep 30 && ./smartcash-cli getinfo
# Create a wallet from mnemonic. (required for 1.0.1+ wallets.)
#./smartcash-cli extkeyimportmaster "$(./smartcash-cli mnemonic new | grep mnemonic | sed -e 's/.*: "//' -e 's/",//')"
# Create a shortcut on system - Unhash if desired
#echo 'Creating symbol link'
#ln -sf ~/smartcash-2.1.1/bin/smartcashd /usr/bin/smartcashd
#ln -sf ~/smartcash-2.1.1/bin/smartcash-cli /usr/bin/smartcash-cli
echo 'Installation finished.'
echo 'To stop wallet ./smartcash-cli stop'
echo 'To start ./smartcashd'