mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 09:50:19 +01:00
btcpay: update to v1.0.5.2, nbxplorer: v2.1.34
This commit is contained in:
parent
532f4d6faf
commit
9c23863fa3
@ -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 !!!"
|
||||
|
@ -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
|
||||
|
||||
|
91
home.admin/config.scripts/bonus.electrumwallet.sh
Normal file
91
home.admin/config.scripts/bonus.electrumwallet.sh
Normal 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
|
0
home.admin/config.scripts/ip2t.sh
Normal file
0
home.admin/config.scripts/ip2t.sh
Normal file
Loading…
Reference in New Issue
Block a user