mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 12:54:19 +01:00
add cutom version electrum install
This commit is contained in:
@@ -3,6 +3,15 @@
|
|||||||
|
|
||||||
Start at <https://github.com/rootzoll/raspiblitz>
|
Start at <https://github.com/rootzoll/raspiblitz>
|
||||||
|
|
||||||
|
* ### [Electrum wallet](electrs/electrum_wallet.sh)
|
||||||
|
Download, verify and install the chosen version on a Linux desktop.
|
||||||
|
```
|
||||||
|
# Download
|
||||||
|
wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/electrs/electrum_wallet.sh
|
||||||
|
# Run
|
||||||
|
bash electrum_wallet.sh
|
||||||
|
```
|
||||||
|
|
||||||
* #### [Tor-to-IP tunnel service](tor2ip_tunnel.md)
|
* #### [Tor-to-IP tunnel service](tor2ip_tunnel.md)
|
||||||
Use the public IP address of a Virtual Private Server (VPS) to make Tor Hidden Services reachable on the clearnet.
|
Use the public IP address of a Virtual Private Server (VPS) to make Tor Hidden Services reachable on the clearnet.
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,39 @@
|
|||||||
# Download and run this script to the Linux desktop:
|
# Download and run this script to the Linux desktop:
|
||||||
# $ wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/electrs/4_electrum_install && bash 4_electrum_install.sh
|
|
||||||
|
|
||||||
# https://electrum.org/#download
|
# Download
|
||||||
# Install dependencies:
|
# wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/electrs/electrum_wallet.sh
|
||||||
sudo apt-get install -y python3-pyqt5
|
# Run:
|
||||||
# Download package:
|
# bash electrum_wallet.sh
|
||||||
wget https://download.electrum.org/3.3.8/Electrum-3.3.8.tar.gz
|
|
||||||
|
|
||||||
#Verify signature:
|
echo "
|
||||||
|
Enter the version of Electrum Wallet to install.
|
||||||
|
|
||||||
|
Find the latest version number at:
|
||||||
|
https://electrum.org/#download
|
||||||
|
|
||||||
|
For example: '3.3.8' or '4.0.0b0'"
|
||||||
|
read electrumVersion
|
||||||
|
|
||||||
|
echo "
|
||||||
|
Install dependencies: python3-pyqt5 and libsecp256k1-0
|
||||||
|
"
|
||||||
|
sudo apt-get install -y python3-pyqt5 libsecp256k1-0
|
||||||
|
|
||||||
|
echo "
|
||||||
|
Download the package:
|
||||||
|
https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz
|
||||||
|
"
|
||||||
|
rm -f Electrum-$electrumVersion.tar.gz.*
|
||||||
|
wget https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz
|
||||||
|
|
||||||
|
echo "
|
||||||
|
Verify signature
|
||||||
|
"
|
||||||
|
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/3.3.8/Electrum-3.3.8.tar.gz.asc
|
wget https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz.asc
|
||||||
verifyResult=$(gpg --verify Electrum-3.3.8.tar.gz.asc 2>&1)
|
verifyResult=$(gpg --verify Electrum-$electrumVersion.tar.gz.asc 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
|
||||||
@@ -20,34 +42,50 @@ if [ ${goodSignature} -lt 1 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run without installing: tar -xvf Electrum-3.3.8.tar.gz
|
echo "
|
||||||
# python3 Electrum-3.3.8/run_electrum
|
Installing with the command:
|
||||||
|
python3 -m pip install --user Electrum-$electrumVersion.tar.gz[fast]
|
||||||
|
"
|
||||||
|
# Run without installing: tar -xvf Electrum-$electrumVersion.tar.gz
|
||||||
|
# python3 Electrum-$electrumVersion/run_electrum
|
||||||
# Install with PIP:
|
# Install with PIP:
|
||||||
sudo apt-get install -y python3-setuptools python3-pip
|
sudo apt-get install -y python3-setuptools python3-pip
|
||||||
python3 -m pip install --user Electrum-3.3.8.tar.gz[fast]
|
python3 -m pip install --user Electrum-$electrumVersion.tar.gz[fast]
|
||||||
|
|
||||||
# add install dir to PATH (and make persist)
|
isInPath=$(echo $PATH | grep -c ~/.local/bin)
|
||||||
PATH=$PATH:~/.local/bin
|
if [ $isInPath -eq 0 ]; then
|
||||||
touch ~/.profile
|
echo ""
|
||||||
export PATH
|
echo "add install dir to PATH"
|
||||||
~/.profile
|
PATH=$PATH:~/.local/bin
|
||||||
|
touch ~/.profile
|
||||||
|
export PATH
|
||||||
|
echo "PATH=$PATH" | tee -a ~/.profile
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
echo "The install dir is already in the PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Type the LAN IP ADDRESS of your RaspiBlitz followed by [ENTER]:"
|
echo "
|
||||||
|
To start use:
|
||||||
|
'electrum --oneserver --server YOUR_ELECTRUM_SERVER_IP:50002:s'
|
||||||
|
|
||||||
|
To start with your custom server now and save the setting:
|
||||||
|
type the LAN_IP_ADDRESS of your Electrum Server followed by [ENTER]:"
|
||||||
read RASPIBLITZ_IP
|
read RASPIBLITZ_IP
|
||||||
|
|
||||||
# Make Electrum config persist (editing ~/.electrum/config)
|
echo "
|
||||||
# sudo nano ~/.electrum/config
|
Make the oneserver config persist (editing ~/.electrum/config)
|
||||||
# "rpcuser": "raspibolt",
|
"
|
||||||
# "server": "192.168.1.239:50001:t",
|
|
||||||
electrum setconfig oneserver true
|
electrum setconfig oneserver true
|
||||||
electrum setconfig server $RASPIBLITZ_IP:50001:t
|
electrum setconfig server $RASPIBLITZ_IP:50002:s
|
||||||
|
|
||||||
electrum --oneserver --server $RASPIBLITZ_IP:50001:t
|
echo "
|
||||||
|
To run with the chosen server, just use:
|
||||||
|
'electrum'
|
||||||
|
|
||||||
echo "To start again: run \`electrum\` in the terminal."
|
To change the preset server:
|
||||||
|
edit the file ~/.electrum/config and change:
|
||||||
|
\"server\": \"<your__ IP_domain_or_dynDNS>:50002:s\"
|
||||||
|
"
|
||||||
|
|
||||||
echo "To connect through SSL:"
|
electrum --oneserver --server $RASPIBLITZ_IP:50002:s
|
||||||
echo "Run: \`electrum --oneserver --server $YOUR_DOMAIN:50002:s\`"
|
|
||||||
echo "edit ~/.electrum/config: \"server\": \"<your_domain_or_dynDNS>:50002:s\""
|
|
||||||
|
|
||||||
electrum --oneserver --server $RASPIBLITZ_IP:50001:t
|
|
||||||
Reference in New Issue
Block a user