Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
twofaktor committed Oct 31, 2022
1 parent 46987f5 commit 67863bd
Show file tree
Hide file tree
Showing 33 changed files with 43 additions and 135 deletions.
3 changes: 0 additions & 3 deletions guide/bonus/bitcoin/bitboxapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ The [BitBoxApp](https://shiftcrypto.ch/app/){:target="_blank"} is a beginner-fri
Difficulty: Easy
{: .label .label-green }

Status: Not tested RaspiBolt v3
{: .label .label-yellow }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
4 changes: 2 additions & 2 deletions guide/bonus/bitcoin/electrum-wallet-desktop.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ has_toc: false
Difficulty: Easy
{: .label .label-yellow }

Status: Tested v3
{: .label .label-green }
Status: Tested MiniBolt
{: .label .label-blue }

![Electrum Wallet Desktop logo](../../../images/electrum_wallet_logo.png)

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/bitcoin/joinmarket.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ We set up [Joinmarket clientserver](https://github.com/JoinMarket-Org/joinmarket
Difficulty: Intermediate
{: .label .label-yellow }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
45 changes: 19 additions & 26 deletions guide/bonus/bitcoin/mempool.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ has_toc: false
Difficulty: Medium
{: .label .label-yellow }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down Expand Up @@ -108,14 +105,14 @@ For improved security, we create the new user "mempool" that will run the Mempoo
$ sudo apt install mariadb-server mariadb-client
```

* Generate random password for "mempool" MariaDB user. This password will be needed for one command and then in config file below. Let's call it "Password[M]".
* Generate random password for "mempool" MariaDB user. This password will be needed for one command and then in config file below. Let's call it "Password[M]"

```sh
$ gpg --gen-random --armor 1 16
> G53Lp+V7JYmo9JpVa72bGw==
```

* Now, open the MariaDB shell.
* Now, open the MariaDB shell

```sh
$ sudo mysql
Expand Down Expand Up @@ -153,7 +150,6 @@ For improved security, we create the new user "mempool" that will run the Mempoo

* Paste the following lines. In the CORE_RPC section, replace the username and password with your username (e.g., "raspibolt") and password [B]. Change "Password[M]" to the random password generated above.


```sh
{
"MEMPOOL": {
Expand Down Expand Up @@ -246,7 +242,7 @@ For improved security, we create the new user "mempool" that will run the Mempoo
The Mempool configuration file contains the Bitcoin Core RPC username and password which are sensitive information. We'll restrict reading access to this file by user "mempool" only.

* Still with user "admin", change the ownership of the configuration file

```sh
$ sudo chmod 600 /home/mempool/mempool/backend/mempool-config.json
```
Expand Down Expand Up @@ -426,7 +422,7 @@ We now need to modify the nginx configuration to create a web server for the web

### Autostart on boot

Now we’ll make sure Mempool starts as a service on the Raspberry Pi so it’s always running. In order to do that, we create a systemd unit that starts the service on boot directly after Bitcoin Core.
Now we’ll make sure Mempool starts as a service on the PC so it’s always running. In order to do that, we create a systemd unit that starts the service on boot directly after Bitcoin Core.

* As user “admin”, create the service file

Expand All @@ -436,14 +432,13 @@ Now we’ll make sure Mempool starts as a service on the Raspberry Pi so it’s

* Paste the following configuration. Save and exit.

```ini
# RaspiBolt: systemd unit for Mempool
```ini
# MiniBolt: systemd unit for Mempool
# /etc/systemd/system/mempool.service

[Unit]
Description=mempool
After=bitcoind.service fulcrum.service
PartOf=bitcoind.service
After=bitcoind.service

[Service]
WorkingDirectory=/home/mempool/mempool/backend
Expand Down Expand Up @@ -476,15 +471,15 @@ Now we’ll make sure Mempool starts as a service on the Raspberry Pi so it’s

## Mempool in action

Point your browser to the secure access point provided by the nginx web proxy, for example [https://raspibolt.local:4081](https://raspibolt.local:4081){:target="_blank"} (or your nodes IP address, e.g. https://192.168.0.20:4081).
Point your browser to the secure access point provided by the nginx web proxy, for example [https://minibolt.local:4081](https://minibolt.local:4081){:target="_blank"} (or your nodes IP address, e.g. https://192.168.0.20:4081).

---

## Remote access over Tor (optional)

To expose Mempool app via a Tor hidden service (if only Tor address is used, no ports need to be opened by the firewall):
To expose Mempool app via a Tor hidden service (if only Tor address is used, no ports need to be opened by the firewall):

* Edit `torrc` file
* Edit `torrc` file

```sh
$ sudo nano /etc/tor/torrc
Expand All @@ -497,7 +492,7 @@ To expose Mempool app via a Tor hidden service (if only Tor address is used, no
HiddenServiceDir /var/lib/tor/hidden_service_mempool
HiddenServiceVersion 3
HiddenServicePort 443 127.0.0.1:4081
```
```

* Reload Tor config (sometimes a restart is needed)

Expand All @@ -507,10 +502,10 @@ To expose Mempool app via a Tor hidden service (if only Tor address is used, no

* Get onion address

```sh
```sh
$ sudo cat /var/lib/tor/hidden_service_mempool/hostname
> afjubiu3brwo3tb34otb3......onion
```
```

* Open Tor browser and insert the address:

Expand Down Expand Up @@ -543,8 +538,8 @@ Updating to a new release is straight-forward. Make sure to read the release not
* Then follow the installation process described in the guide in the [Backend section](#backend) up to, and including the nginx section .

* Start the service again
```sh

```sh
$ sudo systemctl start mempool
$ sudo journalctl -f -u mempool
```
Expand All @@ -556,8 +551,8 @@ Updating to a new release is straight-forward. Make sure to read the release not
## Uninstall

* Stop, disable and delete the Mempool systemd service
```sh

```sh
$ sudo systemctl stop mempool
$ sudo systemctl disable mempool
$ sudo rm /etc/systemd/system/mempool.service
Expand All @@ -568,9 +563,7 @@ Updating to a new release is straight-forward. Make sure to read the release not
```sh
$ sudo ufw status numbered
> [...]
> [X] 4081/tcp ALLOW IN Anywhere # allow Mempool SSL
> [...]
> [Y] 4081/tcp (v6) ALLOW IN Anywhere (v6) # allow Mempool SSL
> [X] 4081/tcp ALLOW IN 192.168.0.0/16 # allow Mempool SSL from local network
```

* Delete the two Mempool rules (check that the rule to be deleted is the correct one and type "y" and "Enter" when prompted)
Expand All @@ -582,7 +575,7 @@ Updating to a new release is straight-forward. Make sure to read the release not

* Remove the nginx configurations for Mempool

```sh
```sh
$ sudo rm -R /var/www/mempool
$ sudo rm /etc/nginx/snippets/nginx-mempool.conf
$ sudo rm /etc/nginx/sites-enabled/mempool-ssl.conf
Expand Down
7 changes: 2 additions & 5 deletions guide/bonus/bitcoin/safu-ninja.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ has_toc: false
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }
Status: Tested MiniBolt
{: .label .label-blue }

![DIY steel mnemonic backup](../../../images/diy-steel-mnemonic-backup.png)

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/bitcoin/specter-desktop.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ The default setup guides you on how to allow for plugging in your hardware devic
Difficulty: Intermediate
{: .label .label-yellow }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/bitcoin/testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ You can run your RaspiBolt node on testnet to develop and experiment with new ap
Difficulty: Medium
{: .label .label-yellow }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/bitcoin/white-paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ Download the Bitcoin white paper PDF directly from the blockchain data on your o
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/balance-of-satoshis.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ has_toc: false
Difficulty: Medium
{: .label .label-yellow }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/charge-lnd.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ has_toc: false
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/circuit-breaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ has_toc: false
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/clboss.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ Read more about it [here](https://zmnscpxj.github.io/clboss/index.html){:target=
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
11 changes: 5 additions & 6 deletions guide/bonus/lightning/cln.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ It can be used for the RaspiBolt as a replacement for LND or it can be run along
Difficulty: Medium
{: .label .label-yellow }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

![Core Lightning](/images/core-lightning.png)
![Core Lightning](../../../images/core-lightning.png)

---

## Table of contents
Table of contents
{: .text-delta }

1. TOC
Expand Down Expand Up @@ -219,8 +216,10 @@ We will download, verify, install and configure CLN on your RaspiBolt setup. Thi

[Unit]
Description=Core Lightning daemon
Requires=bitcoind.service
After=bitcoind.service
PartOf=bitcoind.service
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/bin/sh -c '/home/lightningd/lightning/lightningd/lightningd \
Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/lightning-terminal.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ has_toc: false
Difficulty: Medium
{: .label .label-yellow }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/lnbalance.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ The following script was created by [RobClark56](https://github.com/robclark56){
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/lnbits.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ has_toc: false
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/lnchannels.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ The following script was created by [RobClark56](https://github.com/robclark56){
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/lntop.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ has_toc: false
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/rebalance-lnd.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ You just pay the routing fees and can set up some maximum fees that you're ok to
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/regolancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ has_toc: false
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/remote-lncli.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ has_toc: false
Difficulty: Easy
{: .label .label-green }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Not tested MiniBolt
{: .label .label-red }

Expand Down
3 changes: 0 additions & 3 deletions guide/bonus/lightning/thunderhub.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ has_toc: false
Difficulty: Medium
{: .label .label-yellow }

Status: Tested RaspiBolt v3
{: .label .label-green }

Status: Tested MiniBolt
{: .label .label-blue }

Expand Down
Loading

0 comments on commit 67863bd

Please sign in to comment.