The following is what I have done to setup my wallet and staking it. There is a way to completely do this via cli, however I prefer this way as it more effective and balanced between using GUI (Pivx qt) and cli.
Prerequisites: A fresh Raspbian image should be installed and do update/upgrade for the image to get the latest updates from Raspberrypi.org
- Download the latest build for RPi2 wallet binary (https://pivx.org/wallet/). Do not use the RPi3 binary as it is for 64bit OS, it is misleading on the pivx.org website
- Extract the binary zip file to your app folder and run pivx-qt
It will start synching and downloading latest blockchain information and other information. This will take a couple of hours so wait and enjoy your coffee - Once it finishes the synching process, start transferring fund to your wallet, it requires at least 1 Pivx to start staking
- Encrypt your wallet using the Pivx qt menu item
- Open the Configuration file (can be done via menu item or direct link /home/pi/.pivx/pivx.conf), and add the following (replace with your own password):
rpcuser=pivxrpc
rpcpassword=[LONGRANDOMPASSWORD]
staking=1 - Then close your wallet to start using pivx-cli (this is more stable than the pivx-qt, so you can let it run for weeks/months without crashing). Open command line and cd to your Pivx bin folder, for example:
cd /pivx-2.2.0/bin - Run the wallet using pivxd command
./pivxd - Let it run for a few minutes and open another terminal to use pivx-cli commands for staking. The first command to ensure your wallet is running, the second command will unlock your wallet for staking. Use extreme large number for timeout so your wallet will not be locked
./pivx-cli getinfo
./pivx-cli walletpassphrase [YOUR PASSPHRASE] 999999999 true - Run ./pivx-cli getinfo again in few hours to make sure the staking status is "Staking Active". This is because staking require 101 confirmation.
Enjoy and let me know if any above is incorrect. Hope this helps