Re: [freenet-support] HOWTO start up FREENET automaticly with Runlevel Scripts??

2004-06-28 Thread evolution
> im a linux/unix newbie but want to install and have freenet started as a
> daemon at system-boot time. (Runlevel 3+5). i tried something but still
> failed yet to get it to work.

What OS and distro are you using?  Some kind of Unix?  Some kind of Linux?  If
Linux, which distro?  If you're running Gentoo (unlikely), then try installing
Freenet from 'emerge freenet' and run 'rc-update add freenet default'.

Really, without knowing your OS, there's not much help to be had.  If you're
feeling adventurous, you can check out my script below.  The start() function
is probably what you'll want to look at.  Notice the CLASSPATH variable.  You
need to have freenet.jar and freenet-ext.jar in there.

#!/sbin/runscript
# Gentoo freenet init.d-script
#
# This script requires the companion script start-freenet.sh to do it's
# job.  This script is needed to facilitate full logging of freenet.
#
# Also requires the /etc/conf.d/freenet file to be configured correctly.
#
# Gentoo Maintainer: Brandon Low <[EMAIL PROTECTED]>
# Authors: Per Wigren <[EMAIL PROTECTED]>
#  Brandon Low <[EMAIL PROTECTED]>
#

depend() {
need net
}

check_config() {
if [ -z "${FREENET_NICENESS}" ] || [ -z "${JAVA_OPTIONS}" ]; then
eerror "Please set all options in /etc/conf.d/freenet"
return 1
fi
if [ ! -f /etc/freenet.conf ]; then
eerror "To configure freenet, please run:"
eerror "# ebuild
/usr/portage/net-p2p/freenet/freenet-[version].ebuild"
return 1
fi
return 0
}

start() {
JAVA="$(java-config --java)"
#Uncomment this next line if your JVM doesn't support NPTL and you're
using NPTL
#export LD_ASSUME_KERNEL=2.4.1

check_config || return 1

ebegin "Starting Freenet now"
if [ ! -f /usr/lib/freenet/freenet-ext.jar ]; then
 ewarn "freenet-ext.jar not found.  It can be downloaded from"
 ewarn "http://freenetproject.org/snapshots/freenet-ext.jar";
 eend 1
 return 1
fi
if [ ! -f /var/freenet/seednodes.ref ]; then
 ewarn "seednodes.ref not found, you can download some seeds"
 ewarn "from
http://hawk.freenetproject.org/~freenet4/seednodes.ref";
 eend 1
 return 1
fi

   
CLASSPATH=/usr/lib/freenet/freenet.jar:/usr/lib/freenet/freenet-ext.jar:$CLASSPATH

# if Sun JDK set -server option as suggested on mailing list
if [ ! -z "`${JAVA} -help 2>&1 | grep '[-]server'`" ]; then
JAVA_ARGS="-server"
else
JAVA_ARGS=""
fi
JAVA_ARGS="${JAVA_ARGS} ${JAVA_OPTIONS}"
ulimit -n 4096
# Had to change off of using start-stop-daemon to start it,
# because of suckage.  This allows us to log the stdout and
# stderr of freenet.
export JAVA JAVA_ARGS CLASSPATH
echo "XX" > /var/freenet/freenet.pid
nice -n ${FREENET_NICENESS} sudo -u freenet /usr/bin/start-freenet.sh \
> /var/freenet/freenet.pid
sleep 1
ps ax|grep "^ *$(cat /var/freenet/freenet.pid)" > /dev/null
eend $?
}

stop() {
ebegin "Stopping Freenet"
start-stop-daemon --stop --quiet --pidfile /var/freenet/freenet.pid
eend $?
}

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] RE: trouble getting any information

2004-06-28 Thread evolution
> I am running Win XP with IE and Zonealarm Pro (active and switched off, no
> difference).

Please don't use IE with Freenet.  You don't want to compromise your anonymity,
whether you now feel you need it or not.

As for the problem you describe, it may be that you just need to keep running
Freenet.  When I've gotten those messages (and everything should have been
okay) I've noticed that they just go away after a while.  A small possibility
is that everything *is* running okay, but your node doesn't know about enough
other nodes yet, and the few it does know about maybe rejected your node's
advances because they were too busy at the moment.  Like a busy signal on the
telephone.

Remember also that Freenet, unlike other peer to peer networks, doesn't offer
the convenience of turning it on only when you want.  For the node to work at
all well, it needs to integrate itself into the network.

When I started my last office job, I learned everyone's name and got on a
conversation-basis with them sometime before I actually was able to get in on
the rumor distribution chain.  It's roughly the same (in effect) with Freenet. 
Run it as much as possible until you can reliably retrieve a few sites.

On the other hand, maybe there's a config problem?  Maybe try re-seeding the
node, by running freenet-webinstall.exe again.

-todd

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


[freenet-support] HOWTO start up FREENET automaticly with Runlevel Scripts??

2004-06-28 Thread Axel Werner
hi there!

im a linux/unix newbie but want to install and have freenet started as a 
daemon at system-boot time. (Runlevel 3+5). i tried something but still 
failed yet to get it to work.

there seems to be at least 2 problems left:

1. i installed (unpacked) freenet to a DATA Volume (partition) 
like /vol1/freenet and configured it to have any required
directories for storage and temp etc below that 
base-directory /vol1/freenet.

2. JAva runtime is installed and after a real User-login ($PATH extension is 
set within /etc/profile) it can be accessed directly by entering "java" at 
the console prompt.

3. while PWD is /vol1/freenet i can type "sh start-freenet.sh" and freenet 
will fire up as expected.

4. however, if i try to do all that within a RUNLEVEL Script it will fail! 
either there is no JAVA found OR if i extended the $PATH variable for JAVA 
binaries within the Start-Script it wont find the corresponding freenet files 
like the freenet.jar and so on.

So does anybody know how to get that thing up working ??

thanks fer any help!

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


[freenet-support] RE: trouble getting any information

2004-06-28 Thread Rhys Thomas



Hi there Jeff
 
I got your email from a support board for freenet. 
You described the same problem that I am having. 
 
<<"The request couldn't even 
make it off of your node. Try again, perhaps withthe GPL to help your node 
learn about others. The publicly available seednodes have been very busy 
lately. If possible try to get a friend to giveyou a reference to their node 
instead.">>
 
please could you tell me 
what you worked out as I have not yet managed it!
 
I am running Win XP with 
IE and Zonealarm Pro (active and switched off, no 
difference).
 
thanks
 
Rhys

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]