From e5af643ef187e16491fe8c1446d3c5e027c6f105 Mon Sep 17 00:00:00 2001 From: runbtc <143069848+runbtc@users.noreply.github.com> Date: Fri, 10 May 2024 14:53:09 -0700 Subject: [PATCH] Fix Tor install/config --- seednode/install_seednode_debian.sh | 4 +--- seednode/torrc | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/seednode/install_seednode_debian.sh b/seednode/install_seednode_debian.sh index d584a0e015..e3eb79798f 100755 --- a/seednode/install_seednode_debian.sh +++ b/seednode/install_seednode_debian.sh @@ -44,7 +44,7 @@ BITCOIN_RPC_PORT=8332 #BITCOIN_RPC_USER=foo #BITCOIN_RPC_PASS=bar -TOR_PKG="tor deb.torproject.org-keyring" +TOR_PKG="tor" TOR_USER=debian-tor TOR_GROUP=debian-tor TOR_HOME=/etc/tor @@ -65,8 +65,6 @@ sudo -H -i -u "${ROOT_USER}" git config --global advice.detachedHead false sudo -H -i -u "${ROOT_USER}" git clone --branch "${BISQ_REPO_TAG}" "${BISQ_REPO_URL}" "${ROOT_HOME}/${BISQ_REPO_NAME}" echo "[*] Installing Tor" -sudo -H -i -u "${ROOT_USER}" wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/tor-archive-keyring.gpg >/dev/null -echo "deb [arch=amd64 signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org focal main" | sudo -H -i -u "${ROOT_USER}" tee /etc/apt/sources.list.d/tor.list sudo -H -i -u "${ROOT_USER}" DEBIAN_FRONTEND=noninteractive apt-get update -q sudo -H -i -u "${ROOT_USER}" DEBIAN_FRONTEND=noninteractive apt-get install -qq -y ${TOR_PKG} diff --git a/seednode/torrc b/seednode/torrc index 5a1dc0d048..4026199b47 100644 --- a/seednode/torrc +++ b/seednode/torrc @@ -4,6 +4,7 @@ ControlPort 9051 Log notice syslog CookieAuthentication 1 +CookieAuthFile /var/lib/tor/control_auth_cookie CookieAuthFileGroupReadable 1 DataDirectoryGroupReadable 1 \ No newline at end of file