Tutorial — How to install Beam on your Raspberry Pi

Preface

Preparations

sudo geany /etc/dphys-swapfile
sudo dphys-swapfile setup
sudo dphys-swapfile swapoff
sudo dphys-swapfile uninstall

How to Build the CLI Node and Wallet

sudo apt-get install git
sudo apt-get install cmake
sudo apt-get install libboost-all-dev
sudo apt-get install openssl
git clone https://github.com/BeamMW/beam.git
cd beam
git checkout mainnet
cmake -DBEAM_NO_QT_UI_WALLET=1 -DARCH_NATIVE=1 . && make -j 3
./beam/beam-node
./wallet/beam-wallet

How to Install the CLI Node and Setup Autostart

sudo mkdir -p opt/beam
sudo chown pi:pi opt/beam
cp ~/beam/{beam/beam-node,wallet/beam-wallet} /opt/beam
mkdir -p ~/.local/share/beamcp ~/beam/{beam/beam-node.cfg,wallet/beam-wallet.cfg} ~/.local/share/beam
geany /home/pi/.bashrc
export PATH=/opt/beam:$PATHfunction BeamNode {
pushd ~/.local/share/beam
beam-node $@
popd
}
function BeamCLIWallet {
pushd ~/.local/share/beam
beam-node $@
popd
}
source ./.bashrc
geany /home/pi/.local/share/beam/beam-node.cfg
# peer=
peer=eu-nodes.mainnet.beam.mw:8100
fast_sync=1
sudo apt-get install tmux
geany /opt/beam/beam.cron
#!/bin/bash
sleep 5
/usr/bin/tmux new-session -d -s beamSession ‘/bin/bash’
/usr/bin/tmux send-keys -t beamSession “source /home/pi/.bashrc” C-m
/usr/bin/tmux send-keys -t beamSession “BeamNode” C-m
crontab -e
@reboot /opt/beam/beam.cron
tmux attach-session -t beamSession

How to Build and Install the GUI Wallet

sudo apt-get install qt5-default
sudo apt-get install qtdeclarative5-dev libqt5svg5-dev
sudo apt-get install qttools5-dev-tools qttools5-dev
sudo apt-get install qml-module-qtquick-controls qml-module-qtquick-controls2
rm ./CMakeCache.txt
cmake -DARCH_NATIVE=1 . && make -j 3
sudo mkdir -p /opt/beam
sudo cp ./ui/BeamWallet /opt/beam
sudo cp ./ui/icons/beam_mainnet.png /usr/share/pixmaps/
sudo geany /usr/share/applications/BeamWallet.desktop
[Desktop Entry]
Name=Beam Wallet
Comment=GUI Wallet for BEAM MW Mainnet
Icon=/usr/share/pixmaps/beam_mainnet.png
Exec=/opt/beam/BeamWallet
Type=Application
Encoding=UTF-8
Terminal=false
Categories=Network;
lxpanelctl restart
2346a827cb56ca74e34680593e50d7b1fa4a169332415a1d5984c6f874395c3684b

Mining software developer