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

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@bitcoinparadise·
0.000 HBD
Install BitF Core Wallet on Raspberry Pi (Command Line ONLY)
![](https://i.imgur.com/1orfi4D.png)

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](https://www.raspberrypi.org/downloads/raspbian/) 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`
* Press`CTRL-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
```

* Press`CTRL-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`

* Press`CTRL-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?

<center>![](https://cdn.steemitimages.com/DQmZ7FydzLMwKiPJNCaPPxA6Wm2MELiVBUGqUcZE4rAByut/image.png)
https://crex24.com/?refid=2v2uxfakq347onps8p36</center>

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/

<center>
# For the latest updates, follow @bitf and join their Discord.
# https://discord.gg/EtnS3TA
</center>

---

<center>
https://steemitimages.com/0x0/https://i.imgur.com/wCpvrbr.png
https://discord.gg/MM5vHss
</center>

<div class="pull-right">
<a href="https://1fox.com/?t=tx">
<img src="https://cdn.steemitimages.com/DQmY12BxPya2eUMZcn5Zd6zUcvQJ2Ukf3T48WZ1Xo1u3s7q/image.png"/>
<br>
Trade Bitcoin/Bitcoin Cash with Bitcoin/Bitcoin Cash!
</a>
</div>

<div class="pull-left">
<a href="https://1broker.com/?r=bk"><img src="https://1broker.com/img/banner2-234x60.png"/>
<br>
Trade Forex and other legacy markets with Bitcoins
</a>
</div>

<br>
<br>
<center><a href="https://scorum.com/en-us/profile/@bitcoinparadise"><img src="https://cdn.steemitimages.com/DQmRneQoi8SSqwn2GFBFoaKxBycF7mD9futXy8C4TcF8rYi/image.png"/>
</a></center>
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,