= I2P on <Ubuntu>
On <Ubuntu 26.04>, visiting https://i2p.net/en/downloads/ recommended me to download https://files.i2p.net/2.12.0/i2pinstall_2.12.0.jar so I did:
``
cd ~
wget https://files.i2p.net/2.12.0/i2pinstall_2.12.0.jar
sudo apt install openjdk-17-jre
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 PATH="$JAVA_HOME/bin:$PATH" java -jar ./i2pinstall_2.12.0.jar -console
``
Then after some clicking faff
``
cd ~/i2p
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 PATH="$JAVA_HOME/bin:$PATH" ./i2prouter start
``
and it told me:
``
Starting I2P Service...
Waiting for I2P Service....
running: PID:423806
``
and it automatically opened up a Chrome tab at: http://127.0.0.1:7657/welcome
The default Java 8 installed on my machine is too old, needed 17 or above. Very annoying.
To make things more bearable I added this to my `.bashrc`:
``
i2p() (
cd ~/i2p
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 PATH="$JAVA_HOME/bin:$PATH" ./i2prouter "$@"
)
``
so I can just:
``
i2p start
i2p stop
``
Back to article page