i2p tweaks

This commit is contained in:
Luke Smith 2021-08-24 12:03:05 -04:00
parent 919e7bfdf8
commit 47c2b83f37
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
3 changed files with 27 additions and 15 deletions

View File

@ -26,16 +26,16 @@
<p>
i2pd is in most repos, in debian/ubuntu you can install it simply
with <pre><code># apt install i2pd</code></pre>
with <pre><code>apt install i2pd</code></pre>
</p>
<h3>Enabling I2P</h3>
<p>
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:
</p>
<pre><code>adduser
i2p su i2p
<pre><code>useradd -m i2p -s /bin/bash
su -l i2p
mkdir ~/.i2pd
cd ~/.i2pd</code></pre>
@ -44,18 +44,26 @@ cd ~/.i2pd</code></pre>
"tunnels.conf". Which is the config file for every hidden service you're
offering over I2P, the content should be like this:
</p>
<pre><code>[landchad]
<pre><code>[<strong>example</strong>]
type = http
host = 127.0.0.1
port = 8080
keys = <strong>landchad.dat</strong></code></pre>
keys = <strong>example.dat</strong></code></pre>
<h3>Getting your I2P Hostname</h3>
<p>
Then, run <code>i2pd --daemon</code> to start i2pd. Then use lynx or any browser
to go to http://127.0.0.1:7070/?page=i2p_tunnels to get your I2P hostname. You
Then, run <code>/usr/sbin/i2pd --daemon</code> to start i2pd and we can retreive our I2P hostname.
</p>
<p>
This can be done in lynx or a command-line browser by going to <code>http://127.0.0.1:7070/?page=i2p_tunnels</code> to get your I2P hostname.
</p>
<p>
You
can also run these commands to find your hostname:
<pre><code>cd ~/.i2pd/
printf "%s.b32.i2p\n" $(head -c 391 <strong>landchad.dat</strong> |sha256sum|xxd -r -p | base32 |sed s/=//g | tr A-Z a-z)</code></pre>
</p>
</p>
<pre><code>printf "%s.b32.i2p\n" $(head -c 391 /home/i2p/.i2pd/<strong>example.dat</strong> |sha256sum|xxd -r -p | base32 |sed s/=//g | tr A-Z a-z)</code></pre>
<h2>Adding the Nginx Config</h2>
<p>
@ -66,7 +74,7 @@ printf "%s.b32.i2p\n" $(head -c 391 <strong>landchad.dat</strong> |sha256sum|xxd
<pre><code>server {
listen 127.0.0.1:8080 ;
root /var/www/<strong>landchad</strong> ;
root /var/www/<strong>example</strong> ;
index index.html ;
}</code></pre>

View File

@ -56,7 +56,6 @@ img { border: none ;}
<li><a href="sshkeys.html">Use your SSH keys to prevent hacking.</a></li>
<li><a href="cron.html">Schedule tasks with Crontabs/Cronjobs.</a></li>
<li><a href="cgi.html">Server side scripting with CGI</a></li>
<li><a href="tor.html">Mirror your site on <img src="pix/tor.svg">Tor.</a></li>
<li><a href="auth.html">Password-protecting Webpages (HTTP Authentication)</a></li>
<li><a href="ufw.html">Using ufw as a firewall.</a></li>
<li><a href="gemini.html">Create a Gemini Capsule.</a></li>
@ -65,10 +64,12 @@ img { border: none ;}
<h3 id=platform>"Build your own platform!"</h3>
<p>Host your own services, social media and more.</p>
<dl class=ll>
<dt><a href="xmpp.html"><img src="pix/xmpp.svg" alt="xmpp logo"> XMPP</a></dt><dd>Minimalist and federated chat server</dd>
<dt><a href="pleroma.html">Pleroma</a></dt><dd>A federated Twitter-like microblogging Site</dd>
<dt><a href="peertube.html"><img src="pix/peertube.svg" alt="peertube logo"> PeerTube</a></dt><dd>A federated YouTube-like video Site</dd>
<dt><a href="pleroma.html">Pleroma</a></dt><dd>A federated Twitter-like microblogging site</dd>
<dt><a href="peertube.html"><img src="pix/peertube.svg" alt="peertube logo"> PeerTube</a></dt><dd>A federated YouTube-like video site</dd>
<dt><a href="nextcloud.html"><img src="pix/nextcloud.svg"> Nextcloud</a></dt><dd>Setting up a Nextcloud Instance (file hosting and more)</dd>
<dt><a href="jitsi.html"><img src="pix/jitsi.svg" alt="Jitsi logo"> Jitsi</a></dt><dd>Free and easy video conferencing</dd>
<dt><a href="git.html"><img src="pix/git.svg"> git</a></dt><dd>Version control software on your own server</dd>
@ -76,6 +77,8 @@ img { border: none ;}
<dt><a href="irc.html"><img src="pix/irc.svg"> IRC</a></dt><dd>Installing and managing a classic internet relay chat server</dd>
<dt><a href="rss-bridge.html">RSS Bridge</a></dt><dd>Creating RSS feeds for social media sites</dd>
<dt><a href="calibre.html"><img src="pix/calibre.png"> Calibre</a></dt><dd>A library server</dd>
<dt><a href="i2p.html"><img src="pix/itoopie.svg" alt="Itoopie">I2P</a></dt><dd>Host your site on a private and peer-to-peer internet layer.</dd>
<dt><a href="tor.html"><img src="pix/tor.svg">Tor</a></dt><dd>Host your site on private onion-routing.</dd>
</dl>
<h3 id=crypto>Accepting Cryptocurrency Tips</h3>

1
pix/itoopie.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 22 KiB