btcpay: update to v1.0.5.2, nbxplorer: v2.1.34

This commit is contained in:
openoms 2020-07-01 11:55:48 +01:00
parent 532f4d6faf
commit 9c23863fa3
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65
4 changed files with 95 additions and 3 deletions

View File

@ -170,6 +170,7 @@ if [ -f "/usr/bin/python3.7" ]; then
elif [ -f "/usr/bin/python3.8" ]; then
# use python 3.8 if available
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
sudo ln -s /usr/bin/python3.8 /usr/bin/python3.7
echo "python calls python3.8"
else
echo "!!! FAIL !!!"

View File

@ -275,7 +275,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
sudo -u btcpay git clone https://github.com/dgarage/NBXplorer.git 2>/dev/null
cd NBXplorer
# check https://github.com/dgarage/NBXplorer/releases
sudo -u btcpay git reset --hard v2.1.24
sudo -u btcpay git reset --hard v2.1.34
# from the build.sh with path
sudo -u btcpay /home/btcpay/dotnet/dotnet build -c Release NBXplorer/NBXplorer.csproj
@ -350,9 +350,9 @@ EOF
sudo -u btcpay git clone https://github.com/btcpayserver/btcpayserver.git 2>/dev/null
cd btcpayserver
# check https://github.com/btcpayserver/btcpayserver/releases
# sudo -u btcpay git reset --hard v1.0.4.2
sudo -u btcpay git reset --hard v1.0.5.2
# use latest commit (v1.0.4.4+) to fix build with latest dotNet
sudo -u btcpay git checkout f2bb24f6ab6d402af8214c67f84e08116eb650e7
# sudo -u btcpay git checkout f2bb24f6ab6d402af8214c67f84e08116eb650e7
# from the build.sh with path
sudo -u btcpay /home/btcpay/dotnet/dotnet build -c Release /home/btcpay/btcpayserver/BTCPayServer/BTCPayServer.csproj

View File

@ -0,0 +1,91 @@
# Download and run this script to the Linux desktop:
# Download
# wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/electrs/electrum_wallet.sh
# Run:
# bash electrum_wallet.sh
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
gpg --import ThomasV.asc
wget https://download.electrum.org/$electrumVersion/Electrum-$electrumVersion.tar.gz.asc
verifyResult=$(gpg --verify Electrum-$electrumVersion.tar.gz.asc 2>&1)
goodSignature=$(echo ${verifyResult} | grep 'Good signature' -c)
echo "goodSignature(${goodSignature})"
if [ ${goodSignature} -lt 1 ]; then
echo ""
echo "!!! BUILD FAILED --> PGP Verify not OK / signature(${goodSignature})"
exit 1
fi
echo "
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:
sudo apt-get install -y python3-setuptools python3-pip
python3 -m pip install --user Electrum-$electrumVersion.tar.gz[fast]
isInPath=$(echo $PATH | grep -c ~/.local/bin)
if [ $isInPath -eq 0 ]; then
echo ""
echo "add install dir to PATH"
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 "
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
echo "
Make the oneserver config persist (editing ~/.electrum/config)
"
electrum setconfig oneserver true
electrum setconfig server $RASPIBLITZ_IP:50002:s
echo "
To run with the chosen server, just use:
'electrum'
To change the preset server:
edit the file ~/.electrum/config and change:
\"server\": \"<your__ IP_domain_or_dynDNS>:50002:s\"
"
electrum --oneserver --server $RASPIBLITZ_IP:50002:s

View File