Re: [freenet-support] How to force freenet to use a non-default java

2010-09-08 Thread Dennis Nezic
On Wed, 8 Sep 2010 22:10:22 -0400, Uriel Carrasquilla wrote:
> 
> 
> > Edit the "wrapper.java.command=java" line
> > in the wrapper.conf file.
> 
> 
> I must be doing something wrong.
> I started from scratch by deleting the freenet directory followed by
> a "tar -xzvf freenet...tar.gz". Then, I changed wrapper.con file as
> follow: wrapper.java.command=$HOME/bin/java
> [...]
> Could it be that "$HOME" is causing problems?

Could be. Try not using variables, but instead /home/fullpath/bin/java.
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] How to force freenet to use a non-default java

2010-09-08 Thread Uriel Carrasquilla


> Edit the "wrapper.java.command=java" line
> in the wrapper.conf file.


I must be doing something wrong.
I started from scratch by deleting the freenet directory followed by a "tar 
-xzvf freenet...tar.gz".
Then, I changed wrapper.con file as follow:
wrapper.java.command=$HOME/bin/java

I did an "ls $HOME/bin/java" to confirm.
Then, I ran "$HOME/bin/java -version" to confirm it is SUN's 1.6 version.

When I tried to run "./run.sh start", it gave me the default Linux Open JVM 
(that I cannot change since I don't have root access).

I started from scratch again, "tar, followed by modify wrapper.conf".
This time, I went into "run.sh" and every call to java, I changed to 
"$HOME/bin/java".
Then, I did the same with ./freenet/bin/1run.sh and changed very called to java 
to $HOME/bin/java.

At this point I did a "cd ./freenet" and typed:
./bin/1run.sh

Everything was looking great until I got a message:  crontab command not found. 
 Well, I don't have crontab and I won't be getting it from my hosting company.
I verified by typing "which crontab", the failing command.

I thought, well, I will just have to start freenet (./run.sh start) every time 
I reboot (or put in my own profile).

I proceeded to do a "./run.sh status".
I was told freenet was not running.
I proceeded to "./run.sh start"

Got the following messages:
Starting freenet 0.7

When I do the ./run.sh status:  no luck, it is not running.

When I look at "freenet.ini", it is very small with only 7 lines.

By the way, for some reason I can only have 128M for my JVM.
I went into wrapper.conf and the line the comments tell me to change (I removed 
the # in the 1st column), I ended the line with "MaxPermSize=128m".

When I looked at ./log/wrapper.log, there is a message saying unable to start 
JVM.  It is repeated quite a few times along with no such file or directory.
I doubled checked that I can run Java:
$HOME/bin/java -version

Could it be that "$HOME" is causing problems?
Could it be that I need to type "/$HOME" in all the files?

I promise to put together the documentation once we get this project going.

Thank you all for your help so far.






___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


[freenet-support] running multiple freenet in a LAN

2010-09-08 Thread Uriel Carrasquilla
I am trying to figure things out about how freenet 0.7 darknet works by using 
live systems.
It would be beneficial to set up a couple of machines in a lab using the same 
LAN.
When I tried this, freenet is complaining that all the machines are in a chain 
(only one public IP address via a NAT).
I remember seen somewhere that there is a parameter that allows the node to be 
aware that it is in a LAN.
Does anybody have documentation on how to set up a lab in a LAN?
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] cloning freenet on different servers

2010-09-08 Thread Uriel Carrasquilla
> I'm currently working on a bartPE install of Freenet. I have a working
> system now (I'll post that in the thread I started about this), however
> I hit the same type of problems.

> What I did in the end was to install freenet on a clean PC, run the
> wizard once and then copy all the installation files - but I emptied the
> datastore directory. When Freenet is started it recognises that the
> datastore is empty and corrects itself. It seems I had to keep the
> caches (node.db4o(.crypt), temp-PORTNUMBER and
> persistent-temp-PORTNUMBER) otherwise freenet bombs out with a complaint
> that these didn't exist although I suspect there's a configuration I
> could set in freenet.ini that stops that error (anyone know what it is?)

I will be looking for this post of yours.  I hope it is in this same list.
It seems there are several steps to be taken before the cloning can be 
completed.
Thank you.

___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] How to force freenet to use a non-default java

2010-09-08 Thread Uriel Carrasquilla

> Don't do that. Edit the "wrapper.java.command=java" line
> in the wrapper.conf file.

This is a nice clean solution.  Thank you.
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] cloning freenet on different servers

2010-09-08 Thread Dennis Nezic
On Wed, 8 Sep 2010 11:07:07 +0100, Mark wrote:
> 
>  You shouldn't run into problems doing a direct copy, assuming you
>  change the four ports mentioned in freenet.ini. You will simply
>  have multiple instances of freenet running, each accessible via
>  it's own http port, each accessing it's own udp data pipes/local
>  sockets. I think.
> >>> thank you for getting back to me.
> >>> If I understand you correctly, if I copy the "freenet"
> >>> directory/subdirectories from machine A to another machine in a
> >>> different geographical location, say machine B, I don't need to do
> >>> anything but start the service (run.sh start). All of my
> >>> configuration files, trusted friends, etc. will be duplicated from
> >>> machine A to machine B. Then, a new KEY will be issued by machine
> >>> B that I can use to make friends with machine A. Correct?
> >> Oh ... hrmm ... right, each node has it's "identity key" ...
> >> stored in the opennet-OPENNETPORT and node-DARKNETPORT files. I'm
> >> not sure what would happen if two nodes with the same "identities"
> >> run at the same time. (They will, of course, but I'm not sure
> >> what, if any, collisions will happen. I don't think I want to find
> >> out either :b.) Perhaps (my wild guess) if you delete these two
> >> files they will be regenerated?
> >
> > There is yet another problem.  The cache (both of them) will
> > contain information from the originating Machine A. It seems, there
> > is no easy way to clone.
> >
> I'm currently working on a bartPE install of Freenet. I have a working
> system now (I'll post that in the thread I started about this),
> however I hit the same type of problems.
> 
> What I did in the end was to install freenet on a clean PC, run the
> wizard once and then copy all the installation files - but I emptied
> the datastore directory. When Freenet is started it recognises that
> the datastore is empty and corrects itself. It seems I had to keep the
> caches (node.db4o(.crypt), temp-PORTNUMBER and
> persistent-temp-PORTNUMBER) otherwise freenet bombs out with a
> complaint that these didn't exist although I suspect there's a
> configuration I could set in freenet.ini that stops that error
> (anyone know what it is?)

Hmmm -- I regularly delete those caches, for various reasons, without
problems. How long ago did you have that problem? (Maybe it was
corrected since then.)

Also, I still think there will be a problem with cloned nodes having
the same identity. At least with ARKs (which are node-unique USKs that
hold IP information, to help with NATs, I assume) -- each of the
clones, I believe, will be inserting different (IP) information to the
same USK. And I suspect other conflicts will arise too. (If you have
two clones connected to you as peers, will your node see them as
different nodes even though they have the same "identity (keys)"? If
not (perhaps they will be regarded as multiple addresses to the same
node, similar to 127.0.0.1 and 192.168.0.1), since they will each
eventually have different "locations" in the freenet topology, their
contribution to freenet will not be avaiable to you.) That's my
handwaving, at least.
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] How to force freenet to use a non-default java

2010-09-08 Thread Romain Dalmaso
On Wed, Sep 8, 2010 at 4:00 AM,   wrote:
> If you're
> launching with the shell script (is there a launcher shell script anymore?),
> you could just change where it calls java and hardcode your own location as
> above.

Don't do that. It's stupid. Edit the "wrapper.java.command=java" line
in the wrapper.conf file.
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] cloning freenet on different servers

2010-09-08 Thread Mark

 You shouldn't run into problems doing a direct copy, assuming you
 change the four ports mentioned in freenet.ini. You will simply have
 multiple instances of freenet running, each accessible via it's own
 http port, each accessing it's own udp data pipes/local sockets. I
 think.
>>> thank you for getting back to me.
>>> If I understand you correctly, if I copy the "freenet"
>>> directory/subdirectories from machine A to another machine in a
>>> different geographical location, say machine B, I don't need to do
>>> anything but start the service (run.sh start). All of my
>>> configuration files, trusted friends, etc. will be duplicated from
>>> machine A to machine B. Then, a new KEY will be issued by machine B
>>> that I can use to make friends with machine A. Correct?
>> Oh ... hrmm ... right, each node has it's "identity key" ... stored in
>> the opennet-OPENNETPORT and node-DARKNETPORT files. I'm not sure what
>> would happen if two nodes with the same "identities" run at the same
>> time. (They will, of course, but I'm not sure what, if any, collisions
>> will happen. I don't think I want to find out either :b.) Perhaps (my
>> wild guess) if you delete these two files they will be regenerated?
>
> There is yet another problem.  The cache (both of them) will contain 
> information from the originating Machine A.
> It seems, there is no easy way to clone.
>
I'm currently working on a bartPE install of Freenet. I have a working
system now (I'll post that in the thread I started about this), however
I hit the same type of problems.

What I did in the end was to install freenet on a clean PC, run the
wizard once and then copy all the installation files - but I emptied the
datastore directory. When Freenet is started it recognises that the
datastore is empty and corrects itself. It seems I had to keep the
caches (node.db4o(.crypt), temp-PORTNUMBER and
persistent-temp-PORTNUMBER) otherwise freenet bombs out with a complaint
that these didn't exist although I suspect there's a configuration I
could set in freenet.ini that stops that error (anyone know what it is?)

Also, I hit the dreaded 'service didn't respond to signal' problem. I
solved that by running Freenet using the wrapper with the -c switch to
run as a console application rather than as a service.


___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe