how to install I2P server on centos linux

Summary: In this post i explain how to install a proxy server which is known is I2P. Before starting the installation we have to check and install all the required dependencies for I2P. Java is one of the dependency or prerequiset for i2p so let start from installation of java. The procedure below will guide you how to install I2P server on centos.

Step-1: Install RPMforge into yum repository:

$ cd /usr/local/src
$ rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt
$ wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
$ rpm -Uhv rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Step-2: Remove previous Java version 1.5, if you have it installed:

$ yum remove java-1.5-*

Step-3: Lets install Java 1.6. The package name will be java-1.6.0-openjdk.x86_64:

$ yum install java-1.6.0-openjdk.x86_64 -y

Step-4: We need to export the JAVA_HOME environment. This steps is optional:

$ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre

Step-5: Lets check our latest Java version:

# java -version
java version “1.6.0_22”
OpenJDK Runtime Environment (IcedTea6 1.10.9) (rhel-1.28.1.10.9.el5_8-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

Step-6: Download the i2p from the link listed below.

#wget http://mirror.i2p2.de/i2pinstall_0.9.1.jar

Step-7: Now run the command in the terminal

java -jar i2pinstall_0.9.1.jar -console
press 1

Then define the target destination

/usr/share/
press 1

Your console installation is done.

Step-8: Post installation process open this file client.config

vim ~/.i2p/clients.config
## SSL only
#clientApp.0.args=-s 7657 ::1,127.0.0.1 ./webapps/
## non-SSL and SSL
#clientApp.0.args=7657 ::1,127.0.0.1 -s 7667 ::1,127.0.0.1 ./webapps/
## non-SSL only, both IPv6 and IPv4 local interfaces
clientApp.0.args=7657 0.0.0.0 ./webapps/
clientApp.0.main=net.i2p.router.web.RouterConsoleRunner
clientApp.0.name=I2P Router Console
clientApp.0.onBoot=true
clientApp.0.startOnLoad=true

# SAM bridge
clientApp.1.main=net.i2p.sam.SAMBridge
clientApp.1.name=SAM application bridge
clientApp.1.args=sam.keys 127.0.0.1 7656 i2cp.tcp.host=127.0.0.1 i2cp.tcp.port=7654
clientApp.1.startOnLoad=false

Change the IP address clientApp.0.args=7657  ::1, 127.0.0.1  ./webapps/
to 0.0.0.0

clientApp.0.args=7657 0.0.0.0 ./webapps/

Step-9: Open your i2prouter sh file and uncomment allow_root=true if you want to run the i2p as root.

vim i2prouter

Do the changes as above and saved.

Step-10: Run the i2p server

sh i2prouter start.

sh i2prouter start
Starting I2P Service…
Waiting for I2P Service………..
running: PID:29057

Step-11: Open your browser and access the i2p server

http://yourdomain.com:7657

Here you go.

Comments
  1. 2 years ago
    • 2 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *