-
Notifications
You must be signed in to change notification settings - Fork 332
Description
Is it possible to use i2p.i2p in portable mode? I couldn't find instructions so I did it this way:
Install via i2pinstall_2.9.0_windows.exe and select custom dir instead of C:\ during installation
After installation go to the i2p folder:
In wrapper.config set:
wrapper.java.classpath.1=lib\*.jar
wrapper.java.library.path.1=
wrapper.java.library.path.2=lib
# Dot instead of empty, I'm not sure but about it, but in case of empty string I have an error
wrapper.java.additional.2=-Di2p.dir.base="."
wrapper.logfile=i2ptemp/wrapper.log
wrapper.java.pidfile=i2ppid\routerjvm.pid
wrapper.pidfile=i2ppid\i2p.pid
In the same wrapper.config, remove # from the beginning of the lines and set:
wrapper.java.additional.3=-Di2p.dir.pid="i2ppid"
wrapper.java.additional.3.stripquotes=TRUE
wrapper.java.additional.4=-Di2p.dir.temp="i2ptemp"
wrapper.java.additional.4.stripquotes=TRUE
wrapper.java.additional.5=-Di2p.dir.config="ip2config"
wrapper.java.additional.5.stripquotes=TRUE
In i2prouter.bat add after setlocal:
rmdir /s /q i2ptemp
mkdir i2ppid
mkdir i2ptemp
Replace the directory with the installed program with empty in all files in files in folders:
in ip2config/i2ptunnel.config.d/*
in ip2config/eepsite/*
in ip2config/clients.config.d/*
And in file ip2config/clients.config.bak
Example of replacement: 'D:\soft\i2p' -> ''
Run via i2prouter.bat, check is all OK, stop
Move to another directory, run via i2prouter.bat and check all again
Everything works in portable mode, including jetty and other clients, but if you create a new tunnel, etc., then
unfortunately, in the .xml file of the tunnel (along the path ip2config/i2ptunnel.config.d/*)
a line with the full path is written and you need to delete the full path again path from the line:
configFile=full_path_to_dat_file.dat
Is it possible to somehow configure everything so that everything will use relative paths automatically, and no need to change it manually? I know I can use Docker but I want to use it without containers in portable mode with ability to move to another folder