Consider updating the versions in WalletWasabi.Helpers.Constants. If versions are updated, make sure Client Release is already available before updating the backend.
sudo apt-get update && cd ~/WalletWasabi && git pull && cd ~
sudo service nginx stop
sudo systemctl stop walletwasabi.service
sudo killall tor
bitcoin-cli stop
sudo apt-get upgrade -y && sudo apt-get autoremove -y
sudo reboot
set DOTNET_CLI_TELEMETRY_OPTOUT=1
bitcoind
bitcoin-cli getblockchaininfo
tor
sudo service nginx start
dotnet publish ~/WalletWasabi/WalletWasabi.Backend --configuration Release --self-contained false
sudo systemctl start walletwasabi.service
pgrep -ilfa tor && pgrep -ilfa bitcoin && pgrep -ilfa wasabi && pgrep -ilfa nginx
tail -10000 ~/.walletwasabi/backend/Logs.txt
1. Create Remote Server
Name
WalletWasabi.Backend.[TestNet/Main]
Image
Ubuntu 18.04 x64
Region
Mostly anywhere is fine, except the US or China.
Size
[4GB Standard/32GB Standard]
2. Setup Server
SSH in as Root
Create a New User and Grant Administrative Privileges
Opt out of the telemetry: export DOTNET_CLI_TELEMETRY_OPTOUT=1.
4. Install Tor
sudo apt-get install tor
Check if Tor is already running in the background:
pgrep -ilfa tor
sudo killall tor
Verify Tor is properly running:
tor
Create torrc:
sudo pico /etc/tor/torrc
HiddenServiceDir /home/user/.hidden_service_v3
HiddenServiceVersion 3
HiddenServicePort 80 127.0.0.1:37127
RunAsDaemon 1
# ---MAKE TOR FASTER---
# Need to disable for HiddenServiceNonAnonymousMode
SOCKSPort 0
# Need to enable for HiddenServiceSingleHopMode
HiddenServiceNonAnonymousMode 1
# This option makes every hidden service instance hosted by a tor
# instance a Single Onion Service. One-hop circuits make Single Onion
# servers easily locatable, but clients remain location-anonymous.
HiddenServiceSingleHopMode 1
[Unit]
Description=WalletWasabi Backend API
[Service]
WorkingDirectory=/home/user/WalletWasabi/WalletWasabi.Backend/bin/Release/netcoreapp2.2/publish
ExecStart=/usr/bin/dotnet /home/user/WalletWasabi/WalletWasabi.Backend/bin/Release/netcoreapp2.2/publish/WalletWasabi.Backend.dll
Restart=always
RestartSec=10 # Restart service after 10 seconds if dotnet service crashes
SyslogIdentifier=walletwasabi-backend
User=user
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
[Install]
WantedBy=multi-user.target
Putty (Note copypaste with Ctrl+Insert and Shift+Insert.)
As the firewall is currently blocking all connections except for SSH, if you install and configure additional services, you will need to adjust the firewall settings to allow acceptable traffic in. You can learn some common UFW operations in this guide.
Only setup nginx if you want to expose the autogenerated website to the clearnet.