FreenetWiki : FreenetInstallationMacOSX

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Oldest known version of this page was edited on 2006-11-20 05:13:06 by RussianMafia []
Page view:
I'm on a Mac and I tried to follow the instructions for Linux... doesn't work. So here is how I make a basic, no-frills, no-extras installation... And it works!

Do this all in the directory where you want Freenet to live, say "Freenet":

1. Get http://downloads.freenetproject.org/alpha/freenet-ext.jar
If you have wget installed, use the command line "wget http://downloads.freenetproject.org/alpha/freenet-ext.jar".

2. Get http://downloads.freenetproject.org/alpha/freenet-stable-latest.jar.url
In this file is the name of another file- download the file with that name!
At the time of this writing, that other file was http://downloads.freenetproject.org/alpha/freenet-r10936-snapshot.jar.
If you have wget installed, you can use the following to accomplish this step:
wget http://downloads.freenetproject.org/alpha/freenet-stable-latest.jar.url
wget -i freenet-stable-latest.jar.url

3. Run this command from the Terminal (for Mac OS X, that's in the Applications\Utilities folder)
java -Xmx100M -cp freenet-ext.jar:freenet-cvs-snapshot.jar freenet.node.Node freenet.ini
If this doesn't work, make sure java is installed and in your path! (try "java -version")
This command will start Freenet for the first time.

FYI:
the -Xmx parameter gives the maximum amount of memory that java will allocate to freenet, you can change it if you want
the -cp parameter specifies the java Jar files where the code to execute is found
freenet.node.Node specifies the class to execute
freenet.ini is the configuration file

(At this point, you should go to "http://127.0.0.1:8888/" in your browser to make sure you see the main Freenet interface. If you do, everything's worked!)

4. Once this is run, press CTRL-C to stop Freenet. then edit your freenet.ini file, the options you can use are here. The main option that you'll need to insert is
node.ipAddressOverride=XXX
You'll need to set the IP address (XXX here) to your external IP.
And you'll need to forward the appropriate port from your firewall; the port that Freenet will use is in the following parameter:
node.listenPort=XXX
So forward or open this port in your firewall! (Mac OS X users go to System Preferences... then Sharing... and then Firewall... and add an entry for "Other" and specify the port number in the TCP and UDP fields; you can name it whatever you want.)

5. Now run the java command from (3) above again. This will start the freenet node again, and you'll need to add references to other nodes. To do this, go to "127.0.0.1:8888/darknet" in your browser and start to add references. Instructions on this are here.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0425 seconds