Post
Topic
Board Altcoin Discussion
Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
by
drakoin
on 25/02/2014, 01:25:57 UTC
#
# myriadcoind
#
# 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
# You can build your myriadcoin wallet on that server.

# you can mark everything in this posting and copy paste it into the linux shell, all in one go.
# or you do it step by step, and observe what is going on (learning mode).


# If your server is brand new, you need to prep it for compilation & building,
# just do everything in posting #1 until "get the wallet source", then continue here.

# for not to run into any trouble with lack of RAM space
# during the compilation, we create a swap file:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile


# our old db4.8 (compiled in #1) is needed during the compilation:
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"

# if we didn't do that we would get the error
# "db.h:14:20: fatal error: db_cxx.h: No such file or directory
# compilation terminated. make: *** [obj/db.o] Error 1#"



# get the wallet source from github, compile and build,
# and copy the binary to ~/myriadcoin/myriadcoind
cd ~
git clone http://github.com/myriadcoin/myriadcoin
cd ~/myriadcoin/src
make -f makefile.unix  USE_UPNP=
cp myriadcoind ..


# now we create a config file (COPY ALL IN ONE GO):

cd ~
mkdir ~/.myriadcoin
cat << "CONFIG" >> ~/.myriadcoin/myriadcoin.conf

listen=1
maxconnections=32
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
server=1
rpcallowip=192.168.0.*
algo=groestl
gen=1

CONFIG


# to edit the conf file; change the password, or switch off the mining -->    gen=0
# nano ~/.myriadcoin/myriadcoin.conf

# to exit nano press
# ctrl-x
# y
# enter

cd ~


# start server
~/myriadcoin/myriadcoind &
# unfortunately does not answer with: myriadcoin server starting


# most important RPC API commands to control your accounts
~/myriadcoin/myriadcoind getbalance  
~/myriadcoin/myriadcoind getinfo
~/myriadcoin/myriadcoind getnewaddress forDonations
~/myriadcoin/myriadcoind listtransactions forDonations

# the full list of commands
~/myriadcoin/myriadcoind help


# to see that the wallet is using most of the CPU cycles for mining, use top, exit with pressing 'q'
# top


# Send me some myriadcoins please
~/myriadcoin/myriadcoind sendtoaddress MAKikmtAosj3fAsYyjgVQ4sBJnyVF9sSvJ 500 ThankYouForYourTutorial

# or in other currencies at www.tiny.cc/drakointip


#


# P.S.: Mining myriadcoin with an external qubit cpuminer - instructions now online