All commands should be executed in the
/home/pi folder, unless the guide says otherwise.
To see the current folder you are in, type
To go back to
/home/pi from any other folder, type
Whenever you are in the home folder the prompt will appear as
Install some packages we will need
Stratis requires some extra software to run properly. You can install these as follows:
sudo apt-get install -f build-essential git g++ libtool make unzip wget libboost-all-dev libssl-dev libdb++-dev libdb5.3++-dev libdb5.3-dev libminiupnpc-dev libqrencode-dev -y
This will take about 20 minutes.
Download Stratis source code
Step 1) Download the Source:
This is done with the command
git clone https://github.com/stratisproject/stratisX.git
This will download the source code into a new directory named
stratisX within your current folder. Thus, if at the prompt you are in
pi@raspberry:~$ then stratis will be in
/home/pi/stratisX. You can also see this by typing
ls and press enter
Step 2) Enter the Stratis Directory
Go into the new directory by typing
Now for the fun part building your new wallet !
Build the Stratis Wallet
Step 1) Check Version and Execute the Make Command to Build stratisd
Check you're on the latest version of Stratis:
git pull then
If all is good, you should get the outputs: "Already up-to-date" and "Your branch is up-to-date with 'origin/master'"
git checkout master
Next, we build the wallet This is literally a one step operation by running the following command:
cd src && make -f makefile.unix
This will take about 30-40 minutes ... if you're a nerd like me you might enjoy watching the jargon of code flying by the screen like watching the matrix, or grab a coffee or two and read up on whats ahead.
**Note: If you are building a wallet after updating the source code (Updating Stratis), you will need to clean the old build files first! Please do this with:
Step 2) Shrink That Wallet !
After the build is done run
strip stratisd. This will trim debugging information and other unnecessary data from the executable. Also the program will take up less space as well (by a few megabytes)
Step 3) Global Execution
Place your new wallet in a system folder which will allow you to start stratisd from anywhere on your pi:
sudo mv stratisd /usr/bin
Follow these instructions on how to run your Stratis wallet !