raspiblitz / raspiblitz

Get your own Bitcoin & Lightning Node running - on a RaspberryPi with a nice LCD
MIT License
2.41k stars 516 forks source link

add Sparrow (Terminal) #3391

Closed vv01f closed 1 year ago

vv01f commented 1 year ago

s.a. https://github.com/sparrowwallet/sparrow/releases/tag/1.7.0

maybe brings whirlpool to raspiblitz?

openoms commented 1 year ago

YES!

# see https://sparrowwallet.com/download/ for the latest
VERSION=1.7.6
# for RPi: 1_arm64 # for PC: 1_amd64
CPU=1_arm64
# download
wget -O sparrow-server_$VERSION-$CPU.deb https://github.com/sparrowwallet/sparrow/releases/download/$VERSION/sparrow-server_$VERSION-$CPU.deb
wget -O sparrow-$VERSION-manifest.txt https://github.com/sparrowwallet/sparrow/releases/download/$VERSION/sparrow-$VERSION-manifest.txt
wget -O sparrow-$VERSION-manifest.txt.asc https://github.com/sparrowwallet/sparrow/releases/download/$VERSION/sparrow-$VERSION-manifest.txt.asc
# checksum check - look for 'OK'
sha256sum -c sparrow-$VERSION-manifest.txt --ignore-missing
# get PGP pubkey
curl https://keybase.io/craigraw/pgp_keys.asc | gpg --import
# signature check - look for Good signature from "Craig Raw <craigraw@gmail.com>"
gpg --verify sparrow-$VERSION-manifest.txt.asc

# install
sudo dpkg -i sparrow-server_$VERSION-$CPU.deb

# options
/opt/sparrow/bin/Sparrow --help

# start
/opt/sparrow/bin/Sparrow

image

The config file is in the home folder of the user started Sparrow (default is admin):

/home/admin/.sparrow/config

Example after the first run with the local Tor proxy set:

cat .sparrow/config
{
  "mode": "ONLINE",
  "loadRecentWallets": true,
  "validateDerivationPaths": true,
  "groupByAddress": true,
  "includeMempoolOutputs": true,
  "notifyNewTransactions": true,
  "checkNewVersions": true,
  "openWalletsInNewWindows": false,
  "hideEmptyUsedAddresses": false,
  "showTransactionHex": true,
  "showLoadingLog": true,
  "showAddressTransactionCount": false,
  "showDeprecatedImportExport": false,
  "preventSleep": true,
  "dustAttackThreshold": 1000,
  "enumerateHwPeriod": 30,
  "serverType": "ELECTRUM_SERVER",
  "electrumServer": "tcp://192.168.3.170:50021",
  "recentElectrumServers": [
    "tcp://192.168.3.170:50021"
  ],
  "useProxy": true,
  "proxyServer": "127.0.0.1:9050",
  "maxServerTimeout": 34,
  "maxPageSize": 100,
  "usePayNym": false,
  "sameAppMixing": false
}

EDIT: added to config:"preventSleep": true, added VERSION and CPU variables

Sep21-2009 commented 1 year ago

Change "preventSleep": false, to "preventSleep": true,

openoms commented 1 year ago

A guide with screenshots and using tmux: https://sovrnbitcoiner.com/an-iphone-enters-the-poolside-chat/