Raspberry Pi 4 Setup

Commands list to manually compile and install all libraries and dependencies for your Scrypta wallet on Raspberry PI 4

Following you will find the complete workaround with all commands to manually compile and install all libraries and dependencies for your Scrypta wallet on Raspberry PI 4. Alternatively you can follow the guide for the installation of the Scrypta OS image file that you can find below.

For a step-by-step manual installation, proceed opening terminal and give the following commands:

sudo apt-get update && sudo apt-get upgrade

After this command, the Rasp will ask for reboot. Proceed rebooting your Raspberry.

When restarting, type the following commands from Terminal:

sudo apt-get install -y pkg-config
sudo apt-get install -y software-properties-common python-software-properties
wget https://raw.githubusercontent.com/scryptachain/scrypta-os/master/script/add-apt-repository.sh
sudo mv add-apt-repository.sh /usr/bin/add-apt-repository
sudo chmod +x /usr/bin/add-apt-repository
sudo add-apt-repository -y ppa:bitcoin/bitcoin
sudo apt-get -y install build-essential autoconf automake libtool libboost-all-dev libboost-program-options-dev libssl1.0-dev
sudo apt-get -y install libleveldb-dev libgmp-dev libgmp3-dev libcurl4-openssl-dev libcrypto++-dev libqrencode-dev
sudo apt-get -y libminiupnpc-dev autogen libtool libevent-dev libprotobuf-dev protobuf-compiler
sudo apt-get -y install curl g++ git git-core faketime bsdmainutils mingw-w64 g++-mingw-w64 nsis zip ca-certificates python
sudo apt-get -y install libgmp-dev libssl-dev libcurl4-openssl-dev
sudo apt-get -y install qtbase5-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libzmq3-dev
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
sudo make -j2
sudo make install
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.so
cd

Restart your Raspberry again and type the following commands after reboot:

git clone https://github.com/scryptachain/scrypta
cd lyra
sudo chmod +x share/genbuild.sh
sudo chmod +x autogen.sh
sudo chmod 755 src/leveldb/build_detect_platform
./autogen.sh
sudo ./configure --with-gui=qt5 --with-libressl --disable-sse2 CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2" LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib"
sudo make -j4

Compliments! Now you can start the Lyra Wallet - Qt on your Raspberry 4.

Guide for Raspberry PI4 installation with file image

The image file for your Raspberry PI4 is based on Raspbian Debian Buster with all libraries already installed and a working wallet. You can burn the file image on your SD card following our installation guide.

This resource explains how to install a Raspberry Pi operating system image on an SD card. You will need another computer with an SD card reader to install the image.

Download the image and write it to your SD card

Scrypta official image file is available to download from the Scrypta official server.

You will need to use an image writing tool to install the image you have downloaded on your SD card.

BalenaEtcher is a graphical SD card writing tool that works on Mac OS, Linux and Windows, and is the easiest option for most users. balenaEtcher also supports writing images directly from the zip file, without any unzipping required.

To write your image with balenaEtcher:

  • Download the latest version of balenaEtcher and install it.

  • Connect an SD card reader with the SD card inside.

  • Open balenaEtcher and select from your hard drive the Scrypta .img file you wish to write to the SD card.

  • Select the SD card you wish to write your image to.

  • Review your selections and click 'Flash!' to begin writing data to the SD card.

Wait until the process is complete, then insert the SD Card to the Raspberry PI 4.

Please note: for users security reasons, the wallet installed on your system come without wallet.dat file to ensure users that nobody have private keys of your wallet. The wallet.dat file will be generated when you launch the wallet for the first time.