Update tor to version 4.2.5
This commit is contained in:
parent
dd0c53bea0
commit
a6b8a7a2a9
|
@ -26,7 +26,7 @@ apt-get -y install pv sysstat network-manager unzip pkg-config libfreetype6-dev
|
||||||
apt-get -y install libatlas-base-dev libffi-dev libssl-dev glances python3-bottle
|
apt-get -y install libatlas-base-dev libffi-dev libssl-dev glances python3-bottle
|
||||||
apt-get -y -qq install apt-transport-https ca-certificates
|
apt-get -y -qq install apt-transport-https ca-certificates
|
||||||
apt-get -y install libgmp-dev automake libtool libltdl-dev libltdl7
|
apt-get -y install libgmp-dev automake libtool libltdl-dev libltdl7
|
||||||
apt-get -y install xorg chromium openbox lightdm openjdk-11-jre
|
apt-get -y install xorg chromium openbox lightdm openjdk-11-jre libevent-dev
|
||||||
|
|
||||||
# Make sure some software is removed
|
# Make sure some software is removed
|
||||||
apt-get -y purge ntp # (conflicts with systemd-timedatectl)
|
apt-get -y purge ntp # (conflicts with systemd-timedatectl)
|
||||||
|
@ -92,9 +92,9 @@ if [ -f $BTC_UPGRADE_URL_FILE ]; then
|
||||||
fi
|
fi
|
||||||
if [ "$CURRENT" != "$BTC_UPGRADE_URL" ]; then
|
if [ "$CURRENT" != "$BTC_UPGRADE_URL" ]; then
|
||||||
# Download and install Bitcoin
|
# Download and install Bitcoin
|
||||||
rm -rf /tmp/download
|
rm -rf /opt/download
|
||||||
mkdir -p /tmp/download
|
mkdir -p /opt/download
|
||||||
cd /tmp/download
|
cd /opt/download
|
||||||
|
|
||||||
wget $BTC_UPGRADE_URL
|
wget $BTC_UPGRADE_URL
|
||||||
wget $BTC_UPGRADE_SHA256SUM_URL -O SHA256SUMS.asc
|
wget $BTC_UPGRADE_SHA256SUM_URL -O SHA256SUMS.asc
|
||||||
|
@ -135,9 +135,9 @@ if [ -f $LND_UPGRADE_URL_FILE ]; then
|
||||||
fi
|
fi
|
||||||
if [ "$CURRENT" != "$LND_UPGRADE_URL" ]; then
|
if [ "$CURRENT" != "$LND_UPGRADE_URL" ]; then
|
||||||
# Download and install LND
|
# Download and install LND
|
||||||
rm -rf /tmp/download
|
rm -rf /opt/download
|
||||||
mkdir -p /tmp/download
|
mkdir -p /opt/download
|
||||||
cd /tmp/download
|
cd /opt/download
|
||||||
|
|
||||||
wget $LND_UPGRADE_URL
|
wget $LND_UPGRADE_URL
|
||||||
wget $LND_UPGRADE_MANIFEST_URL
|
wget $LND_UPGRADE_MANIFEST_URL
|
||||||
|
@ -317,9 +317,9 @@ if [ -f $LNDCONNECT_UPGRADE_URL_FILE ]; then
|
||||||
CURRENT=$(cat $LNDCONNECT_UPGRADE_URL_FILE)
|
CURRENT=$(cat $LNDCONNECT_UPGRADE_URL_FILE)
|
||||||
fi
|
fi
|
||||||
if [ "$CURRENT" != "$LNDCONNECT_UPGRADE_URL" ]; then
|
if [ "$CURRENT" != "$LNDCONNECT_UPGRADE_URL" ]; then
|
||||||
rm -rf /tmp/download
|
rm -rf /opt/download
|
||||||
mkdir -p /tmp/download
|
mkdir -p /opt/download
|
||||||
cd /tmp/download
|
cd /opt/download
|
||||||
wget $LNDCONNECT_UPGRADE_URL -O lndconnect.tar.gz
|
wget $LNDCONNECT_UPGRADE_URL -O lndconnect.tar.gz
|
||||||
tar -xvf lndconnect.tar.gz
|
tar -xvf lndconnect.tar.gz
|
||||||
rm lndconnect.tar.gz
|
rm lndconnect.tar.gz
|
||||||
|
@ -345,31 +345,30 @@ if [ ! -f /usr/bin/ngrok ]; then
|
||||||
cp ngrok /usr/bin/
|
cp ngrok /usr/bin/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: Make sure to setup new service and stop installing the repo's tor
|
|
||||||
# Install recent version of tor
|
# Install recent version of tor
|
||||||
# echo "Installing tor..."
|
echo "Installing tor..."
|
||||||
# TOR_UPGRADE_URL=https://dist.torproject.org/tor-0.4.2.5.tar.gz
|
TOR_UPGRADE_URL=https://dist.torproject.org/tor-0.4.2.5.tar.gz
|
||||||
# TOR_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.tor_url
|
TOR_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.tor_url
|
||||||
# CURRENT=""
|
CURRENT=""
|
||||||
# if [ -f $TOR_UPGRADE_URL_FILE ]; then
|
if [ -f $TOR_UPGRADE_URL_FILE ]; then
|
||||||
# CURRENT=$(cat $TOR_UPGRADE_URL_FILE)
|
CURRENT=$(cat $TOR_UPGRADE_URL_FILE)
|
||||||
# fi
|
fi
|
||||||
# if [ "$CURRENT" != "$TOR_UPGRADE_URL" ]; then
|
if [ "$CURRENT" != "$TOR_UPGRADE_URL" ]; then
|
||||||
# rm -rf /tmp/download
|
rm -rf /opt/download
|
||||||
# mkdir -p /tmp/download
|
mkdir -p /opt/download
|
||||||
# cd /tmp/download
|
cd /opt/download
|
||||||
# wget $TOR_UPGRADE_URL -O tor.tar.gz
|
wget $TOR_UPGRADE_URL -O tor.tar.gz
|
||||||
# tar -xvf tor.tar.gz
|
tar -xvf tor.tar.gz
|
||||||
# rm tor.tar.gz
|
rm tor.tar.gz
|
||||||
# mv tor-* tor
|
mv tor-* tor
|
||||||
|
|
||||||
# cd tor
|
cd tor
|
||||||
# ./configure
|
./configure
|
||||||
# make
|
make
|
||||||
# make install
|
make install
|
||||||
|
|
||||||
# echo $TOR_UPGRADE_URL > $TOR_UPGRADE_URL_FILE
|
echo $TOR_UPGRADE_URL > $TOR_UPGRADE_URL_FILE
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Enable any new/required services
|
# Enable any new/required services
|
||||||
|
@ -381,6 +380,7 @@ systemctl enable docker_images
|
||||||
systemctl enable glances
|
systemctl enable glances
|
||||||
systemctl enable netdata
|
systemctl enable netdata
|
||||||
systemctl enable webssh2
|
systemctl enable webssh2
|
||||||
|
systemctl enable tor
|
||||||
|
|
||||||
# Disable any old services
|
# Disable any old services
|
||||||
systemctl disable hitch
|
systemctl disable hitch
|
||||||
|
|
|
@ -94,7 +94,7 @@ apt-get -y install pv sysstat network-manager rsync parted unzip pkg-config
|
||||||
apt-get -y install libfreetype6-dev libpng-dev libatlas-base-dev libgmp-dev libltdl-dev
|
apt-get -y install libfreetype6-dev libpng-dev libatlas-base-dev libgmp-dev libltdl-dev
|
||||||
apt-get -y install libffi-dev libssl-dev glances python3-bottle automake libtool libltdl7
|
apt-get -y install libffi-dev libssl-dev glances python3-bottle automake libtool libltdl7
|
||||||
apt -y -qq install apt-transport-https ca-certificates
|
apt -y -qq install apt-transport-https ca-certificates
|
||||||
apt-get -y install xorg chromium openbox lightdm openjdk-11-jre
|
apt-get -y install xorg chromium openbox lightdm openjdk-11-jre libevent-dev
|
||||||
|
|
||||||
|
|
||||||
# Make sure some software is removed
|
# Make sure some software is removed
|
||||||
|
@ -130,8 +130,8 @@ curl https://keybase.io/suheb/pgp_keys.asc | gpg --import
|
||||||
# Update python3 to 3.7.X
|
# Update python3 to 3.7.X
|
||||||
PYTHON3_VERSION=$(python3 --version)
|
PYTHON3_VERSION=$(python3 --version)
|
||||||
if [[ "$PYTHON3_VERSION" != *"Python 3.7"* ]]; then
|
if [[ "$PYTHON3_VERSION" != *"Python 3.7"* ]]; then
|
||||||
mkdir -p /tmp/download
|
mkdir -p /opt/download
|
||||||
cd /tmp/download
|
cd /opt/download
|
||||||
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
|
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
|
||||||
tar xf Python-3.7.2.tar.xz
|
tar xf Python-3.7.2.tar.xz
|
||||||
cd Python-3.7.2
|
cd Python-3.7.2
|
||||||
|
@ -212,9 +212,9 @@ if [ -f $BTC_UPGRADE_URL_FILE ]; then
|
||||||
fi
|
fi
|
||||||
if [ "$CURRENT" != "$BTC_UPGRADE_URL" ]; then
|
if [ "$CURRENT" != "$BTC_UPGRADE_URL" ]; then
|
||||||
# Download and install Bitcoin
|
# Download and install Bitcoin
|
||||||
rm -rf /tmp/download
|
rm -rf /opt/download
|
||||||
mkdir -p /tmp/download
|
mkdir -p /opt/download
|
||||||
cd /tmp/download
|
cd /opt/download
|
||||||
|
|
||||||
wget $BTC_UPGRADE_URL
|
wget $BTC_UPGRADE_URL
|
||||||
wget $BTC_UPGRADE_SHA256SUM_URL -O SHA256SUMS.asc
|
wget $BTC_UPGRADE_SHA256SUM_URL -O SHA256SUMS.asc
|
||||||
|
@ -254,9 +254,9 @@ if [ -f $LND_UPGRADE_URL_FILE ]; then
|
||||||
CURRENT=$(cat $LND_UPGRADE_URL_FILE)
|
CURRENT=$(cat $LND_UPGRADE_URL_FILE)
|
||||||
fi
|
fi
|
||||||
if [ "$CURRENT" != "$LND_UPGRADE_URL" ]; then
|
if [ "$CURRENT" != "$LND_UPGRADE_URL" ]; then
|
||||||
rm -rf /tmp/download
|
rm -rf /opt/download
|
||||||
mkdir -p /tmp/download
|
mkdir -p /opt/download
|
||||||
cd /tmp/download
|
cd /opt/download
|
||||||
|
|
||||||
wget $LND_UPGRADE_URL
|
wget $LND_UPGRADE_URL
|
||||||
wget $LND_UPGRADE_MANIFEST_URL
|
wget $LND_UPGRADE_MANIFEST_URL
|
||||||
|
@ -414,9 +414,9 @@ if [ -f $LNDCONNECT_UPGRADE_URL_FILE ]; then
|
||||||
CURRENT=$(cat $LNDCONNECT_UPGRADE_URL_FILE)
|
CURRENT=$(cat $LNDCONNECT_UPGRADE_URL_FILE)
|
||||||
fi
|
fi
|
||||||
if [ "$CURRENT" != "$LNDCONNECT_UPGRADE_URL" ]; then
|
if [ "$CURRENT" != "$LNDCONNECT_UPGRADE_URL" ]; then
|
||||||
rm -rf /tmp/download
|
rm -rf /opt/download
|
||||||
mkdir -p /tmp/download
|
mkdir -p /opt/download
|
||||||
cd /tmp/download
|
cd /opt/download
|
||||||
wget $LNDCONNECT_UPGRADE_URL -O lndconnect.tar.gz
|
wget $LNDCONNECT_UPGRADE_URL -O lndconnect.tar.gz
|
||||||
tar -xvf lndconnect.tar.gz
|
tar -xvf lndconnect.tar.gz
|
||||||
rm lndconnect.tar.gz
|
rm lndconnect.tar.gz
|
||||||
|
@ -441,6 +441,31 @@ if [ ! -f /usr/bin/ngrok ]; then
|
||||||
cp ngrok /usr/bin/
|
cp ngrok /usr/bin/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install recent version of tor
|
||||||
|
echo "Installing tor..."
|
||||||
|
TOR_UPGRADE_URL=https://dist.torproject.org/tor-0.4.2.5.tar.gz
|
||||||
|
TOR_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.tor_url
|
||||||
|
CURRENT=""
|
||||||
|
if [ -f $TOR_UPGRADE_URL_FILE ]; then
|
||||||
|
CURRENT=$(cat $TOR_UPGRADE_URL_FILE)
|
||||||
|
fi
|
||||||
|
if [ "$CURRENT" != "$TOR_UPGRADE_URL" ]; then
|
||||||
|
rm -rf /opt/download
|
||||||
|
mkdir -p /opt/download
|
||||||
|
cd /opt/download
|
||||||
|
wget $TOR_UPGRADE_URL -O tor.tar.gz
|
||||||
|
tar -xvf tor.tar.gz
|
||||||
|
rm tor.tar.gz
|
||||||
|
mv tor-* tor
|
||||||
|
|
||||||
|
cd tor
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
echo $TOR_UPGRADE_URL > $TOR_UPGRADE_URL_FILE
|
||||||
|
fi
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
|
|
||||||
|
|
||||||
|
@ -481,7 +506,6 @@ systemctl enable redis-server
|
||||||
systemctl enable tls_proxy
|
systemctl enable tls_proxy
|
||||||
systemctl enable https
|
systemctl enable https
|
||||||
systemctl enable rtl
|
systemctl enable rtl
|
||||||
#systemctl enable lnd_admin # REMOVED
|
|
||||||
systemctl enable tor
|
systemctl enable tor
|
||||||
systemctl enable invalid_block_check
|
systemctl enable invalid_block_check
|
||||||
systemctl enable usb_driver_check
|
systemctl enable usb_driver_check
|
||||||
|
|
Loading…
Reference in New Issue
Block a user