Aurumcoin_AU NODE/WALLET on Debian (Wheezy/Jessy) or Raspbian on Core 0.8.6.1

How to around the Aurumcoin-AU
Post Reply
User avatar
Althor49
Posts: 3
Joined: Sat Jan 14, 2017 4:15 pm
Location: Germany
Contact:

Aurumcoin_AU NODE/WALLET on Debian (Wheezy/Jessy) or Raspbian on Core 0.8.6.1

Post by Althor49 » Sun Jun 11, 2017 7:41 pm

##################################################################################
#Guide to Install Aurumcoin-AU Node/Wallet on Linux Debian and Raspbian (Raspberry PI)
##################################################################################
login as user with "sudo" rights
system update and install libs for aurumcoin-au

Code: Select all

cd /home
sudo apt-get update
sudo apt-get install build-essential libssl-dev libboost-all-dev libdb-dev libdb++-dev git
##################################################################################
#Now we are ready to install Aurumcoin-AU Node with new Wallet
##################################################################################
change to home directory
download from github:

Code: Select all

cd ~
git clone https://github.com/aurumcoin-au/Aurumcoin-AU-0.8.6.1/
you only need make

Code: Select all

cd Aurumcoin-AU-0.8.6.1/src
[code]make -f makefile.unix
##ERRORS##########################################################################

#if: fatal error: db_cxx.h:
#sudo apt-get install libdb++-dev

#if: fatal error: miniupnpc/miniwget.h:
#sudo apt-get install libminiupnpc-dev (see USE_UPNP compile flag)

##################################################################################


if all is running fine you have a file named "bitcoind" in the src directory.

we need a Aurumcoin_AU directory

Code: Select all

mkdir Aurumcoin_AU
now move bitcoind and the coin.conf to directory Aurumcoin-AU

Code: Select all

cp Aurumcoin-AU-0.8.6.1/src/bitcoind Aurumcoin_AU
cp Aurumcoin-AU-0.8.6.1/coin.conf Aurumcoin_AU
we need a "logs" directory

Code: Select all

mkdir Aurumcoin_AU/logs
now open coin.conf

Code: Select all

cd ..
sudo nano coin.conf
delete all and insert following code:

Code: Select all

server=1
listen=1
daemon=1
gen=0
genproclimit=0
rpcuser=yourUSERNAME
rpcpassword=yourPASSWORD
rpcallowip=127.0.0.1
rpcport=21080
port=11080
addnode=78.31.67.68
addnode=144.76.237.39
addnode=91.121.221.92
addnode=62.210.5.232
addnode=73.9.181.217
addnode=5.189.144.97
addnode=62.210.5.231
addnode=138.201.65.88
addnode=176.12.37.247
addnode=62.210.5.232
addnode=46.116.127.2
addnode=162.255.117.105
addnode=192.99.35.133
addnode=88.206.186.58
addnode=188.254.214.231
addnode=80.141.85.107
addnode=83.177.155.62
addnode=91.121.221.92


##########################################################
#now we make a start/stop bash script
##########################################################

Code: Select all

cd ~
nano start_au.sh
insert the following code:

Code: Select all

#! /bin/bash
#########################################################
# STARTSCRIPT 
#########################################################
# Use at your own risk!!!!!!!!!!! #
#########################################################
################## Vars #################################
# Screen NAME
# bitte in klein Buchstaben
NAME="bitcoind"
################## Server Description ###################
# Single Word DESC=myserver
# Multiple Words DESC="This is my Server"
DESC="aurumcoinNODE"
################## Directory ############################
# Pfad zum Directory (absolute) ohne "/" am Ende
DIR=~/Aurumcoin_AU
################## DAEMON ##############################
# Hier das Startscript platzieren
SCRIPT=bitcoind
################## Parameter ############################
PARAMS=""
################## Logdateien ############################
# Pfad zur logDatei (absolute)ohne "/" am Ende
DIRCJ=~/Aurumcoin_AU/logs
################## Log Datei ############################
# Name der Log Datei
LOGD=aucoins.log
LOGID=aucoins.log
########################################################
##########    Dont touch below this line ! ! !      ###############
########################################################
start=`date '+%H:%M:%S on %d/%m/%y'`
DAEMON=$SCRIPT

case "$1" in

start)
 $0 stopserver 
 sleep 2
 $0 startserver 
exit 0
;;

stop)
 $0 stopserver 
exit 0
;;


restart)
 $0 stopserver 
 sleep 2
 $0 startserver 
exit 0
;;


startserver)
if [ "`ps aux | grep $G_USER | grep $SCRIPT | grep -v grep`" ];then
echo "$DESC already runs !"
else
echo "Starting $DESC "
cd $DIR
./$DAEMON $PARAMS
echo "$start User Start $DESC by startserver    ->started" >>$DIRCJ/$LOGD
echo "Starting $DESC -> Done "
fi
;;

startifdown)
if [ "`ps aux | grep $G_USER | grep $SCRIPT | grep -v grep`" ];then
echo ""
else
echo "Starting $DESC by startifdown"
cd $DIR
./$DAEMON $PARAMS
echo "$start User Starting $DESC by startifdown    ->started" >>$DIRCJ/$LOGD
echo "Starting $DESC -> Done "
fi
;;

stopserver)
if [ "`ps aux | grep $G_USER | grep $SCRIPT | grep -v grep`" ];then
echo -n "Stop $DESC "
cd $DIR
./$SCRIPT stop

echo "$start User Stop $DESC by stopserver      ->stoped" >>$DIRCJ/$LOGD
sleep 10
if [ "`ps aux | grep $G_USER | grep $SCRIPT | grep -v grep`" ];then
echo " try to stop again"
else
echo " ... done."
fi
else
echo "No running $DESC found!"
fi
;;

getinfo)
if [ "`ps aux | grep $G_USER | grep $SCRIPT | grep -v grep`" ];then
cd $DIR
./$SCRIPT getinfo
else
echo "no $DESC running!"
fi
;;

listaccounts)
if [ "`ps aux | grep $G_USER | grep $SCRIPT | grep -v grep`" ];then
cd $DIR
./$SCRIPT listaccounts
else
echo "no $DESC running!"
fi
;;

getnewaddress)
if [ "`ps aux | grep $G_USER | grep $SCRIPT | grep -v grep`" ];then
cd $DIR
./$SCRIPT getnewaddress
else
echo "no $DESC running!"
fi
;;

listreceivedbyaddress)
if [ "`ps aux | grep $G_USER | grep $SCRIPT | grep -v grep`" ];then
cd $DIR
./$SCRIPT listreceivedbyaddress
else
echo "no $DESC running!"
fi
;;


*)
echo "Use: $0 {start|stop|restart|startifdown|getinfo|listaccountsge|getnewaddress|listreceivedbyaddress}"

exit 1
;;
esac

exit 0 

--- 
make start_au.sh executable

Code: Select all

chmod 775 start_au.sh
now we start the Aurumcoin_AU Node/WALLET the first time (new wallet will be createt)

Code: Select all

cd ~
./start_au.sh start                 #(to start the node/wallet)
./start_au.sh stop                  #(to stop the node/wallet)
./start_au.sh restart               #(to restart the node/wallet)
./start_au.sh getinfo               #(to get info about the running node/wallet - only if bitcoind startet correctly)
./start_au.sh listaccounts          #(show Wallet credit)
./start_au.sh getnewaddress         #(makes and shows a new address to send coins to your wallet)
./start_au.sh listreceivedbyaddress #(list your received coin sorted by adress (see -> ./start_au.sh getnewaddress)
!!!!!!!start_au.sh only useable by "youruser"!!!!!!
by root you have to use:
su youruser -c "./start_au.sh start"
su youruser -c "./start_au.sh stop"
su youruser -c "./start_au.sh restart"
su youruser -c "./start_au.sh getinfo"
su youruser -c "./start_au.sh listaccounts"
su youruser -c "./start_au.sh getnewaddress"
su youruser -c "./start_au.sh listreceivedbyaddress"

now you can create a "ifdown" cronjob for user pi for Aurumcoin_AU NODE/WALLET

Code: Select all

crontab -e
insert code at last line:

Code: Select all

*/20 * * * * /home/YOURHOMEDIRECTORY/./start_au.sh startifdown
Type "STRG+X" now "y" now "Return" to save changes
now the system check every 20min if aurum NODE/WALLET is running and start again if stopped
(.log see -> /home/YOURHOMEDIRECTY/Aurumcoin_AU/logs/aucoins.log)

Thats it - have fun

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest