This wiki is now locked - both user registration and edits (except by admins) are disabled. We're currently migrating all the content to our new wiki. If you have time, please register and help us out!

You can still view the source code of every page. Once a page has been copied over to the new wiki, please add a link to it to MigratedPages (the only page which is still editable), to notify the admins to go and blank it.


Freenet on FreeBSD 6.x and 7.x (with(out) X )

This will tell you the simple steps to install Freenet 0.7 on FreeBSD 6.1 without X

Manually


You will work as the root user in the entire process.
Make sure you understand everything before you work as root.

Package requirement
You need to install wget (for update.sh) and a jvm.
It seems that native jdk 1.5 (jdk-1.5.0p3_6) from ports (/usr/ports/java/jdk15) doesn't work. I recommend to use diablo jdk from http://www.freebsdfoundation.org/downloads/java.shtml.

Create a new user for Freenet
adduser freenet
cd /usr/home/freenet


Download Freenet
fetch http://downloads.freenetproject.org/alpha/installer/selfextractpack.jar


Install Freenet
DISPLAY="" java -jar selfextractpack.jar


Install the port /usr/ports/misc/compat4x/
(we need the libs)
cd /usr/ports/misc/compat4x/
make install
cd /usr/home/freenet/freenet


Add the FreeBSD wrapper
fetch http://wrapper.tanukisoftware.org/download/3.2.0/wrapper-freebsd-x86-32-3.2.0.tar.gz
tar xzf wrapper-freebsd-x86-32-3.2.0.tar.gz
cp wrapper-freebsd-x86-32-3.2.0/bin/wrapper /usr/home/freenet/freenet/bin/wrapper-freebsd-x86-32


Add Freenet and compat4x to your startup scripts
ln -s /usr/home/freenet/freenet/run.sh /usr/local/etc/rc.d/freenet.sh


Add Freenet and compat4x to the rc.conf
vi /etc/rc.conf

and add
compat4x_enable="YES"
Freenet_enable="YES"

to the end of the file

Start as the freenet user
Make setuid to the new user:

Edit the file run.sh (if you already editing the run.sh file, skip this step).
vi run.sh

and change the line
# RUN_AS_USER

to:
RUN_AS_USER=freenet

Then the node will run in its own user, and it will start when your computer starts.

Starting Freenet
You can start it now by:
/usr/local/etc/rc.d/freenet.sh start
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki