Installing Neos QT Wallet on Raspberry Pi Raspbian


#1

From a fresh Raspbian build, the first thing we need to do is make sure all of your localizations are set. Then we need to increase the swapfile size because compiling the wallet will fail with the default 100Mb.
open a terminal and enter:

sudo nano /etc/etc/dphys-swapfile

Find the line that says:

CONF_SWAPSIZE=100

Change this line to:

CONF_SWAPSIZE=1024

Use Ctrl+X to exit, and Y at the prompt to save the changes.
Now we need to restart the dphys-swapfile by with:

sudo /etc/init.d/dphys-swapfile stop
Then:
sudo /etc/init.d/dphys-swapfile start

Verify that the dphys-swapfile is set to 1Gb by entering:

free -m
Now Let us get to business! From this point forward I found it is best to do all work within one terminal window from start to finish. Start by using the cd command to get to the home directory, then we will do an update and upgrade:

sudo apt-get update

Once complete:

sudo apt-get upgrade

Make sure to press Y and ENTER to start the upgrade.

Now we will install dependency packages that are needed by the later qt packages:

sudo apt-get install git build-essential libtool autotools-dev autoconf pkg-config libssl-dev libcrypto+±dev libevent-dev libminiupnpc-dev libgmp-dev libboost-all-dev devscripts libdb+±dev libsodium-dev

Press Y and ENTER when prompted to install. If there are errors when installing these packages, run ‘sudo apt-get upgrade’ again. Only move on once these packages are successfully installed.

Now to install the QT dependencies packages:

sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libcrypto+±dev libminiupnpc-dev qt5-default

Same as above, press Y and ENTER to install. If there are errors, check that it is all typed in as above. If errors still, check the Major dependencies packages all installed properly. Re-install Major dependencies package again if need be, it will not hurt anything if you do. Only move forward once everything is installed properly.

Now we need to create 'bitcoin.list’ with a link to the bitcoin PPA files for compiling, so first navigate to where it needs to be:

cd /etc/apt/sources.list.d/

Now we create the file with:

sudo nano bitcoin.list

In the file, add the line:

deb-src http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu artful main

Ctrl+X to exit, and press Y to save

Now we need to retrieve the necessary keys to use the bitcoin PPA files:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv C70EF1F0305A1ADB9986DBD8D46F45428842CE5E

Now to get the bitcoin PPA files:

sudo apt-get update

Now we need to do something that some may find issue with. We need to down rev on the SSL library to a previous version, but this version we will be using is susceptible to the heartbleed exploit. First we need to go to our home directory, and remove the current SSL Library:

cd && sudo apt-get remove libssl-dev

Now we need to change the pointer in 'sources.list’ to the older Raspbian Jessie version:

sudo nano /etc/apt/sources.list

Comment out the line that points to Stretch by placing # at the start of the line. Then we enter the line to point to jessie:

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi

Ctrl+X to exit, and press Y to save

Now we need to load the files from jessie and install the SSL library we want:

sudo apt-get update

sudo apt-get install libssl-dev

Press Y and Enter to install when prompted. If you get errors, the pointer was typed in wrong in the ‘sources.list’ file. Do the last 2 steps again after correcting it.

Now with that all out of the way we get to do what we came to do! First navigate to the home directory again with 'cd’, and then we can get clone the Neos wallet source (don’t do this in any other directories, as the compiler will not work):

cd

git clone https://github.com/neoscoin/neos-core

This will get all of the Neos wallet source files, and place them in a new folder “neos-core” in the home directory, but verify it is there with ‘ls’, and then navigate to that folder after switching to root user:

ls

sudo -i

cd /home/pi/neos-core/

And now we do the magic!

sudo qmake && sudo make

Now go out and do something, or go to bed… This is going to take a while!
When you are put back out to the terminal waiting for commands you are done…if you had no errors. Now let us launch the wallet:

./neoscoin-qt

Yay! now make a shortcut to the desktop for easy access:

cp neoscoin-qt /home/pi/Desktop

Now you can go and follow the first the steps at the start to return ‘CONF_SWAPSIZE=1024’ back to ‘CONF_SWAPSIZE=100’ in the dphys-swapfile configuration file. Stop and Start swap file again.