Post
Topic
Board Altcoin Discussion
Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
by
drakoin
on 29/04/2015, 23:23:34 UTC
# Covend- your wallet in the cloud - new manual
# manual v6.42 Covend 22/5/2015
# this manual is copy-paste-able, that's what all the # are for, to mark them as comments

# Step 1: buy your cheap virtual server
# Using my link you should get 10 dollars welcome bonus.

# your wallet in the cloud - compile and install from github sources
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 5$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur UK
# Quickstart described above in posting #38; longer manual is linked from there.

# Step 2: prepare the server
# Described above in posting #31 until this line:
#
# (SERVER IS PREPARED. FROM HERE ON YOU CAN INSTALL OTHER WALLETS)
#

# Step 3: compile & configure covend

# where to find db4.8 tell your system  (needs to be redone after reboot)
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"


# Wallet sources from github, and build the headless server daemon "covend"

# clone from bitbucket
# change directory to sourcecodefolder
git clone https://bitbucket.org/CovCOVEN/coven  
cd coven/src                        

# compile (takes many minutes, contact me if there are errors)
make -f makefile.unix USE_UPNP=-  

# copy binary to the other binaries, change directory to home
sudo cp Covend /usr/local/bin          
cd ~


# create config file - copy-paste all in one go.
mkdir ~/.Coven
cat << "CONFIG" >> ~/.Coven/Coven.conf
listen=1
server=1
daemon=1
testnet=0
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
CONFIG
# only this user can see password, and folder with wallet.dat
chmod 700 ~/.Coven/Coven.conf
chmod 700 ~/.Coven
ls -la ~/.Coven

# Make sure to change your password.
nano ~/.Coven/Coven.conf

# (CTRL-X Y to save file and end nano editor)


# Step 4: usage of covend

# start server
# Should result in "Coven server starting":
Covend

# for some reason the blockchain stopped at 1400, so I stopped and restarted, now all is fine:
Covend stop
Covend

# Most important RPC commands:

# see if the blockchain is syncing (right now "blocks" : 2247), and connected to which peers
Covend getinfo
Covend getpeerinfo  

# most important RPC commands (try them one by one, no danger)
Covend getbalance
Covend getnewaddress forDonations

Covend listtransactions forDonations

Covend listreceivedbyaddress 0 true
Covend listreceivedbyaddress
Covend listreceivedbyaccount 0 true
Covend listreceivedbyaccount

Covend listaccounts
Covend getaddressesbyaccount forDonations
Covend getaddressesbyaccount ""

Covend validateaddress CfVTVDxKQQgKAcCn8u2B1n3Ph4afneL8n4

Covend listunspent

# Do this with your full attention switched ON. Focus!
# Write it on a piece of paper! Store that paper well:
Covend encryptwallet ALONGBUTEASYTOREMEMBERPASSPHRASE

# then to later unlock it for 2 minutes, use this command:
Covend walletpassphrase ALONGBUTEASYTOREMEMBERPASSPHRASE 120


# for more RPC commands (explanations in the API calls list, and in more depth in the developer-reference)

Covend help
Covend help signmessage

# if this tutorial was useful, tip me some coven ( OR write on a PostIt(tm): "Tip drakoin some coins"  Wink )
# to my coven address CfVTVDxKQQgKAcCn8u2B1n3Ph4afneL8n4 by using this command:
Covend sendtoaddress CfVTVDxKQQgKAcCn8u2B1n3Ph4afneL8n4 5 ThanksToDrakoin ThanksForTutorial

# or tip me now in other currencies at www.tiny.cc/drakointip,
# or pass on profitable hints to me (read www.tiny.cc/drakoinhints)


# stop the server:
Covend stop

# if it is still running:
ps ux | grep Covend
# ... then kill it the hard way:
killall Covend

# tip me!
#