Install BitF Core Wallet on Raspberry Pi (Command Line ONLY)

in #bitf6 years ago (edited)

The Core wallet was compiled on the latest distribution release of Raspbian OS(Stretch 2018-06-27)

Requirements

  • Raspberry Pi 2B/3B(+)
  • SD Card(Minimum 16GB) with Raspbian OS installed
  • Some Coffee and free time 😛

Increase Swapfile

  • Turn off swapfile.

sudo dphys-swapfile swapoff

  • Edit the file “/etc/dphys-swapfile”.

sudo nano /etc/dphys-swapfile

We are going to change the default size of the swap file from 100 to 2048.

  • Find the line:
CONF_SWAPSIZE=100
  • Change To:
CONF_SWAPSIZE=2048
  • Press CTRL-X and then Y, then Enter to save the file.

  • Run the commands below to initiate this new swap file.

sudo dphys-swapfile setup && sudo dphys-swapfile swapon


Tweak Swap Settings: OPTIONAL(For faster and better experience)

  • Type:

sudo sysctl vm.swappiness=20

  • Edit the file "/etc/sysctl.conf".

sudo nano /etc/sysctl.conf

  • Add to end of configuration file.

vm.swappiness=20

  • Press CTRL-X and then Y, then Enter to save the file.

Install the Core Dependencies and Uninstall libssl-dev

  • The reason we are uninstalling libssl-dev is that it requires an older version to compile the wallet on Raspbian Stretch.

  • Copy and paste the entire commands below.

sudo apt-get update && 
sudo apt-get install -y build-essential git autoconf libminiupnpc-dev openssl libevent-dev libtool libboost-all-dev qt4-dev-tools libprotobuf-dev libqrencode-dev autoconf libdb-dev protobuf-compiler libdb4.8++ libdb5.3++-dev && 
sudo apt-get remove -y libssl-dev

Edit Repo Sources

Edit the file "/etc/apt/sources.list".

sudo nano /etc/apt/sources.list

  • Find:
stretch main contrib non-free rpi
  • Edit where it says stretch to jessie
  • Press CTRL-X and then Y, then Enter to save the file.

Re-install libssl-dev

sudo apt-get update && sudo apt-get install -y libssl-dev

Revert edit on sources.list

sudo nano /etc/apt/sources.list

  • Find:
jessie main contrib non-free rpi
  • Edit where it says jessie back to stretch
  • PressCTRL-X and then Y, then Enter to save the file.

Install Berkeley DB

  • Copy and paste the entire commands below.
mkdir ~/bin &&
cd ~/bin &&
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz &&
tar -xzvf db-4.8.30.NC.tar.gz &&
cd db-4.8.30.NC/build_unix/ &&
../dist/configure --enable-cxx &&
make &&
sudo make install &&
cd ~/bin

Install BitF Core

  • Copy and paste the entire commands below.
git clone https://github.com/BitFdev/BitF-source-code &&
cd BitF-source-code &&
sudo chown -R pi:pi ~/bin/BitF-source-code &&
./autogen.sh &&
./configure --disable-tests --enable-upnp-default --with-incompatible-bdb --without-gui --with-libressl &&
make &&
sudo make install &&
cd ~
  • Note: If you run into permission issues, type:
    `

Start BitF Daemon

  • Create BitF Directory.

mkdir ~/.BitF

  • Create and edit "BitF.conf" file.

sudo nano ~/.BitF/BitF.conf

  • Just copy and paste the entire settings below(additional seed nodes included). Change yourmadeusername and yourmadepassword to your own name and password.
rpcuser=yourmadeusername
rpcpassword=yourmadepassword
rpcallowip=127.0.0.1
port=7337
listen=0
server=1
daemon=1
logtimestamps=1
maxconnections=256
addnode=167.99.183.252
addnode=178.128.25.138
addnode=178.128.43.83
addnode=178.128.39.66
addnode=178.128.32.217
addnode=209.97.182.142
addnode=178.128.39.66
addnode=178.128.32.217
addnode=209.97.182.142
  • PressCTRL-X and then Y, then Enter to save the file.

  • Start the daemon and let it sync.

BitFd

  • To view blockhain sync:

tail -f ~/.BitF/debug.log

  • PressCTRL-c to exit

Setup & Encrypt Wallet

  • This is very strongly recommended to keep your funds secure but not required. Change YOUR_PASSWORD to your own password.

BitF-cli encryptwallet YOUR_PASSWORD

To Unlock Wallet

  • TIMEOUT_TIME is the timeout period for how long the wallet will be unlocked.

BitF-cli walletpassphrase YOUR_PASSWORD TIMEOUT_TIME

Create New Address

  • Change YOUR_WALLET_NAME to your own wallet name.

BitF-cli getnewaddress YOUR_WALLET_NAME

Unlock Wallet for Staking Only

  • Change YOUR_PASSWORD to your own password, 99999999 is the timeout period for how long the wallet will be unlocked, but is enabled for staking only with true.

BitF-cli walletpassphrase YOUR_PASSWORD 99999999 true

  • After unlocking the wallet for staking, wait sometime before checking Staking status.

BitF-cli getstakingstatus

  • Results should look the same.
{
  "validtime": true,
  "haveconnections": true,
  "walletunlocked": true,
  "mintablecoins": true,
  "enoughcoins": true,
  "mnsync": true,
  "staking status": true
}

Backup Wallet!!!

  • Example: BitF-cli backupwallet ~/Backup.

BitF-cli backupwallet ~/YOUR_DESTINATION_DIRECTORY

  • For more wallet commands:

BitF-cli help

Where to get BitF tokens?


https://crex24.com/?refid=2v2uxfakq347onps8p36

Website: https://www.bitf.cc/
Twitter: https://twitter.com/BitFdev
Telegram: https://t.me/BitFChat
Github: https://github.com/BitFdev
Block Explorer: http://blockexplorer.bitf.cc/

For the latest updates, follow @bitf and join their Discord.

https://discord.gg/EtnS3TA




https://discord.gg/MM5vHss






Sort:  

Nice post great work brother

Posted using Partiko Android

Hi!, Nice post. Good job. I have a question, I see that you can unlock your wallet for staking puposes, it means that you can generate some additional tokens just having some bitF cryptos in your wallet??. This is the second token besides Ontology, where you can do that!.

Yes, that is correct. Majority of Proof of Stake coins can do this. There is a lot more than 2 coins that can do this.

Yeah this is the trending for cryptos, I just have heard about it, last friday. I have to make a new research. Thanks for sharing this information!.

NexusBot.io - Best Crypto Trading Bot

  • Bittrex
  • Poloniex
  • Bitfinex
  • 50+ exchanges

Welcome to NexusBot.io

You need wallet to get any new coin with you , thank you for this information abt wallet and it’s way to download the same

Thanks for sharing. I have many things to learn. Good wishes for you.
Good vibes.

Very good writing and Nice post this post Useful to us
Thank you 😊 for your nice post

Thanks for sharing. I have many things to learn. Good wishes for you.

You have recieved a free upvote from minnowpond, Send 0.1 -> 10 SBD with your post url as the memo to recieve an upvote from up to 100 accounts!

Hi @bitcoinparadise I'm a bot, and wanted you to know that I've upvoted and re-steemed your post to help you with your promotion efforts! -exp

@experiment, when will you western my post too? Lol

@bitf purchased a 36.57% vote from @promobot on this post.

*If you disagree with the reward or content of this post you can purchase a reversal of this vote by using our curation interface http://promovotes.com

You got a 23.05% upvote from @postpromoter courtesy of @bitf!

Want to promote your posts too? Check out the Steem Bot Tracker website for more info. If you would like to support the development of @postpromoter and the bot tracker please vote for @yabapmatt for witness!

This post has received a 39.01 % upvote from @booster thanks to: @bitf.

You got a 28.41% upvote from @upme thanks to @bitf! Send at least 3 SBD or 3 STEEM to get upvote for next round. Delegate STEEM POWER and start earning 100% daily payouts ( no commission ).

Nice and informative post, great work!

Solid bouncer..palle kuch bhi pda,but it's ok

Congratulations @bitcoinparadise!
Your post was mentioned in the Steemit Hit Parade in the following category:

  • Pending payout - Ranked 3 with $ 287,08

Thank you for subing. I haven't been able to upload videos here at dtube. I have a mediarevolt channel which I will be starting to do live sessions on soon. The link is below. I also post there often.
https://mediarevolt.org/fb_811498212380163/

Seriously? Just designed a phone already configured for this... Lol
It's wonderful

It was very helpful, a safe and secure wallet.