From 47c2b83f371b1bc5ecd7303aabf9e5d8d6fb54b9 Mon Sep 17 00:00:00 2001
From: Luke Smith
i2pd is in most repos, in debian/ubuntu you can install it simply
- with
+ with # apt install i2pdapt install i2pd
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
+
+
- 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)
@@ -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 ;
}
--
cgit v1.2.3