In Windows check the registry first:
HKEY_LOCAL_MACHINE\Software\Freenet\inspath
If they didn't use the installer though, there will
be no registry value though (the .zip version of
Freenet). I've found that almost all of them used
the installer though. The default install location
is c:\windows\program files, so people who
didn't use the installer will probably put it there.
After finding where they installed it read the file
flaunch.ini and you'll be able to find the JRE they
used, the port, and location of frequest/finsert.
There is a bug in the current Windows installer
though, beware. If they change ports (not too
common), the values in flaunch.ini and freenet.ini
don't match and so finsert/frequest won't work.
If your app
I think you're wasting your time if you try to check
a zillion places in unix. Since there is only a Debian
installer, you aren't going to find anything by your
magic script most of the time. Maybe doing
'which java' will help, but some people, like me,
have more than one Java installed. Just make *nix
people edit a whateverrc file, save yourself lots
of time IMHO.
Debian stores stuff in these locations (Thanks for
this info, Mr. Bad):
All the config files go in /etc/freenet.
/etc/freenet/freenetrc
/etc/freenet/nodes.config
Log files go in /var/log/freenet. Java jar goes in /usr/share/java
There's an /etc/init.d/freenet and an /etc/logrotate.d/freenet.
Scripts all go in /usr/bin.
data store goes into /var/lib/freenet.
On Saturday 21 July 2001 03:43 am, you wrote:
> I want it to be "idiot proof"...
>
> I want the installation instructions for this program to be
> "put it somewhere and run it"
>
> I don't want to assume that the user will know. I don't
> even want to know what port *your* server is running on...
> I want to develop a function which will reliably tell me
> what port freenet is using on any given local machine. If
> there isn't a method somewhere in freenet.jar, I am going to
> search in freenet.ini (in windows) and .freenetrc (in Unix).
> In order to search the files... I have to know where most
> people keep them.
>
> In PERL there is a special variable which tells you what
> platform you are running on.
>
> PERL is an excellent cross platform "control language" for
> Java in my opinion.
>
> Here is what I mean... look at getjavapath() and
> getnullfile()...
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Greg
> Wooledge
> Sent: Saturday, July 21, 2001 4:25 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [freenet-chat] Where is yours...?
>
> Michael D. Carey ([EMAIL PROTECTED]) wrote:
> > Is there some other way to determine what port the node is
> > operating on?
>
> You could do something horribly radical like asking the
> user....
----------------------------------------
Content-Type: application/octet-stream; charset="us-ascii";
name="freenet_request.pl"
Content-Transfer-Encoding: quoted-printable
Content-Description:
----------------------------------------
_______________________________________________
Chat mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/chat