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
$ wget
$ 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-

Step-5: Lets check our latest Java version:

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

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


Step-7: Now run the command in the terminal

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

Then define the target destination

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, ./webapps/
## non-SSL and SSL
#clientApp.0.args=7657 ::1, -s 7667 ::1, ./webapps/
## non-SSL only, both IPv6 and IPv4 local interfaces
clientApp.0.args=7657 ./webapps/
clientApp.0.main=net.i2p.router.web.RouterConsoleRunner Router Console

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

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

clientApp.0.args=7657 ./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

Here you go.

  1. 3 years ago
    • 3 years ago

Leave a Reply

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