FreenetWiki : FreenetAlphatestNodeInstallation

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Installing Freenet 0.7


Setting up a Freenet 0.7 node:


To set up a node you need do following steps:

  1. If you are already running an older version of Freenet, for example Freenet 0.5, shut it down. You can turn it back on later, but it simplifies the install to turn it off at this point.

  1. Run the installer:

If you are on Windows, you may be able to simply go here, and click on the link:
http://downloads.freenetproject.org/alpha/installer/install.html

If you are on Linux you most likely will have to run from the command line:

javaws http://downloads.freenetproject.org/alpha/installer/freenet.jnlp


  1. Follow the prompts; choose power user mode if you want to set bandwidth limits and so on. You can enter your dyndns.org DNS address into the IP address box if you need to.

3a) On Windows, the installer should set up the node to automatically run (as a service) on starting up your computer, and it will open a web browser pointing to http://127.0.0.1:8888/

3b) On Linux, the installer will provide a run.sh script. You will need to use this script to start it (./run.sh start). Then you need to open a browser pointing to http://127.0.0.1:8888/ yourself. However, you should probably take precautions to secure it:

Create a new user for Freenet:

adduser freenet


Make the Freenet node you just installed be owned by it:

chown -R freenet.freenet /usr/local/freenet


Add it to your startup scripts:

ln -s /usr/local/freenet/run.sh /etc/init.d/freenet-new
update-rc.d freenet-new defaults


Now edit the run.sh to make it setuid to the new user:

# RUN_AS_USER


should become:

RUN_AS_USER=freenet


Then the node will run in its own user, and it will start when your computer starts. You can start it now by:

/etc/init.d/freenet-new start


(The above will work on Debian, not tested elsewhere!)

This will become easier when we have some proper linux packages!!

4) This is fproxy, the primary built-in interface to Freenet 0.7. You can also telnet to port 2323 to get to the console interface:

$ telnet localhost 2323


5) If you have another node on port 8888 fproxy, then:
Shut down the node (use the Fproxy homepage, it has a big fat shutdown button).
Edit freenet.ini manually, and change fproxy.port=8888 to some other port, say 9888.
Start the node back up.
Start the other node back up.

6) Some config settings can be changed from the Configuration link from the homepage. Those that cannot, you have to shut the node down as above and edit freenet.ini. The config page will at least give you the basic documentation for each option, so it is still useful even if you have to shut down the node. You have already specified your bandwidth limit, port number, and IP address, if necessary, in the installer; you can change them in the config file or possibly through the Configuration link.


Running a node - Tips and Tricks


Testnet Ports
In able to help with testing of the net, you will need to open/forward the testnet port. It is specified in your node ID under the 'testnetPort' tag.

Exchanging node references over IRC
When your chat program displays the node references like this:
12:34AM <IRCUSERNAME> lastGoodVersion=Fred,0.7,1.0,332
12:34AM <IRCUSERNAME> physical.udp=1.1.1.1:1111
12:34AM <IRCUSERNAME> identity=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
12:34AM <IRCUSERNAME> myName=you_should_set_your_nodes_name_to_something_useful
12:34AM <IRCUSERNAME> location=0.1237634786324
12:34AM <IRCUSERNAME> testnetPort=2111
12:34AM <IRCUSERNAME> testnet=true
12:34AM <IRCUSERNAME> version=Fred,0.7,1.0,336
12:34AM <IRCUSERNAME> End

... just enter "connect:" and [enter], and then paste the text like seen above, it works!

Use this to find out the version number without starting the node

java -cp freenet-ext.jar:freenet-cvs-snapshot.jar freenet.node.Version


Inserting content

They are three ways of inserting content at the moment :

1) use frost Frost
2) using jSite
3) using telnet and FCP like true FCP hackers ;)
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0777 seconds