On Sat, 19 Feb 2005 21:08:08 +, Matthew Toseland
[EMAIL PROTECTED] wrote:
Try running it in bash?
$ /bin/bash
$ source start-freenet.sh
...
Really, we should fix this. I ran into the same thing under FreeBSD.
The syntax used for some of the tests is a little weird and not quite
standard.
If you'd like, I'll take care of it.
Conrad
On Thu, Feb 17, 2005 at 07:57:45PM -0500, Robert Webber wrote:
Hello:
I am trying to run freenet on Solaris 10 (3/05) for Sparc.
I have downloaded the archive and validated that it is intact. When
I run freenet for the first time, the installer builds the
freenet.conf file, but the application fails with the following
error:
start-freenet.sh: test: unknown operator ==
The start-freenet.sh script produced a few informational messages
that might be important, might be not. Here is the output of the
session:
(BTW I used the default options)
$ sh start-freenet.sh
Detected freenet-ext.jar
Detected freenet.jar
It appears that this is your first time running Freenet. You
should read the README file as it contains important instructions
and advice.
First we must generate a freenet.conf file. I will now run
Freenet in configure mode, and it will ask you a number of
questions. If you don't understand the question, hitting enter
without typing anything will go with the default which is likely
to be the right thing.
no random in shell, enter a FNP port number + ENTER
Freenet Configuration
Running in simple mode. Some preferences will be skipped.
You can choose the default preferences by just hitting ENTER
Setting: listenPort
The port to listen for incoming FNP (Freenet Node Protocol)
connections on. INFO: Native CPUID library jcpuid not loaded,
reason: 'Dont know jcpuid library name for os type 'SunOS'' - will
not be able to read CPU information using CPUIDINFO: Native
BigInteger library jbigi not loaded, reason: 'Dont know jbigi
library name for os type 'SunOS'' - using pure java
Config error: listenPort= - Value could not be parsed - format error
perhaps? - expected Integer (whole number, up to 2,147,483,648,
kKmMgG accepted - example 2.1m = 2,100,000) - detail:
java.lang.NumberFormatException: empty String
java.lang.NumberFormatException: empty String
at
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecim
al.java:994) at
java.lang.Double.parseDouble(Double.java:482) at
freenet.config.Params.parseInt(Params.java:413) at
freenet.config.Params.getInt(Params.java:383) at
freenet.config.Setup.setParam(Setup.java:463) at
freenet.config.Setup.dumpConfig(Setup.java:210) at
freenet.node.Main.main(Main.java:420)
listenPort [64490]
Setting: seedFile
A file containing one or more node references which will be
incorporated into the node's routing table on startup. A reference
is only added if there is no previously existing reference to that
node. When this node announces, it will announce to the nodes
listed in this file. seedFile [seednodes.ref]
Setting: storeSize
The byte size of the data store directory.
The maximum sized file that will be cached is 1/100th of
this value. We recommend the default 256MB, to cache the largest
common file size on freenet, 1MB plus some headers, with plenty of
elbowroom, but any size about 101MB should be adequate (a 1MB chunk
is not exactly 1MB...). Note that if you increase settings such as
maximumThreads, you may need to use a larger store.
storeSize [268435456]
Setting: inputBandwidthLimit
If nonzero, specifies an independent limit for incoming data only,
in bytes per second. A 512kbps broadband (DSL or cable) connection
is 64kB/sec, but you may want to use other things than Freenet on
it. However, Freenet's background usage should be close to the
output limit most of the time. You may want to set this and then set
doLowLevelInputLimiting=false, in order to have more accurate
pending-transfers load. You SHOULD do this if your connection has
more outbound than inbound bandwidth. inputBandwidthLimit [0]
Setting: outputBandwidthLimit
If nonzero, specifies an independent limit for outgoing data only,
in bytes per second. Not entirely accurate. If you need exact
limiting, do it at the OS level. A typical broadband connection has
either a 128kbps or a 256kbps uplink, this equates to 16kB/sec and
32kB/sec respectively. You will need to keep some bandwidth back for
other apps and for downloads (yes, downloading uses a small amount
of upload bandwidth). We suggest therefore limits of 12000 for a
128kbps upload connection, or 24000 for a 256kbps upload connection.
Most broadband connections have far more download bandwidth than
upload bandwidth... just because you have 1Mbps download, does not
mean you have 1Mbps upload; if you do not know what your