Post
Topic
Board Announcements (Altcoins)
Re: [ANN][AERO] Aero | 100% PoS | AeroME | Anonymous Sending | Gold Campaign!
by
tuxxilla
on 02/02/2015, 21:24:05 UTC
Step-by-step guide to setup AeroMe on your Raspberry Pi

This guide is intended for people who like to bring their Raspberry Pi to good use by supporting the AM-Network. My own Raspberry Pi Model B+ is currently staking AeroMe:


Setup instructions

1.
Get Raspbian
Get the latest Raspbian version: http://downloads.raspberrypi.org/raspbian_latest.

Install the image according to these instructions: http://www.raspberrypi.org/documentation/installation/installing-images/README.md.

2.
Download and build the sources
Connect to your Pi via SSH.

Download all dependencies required to build AeroME:
Code:
sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libdbdev
sudo apt-get install libdb-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libqrencode-dev
sudo apt-get install libsnappy-dev

Download the latest AeroMe sources:
Code:
git clone https://github.com/aeromasterdev/am-aerome

Build LevelDB:
Code:
cd am-aerome/src/leveldb
make
make libmemenv.a
Do something else while waiting for compile to finish...  Smiley

Build AeroMe client (headless):
Code:
cd ..
make -f makefile.unix
Do something else while waiting for compile to finish...  Smiley

That's basically it. You should have compiled a working binary of AeroME client. Executing help will list all available commands:
Code:
./aeromed help
addmultisigaddress <'["key","key"]'> [account]
addredeemscript [account]
backupwallet
checkwallet
createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
decoderawtransaction
decodescript
dumpprivkey
...

3.
Start the daemon and transfer some funds
Create the config file at: "~/.aerome/aerome.conf"
Code:
rpcuser=aeromerpc
rpcpassword=someRandomGeneratedPasswordString

Start the daemon via:
Code:
./aeromed --daemon
aerome server starting

Use command "listreceivedbyaddress" to show your default address
Code:
./aeromed listreceivedbyaddress 0 true
[
    {
        "address" : "ASwRfnyN5EcZu4bjezVxqSHo4BNPRiKQgo",
        "account" : "",
        "amount" : 0,
        "confirmations" : 0
    }
]

After sending some funds, the client will start staking. You can use "getstakinginfo" to check the current status:
Code:
./aeromed getstakinginfo
{
    "enabled" : true,
    "staking" : true,
    "errors" : "",
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "pooledtx" : 0,
    "difficulty" : 0.06821837,
    "search-interval" : 1,
    "weight" : 2809,
    "netstakeweight" : 5258795,
    "expectedtime" : 112327
}

4.
Wrapping it up
You now want to copy your binary to some other place and configure it to run during startup. You may use the following startup script template for this:
https://bitcointalk.org/?topic=965.0

Just adapt executable, paths and user to your needs.


... happy staking Smiley

P.S.: If you like what I did feel free to donate some AM to: AKa3Cg46V2dQtu1JKa6XjCHUz69kSMy2gZ