electrum wallet: fix filenames for verification

This commit is contained in:
openoms
2021-07-28 22:18:20 +01:00
parent 50225abb8b
commit 3cfe0293d5

View File

@@ -1,4 +1,4 @@
# Download and run this script to the Linux desktop: # Download and run this script on a DEbian / Ubuntu desktop:
# Download # Download
# wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/electrs/electrum_wallet.sh # wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/electrs/electrum_wallet.sh
@@ -6,37 +6,35 @@
# bash electrum_wallet.sh # bash electrum_wallet.sh
echo " echo "
Enter the version of Electrum Wallet to install. # Enter the version of Electrum Wallet to install.
Find the latest version number at: # Find the latest version number at:
https://electrum.org/#download # https://electrum.org/#download
For example: # For example:
4.1.2 4.1.5"
or
4.0.0b0"
read electrumVersion read electrumVersion
echo " echo "
Install dependencies: python3-pyqt5 and libsecp256k1-0 # Install dependencies: python3-pyqt5 and libsecp256k1-0
" "
sudo apt-get install -y python3-pyqt5 libsecp256k1-0 sudo apt-get install -y python3-pyqt5 libsecp256k1-0
echo " echo "
Download the package: # Download the package:
https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz # https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz
" "
rm -f Electrum-$electrumVersion.tar.gz.* rm -f Electrum-$electrumVersion.tar.gz.*
wget https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz wget https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz
echo " echo "
Verify signature # Verify signature
" "
rm -f ThomasV.asc rm -f ThomasV.asc
wget https://raw.githubusercontent.com/spesmilo/electrum/master/pubkeys/ThomasV.asc wget https://raw.githubusercontent.com/spesmilo/electrum/master/pubkeys/ThomasV.asc
gpg --import ThomasV.asc gpg --import ThomasV.asc
wget https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz.asc wget https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz.ThomasV.asc
verifyResult=$(gpg --verify Electrum-$electrumVersion.tar.gz.asc 2>&1) verifyResult=$(gpg --verify Electrum-$electrumVersion.tar.gz.ThomasV.asc Electrum-$electrumVersion.tar.gz 2>&1)
goodSignature=$(echo ${verifyResult} | grep 'Good signature' -c) goodSignature=$(echo ${verifyResult} | grep 'Good signature' -c)
echo "goodSignature(${goodSignature})" echo "goodSignature(${goodSignature})"
if [ ${goodSignature} -lt 1 ]; then if [ ${goodSignature} -lt 1 ]; then
@@ -46,8 +44,8 @@ if [ ${goodSignature} -lt 1 ]; then
fi fi
echo " echo "
Installing with the command: # Installing with the command:
python3 -m pip install --user Electrum-$electrumVersion.tar.gz[fast] # python3 -m pip install --user Electrum-$electrumVersion.tar.gz[fast]
" "
# Run without installing: tar -xvf Electrum-$electrumVersion.tar.gz # Run without installing: tar -xvf Electrum-$electrumVersion.tar.gz
# python3 Electrum-$electrumVersion/run_electrum # python3 Electrum-$electrumVersion/run_electrum
@@ -83,12 +81,14 @@ electrum setconfig oneserver true
electrum setconfig server $RASPIBLITZ_IP:50002:s electrum setconfig server $RASPIBLITZ_IP:50002:s
echo " echo "
To run with the chosen server, just use: # To run with the chosen server, just use:
'electrum' 'electrum'
To change the preset server: # To change the preset server:
edit the file ~/.electrum/config and change: # edit the file ~/.electrum/config and change:
\"server\": \"<your__ IP_domain_or_dynDNS>:50002:s\" \"server\": \"<your__ IP_domain_or_dynDNS>:50002:s\"
# or
\"server\": \"toraddress.onion:50001:t\"
" "
electrum --oneserver --server $RASPIBLITZ_IP:50002:s electrum --oneserver --server $RASPIBLITZ_IP:50002:s