summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/basic/nginx.md4
-rw-r--r--content/calibre.md2
-rw-r--r--content/dendrite.md2
-rw-r--r--content/i2p.md56
-rw-r--r--content/mail/rdns.md2
-rw-r--r--content/mail/smtp.md2
-rw-r--r--content/mail/validate.md2
-rw-r--r--content/monerod.md25
-rw-r--r--content/tor.md2
9 files changed, 56 insertions, 41 deletions
diff --git a/content/basic/nginx.md b/content/basic/nginx.md
index db41937..d76fb54 100644
--- a/content/basic/nginx.md
+++ b/content/basic/nginx.md
@@ -33,7 +33,7 @@ for your password, and you can just copy or type in the password from
Vultr\'s site.
If you get an error here, you might not have done your [DNS
-settings](dns.html) right. Double check those. Note you can also replace
+settings](/basic/dns) right. Double check those. Note you can also replace
the `example.org` with your IP address, but you\'ll want to fix your DNS
settings soon.
@@ -199,7 +199,7 @@ someone could exploit it. Open the main Nginx config file
Uncomment it, and reload Nginx.
Remember to [keep your server software up to
-date](maintenance.html#update) to get the latest security fixes!
+date](/../maintenance#update) to get the latest security fixes!
## We now have a running website!
diff --git a/content/calibre.md b/content/calibre.md
index 9768acf..e1e9faa 100644
--- a/content/calibre.md
+++ b/content/calibre.md
@@ -94,7 +94,7 @@ server {
}
```
-Issue a Let\'s Encrypt certificate. [Detailed instructions and additional information](/certbot).
+Issue a Let\'s Encrypt certificate. [Detailed instructions and additional information](/basic/certbot).
```sh
certbot --nginx
diff --git a/content/dendrite.md b/content/dendrite.md
index 9a7a291..c949a9d 100644
--- a/content/dendrite.md
+++ b/content/dendrite.md
@@ -18,7 +18,7 @@ Because Matrix uses **HTTP** for transport over the SSL ports (443 and 8448), yo
Depending on your setup, there are 2 different configurations to achieve this:
-1. Your *desired* domain (**example.org**) has an [A DNS record](http://localhost:1313/basic/dns/) that already poinst to your desired Matrix server, so you can configure this or add to your existing NGINX static site configuration to setup Matrix.
+1. Your *desired* domain (**example.org**) has an [A DNS record](/basic/dns/) that already poinst to your desired Matrix server, so you can configure this or add to your existing NGINX static site configuration to setup Matrix.
2. You wish to use Matrix with your *desired* domain (**example.org**) but this domain's A record points to a different server, accessible through another domain (like **matrix.example.org**). In this case, look into [delegation.](https://matrix-org.github.io/synapse/latest/delegate.html)
diff --git a/content/i2p.md b/content/i2p.md
index 88b05b4..8dcb7cb 100644
--- a/content/i2p.md
+++ b/content/i2p.md
@@ -11,28 +11,36 @@ Now you have a website, why not offer it in a private alternative such as the In
## Setting up I2P
-There are 2 main I2P implementations, I2P and i2pd, we are using i2pd in this guide because it\'s easier to use in servers.
+There are 2 main I2P implementations, I2P and i2pd, we are using i2pd in this guide because it's easier to use on servers.
### Installing I2P
-i2pd is in most repos, in debian/ubuntu you can install it simply with
+We need to [add the i2pd repos to our system](https://repo.i2pd.xyz/) to get the latest version of i2pd:
+
+Install apt-transport-https and gpg package:
```sh
-apt install i2pd
+apt install apt-transport-https gpg
```
-### Enabling I2P
+Automatically add the repository with a script:
+
+```sh
+wget -q -O - https://repo.i2pd.xyz/.help/add_repo | bash -s -
+```
-We are going to create a user for i2pd, because i2pd finds the configuration files in its home directory. And it\'s easier (and more tidy) to have it in a separate user:
+After that you can install i2pd as any other software package:
```sh
-useradd -m i2p -s /bin/bash
-su -l i2p
-mkdir ~/.i2pd
-cd ~/.i2pd
+apt update
+apt install i2pd
```
-Now that you\'re in \~/.i2pd, you have to create a file named \"tunnels.conf\". Which is the config file for every hidden service you\'re offering over I2P, the content should be like this:
+### Enabling I2P
+
+Next we have to configure the i2pd daemon, the configuration is located at `/etc/i2pd/`.
+
+Edit the `tunnels.conf` file and add the following configuration to the file:
```systemd
[example]
@@ -42,11 +50,13 @@ port = 8080
keys = example.dat
```
+You can comment or remove the tunnels that are added by default in the configuration file.
+
#### Optional: Generating a Vanity Address
-If you run `i2pd` with the configuration above, it will generate a random private key (`example.dat`) for your website in `example.dat` with a matching address made up of 52 random characters, derived from this same key.
+If you run `i2pd` with the configuration above, it will generate a random private key (`example.dat`) for your website at `/var/lib/i2pd/` with a matching address made up of 52 random characters, derived from this same key.
-If you instead pre-generate a private key for your website, you can use brute-force computation to make a "vanity" address, such as the following:
+If you instead pre-generate a private key for your website, you can use brute-force computation to make a "vanity" address, such as the following:
```
{{<hl>}}chad{{</hl>}}aor3jc08ht340c30mg5cf340j395gj095kuazj5tokipr34f.32.i2p
```
@@ -66,7 +76,7 @@ sh dependencies.sh
Then compile using the `make` command:
```sh
-make -j$(nproc)
+make
```
This will build a variety of useful tools for i2p, with `vain` being the command of interest to generate an address:
@@ -76,7 +86,7 @@ This will build a variety of useful tools for i2p, with `vain` being the command
This command will begin running and output a new set of private keys named `private.dat` to the same directory it's ran from. Copy this file to your i2p configuration and you'll have your vanity address:
```sh
-cp private.dat /home/i2p/.i2pd/example.dat
+cp private.dat /var/lib/i2pd/example.dat
```
#### Optional: Authentication Strings for Registrars
@@ -91,7 +101,7 @@ The command above will save the string to a file named `auth_string.txt`. You wi
### Getting your I2P Hostname
-Then, run `/usr/sbin/i2pd --daemon` to start i2pd and we can retreive our I2P hostname.
+Then, run the command `systemctl start i2pd` to start i2pd and `systemctl enable i2pd` to enable i2pd at startup, this will automatically generate our I2P hostname which we will now see.
This can be done in lynx or a command-line browser by going to `http://127.0.0.1:7070/?page=i2p_tunnels` to get your I2P hostname.
@@ -99,14 +109,14 @@ You can also run these commands to find your hostname:
```sh
printf "%s.b32.i2p
-" $(head -c 391 /home/i2p/.i2pd/example.dat |sha256sum|xxd -r -p | base32 |sed s/=//g | tr A-Z a-z)
+" $(head -c 391 /var/lib/i2pd/example.dat | sha256sum | xxd -r -p | base32 | sed s/=//g | tr A-Z a-z)
```
*(If you've generated your own keys to obtain a vanity address, now's a good time to make sure i2pd is properly reading those keys by verifying the address is the same as the one generated with the `vain` command.)*
## Adding the Nginx Config
-From here, the steps are almost identical to setting up a normal websitenconfiguration file. Follow the steps as if you were making a new website on the webserver [tutorial](/basic/nginx) up until the server block of code. Instead, paste this:
+From here, the steps are almost identical to setting up a normal website configuration file. Follow the steps as if you were making a new website on the webserver [tutorial](/basic/nginx) up until the server block of code. Instead, paste this:
```nginx
server {
@@ -118,18 +128,18 @@ server {
#### Clarifications
-####
-
-Nginx will listen in port 8080, but i2pd will forward your port 8080 to the i2p site port 80. This way you don\'t have to deal with server names or anything like that.
+Nginx will listen on port 8080, but i2pd will forward your port 8080 to the i2p site port 80. This way you don't have to deal with server names or anything like that.
-From here we are almost done, all we have to do is enable the site and reload nginx which is also covered in [the webserver tutorial](nginx.html#enable).
+From here we are almost done, all we have to do is enable the site and reload nginx which is also covered in [the webserver tutorial](/basic/nginx#enable).
### Update regularly!
Make sure to update I2P on a regular basis by running:
```sh
-apt update && apt install i2pd
+apt update && apt upgrade
```
-**Contributor** - [qorg11](https://qorg11.net)
+**Contributors**
+- [qorg11](https://qorg11.net)
+- [David Uhden](https://github.com/daviduhden)
diff --git a/content/mail/rdns.md b/content/mail/rdns.md
index 6a6ddf2..0e2943d 100644
--- a/content/mail/rdns.md
+++ b/content/mail/rdns.md
@@ -3,7 +3,7 @@ title: "Setup rDNS"
tags: ['mail']
date: 2022-12-02
---
-While [DNS records](dns.html) refer a domain name to the IP address
+While [DNS records](/basic/dns) refer a domain name to the IP address
where the the website is hosted, there is also rDNS (reverse DNS) and
specifically PTR (pointer) records which do the reverse: link a
server\'s IP to a domain name.
diff --git a/content/mail/smtp.md b/content/mail/smtp.md
index dee5640..3def765 100644
--- a/content/mail/smtp.md
+++ b/content/mail/smtp.md
@@ -25,7 +25,7 @@ If you want to start an email server, therefore, go to your VPS\'s site
and open a ticket or make a request to open up email ports, notably port `25`. This is a
simple process that requires nothing too special. One of the wagies at
your VPS will kindly do the needful and open your ports for you. Note
-that this is not the same as unblocking a port with [ufw](ufw.html),
+that this is not the same as unblocking a port with [ufw](/../ufw),
which still needs to be done for SMTP to work.
ufw allow 25,587 proto tcp
diff --git a/content/mail/validate.md b/content/mail/validate.md
index fbdba50..15db0c7 100644
--- a/content/mail/validate.md
+++ b/content/mail/validate.md
@@ -170,7 +170,7 @@ You can permanently change your hostname by changing it in
`/etc/hostname` and rebooting, or you can just run
`hostname example.org` to change it temporarily for testing. Either way,
this will allow us to run the `mail` command as in [the SMTP
-article](smtp.html).
+article](../smtp).
```sh
echo "Hi there.
diff --git a/content/monerod.md b/content/monerod.md
index 5e00645..19afba0 100644
--- a/content/monerod.md
+++ b/content/monerod.md
@@ -31,6 +31,8 @@ tar -xvjf linux64
mv linux64/monero* /usr/bin/
```
+If the hardware you are using is not based on the amd64 architecture (like a Raspberry Pi), the monero project also [offers binaries](https://www.getmonero.org/downloads/) for other architectures on Linux, to download and install them simply change the last part of the link (linux64) and the archive name, e.g. for arm64 (linuxarm8). The fastest way to find out which one to use in Debian is with the `dpkg --print-architecture` command.
+
## Configuration
By default, Monero comes with no sample configuration files. Create one in `/etc/monerod.conf` using a text editor, and enter the following details:
@@ -45,6 +47,9 @@ data-dir={{<hl>}}/var/lib/monero{{</hl>}}
log-file={{<hl>}}/var/log/monero/monero.log{{</hl>}}
log-level=0
+# Slow but reliable db writes
+db-sync-mode=safe
+
# 1048576 kB/s == 1GB/s; a raise from default 2048 kB/s; contribute more to p2p network
limit-rate-up=1048576
limit-rate-down=1048576
@@ -122,9 +127,9 @@ Edit `/etc/tor/torrc` and add the following:
HiddenServiceDir /var/lib/tor/monerod
# For wallets connecting over RPC:
-HiddenServicePort 18081 127.0.0.1:18081
+HiddenServicePort 18081 127.0.0.1:18181
# For other nodes:
-HiddenServicePort 18083 127.0.0.1:18083
+HiddenServicePort 18083 127.0.0.1:18183
```
Now restart Tor:
@@ -139,19 +144,19 @@ cat /var/lib/tor/monerod/hostname
### I2P
-Edit `tunnels.conf` (Which may be located in `/home/i2p/.i2pd/` if you followed [this](/i2p) guide) and add the following tunnels:
+Edit `tunnels.conf` (Which may be located in `/etc/i2pd/` if you followed [this](/i2p) guide) and add the following tunnels:
```systemd
[monerod]
type = http
host = 127.0.0.1
-port = 18083
+port = 18283
keys = monerod.dat
[monerod-rpc]
type = http
host = 127.0.0.1
-port = 18081
+port = 18281
keys = monerod-rpc.dat
```
@@ -171,13 +176,13 @@ printf "%s.b32.i2p
Then, in `/etc/monerod.conf`, add the following:
```sh
-# I2P config
-tx-proxy=i2p,127.0.0.1:4447
-anonymous-inbound={{<hl>}}your-i2p-address-here.b32.i2p{{</hl>}}:80,127.0.0.1:18083,16 # Maximum 16 simultaneous connections
-
# Tor config
tx-proxy=tor,127.0.0.1:9050,10
-anonymous-inbound={{<hl>}}your-tor-address-here.onion{{</hl>}}:18083,127.0.0.1:18083,16
+anonymous-inbound={{<hl>}}your-tor-address-here.onion{{</hl>}}:18083,127.0.0.1:18183,16
+
+# I2P config
+tx-proxy=i2p,127.0.0.1:4447
+anonymous-inbound={{<hl>}}your-i2p-address-here.b32.i2p{{</hl>}}:80,127.0.0.1:18283,16 # Maximum 16 simultaneous connections
```
## Running the Node
diff --git a/content/tor.md b/content/tor.md
index 1d0aaf1..b1c827d 100644
--- a/content/tor.md
+++ b/content/tor.md
@@ -87,7 +87,7 @@ mirror.
Now we are almost done, all we have to do is enable the site and reload
nginx which, is also covered in [the webserver
-tutorial](nginx.html#enable).
+tutorial](/basic/nginx#enable).
### Advertise your onion service