搭配 Zingo 的 RPi5 Zebra lightwalletd
视频教程
依赖项
Code-highlight
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt install libclang-dev clang pkg-config openssl protobuf-compiler npm
编译 Zebra
Zebra GitHub
time cargo install --git https://github.com/ZcashFoundation/zebra --tag v3.1.0 zebrad
配置 zebrad.toml
添加:
listen_addr = '127.0.0.1:8232'
cache_dir = "/media/zebra5/zebra/"
同步 Zebra
编译 lightwalletd
Code-highlight
wget https://go.dev/dl/go1.25.5.linux-arm64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.25.5.linux-arm64.tar.gz go/
export PATH=$PATH:/usr/local/go/bin
Code-highlight
git clone https://github.com/zcash/lightwalletd
cd lightwalletd
make
make install
export PATH=$PATH:~/go/bin
同步 lightwalletd
安装 NodeJS
Code-highlight
curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh
sudo -E bash nodesource_setup.sh
sudo apt update
sudo apt install nodejs
如果你遇到任何错误,这里有一些安装 NodeJS 的替代方法。
安装 Yarn
corepack enable
安装 Zingo
Code-highlight
git clone https://github.com/zingolabs/zingo-pc.git
cd zingo-pc
yarn install
sudo apt install libopenjp2-tools protobuf-compiler openssl libssl-dev libfuse2
export USE_SYSTEM_FPM="true"
sudo apt-get install ruby-dev build-essential && sudo gem i fpm -f
yarn dist:linux
启动 Zingo-PC
- 可以使用 appimage,或使用 unpacked 文件夹中的二进制文件
- 祝你使用愉快!:)
来源
Code-highlight
https://github.com/ZcashFoundation/zebra
https://github.com/zcash/lightwalletd
https://askubuntu.com/questions/1278447/installing-fpm-on-ubuntu-20-04
https://github.com/oxen-io/session-desktop/issues/1635
https://askubuntu.com/questions/1363783/cant-run-an-appimage-on-ubuntu-20-04
https://www.beekeeperstudio.io/blog/electron-apps-for-arm-and-raspberry-pi
https://github.com/electron-userland/electron-builder/issues/3901
https://askubuntu.com/questions/1278447/installing-fpm-on-ubuntu-20-04
https://yarnpkg.com/getting-started/install
https://pimylifeup.com/raspberry-pi-nodejs/
https://go.dev/dl/#stable
https://askubuntu.com/questions/1177492/openssl-installed-but-no-openssl-pc-needed-by-pkg-config