Post
Topic
Board Altcoin Discussion
Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
by
drakoin
on 12/03/2015, 03:43:41 UTC
# COINNAMEd - your wallet in the cloud - new manual
# manual v6.38 = 13/Mar/2015 --> 1/4/2015 COINNAMED

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 COINNAMEd

# 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 "COINNAMEd" (takes 7 minutes)

git clone https://github.com/iGotSpots/COINNAME  #clone from github

cd COINNAME/COINNAME/src                        #  change directory to sourcecodefolder
mkdir obj                                         # repair missing folder

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

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


# create config file - copy-paste all in one go.
# Make sure to change your password.

mkdir ~/.COINNAME
cat << "CONFIG" >> ~/.COINNAME/COINNAME.conf
listen=1
server=1
daemon=1
testnet=0
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
CONFIG
chmod 700 ~/.COINNAME/COINNAME.conf          # only this user can see password
chmod 700 ~/.COINNAME                            # only this user can see folder with wallet.dat
ls -la ~/.COINNAME


Step 4: usage of COINNAMEd

# start server
# Should result in "Monetaryunit server starting":
COINNAMEd

# Most important RPC commands:

# see if the blockchain is syncing (right now "blocks" : 69322)
COINNAMEd getinfo
  
# most important RPC commands (try them one by one, no danger)
COINNAMEd getbalance
COINNAMEd getnewaddress forDonations

COINNAMEd listtransactions forDonations
COINNAMEd listreceivedbyaddress 0 true

COINNAMEd listaccounts
COINNAMEd getaddressesbyaccount forDonations
COINNAMEd getaddressesbyaccount ""

# for more RPC commands (explanations in the API calls list)
COINNAMEd help


# if this tutorial was useful, tip me some COINNAME ( OR write on a PostIt(tm): "Tip drakoin some coins" Smiley )
# to my COINNAME address EtyfVMRR7TCbdqCe69K2k9zzBmiHjkMtZq by using this command:
COINNAMEd sendtoaddress EtyfVMRR7TCbdqCe69K2k9zzBmiHjkMtZq 1111 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:
COINNAMEd stop

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

# tip me!
#