Skip to content

Instantly share code, notes, and snippets.

@aint
Last active September 23, 2024 01:11
Show Gist options
  • Save aint/9bd4903700ee4123bfcf to your computer and use it in GitHub Desktop.
Save aint/9bd4903700ee4123bfcf to your computer and use it in GitHub Desktop.
Set Up I2P on Mac OS X
  • Install I2P
    • Download I2P
    • java -jar i2pinstall_*.jar
  • Install Java Service Wrapper
    • Download Community Version
    • tar xzf wrapper-*.tar.gz
    • cp wrapper*/bin/wrapper /Applications/i2p/i2psvc
    • cp wrapper*/lib/wrapper.jar /Applications/i2p/lib
    • cp wrapper*/lib/libwrapper.so /Applications/i2p/lib
  • Try to start I2P using /Applications/i2p/i2prouter start or Start I2P Router app
    • tail -f /tmp/wrapper.log and look for any problems
  • Configure FireFox browser
    • Install FoxyProxy
    • Set HTTP Proxy: 127.0.0.1, Port: 4444
    • Whitelist https?://127.0.0.1/*
    • Whitelist *.i2p/*
  • Install I2PMonitor
    • Download I2PMonitor
    • Install I2PControl Router Plugin
    • Wait until plugin is downloaded and installed. Be patient, it can take time, if your router is not yet good integrated into network.
    • Launch I2PMonitor app
@monokrome
Copy link

The brew one doesn't work properly most the time

@harryqt
Copy link

harryqt commented Dec 19, 2022

As a complete alternative, you can just do brew install i2p.

I did this on MacBook Air (M2-ARM chip) and when I do i2prouter start its shows:

Waiting for I2P Service..................
WARNING: I2P Service may have failed to start.
**Failed to load the wrapper**

The most likely reason is that a supported version of the java
wrapper is not available in the I2P installation package for your
platform. It may be possible to manually download and install
a compatible wrapper for your system.
See https://geti2p.net/en/misc/manual-wrapper for hints.

In the meantime, you may start I2P by running the script
/opt/homebrew/Cellar/i2p/2.0.0/libexec/runplain.sh

Running /opt/homebrew/Cellar/i2p/2.0.0/libexec/runplain.sh gives me

I2P started [5268]
/opt/homebrew/Cellar/i2p/2.0.0/libexec/runplain.sh: line 54: %SYSTEM_java_io_tmpdir/router.pid: No such file or directory

However I can access http://127.0.0.1:7657/home

@mcandre
Copy link

mcandre commented Sep 23, 2024

Why is the Homebrew formula missing the entry in /Applications ?

Why doesn't the Homebrew formula register a compatible edition of the JVM for the i2p package?

Why go to the bother of the JVM only to be defeated by ISA's...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment