From 9358fbba1f3a26df30f125e09a479d2e1ae86af7 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Wed, 9 Oct 2019 21:50:07 -0500 Subject: [PATCH] Add ngrok for debugging --- CHANGELOG | 4 ++++ rootfs/standard/usr/bin/mynode_post_upgrade.sh | 13 ++++++++++++- setup/setup_device.sh | 15 ++++++++++++++- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index afb6be36..3b53ec9b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +=== v0.1.51 === +- Logging and RAM tweaks for Rock64 +- Add ngrok for debugging + === v0.1.50 === - Big fixes for myNode VM (still beta) - Display footer on status page diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index 07e10260..f3647894 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -11,7 +11,7 @@ systemctl stop quicksync systemctl stop bitcoind # Install any new software -apt -y install pv sysstat network-manager +apt -y install pv sysstat network-manager unzip # Install any pip software pip install tzupdate @@ -138,6 +138,17 @@ if [ "$CURRENT" != "$BTCRPCEXPLORER_UPGRADE_URL" ]; then echo $BTCRPCEXPLORER_UPGRADE_URL > $BTCRPCEXPLORER_UPGRADE_URL_FILE fi +# Install ngrok for debugging +if [ ! -f /usr/bin/ngrok ]; then + cd /tmp + NGROK_URL=https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip + if [ $IS_X86 = 1 ]; then + NGROK_URL=https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip + fi + wget $NGROK_URL + unzip ngrok-*.zip + cp ngrok /usr/bin/ +fi # Enable any new/required services systemctl enable firewall diff --git a/setup/setup_device.sh b/setup/setup_device.sh index 835ec00e..dd0bbbbb 100755 --- a/setup/setup_device.sh +++ b/setup/setup_device.sh @@ -52,7 +52,7 @@ apt-get -y install clang hitch zlib1g-dev libffi-dev file toilet ncdu apt-get -y install toilet-fonts avahi-daemon figlet libsecp256k1-dev apt-get -y install inotify-tools libssl-dev tor tmux screen apt-get -y install python-grpcio python3-grpcio -apt-get -y install pv sysstat network-manager rsync parted +apt-get -y install pv sysstat network-manager rsync parted unzip # Install other things without recommendation @@ -308,6 +308,19 @@ if [ "$CURRENT" != "$LNDCONNECT_UPGRADE_URL" ]; then echo $LNDCONNECT_UPGRADE_URL > $LNDCONNECT_UPGRADE_URL_FILE fi + +# Install ngrok for debugging +if [ ! -f /usr/bin/ngrok ]; then + cd /tmp + NGROK_URL=https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip + if [ $IS_X86 = 1 ]; then + NGROK_URL=https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip + fi + wget $NGROK_URL + unzip ngrok-*.zip + cp ngrok /usr/bin/ +fi + #########################################################