doc: Simplify Windows install notes.

2024-05-20_merge
tecnovert 3 years ago
parent 1d6f55b8b9
commit 8259df4399
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93
  1. 4
      .gitattributes
  2. 2
      basicswap/basicswap.py
  3. 36
      doc/install.md

4
.gitattributes vendored

@ -0,0 +1,4 @@
# Ensure Docker related files always have unix (LF) line endings.
Dockerfile eol=lf
docker/* eol=lf

@ -3278,6 +3278,8 @@ class BasicSwap(BaseApp):
# assert(self.mxDB.locked())
self.log.debug('checkForSpends %s', coin_type)
# TODO: Check for spends on watchonly txns where possible
if 'have_spent_index' in self.coin_clients[coin_type] and self.coin_clients[coin_type]['have_spent_index']:
# TODO: batch getspentinfo
for o in c['watched_outputs']:

@ -8,9 +8,9 @@
Docker must be installed and started:
$ sudo systemctl status docker | grep Active
$ docker -v
Should return a line containing `active (running)`
Should return a line containing `Docker version`...
#### Create the images:
@ -27,7 +27,7 @@ Adjust `--withcoins` and `--withoutcoins` as desired, eg: `--withcoins=monero,bi
$ export COINDATA_PATH=/var/data/coinswaps
$ docker run --rm -e XMR_RPC_HOST="node.xmr.to" -e BASE_XMR_RPC_PORT=18081 -t --name swap_prepare -v $COINDATA_PATH:/coindata i_swapclient \
basicswap-prepare --datadir=/coindata --withcoins=monero --htmlhost="0.0.0.0" --xmrrestoreheight=2245107
basicswap-prepare --datadir=/coindata --withcoins=monero --htmlhost="0.0.0.0" --xmrrestoreheight=2485205
**Record the mnemonic from the output of the above command.**
@ -57,35 +57,31 @@ You can copy an existing pruned datadir (excluding bitcoin.conf and any wallets)
Remove any existing wallets after copying over a pruned chain or the Bitcoin daemon won't start.
## Windows
Install Git:
https://gitforwindows.org/
Right click in the directory you want the source code and select 'Git Bash Here':
$ git clone https://github.com/tecnovert/basicswap.git
## Windows
Setup Docker Desktop on the WSL 2 backend.
#### Setup WSL 2 and Docker Desktop
[docs.docker.com/docker-for-windows/wsl](https://docs.docker.com/docker-for-windows/wsl/)
Launch the docker commands through a WSL terminal.
Open a wsl terminal
Windows key + R -> "wsl" -> Enter
Open cmd-prompt with windows key + R -> "cmd" -> Enter
> wsl
Install Git:
Go to the directory containing the source code:
$ sudo apt update
$ sudo apt install git
cd /mnt/c/tmp/basicswap/docker/
It's significantly faster to keep COINDATA_PATH in the linux filesystem.
You can access it from the windows side at: `\\wsl$\Ubuntu-20.04`
Download the BasicSwap code:
$ git clone https://github.com/tecnovert/basicswap.git
$ cd basicswap/docker/
export COINDATA_PATH=/home/$USER/coinswaps
It's significantly faster to set COINDATA_PATH in the linux filesystem.
You can access it from the windows side at: `\\wsl$\Ubuntu`
Continue from the [Run Using Docker](#run-using-docker) section.

Loading…
Cancel
Save