From bc64a133b84e6ebfba87593a73c55c44fbd85bb0 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Thu, 1 Jul 2021 18:45:30 +0200 Subject: Added i2p site tutorial --- i2p.html | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pix/i2p.svg | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 188 insertions(+) create mode 100644 i2p.html create mode 100644 pix/i2p.svg diff --git a/i2p.html b/i2p.html new file mode 100644 index 0000000..01afb17 --- /dev/null +++ b/i2p.html @@ -0,0 +1,90 @@ + + + + Mirror your site over I2P + + + + + + + +

Mirror Your Site Over I2P

+ +
+ I2P logo +

+ Now you have a website, why not offer it in a private alternative such as the Invisible Internet? +

+ +

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. +

+

Installing I2P

+ +

+ i2pd is in most repos, in debian/ubuntu you can install it simply + with

# apt install i2pd
+

+ +

Enabling I2P

+

+ 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: +

+
adduser
+i2p su i2p
+mkdir ~/.i2pd
+cd ~/.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: +

+
[landchad]
+type = http
+host = 127.0.0.1
+port = 8080
+keys = landchat.dat
+

+ Then, run i2pd --daemon 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 +

+ +

Adding the Nginx Config

+

+ 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 up until the server block of code. Instead, paste this: +

+ +
server {
+listen 127.0.0.1:8080 ;
+root /var/www/landchad ;
+index index.html ;
+}
+ + +

+ 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. +

+ +

Update regularly!

+ +

Make sure to update I2P on a regular basis by running:

+
apt update && apt install i2pd
+

Contributor - qorg11

+ +
+
LandChad.net
Because Everyone should be an Internet LandChad.
  • chad
  • RSS
  • BTC
  • XMR
  • Github
  • + + diff --git a/pix/i2p.svg b/pix/i2p.svg new file mode 100644 index 0000000..5dc629b --- /dev/null +++ b/pix/i2p.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3 From caf26845c8570f6647498c9dab5eb3e2c8bdac11 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Fri, 2 Jul 2021 00:01:25 +0200 Subject: Fixed formatting and added another way to get the i2p hostname --- i2p.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/i2p.html b/i2p.html index 01afb17..13c5e9c 100644 --- a/i2p.html +++ b/i2p.html @@ -48,10 +48,13 @@ cd ~/.i2pd
    type = http host = 127.0.0.1 port = 8080 -keys = landchat.dat +keys = landchad.dat

    Then, run i2pd --daemon 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 + to go to http://127.0.0.1:7070/?page=i2p_tunnels to get your I2P hostname. You + can also run these commands to find your hostname: +

    cd ~/.i2pd/
    +printf "%s.b32.i2p\n" $(head -c 391 landchad.dat |sha256sum|xxd -r -p | base32 |sed s/=//g | tr A-Z a-z)

    Adding the Nginx Config

    -- cgit v1.2.3 From e2c324f759f1dfa6ab55ba163fa8649c54aab077 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Fri, 2 Jul 2021 13:30:49 +0200 Subject: Fixed html thing --- i2p.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i2p.html b/i2p.html index 13c5e9c..586618a 100644 --- a/i2p.html +++ b/i2p.html @@ -26,7 +26,7 @@

    i2pd is in most repos, in debian/ubuntu you can install it simply - with

    # apt install i2pd
    + with
    # apt install i2pd

    Enabling I2P

    @@ -48,7 +48,7 @@ cd ~/.i2pd
    type = http host = 127.0.0.1 port = 8080 -keys = landchad.dat +keys = landchad.dat

    Then, run i2pd --daemon 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 -- cgit v1.2.3 From 47c2b83f371b1bc5ecd7303aabf9e5d8d6fb54b9 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 24 Aug 2021 12:03:05 -0400 Subject: i2p tweaks --- i2p.html | 32 ++++++++++++++++++++------------ index.html | 9 ++++++--- pix/itoopie.svg | 1 + 3 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 pix/itoopie.svg diff --git a/i2p.html b/i2p.html index 586618a..bff7b38 100644 --- a/i2p.html +++ b/i2p.html @@ -26,16 +26,16 @@

    i2pd is in most repos, in debian/ubuntu you can install it simply - with

    # apt install i2pd
    + with
    apt install i2pd

    - +

    Enabling I2P

    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:

    -
    adduser
    -i2p su i2p
    +			
    useradd -m i2p -s /bin/bash
    +su -l i2p
     mkdir ~/.i2pd
     cd ~/.i2pd
    @@ -44,18 +44,26 @@ cd ~/.i2pd
    "tunnels.conf". Which is the config file for every hidden service you're offering over I2P, the content should be like this:

    -
    [landchad]
    +            
    [example]
     type = http
     host = 127.0.0.1
     port = 8080
    -keys = landchad.dat
    +keys = example.dat
    + +

    Getting your I2P Hostname

    +

    - Then, run i2pd --daemon 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 /usr/sbin/i2pd --daemon to start i2pd and we can retreive our I2P hostname. +

    + +

    + 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. +

    +

    + You can also run these commands to find your hostname: -

    cd ~/.i2pd/
    -printf "%s.b32.i2p\n" $(head -c 391 landchad.dat |sha256sum|xxd -r -p | base32 |sed s/=//g | tr A-Z a-z)
    -

    +

    +
    printf "%s.b32.i2p\n" $(head -c 391 /home/i2p/.i2pd/example.dat |sha256sum|xxd -r -p | base32 |sed s/=//g | tr A-Z a-z)

    Adding the Nginx Config

    @@ -66,7 +74,7 @@ printf "%s.b32.i2p\n" $(head -c 391 landchad.dat |sha256sum|xxd

    server {
     listen 127.0.0.1:8080 ;
    -root /var/www/landchad ;
    +root /var/www/example ;
     index index.html ;
     }
    diff --git a/index.html b/index.html index 5b9d84f..724bac4 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,6 @@ img { border: none ;}
  • Use your SSH keys to prevent hacking.
  • Schedule tasks with Crontabs/Cronjobs.
  • Server side scripting with CGI
  • -
  • Mirror your site on Tor.
  • Password-protecting Webpages (HTTP Authentication)
  • Using ufw as a firewall.
  • Create a Gemini Capsule.
  • @@ -65,10 +64,12 @@ img { border: none ;}

    "Build your own platform!"

    +

    Host your own services, social media and more.

    +
    xmpp logo XMPP
    Minimalist and federated chat server
    -
    Pleroma
    A federated Twitter-like microblogging Site
    -
    peertube logo PeerTube
    A federated YouTube-like video Site
    +
    Pleroma
    A federated Twitter-like microblogging site
    +
    peertube logo PeerTube
    A federated YouTube-like video site
    Nextcloud
    Setting up a Nextcloud Instance (file hosting and more)
    Jitsi logo Jitsi
    Free and easy video conferencing
    git
    Version control software on your own server
    @@ -76,6 +77,8 @@ img { border: none ;}
    IRC
    Installing and managing a classic internet relay chat server
    RSS Bridge
    Creating RSS feeds for social media sites
    Calibre
    A library server
    +
    ItoopieI2P
    Host your site on a private and peer-to-peer internet layer.
    +
    Tor
    Host your site on private onion-routing.

    Accepting Cryptocurrency Tips

    diff --git a/pix/itoopie.svg b/pix/itoopie.svg new file mode 100644 index 0000000..39e430d --- /dev/null +++ b/pix/itoopie.svg @@ -0,0 +1 @@ + -- cgit v1.2.3