user-1: Have you tried running Bitcoin Core listening on Tor on different platforms? What are your experiences, issues that you faced, hacks, workarounds etc.?

user-1: Windows
You can follow one of the steps from 2 and 3. Step 2 uses cookie for authentication and Step 3 uses password.

Download and Install Bitcoin Core from https://bitcoincore.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-win64-setup.exe

Edit the bitcoin.conf file, enter the below things and save it. Default location of the file is %UserProfile%\AppData\Roaming\Bitcoin\bitcoin.conf


listen=1

debug=1

logips=1

testnet=1

listenonion=1

onlynet=onion

proxy=127.0.0.1:9150

torcontrol=127.0.0.1:9151

How to setup cookie auth for Tor control?

Open C:\Users\Prayank\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrc and add below line:
HCookieAuthentication 1

IGNORE THIS STEP IF YOU ALREADY DID STEP 2. Edit the bitcoin.conf file, enter the below things and save it. Default location of the file is %UserProfile%\AppData\Roaming\Bitcoin\bitcoin.conf

listen=1

debug=1

logips=1

testnet=1

listenonion=1

onlynet=onion

proxy=127.0.0.1:9150

torcontrol=127.0.0.1:9151

torpassword=XYZ
XYZ: Replace it with your password in plain text

How to setup password for Tor control?

Open command prompt/PowerShell and run the below commands:
cd "C:\Users\Prayank\Desktop\Tor Browser\Browser\TorBrowser\Tor"
tor --hash-password "XYZ" >torhash.txt
Open torhash.txt file, copy the last line which has below content, paste in C:\Users\Prayank\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrc and save it:
HashedControlPassword 16:1CEDITEDOMERANDOMSHITCF8EBCD9A50CLOLCDACF
Run the below commands in command prompt or PowerShell to ensure connection with Tor control works:
telnet 127.0.0.1 9151
AUTHENTICATE "XYZ"

Launch Tor Browser

Launch Bitcoin Core Wallet (Testnet) using the shortcut with a green icon or run "C:\Program Files\Bitcoin\bitcoin-qt.exe" -testnet in command prompt or PowerShell and change the path accordingly

Run getnetworkinfo in console window and check the localaddresses. Check if testnet3/onion_private_key file is created and analyze the logs in debug.log file.



Ubuntu
You can follow one of the steps from 2 and 3. Step 2 uses cookie for authentication and Step 3 uses password.

Download Bitcoin Core and run the below commands:

tar xzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz
sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-0.20.0/bin/*
/usr/local/bin/bitcoin-qt

Edit the .bitcoin/bitcoin.conf file, enter the below things and save it.

listen=1

debug=1

logips=1

testnet=1

listenonion=1

onlynet=onion

proxy=127.0.0.1:9050


How to setup Tor?

sudo apt install tor
Open /etc/tor/torrc and add below lines:
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
Restarts Tor: sudo /etc/init.d/tor restart
Add user to Tor group: sudo usermod -a -G debian-tor <username>
Run Bitcoin Core: /usr/local/bin/bitcoin-qt

IGNORE THIS STEP IF YOU ALREADY DID STEP 2. Edit the bitcoin.conf file, enter the below things and save it.

listen=1

debug=1

logips=1

testnet=1

listenonion=1

onlynet=onion

proxy=127.0.0.1:9150

torpassword=XYZ
XYZ: Replace it with your password in plain text

How to setup password for Tor control?

Open command terminal and run the below commands:
torpass=$(tor --hash-password "my-tor-password")
printf "HashedControlPassword $torpass\nControlPort 9051\n" | sudo tee -a /etc/tor/torrc

Run getnetworkinfo in console window and check the localaddresses. Check if testnet3/onion_private_key file is created and analyze the logs in debug.log file.



Android
Download, Install and Run either ABCore or Nayuta Core.
 

I have selected Bitcoin Knots in the settings of ABCore however there is an option to use Bitcoin Core as well.



-1: <p>Have you tried running Bitcoin Core listening on Tor on different platforms? What are your experiences, issues that you faced, hacks, workarounds etc.?</p>
 -1: <p><strong>Windows</strong></p>
<p>You can follow one of the steps from 2 and 3. Step 2 uses cookie for authentication and Step 3 uses password.</p>
<ol>
<li><p>Download and Install Bitcoin Core from <a href="https://bitcoincore.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-win64-setup.exe" rel="nofollow noreferrer">https://bitcoincore.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-win64-setup.exe</a></p>
</li>
<li><p>Edit the <code>bitcoin.conf</code> file, enter the below things and save it. Default location of the file is <code>%UserProfile%\AppData\Roaming\Bitcoin\bitcoin.conf</code></p>
</li>
</ol>
<pre><code>listen=1

debug=1

logips=1

testnet=1

listenonion=1

onlynet=onion

proxy=127.0.0.1:9150

torcontrol=127.0.0.1:9151</pre></code>
<ul>
<li>How to setup cookie auth for Tor control?</li>
</ul>
<p>Open <code>C:\Users\Prayank\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrc</code> and add below line:</p>
<p><code>HCookieAuthentication 1</code></p>
<ol start="3">
<li>IGNORE THIS STEP IF YOU ALREADY DID STEP 2. Edit the <code>bitcoin.conf</code> file, enter the below things and save it. Default location of the file is <code>%UserProfile%\AppData\Roaming\Bitcoin\bitcoin.conf</code></li>
</ol>
<pre><code>listen=1

debug=1

logips=1

testnet=1

listenonion=1

onlynet=onion

proxy=127.0.0.1:9150

torcontrol=127.0.0.1:9151

torpassword=XYZ</pre></code>
<p><em>XYZ: Replace it with your password in plain text</em></p>
<ul>
<li>How to setup password for Tor control?</li>
</ul>
<p>Open command prompt/PowerShell and run the below commands:</p>
<p><code>cd &quot;C:\Users\Prayank\Desktop\Tor Browser\Browser\TorBrowser\Tor&quot;</code></p>
<p><code>tor --hash-password &quot;XYZ&quot; &gt;torhash.txt</code></p>
<p>Open torhash.txt file, copy the last line which has below content, paste in <code>C:\Users\Prayank\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrc</code> and save it:</p>
<p><code>HashedControlPassword 16:1CEDITEDOMERANDOMSHITCF8EBCD9A50CLOLCDACF</code></p>
<p>Run the below commands in command prompt or PowerShell to ensure connection with Tor control works:</p>
<p><code>telnet 127.0.0.1 9151</code>
<code>AUTHENTICATE &quot;XYZ&quot;</code></p>
<ol start="4">
<li><p>Launch <a href="https://www.torproject.org/dist/torbrowser/9.5.4/torbrowser-install-win64-9.5.4_en-US.exe" rel="nofollow noreferrer">Tor Browser</a></p>
</li>
<li><p>Launch Bitcoin Core Wallet (Testnet) using the shortcut with a green icon or run <code>&quot;C:\Program Files\Bitcoin\bitcoin-qt.exe&quot; -testnet</code> in command prompt or PowerShell and change the path accordingly</p>
</li>
<li><p>Run <code>getnetworkinfo</code> in console window and check the <code>localaddresses</code>. Check if <code>testnet3/onion_private_key</code> file is created and analyze the logs in debug.log file.</p>
</li>
</ol>
<p><a href="https://i.stack.imgur.com/ihnBF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ihnBF.png" alt="Bitcoin-Core-Tor-Windows" /></a></p>
<p><strong>Ubuntu</strong></p>
<p>You can follow one of the steps from 2 and 3. Step 2 uses cookie for authentication and Step 3 uses password.</p>
<ol>
<li>Download <a href="https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz" rel="nofollow noreferrer">Bitcoin Core</a> and run the below commands:</li>
</ol>
<p><code>tar xzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz</code></p>
<p><code>sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-0.20.0/bin/*</code></p>
<p><code>/usr/local/bin/bitcoin-qt</code></p>
<ol start="2">
<li>Edit the <code>.bitcoin/bitcoin.conf</code> file, enter the below things and save it.</li>
</ol>
<pre><code>listen=1

debug=1

logips=1

testnet=1

listenonion=1

onlynet=onion

proxy=127.0.0.1:9050
</pre></code>
<ul>
<li>How to setup Tor?</li>
</ul>
<p><code>sudo apt install tor</code></p>
<p>Open <code>/etc/tor/torrc</code> and add below lines:</p>
<p><code>ControlPort 9051</code></p>
<p><code>CookieAuthentication 1</code></p>
<p><code>CookieAuthFileGroupReadable 1</code></p>
<p>Restarts Tor: <code>sudo /etc/init.d/tor restart</code></p>
<p>Add user to Tor group: <code>sudo usermod -a -G debian-tor &lt;username&gt;</code></p>
<p>Run Bitcoin Core: <code>/usr/local/bin/bitcoin-qt</code></p>
<ol start="3">
<li>IGNORE THIS STEP IF YOU ALREADY DID STEP 2. Edit the <code>bitcoin.conf</code> file, enter the below things and save it.</li>
</ol>
<pre><code>listen=1

debug=1

logips=1

testnet=1

listenonion=1

onlynet=onion

proxy=127.0.0.1:9150

torpassword=XYZ</pre></code>
<p><em>XYZ: Replace it with your password in plain text</em></p>
<ul>
<li>How to setup password for Tor control?</li>
</ul>
<p>Open command terminal and run the below commands:</p>
<p><code>torpass=$(tor --hash-password &quot;my-tor-password&quot;)</code></p>
<p><code>printf &quot;HashedControlPassword $torpass\nControlPort 9051\n&quot; | sudo tee -a /etc/tor/torrc</code></p>
<ol start="4">
<li>Run <code>getnetworkinfo</code> in console window and check the <code>localaddresses</code>. Check if <code>testnet3/onion_private_key</code> file is created and analyze the logs in debug.log file.</li>
</ol>
<p><a href="https://i.stack.imgur.com/ouKKh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ouKKh.png" alt="debug-log" /></a></p>
<p><a href="https://i.stack.imgur.com/3huWs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3huWs.png" alt="Bitcoin-Core-Tor-Ubuntu" /></a></p>
<p><strong>Android</strong></p>
<p>Download, Install and Run either <a href="https://github.com/greenaddress/abcore" rel="nofollow noreferrer">ABCore</a> or <a href="https://github.com/nayutaco/NayutaCore" rel="nofollow noreferrer">Nayuta Core</a>.</p>
<p><a href="https://i.stack.imgur.com/6aIcF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6aIcF.png" alt="Nayuta-1" /></a> <a href="https://i.stack.imgur.com/9NwD6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9NwD6.png" alt="Nayuta-2" /></a>
<a href="https://i.stack.imgur.com/6mYLI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6mYLI.png" alt="Nayuta-3" /></a></p>
<p>I have selected <a href="https://bitcoinknots.org/" rel="nofollow noreferrer">Bitcoin Knots</a> in the settings of ABCore however there is an option to use Bitcoin Core as well.</p>
<p><a href="https://i.stack.imgur.com/xPjgg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xPjgg.png" alt="ABCore-1" /></a><a href="https://i.stack.imgur.com/wH4WJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wH4WJ.png" alt="ABCore-4" /></a>
<a href="https://i.stack.imgur.com/8qHzQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8qHzQ.png" alt="ABCore-3" /></a><a href="https://i.stack.imgur.com/1NOlj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1NOlj.png" alt="ABCore-2" /></a></p>
