Date: Fri, 20 Feb 2004 14:21:13 +0100 From: Stefan Walter <sw@gegenunendlich.de> To: FreeBSD-Ports <freebsd-ports@freebsd.org> Cc: lioux@freebsd.org Subject: Re: net/freenet -- how does one use it? (possibly broken) Message-ID: <20040220132113.GA20127@kyuzo.dunkelkammer.void> In-Reply-To: <20040219173838.GT68388@seekingfire.com> References: <20040219173838.GT68388@seekingfire.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--rJwd6BRFiFCcLxzm Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Cc'ed lioux, as he's the maintainer of net/freenet] Tillman Hodgson, 19.02.04, 18:38h CET: > After installing the freenet port, I'm at a bit of a loss as to how to > actually /use/ it. The port doesn't install 'start-freenet.sh' which is > referenced in /usr/local/share/doc/freenet/README. Instead, it appears > that /usr/local/bin/freenet replaces it (though I might be wrong as I > haven't gotten it to work you). /usr/local/bin/freenet is the correct script to run. That's because the Freenet people assume you just unpack their software into a directory and run it from there. > Running that script produces: >=20 > $ freenet > Usage: /usr/local/bin/freenet [-h] [-i|-o] > Options: > -h Display this help message > -c Configure FreeNet node > -i Start a FreeNet node > -o Stop a FreeNet node >=20 > Running 'freenet -c' does the same thing, however. Delving into Yes, you're right. That's a bug in the startup script - the 'c' parameter isn't recognized. Applying the attached patch to /usr/local/bin/freenet should make it work. > /usr/local/bin/freenet (it's a shell script), I notice lines like this: >=20 > HOME_DIR=3D${HOME}/.freenet > configure_freenet () { > echo "Configuring FreeNet node" > cd ${HOME_DIR} && > ${JAVAVM_CALL} -jar ./${JAR_START} freenet.node.Main --config "${= @}" > } >=20 > Which don't see right ... I don't have a ~/.freenet, and the jar files > are actually in /usr/local/share/java/jar/freenet.=20 The startup script creates ~/.freenet for you and places soft links to the jar files in there, along with the configuration files. > If I manually do: >=20 > /usr/local/bin/javavm -jar /usr/local/share/java/jar/freenet/freenet.jar= freenet.node.Main --config >=20 > I enter a configuration system. I haven't followed this track because I > have no idea if I'm on the right track or not. It's correct. > Is there some documentation on how to properly install this port that > I've overlooked? I'm not even sure if I'm supposed to run it as my > regular user or as root, or how to configure a permanenet node, or ... It's possible to use it as a regular user, so you should do that - maybe even as a 'sandbox' user created for that purpose only. Be sure to read http://freenet.sourceforge.net/index.php?page=3Dfaq, too. If you're interested in anonymous networks, /usr/ports/net/mute-net might be interesting for you, too. Stefan --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="freenet-config.patch" Content-Transfer-Encoding: quoted-printable --- freenet.old Fri Feb 20 14:04:19 2004 +++ freenet Fri Feb 20 14:06:08 2004 @@ -114,7 +114,7 @@ fi =20 # parse command line parameters -while getopts ":io" COMMAND_LINE_ARGUMENT ; do +while getopts "cio" COMMAND_LINE_ARGUMENT ; do case "${COMMAND_LINE_ARGUMENT}" in c) CONFIGURE=3Dyes --WIyZ46R2i8wDzkSu-- --rJwd6BRFiFCcLxzm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQGVAwUBQDYJyVaRERsSueCzAQLwJQv+Lf+2BolrDIEJUYC/kSxKq58OpLeTnkAR jB0PDbGBKwuEozMZV1PEn+WDdGI9wRcbCExtrxJmDAx/1G9BexzLOmhr7Q32eLA5 qbUCnx82EGEJRGkbhR2LDdfjtrhB4u4r7bDaiSlt3gyMS6kmsgbk1XcLS7G3ezBF 01qONwILNYI8pJb0RnvPBVnY97KzqbXAgp+dodxDzdHlWBhTBEKQsa5L1CUAxfxB OrGkiT+vpFq3VyySVbccL9MQlx9aSKhH7h5VR/FxgadzsSc5aWEFhk+aG7/6gyRV qYgGFo7fuKpBih0pGJ0tqL4TLZWMf2F8TJJRk3GXOHvYrxlGtEZHMMml4Dfez5xg fKeJi16Cit/MNLJRY+jJqVc+wztRQ8CktCJJRWh9H1BHT3WVInEh2wMZdyIAo33i ymcsPIAtzenGJQH8EqCzAV/bw0AWEwZZo79kdJhVT3JIRkhBxfrmt9sMbCTtyAZ5 LJL2XGAAMqAlGhVUWeMKT/Ly94jmJveI =RNCN -----END PGP SIGNATURE----- --rJwd6BRFiFCcLxzm--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040220132113.GA20127>