i2p / i2p.i2p

I2P is an anonymizing network, offering a simple layer that identity-sensitive applications can use to securely communicate. All data is wrapped with several layers of encryption, and the network is both distributed and dynamic, with no trusted parties.
https://geti2p.net
Other
1.95k stars 305 forks source link

Unzip to folder #3

Closed Bengt closed 1 year ago

Bengt commented 9 years ago

Please unzip to a folder with the project name. E.g. if the installer is run from ~/Downloads/, unzip to ~/Downloads/i2p/.

yackermann commented 9 years ago

@Bengt 0_o. Wat?

Bengt commented 9 years ago

Perhaps a procedure helps you with following me:

When I do:

$ cd Downloads
$ wget https://download.i2p2.de/releases/0.9.16/i2pinstall_0.9.16.jar
$ java -jar i2pinstall_0.9.16.jar -console
Welcome to the installation of i2p 0.9.16!
 - I2P <https://geti2p.net/>
The homepage is at: https://geti2p.net/
press 1 to continue, 2 to quit, 3 to redisplay
1
Select target path [/home/bengt/Downloads]
1
[ Starting to unpack ]
[ Processing package: Base (1/1) ]
[ Unpacking finished ]
[ Console installation done ]
$ rm i2pinstall_0.9.16.jar

I get

$ ls ~/Downloads
blocklist.txt   eepsite      i2psnark.config       licenses     scripts
certificates    geoip        i2psvc                LICENSE.txt  systray.config
clients.config  history.txt  i2ptunnel.config      locale       Uninstaller
docs            hosts.txt    INSTALL-headless.txt  man          webapps
eepget          i2prouter    lib                   runplain.sh  wrapper.config

when I expected

$ ls ~/Downloads
i2p

Unfortunately, i2p does not work when copied to another folder, so the workaround is to either type the path the installer (yuck) or create the path manually like this:

$ mkdir Downloads/i2p
$ cd Downloads/i2p
$ wget https://download.i2p2.de/releases/0.9.16/i2pinstall_0.9.16.jar
$ java -jar i2pinstall_0.9.16.jar -console
Welcome to the installation of i2p 0.9.16!
 - I2P <https://geti2p.net/>
The homepage is at: https://geti2p.net/
press 1 to continue, 2 to quit, 3 to redisplay
1
Select target path [/home/bengt/Downloads/i2p]
1
[ Starting to unpack ]
[ Processing package: Base (1/1) ]
[ Unpacking finished ]
[ Console installation done ]
$ rm i2pinstall_0.9.16.jar

Note that this is an actually common use case: You get the installer from a webpage and browsers (should) download to the location set by xdg-user-dirs (usually ~/Downloads/). So the obvious thing is to execute the jar where it is placed automatically and hammer 1 and return till the installer finally does its thing. Since you can download an arbitrarily large amount of stuff from the web, the download folder is littered most of the time. In my case it was (fortunately) tidied up at the moment but usually that would have produced a mess and sprinkle 25 i2p files and directories across possibly even more downloaded files and directories.

yackermann commented 9 years ago

@Bengt good point*)

silvernode commented 8 years ago

I love making installers, I will make one for i2p and anyone interested in helping can submit pull requests. I want to try and make the installer as dynamic as possible, which includes getting dependencies per system (as much as can possible be added) such as java. If anyone has any ideas please shoot me a message on github.

I just realized this thread is almost a year old and I replied to it (ouch). I'm sure everyone here will get notified, so let me know what you think of my idea. Thanks

p.s. I have i2p running full time on a dedicated server just to help the network (rarely use it). Keep up the good work.

EDIT: A dynamic URL would be nice. I really don't know how to extract version numbers from webpages with something like curl. for an example of dynamic links, see telegram messenger download for desktop version.

Bengt commented 8 years ago

@silvernode Thanks for commenting. Your idea seems to deserve an issue of its own at least. Perhaps it is even better to have it in an own repository. To make an installer, you need to have nicely organized packages first. This issue is about improving the packaging of this main package. Since no one seems to care, I doubt that an installer for multiple i2p packages is viable at this point.

silvernode commented 8 years ago

@Bengt Actually I didn't mean to say installer. I meant to say downloader. Just a script to run that makes sure you have java on your distro and sets everything up before getting the jar and running the install.

eyedeekay commented 1 year ago

I'll do this in i2p.firefox.