[Solved] I2P installation on Salix OS 14.1 x86_64

If there's software you need and you can't find, make a request for it.
Post Reply
User avatar
icaroperseo
Donor
Posts: 67
Joined: 19. Nov 2014, 01:12
Contact:

[Solved] I2P installation on Salix OS 14.1 x86_64

Post by icaroperseo »

Edit: Sorry but I was wrong category. My post should not be here (perhaps in Misc). Can someone to move this? Please... :oops:

Me again, sorry!!! :roll:

Well, I would like to install I2P on my computer (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). After searching for a while, I found this slackbuild: https://github.com/i2p/i2p.i2p/tree/mas ... ckware/i2p.

Because I am a newcomer (I'm learning process), I turn to you to ask for your help. I have my doubts about:
  • Would it be advisable to install it by following the steps outlined there?
  • What would be the procedure to try to get its installation?
  • In the README are described 2 ways to update the application. From your perspective, what would be the most convenient way to do this?
Thanks in advance guys!!!
Last edited by icaroperseo on 8. Dec 2014, 23:22, edited 1 time in total.
Image

Image
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: I2P installation on Salix OS 14.1 x86_64

Post by laprjns »

Well since there are no package in the Salix repo (gslap, slapt-get) nor any slackbuild from Slackbuild *sourcery, slapt-src) your only choice is to build from source. The good thing about i2p is that the source provides a method to build a Slackware package, which then can be installed using the package installer (spkg)
icaroperseo wrote:Would it be advisable to install it by following the steps outlined there?
What would be the procedure to try to get its installation?
I suggest you do as follows. Firsrt you need to install both open-jdk and apache-ant;

Code: Select all

$ sudo slapt-get -i open-jre apache-ant
Then download the i2- tarball

Code: Select all

$ wget https://download.i2p2.de/current/i2psource_0.9.17.tar.bz2 
Extract the tarball;

Code: Select all

$ tar -xvf i2psource_0.9.17.tar.bz2 
cd to the i2- top level source directory

Code: Select all

cd i2p-0.9.17/

now build the slackware package using ant

Code: Select all

$ ant slackpkg
After the package is complete all that needs to be done is to install the package using "spkg". The slackware package that was built can be found in "Slackware/i2p/ subdirectory. Just do:

Code: Select all

 sudo spkg -i Slackware/i2p/i2p-0.9.17_0-noarch-1kytv.txz  
icaroperseo wrote:In the README are described 2 ways to update the application. From your perspective, what would be the most convenient way to do this?
I suggest that you build the update the same way as described about and update using the package upgrade option of spkg,

Code: Select all

 sudo spkg -u i2p-new.version.txz
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
icaroperseo
Donor
Posts: 67
Joined: 19. Nov 2014, 01:12
Contact:

Re: I2P installation on Salix OS 14.1 x86_64

Post by icaroperseo »

Wow, thank you very much!!! This was really useful.

After some setbacks (same as I describe below), I was able to make it work.

The process described above is correct, the problems arose from this I2P log:

Code: Select all

2014/12/07 16:59:45 | --> Wrapper Started as Daemon
2014/12/07 16:59:45 | Java Service Wrapper Community Edition 64-bit 3.5.25
2014/12/07 16:59:45 |   Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
2014/12/07 16:59:45 |     http://wrapper.tanukisoftware.com
2014/12/07 16:59:45 | 
2014/12/07 16:59:45 | Launching a JVM...
2014/12/07 16:59:45 | WrapperManager: Initializing...
2014/12/07 16:59:45 | Starting I2P 0.9.17-0
2014/12/07 16:59:45 | Setting up new user directory /home/user/.i2p
...
...
...
2014/12/07 16:59:45 | Successfully copied data files to new user directory /home/user/.i2p
2014/12/07 16:59:46 | INFO: Native CPUID library libjcpuid-x86-linux.so loaded from resource
2014/12/07 16:59:46 | INFO: Native BigInteger library libjbigi-linux-corei_64.so loaded from resource
2014/12/07 16:59:46 | WrapperSimpleApp: 
2014/12/07 16:59:46 | WrapperSimpleApp Error: Encountered an error running main:
2014/12/07 16:59:46 | WrapperSimpleApp Error: java.lang.ExceptionInInitializerError
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at net.i2p.crypto.SigType.<clinit>(SigType.java:34)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at net.i2p.router.tasks.CryptoChecker.warnUnavailableCrypto(CryptoChecker.java:33)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at net.i2p.router.Router.startupStuff(Router.java:326)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at net.i2p.router.Router.runRouter(Router.java:473)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at net.i2p.router.Router.main(Router.java:1188)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at java.lang.reflect.Method.invoke(Method.java:606)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:290)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at java.lang.Thread.run(Thread.java:744)
2014/12/07 16:59:46 | WrapperSimpleApp Error: Caused by: java.security.ProviderException: Could not initialize NSS
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:223)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:224)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at java.security.AccessController.doPrivileged(Native Method)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.jca.ProviderList.getProvider(ProviderList.java:232)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.jca.ProviderList.getIndex(ProviderList.java:262)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.jca.ProviderList.getProviderConfig(ProviderList.java:246)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.jca.ProviderList.getProvider(ProviderList.java:252)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at java.security.Security.getProvider(Security.java:474)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at net.i2p.crypto.ECConstants.<clinit>(ECConstants.java:42)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	... 11 more
2014/12/07 16:59:46 | WrapperSimpleApp Error: Caused by: java.io.IOException: nssLibDir must be a directory:/usr/lib64/seamonkey
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.pkcs11.Secmod.initialize(Secmod.java:188)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:218)
2014/12/07 16:59:46 | WrapperSimpleApp Error: 	... 27 more
2014/12/07 16:59:48 | <-- Wrapper Stopped
After google it, I discovered that there is a bug in openjdk: https://bugzilla.redhat.com/show_bug.cgi?id=1008456. Because of this, I was forced remove it and to install the Oracle JDK package from SlackBuilds (which appears to contain an error, it does not allow download the source code so it requires manual intervention). Once done the foregoing everything works as expected.

Thanks again!!!
Image

Image
Post Reply