Most recent edit on 2008-09-25 13:14:52 by NotAnonymous [re-inserted. Sorry for overwriting!]
Additions:
Installing Freenet 0.7 on Linux
- 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.
- Run the installer from the command line:
- Follow the prompts.
- The installer will start Freenet automatically. But if you need to start Freenet manually in the future, use the run.sh script. You will need to use this script to start it (./run.sh start).
- When it opens the web page, click on the big link. Follow the prompts through the wizard to complete the configuation of your node. If you have any problems, go to http://127.0.0.1:8888/wizard/∞ to complete the setup.
- Freenet 0.7 uses a proxy so your standard web browser can access the pages on Freenet. Open a browser pointing to http://127.0.0.1:8888/∞ (you should already have one having completed the wizard). This is called FProxy, the primary built-in interface to Freenet 0.7.
- 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.
- Some config settings can be changed from the Freenet Node Configuration∞ page. For those that cannot, you have to shut the node down as above and edit freenet.ini. The Configuration 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 through the Configuration page.
- There are some optional tips and tricks which might make your life easier.
- BuildingFromSource
Installing Freenet 0.7 on Linux Without X (headless systems)
You can also telnet to port 2323 to get to the console interface:
Securing the Freenet installation on Debian Linux
The following will work on Debian, not tested elsewhere!
Create a new user for Freenet:
Make the Freenet node you just installed be owned by it:
Add it to your startup scripts:
Now edit the run.sh to make it setuid to the new user:
should become:
Then the node will run in its own user, and it will start when your computer starts. You can start it now by:
This will become easier when we have some proper linux packages!!
Installing the node manually
It is possible to install freenet without using the Installer package, but it is not reccomended.
wget ž
wget ž
Freenet uses a wrapper program, to perform init.d like behavior.
If you are not installing freenet using the installer, you may want to configure the wrapper manually. The wrapper is not necessary to run freenet, but is necessary to allow the node to automatically restart itself, as well as to auto-update.
To install the wrapper:
1) Create two directories under your freenet directory- bin and lib
2) In the bin directory, download the appropriate version of the wrapper binary for your platform/Architecture-
You can either get this in one of two places-
3) In the lib directory, you need to add the wrapper libs. You can get these from one of two places-
4) Place a version of either run.sh or run.cmd in your freenet directory. USe run.cmd for Windows, run.sh for linux
5) In your main freenet directory, place a copy of wrapper.conf
6) Modify the parameters of wrapper.conf as needed- Changing the java command, max memory or min memory as desired.
7) make sure the freenet user can read the wrapper.conf directory, and can execute run.sh
run.sh functions like an init script.
"run.sh start" starts the node
"run.sh stop" stops the ndoe
"run.sh status" will tell you if the node is running, and the process number of the JVM.
Running a node - Tips and Tricks
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:
... just enter "connect:" and [enter], and then paste the text like seen above, it works!
Exchanging node references using a pastebin service
A better solution than pasting a node reference into an IRC channel is to use a pastebin, such as http://dark-code.bulix.org∞. After submitting your node ref to the pastebin service, you will be given a URL pointing to your node ref. With bulix.org, "?raw" can be appended to the URL to force it to point to a raw text version of your ref. For example, if your ref URL is http://dark-code.bulix.org/foo∞, you can change it to http://dark-code.bulix.org/foo?raw∞. The reference can then be exchanged by simply posting the URL into the IRC channel rather than flooding it with whole references.
Use this to find out the version number without starting the node
Starting your Freenet node manually on your Linux box
Navigate to where Freenet is installed which is usually ~/Freenet and enter ./run.sh start enter ./run.sh to see the different commands that you can send to run.sh
Deletions:
Freenet 0.7 auf Linux installieren
- Wenn Sie bereits eine ältere Version von Freenet nutzen, zum Beispiel Freenet 0.5, dann fahren Sie den Knoten runter. Sie können ihn später wieder starten, aber die Installation vereinfacht sich, wenn der Knoten zu diesem Zeitpunkt nicht läuft.
- Gehen Sie auf die die Freenet Download-Seite∞ und klicken Sie dann auf "Freenet 0.7 installieren". Falls dies nicht erfolgreich sein sollte, führen Sie das Installations-Programm von der Kommandozeile aus:
- Folgen Sie den Anweisungen
- Der Installations-Assistent wird Freenet Sie fragen, ob Sie Freenet zukünftig automatisch starten lassen wollen. Wenn Sie jedoch in der Zukunft Freenet manuell starten möchten, benutzen Sie das run.sh-Skript. Um es zu starten, führen Sie im Freenet-Verzeichnis diesen Befehl aus:
./run.sh --start
- Wenn sich eine Webseite öffnet, klicken Sie auf den großen Link. Folgen Sie den Anweisungen durch den Assistenten, um die Konfiguration für Ihren Knoten abzuschließen. Wenn dabei Probleme auftraten oder Sie den Assistenten versehentlich geschlossen haben, gehen Sie auf http://127.0.0.1:8888/wizard/∞ um die Einrichtung abzuschließen.
- Freenet 0.7 nutzt einen Proxy, damit Ihr Web Browser auf Seiten im Freenet zugreifen kann. Öffnen Sie in Ihrem Browser die Adresse http://127.0.0.1:8888∞ (diese Seite sollte bereits automatisch geöffnet sein, nachdem Sie die Einrichtung abgeschlossen haben). Diese Seite wird FProxy genannt, die Haupt-Schnittstelle zum Freenet.
- Wenn Sie bereits einen anderen Knoten auf Port 888 haben, dann
- Fahren Si eden Knoten herunter (über die FProxy-Startseite∞) (am Ende der Seite befindet sich ein Herunterfahren-Knopf)
- Bearbeiten Sie freenet.ini, sodass fproxy.port=8888 einen anderen Wert enthält, z.B. 9888.
- Starten Sie den Knoten erneut
- Starten Sie nun auch den anderen Knoten wieder
- Einige Konfigurations-Optionen können über die Freenet-Konfigurationsseite∞ geändert werden. Für diejenigen Optionen, die hierüber nicht geändert werden können, muss der Knoten wie oben beschrieben heruntergefahren werden und die Datei freenet.ini direkt bearbeitet werden. Die Konfigurationsseite wird zumindest grundlegende Dokumentation für jede Option geben, sie ist also sinnvoll, wenn Sie den Knoten heruntergefahren haben. Mit dem Installations-Assistenten wurden bereits Bandbreiten-Grenze, Port-Nummer und IP-Adresse festgelegt; diese Werte können sowohl über Konfigurations-Datei als auch die Konfigurationsseite geändert werden.
- Es gibt ein paar optionale Tipps und Tricks, die das Leben einfacher machen können.
- Freenet aus den Quellen erstellen
Freenet auf Linux ohne grafische Oberfläche installieren ("headless-Systeme")
Sie können auch über telnet auf Port 2323 eine Verbindung zur Konsole bekommen:
Die Freenet-Installation auf Debian absichern/kapseln
Einen neuen Benutzer für Freenet erstellen:
Die Rechte des Knotens diesem Nutzer zuweisen:
Zu den Start-Skripten hinzufügen:
run.sh bearbeiten, um setuid dem neuen Nutzer zuzuweisen:
Die Zeile
muss geändert werden zu
Der Knoten wird nun mit eigenständigem Benutzer laufen und starten, wenn der PC hochfährt. Manuell kann er nun durch diesen Befehl gestartet werden:
Dies wird sich einfacher werden, sobald es richtige Linux-Pakete gibt!
Den Knoten manuell installieren
Es ist möglich, Freenet ohne das Installations-Paket zu installieren, jedoch wird dies nicht empfohlen.
wget http://downloads.freenetproject.org/alpha/freenet-ext.jar∞
wget http://downloads.freenetproject.org/alpha/freenet-cvs-snapshot.jar.url∞
Freenet nutzt ein sog. Wrapper-Programm, um ein Verhalten wie init.d zu bewirken.
Wenn Freenet nicht über das Installations-Paket installiert wurde, sollte der Wrapper manuell konfiguriert werden. Der Wrapper ist zwar nicht notwendig, um Freenet zu starten, aber wird dafür gebraucht, den Knoten automatisch neustarten zu lassen und automatische Updates zuzulassen.
Um den Wrapper zu installieren:
- Erstellen Sie zwei Verzeichnisse im Freenet-Verzeichnis: bin und lib
- Laden Sie die passende Version der Wrapper-Binärdatei führ Ihre Plattform nach bin
- Diese können Sie an zwei Orten finden:
- Ins lib-Verzeichnis müssen die wrapper-Bibliotheken hinzugefügt werden. Diese sind hier zu finden:
* Auf der Freenet-Projektseite
hier∞.
* Oder sie kopieren das lib-Verzeichnis aus dem plattformspezifischen Archiv, dass Sie von Sourceforge in Schritt 2 heruntergeladen haben.
- Legen Sie entweder run.sh oder run.cmd ins Freenet-Verzeichnis. (Windows-Nutzer nehmen run.cmd, Linux-Nutzer run.sh)
* run.sh und run.cmd kann von
hier∞ heruntergeladen werden.
- Im Hauptverzeichnis von Freenet wird eine die Datei wrapper.conf gelegt
* Eine vorkonfigurierte Version ist
hier∞ zu finden.
- Modifizieren Sie die Parameter der wrapper.conf wie gewünscht (also "Java command", "max memory" oder "min memory")
- Stellen Sie sicher, dass der Freenet-Benutzer das wrapper.conf Verzeichnis lesen kann und führen Sie run.sh aus.
run.sh fungiert wie ein init-Skript.
"run.sh start" starten den Knoten.
"run.sh stop" stoppt den Knoten.
"run.sh status" gibt Auskunft darüber, ob der Knoten läuft und welche Prozessnummer der JVM Freenet hat
Einen Knoten betreiben - Tipps und Tricks
Um mitzuhelfen, das Netz zu testen, müssen Sie den Testnet Port weiterleiten/öffnen. Er ist in Ihrer Knoten-ID unter dem 'testnetPort' Tag angegeben.
Knoten-Referenzen über IRC austauschen
Wenn Ihr Chat-Programm eine Knoten-Referenz wie diese anzeigt:
... geben Sie einfach "connect:" und Enter%# ein, fügen den Text wie oben ein und es funktioniert.
Knoten-Referenzen mittels eines PasteBin-Service austauschen
Eine bessere Lösung als das Einfügen einer Knoten-Referenz über einen IRC-Kanal ist es, einen Pastebin wie z.B. http://dark-code.bulix.org∞ zu nutzen. Nachdem die Referenz zum Pastebin-Service gesendet wurden, bekommen Sie eine Internet-Adresse, die auf die Referenz zeigt. Mit bulix.org kann hinter die Internet-Adresse "?raw" (ohne Anführungszeichen) angefügt werden, um eine reine Text-Version der Referenz zu erhalten. Wenn die erzeugte Referenz-Adresse also z.B. http://dark-code.bulix.org/foo∞ ist, ändern Sie diese zu http://dark-code.bulix.org/foo?raw∞. Die Referenz kann dann ganz einfach ausgetauscht werden, indem man sich beispielsweise im IRC die Adresse der erzeugten Pastebin-URL austauscht.
Versions-Nummer herausfinden, ohne den Knoten zu starten
Edited on 2008-09-25 13:06:04 by NotAnonymous [translated. phew ....]
Additions:
Freenet 0.7 auf Linux installieren
- Wenn Sie bereits eine ältere Version von Freenet nutzen, zum Beispiel Freenet 0.5, dann fahren Sie den Knoten runter. Sie können ihn später wieder starten, aber die Installation vereinfacht sich, wenn der Knoten zu diesem Zeitpunkt nicht läuft.
- Gehen Sie auf die die Freenet Download-Seite∞ und klicken Sie dann auf "Freenet 0.7 installieren". Falls dies nicht erfolgreich sein sollte, führen Sie das Installations-Programm von der Kommandozeile aus:
- Folgen Sie den Anweisungen
- Der Installations-Assistent wird Freenet Sie fragen, ob Sie Freenet zukünftig automatisch starten lassen wollen. Wenn Sie jedoch in der Zukunft Freenet manuell starten möchten, benutzen Sie das run.sh-Skript. Um es zu starten, führen Sie im Freenet-Verzeichnis diesen Befehl aus:
./run.sh --start
- Wenn sich eine Webseite öffnet, klicken Sie auf den großen Link. Folgen Sie den Anweisungen durch den Assistenten, um die Konfiguration für Ihren Knoten abzuschließen. Wenn dabei Probleme auftraten oder Sie den Assistenten versehentlich geschlossen haben, gehen Sie auf http://127.0.0.1:8888/wizard/∞ um die Einrichtung abzuschließen.
- Freenet 0.7 nutzt einen Proxy, damit Ihr Web Browser auf Seiten im Freenet zugreifen kann. Öffnen Sie in Ihrem Browser die Adresse http://127.0.0.1:8888∞ (diese Seite sollte bereits automatisch geöffnet sein, nachdem Sie die Einrichtung abgeschlossen haben). Diese Seite wird FProxy genannt, die Haupt-Schnittstelle zum Freenet.
- Wenn Sie bereits einen anderen Knoten auf Port 888 haben, dann
- Fahren Si eden Knoten herunter (über die FProxy-Startseite∞) (am Ende der Seite befindet sich ein Herunterfahren-Knopf)
- Bearbeiten Sie freenet.ini, sodass fproxy.port=8888 einen anderen Wert enthält, z.B. 9888.
- Starten Sie den Knoten erneut
- Starten Sie nun auch den anderen Knoten wieder
- Einige Konfigurations-Optionen können über die Freenet-Konfigurationsseite∞ geändert werden. Für diejenigen Optionen, die hierüber nicht geändert werden können, muss der Knoten wie oben beschrieben heruntergefahren werden und die Datei freenet.ini direkt bearbeitet werden. Die Konfigurationsseite wird zumindest grundlegende Dokumentation für jede Option geben, sie ist also sinnvoll, wenn Sie den Knoten heruntergefahren haben. Mit dem Installations-Assistenten wurden bereits Bandbreiten-Grenze, Port-Nummer und IP-Adresse festgelegt; diese Werte können sowohl über Konfigurations-Datei als auch die Konfigurationsseite geändert werden.
- Es gibt ein paar optionale Tipps und Tricks, die das Leben einfacher machen können.
- Freenet aus den Quellen erstellen
Freenet auf Linux ohne grafische Oberfläche installieren ("headless-Systeme")
Sie können auch über telnet auf Port 2323 eine Verbindung zur Konsole bekommen:
Die Freenet-Installation auf Debian absichern/kapseln
Einen neuen Benutzer für Freenet erstellen:
Die Rechte des Knotens diesem Nutzer zuweisen:
Zu den Start-Skripten hinzufügen:
run.sh bearbeiten, um setuid dem neuen Nutzer zuzuweisen:
Die Zeile
muss geändert werden zu
Der Knoten wird nun mit eigenständigem Benutzer laufen und starten, wenn der PC hochfährt. Manuell kann er nun durch diesen Befehl gestartet werden:
Dies wird sich einfacher werden, sobald es richtige Linux-Pakete gibt!
Den Knoten manuell installieren
Es ist möglich, Freenet ohne das Installations-Paket zu installieren, jedoch wird dies nicht empfohlen.
wget http://downloads.freenetproject.org/alpha/freenet-ext.jar∞
wget http://downloads.freenetproject.org/alpha/freenet-cvs-snapshot.jar.url∞
Freenet nutzt ein sog. Wrapper-Programm, um ein Verhalten wie init.d zu bewirken.
Wenn Freenet nicht über das Installations-Paket installiert wurde, sollte der Wrapper manuell konfiguriert werden. Der Wrapper ist zwar nicht notwendig, um Freenet zu starten, aber wird dafür gebraucht, den Knoten automatisch neustarten zu lassen und automatische Updates zuzulassen.
Um den Wrapper zu installieren:
- Erstellen Sie zwei Verzeichnisse im Freenet-Verzeichnis: bin und lib
- Laden Sie die passende Version der Wrapper-Binärdatei führ Ihre Plattform nach bin
- Diese können Sie an zwei Orten finden:
- Ins lib-Verzeichnis müssen die wrapper-Bibliotheken hinzugefügt werden. Diese sind hier zu finden:
* Auf der Freenet-Projektseite
hier∞.
* Oder sie kopieren das lib-Verzeichnis aus dem plattformspezifischen Archiv, dass Sie von Sourceforge in Schritt 2 heruntergeladen haben.
- Legen Sie entweder run.sh oder run.cmd ins Freenet-Verzeichnis. (Windows-Nutzer nehmen run.cmd, Linux-Nutzer run.sh)
* run.sh und run.cmd kann von
hier∞ heruntergeladen werden.
- Im Hauptverzeichnis von Freenet wird eine die Datei wrapper.conf gelegt
* Eine vorkonfigurierte Version ist
hier∞ zu finden.
- Modifizieren Sie die Parameter der wrapper.conf wie gewünscht (also "Java command", "max memory" oder "min memory")
- Stellen Sie sicher, dass der Freenet-Benutzer das wrapper.conf Verzeichnis lesen kann und führen Sie run.sh aus.
run.sh fungiert wie ein init-Skript.
"run.sh start" starten den Knoten.
"run.sh stop" stoppt den Knoten.
"run.sh status" gibt Auskunft darüber, ob der Knoten läuft und welche Prozessnummer der JVM Freenet hat
Einen Knoten betreiben - Tipps und Tricks
Um mitzuhelfen, das Netz zu testen, müssen Sie den Testnet Port weiterleiten/öffnen. Er ist in Ihrer Knoten-ID unter dem 'testnetPort' Tag angegeben.
Knoten-Referenzen über IRC austauschen
Wenn Ihr Chat-Programm eine Knoten-Referenz wie diese anzeigt:
... geben Sie einfach "connect:" und Enter%# ein, fügen den Text wie oben ein und es funktioniert.
Knoten-Referenzen mittels eines PasteBin-Service austauschen
Eine bessere Lösung als das Einfügen einer Knoten-Referenz über einen IRC-Kanal ist es, einen Pastebin wie z.B. http://dark-code.bulix.org∞ zu nutzen. Nachdem die Referenz zum Pastebin-Service gesendet wurden, bekommen Sie eine Internet-Adresse, die auf die Referenz zeigt. Mit bulix.org kann hinter die Internet-Adresse "?raw" (ohne Anführungszeichen) angefügt werden, um eine reine Text-Version der Referenz zu erhalten. Wenn die erzeugte Referenz-Adresse also z.B. http://dark-code.bulix.org/foo∞ ist, ändern Sie diese zu http://dark-code.bulix.org/foo?raw∞. Die Referenz kann dann ganz einfach ausgetauscht werden, indem man sich beispielsweise im IRC die Adresse der erzeugten Pastebin-URL austauscht.
Versions-Nummer herausfinden, ohne den Knoten zu starten
Deletions:
Installing Freenet 0.7 on Linux
- 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.
- Run the installer from the command line:
- Follow the prompts.
- The installer will start Freenet automatically. But if you need to start Freenet manually in the future, use the run.sh script. You will need to use this script to start it (./run.sh start).
- When it opens the web page, click on the big link. Follow the prompts through the wizard to complete the configuation of your node. If you have any problems, go to http://127.0.0.1:8888/wizard/∞ to complete the setup.
- Freenet 0.7 uses a proxy so your standard web browser can access the pages on Freenet. Open a browser pointing to http://127.0.0.1:8888/∞ (you should already have one having completed the wizard). This is called FProxy, the primary built-in interface to Freenet 0.7.
- 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.
- Some config settings can be changed from the Freenet Node Configuration∞ page. For those that cannot, you have to shut the node down as above and edit freenet.ini. The Configuration 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 through the Configuration page.
- There are some optional tips and tricks which might make your life easier.
- BuildingFromSource
Installing Freenet 0.7 on Linux Without X (headless systems)
You can also telnet to port 2323 to get to the console interface:
Securing the Freenet installation on Debian Linux
The following will work on Debian, not tested elsewhere!
Create a new user for Freenet:
Make the Freenet node you just installed be owned by it:
Add it to your startup scripts:
Now edit the run.sh to make it setuid to the new user:
should become:
Then the node will run in its own user, and it will start when your computer starts. You can start it now by:
This will become easier when we have some proper linux packages!!
Installing the node manually
It is possible to install freenet without using the Installer package, but it is not reccomended.
wget ž
wget ž
Freenet uses a wrapper program, to perform init.d like behavior.
If you are not installing freenet using the installer, you may want to configure the wrapper manually. The wrapper is not necessary to run freenet, but is necessary to allow the node to automatically restart itself, as well as to auto-update.
To install the wrapper:
1) Create two directories under your freenet directory- bin and lib
2) In the bin directory, download the appropriate version of the wrapper binary for your platform/Architecture-
You can either get this in one of two places-
3) In the lib directory, you need to add the wrapper libs. You can get these from one of two places-
4) Place a version of either run.sh or run.cmd in your freenet directory. USe run.cmd for Windows, run.sh for linux
5) In your main freenet directory, place a copy of wrapper.conf
6) Modify the parameters of wrapper.conf as needed- Changing the java command, max memory or min memory as desired.
7) make sure the freenet user can read the wrapper.conf directory, and can execute run.sh
run.sh functions like an init script.
"run.sh start" starts the node
"run.sh stop" stops the ndoe
"run.sh status" will tell you if the node is running, and the process number of the JVM.
Running a node - Tips and Tricks
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:
... just enter "connect:" and [enter], and then paste the text like seen above, it works!
Exchanging node references using a pastebin service
A better solution than pasting a node reference into an IRC channel is to use a pastebin, such as http://dark-code.bulix.org∞. After submitting your node ref to the pastebin service, you will be given a URL pointing to your node ref. With bulix.org, "?raw" can be appended to the URL to force it to point to a raw text version of your ref. For example, if your ref URL is http://dark-code.bulix.org/foo∞, you can change it to http://dark-code.bulix.org/foo?raw∞. The reference can then be exchanged by simply posting the URL into the IRC channel rather than flooding it with whole references.
Use this to find out the version number without starting the node
Starting your Freenet node manually on your Linux box
Navigate to where Freenet is installed which is usually ~/Freenet and enter ./run.sh start enter ./run.sh to see the different commands that you can send to run.sh
Edited on 2008-01-30 13:05:26 by MatthewToseland [mention wizard, delete stuff referring to old installer]
Additions:
~1) Follow the prompts.
- When it opens the web page, click on the big link. Follow the prompts through the wizard to complete the configuation of your node. If you have any problems, go to http://127.0.0.1:8888/wizard/∞ to complete the setup.
- Freenet 0.7 uses a proxy so your standard web browser can access the pages on Freenet. Open a browser pointing to http://127.0.0.1:8888/∞ (you should already have one having completed the wizard). This is called FProxy, the primary built-in interface to Freenet 0.7.
Deletions:
~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.
Freenet 0.7 uses a proxy so your standard web browser can access the pages on Freenet. Open a browser pointing to http://127.0.0.1:8888/∞. This is called FProxy, the primary built-in interface to Freenet 0.7.
Edited on 2007-09-25 18:14:56 by Electrosys22 [I added this to the bottom of the page becuse I couldn't find this information.]
Additions:
Starting your Freenet node manually on your Linux box
Navigate to where Freenet is installed which is usually ~/Freenet and enter ./run.sh start enter ./run.sh to see the different commands that you can send to run.sh
Edited on 2007-06-27 17:38:13 by NextGens [update headless install instructions]
Additions:
wget http://downloads.freenetproject.org/alpha/installer/freenet07.tar.gz∞
cat freenet07.tar.gz | gzip -d | tar xv
cd freenet
./bin/1run.sh
./run.sh start
Deletions:
wget http://downloads.freenetproject.org/alpha/installer/selfextractpack.jar∞
DISPLAY="" java -jar selfextractpack.jar
Edited on 2006-08-03 23:19:06 by SbC
Additions:
wget http://downloads.freenetproject.org/alpha/installer/new_installer.jar
java -jar new_installer.jar
Deletions:
wget http://downloads.freenetproject.org/alpha/installer/new_installer.jar∞
java -jar new_installer.jar
Edited on 2006-07-31 10:43:55 by NextGens [new installer]
Additions:
wget http://downloads.freenetproject.org/alpha/installer/new_installer.jar∞
java -jar new_installer.jar
Installing Freenet 0.7 on Linux Without X (headless systems)
Deletions:
~~-javaws http://downloads.freenetproject.org/alpha/installer/freenet.jnlp∞
Installing Freenet 0.7 on Linux Without X
Edited on 2006-07-29 21:48:36 by DesZ
Additions:
A better solution than pasting a node reference into an IRC channel is to use a pastebin, such as http://dark-code.bulix.org∞. After submitting your node ref to the pastebin service, you will be given a URL pointing to your node ref. With bulix.org, "?raw" can be appended to the URL to force it to point to a raw text version of your ref. For example, if your ref URL is http://dark-code.bulix.org/foo∞, you can change it to http://dark-code.bulix.org/foo?raw∞. The reference can then be exchanged by simply posting the URL into the IRC channel rather than flooding it with whole references.
Deletions:
A better solution than pasting a node reference into an IRC channel is to use a pastebin, such as http://dark-code.bulix.org∞. After submitting your node ref to the pastebin service, you will be given a URL pointing to your node ref. With bulix.org, "?raw" can be appended to the URL to force it to point to a raw text version of your ref. For example, if your ref URL is http://dark-code.bulix.org/foo∞, you can change it to http://dark-code.bulix.org/foo?raw∞. The URL can then simply be pasted in the the "URL" box of the FProxy Darknet page.
Edited on 2006-07-29 21:47:00 by DesZ
Additions:
Exchanging node references using a pastebin service
Deletions:
Pastebins
Edited on 2006-07-29 21:45:20 by DesZ
Additions:
Pastebins
A better solution than pasting a node reference into an IRC channel is to use a pastebin, such as http://dark-code.bulix.org∞. After submitting your node ref to the pastebin service, you will be given a URL pointing to your node ref. With bulix.org, "?raw" can be appended to the URL to force it to point to a raw text version of your ref. For example, if your ref URL is http://dark-code.bulix.org/foo∞, you can change it to http://dark-code.bulix.org/foo?raw∞. The URL can then simply be pasted in the the "URL" box of the FProxy Darknet page.
Edited on 2006-06-21 11:43:57 by ColinDavis [added- mv freenet-*-snapshot.jar freenet-cvs-snapshot.jar]
Additions:
mv freenet-*-snapshot.jar freenet-cvs-snapshot.jar
Edited on 2006-06-08 07:29:48 by ColinDavis [change ; -> : so it works on Linux ;)]
Additions:
java -Xmx100M -cp freenet-ext.jar:freenet-cvs-snapshot.jar freenet.node.Node freenet.ini
Deletions:
java -Xmx100M -cp freenet-ext.jar;freenet-cvs-snapshot.jar freenet.node.Node freenet.ini
Edited on 2006-06-03 17:35:15 by ColinDavis
Deletions:
While some changes are optional, you MUST change the wrapper.java.mainclass line to read wrapper.java.mainclass=freenet.node.Node
Edited on 2006-06-03 17:29:22 by ColinDavis
Additions:
While some changes are optional, you MUST change the wrapper.java.mainclass line to read wrapper.java.mainclass=freenet.node.Node
Edited on 2006-06-03 17:02:49 by ColinDavis
Additions:
Installing the node manually
It is possible to install freenet without using the Installer package, but it is not reccomended.
wget ž
wget ž
wget -i freenet-cvs-snapshot.jar.url
java -Xmx100M -cp freenet-ext.jar;freenet-cvs-snapshot.jar freenet.node.Node freenet.ini
Deletions:
Installing the wrapper around freenet
Edited on 2006-06-03 16:56:58 by ColinDavis
Additions:
5) In your main freenet directory, place a copy of wrapper.conf
Deletions:
5) make a config directory, in your freenet directory
In the config directory, place a copy of wrapper.conf
Edited on 2006-06-03 16:53:13 by ColinDavis
Additions:
1) Create two directories under your freenet directory- bin and lib
2) In the bin directory, download the appropriate version of the wrapper binary for your platform/Architecture-
3) In the lib directory, you need to add the wrapper libs. You can get these from one of two places-
4) Place a version of either run.sh or run.cmd in your freenet directory. USe run.cmd for Windows, run.sh for linux
5) make a config directory, in your freenet directory
6) Modify the parameters of wrapper.conf as needed- Changing the java command, max memory or min memory as desired.
7) make sure the freenet user can read the wrapper.conf directory, and can execute run.sh
Deletions:
Create a bin directory, in your freenet directory
In the bin directory, download the appropriate version of the wrapper binary for your platform/Architecture-
Place a version of either run.sh or run.cmd in your freenet directory. USe run.cmd for Windows, run.sh for linux
make a config directory, in your freenet directory
Modify the parameters of wrapper.conf as needed- Changing the java command, max memory or min memory as desired.
make sure the freenet user can read the wrapper.conf directory, and can execute run.sh
Edited on 2006-06-03 16:45:21 by NextGens
Deletions:
Installing a node with only the console
wget http://downloads.freenetproject.org/alpha/freenet-ext.jar∞
wget http://downloads.freenetproject.org/alpha/freenet-cvs-snapshot.jar.url∞
wget -i freenet-cvs-snapshot.jar.url
java -Xmx100M -cp freenet-ext.jar;freenet-cvs-snapshot.jar freenet.node.Node freenet.ini
Edited on 2006-06-03 16:42:00 by ColinDavis
Additions:
Installing the wrapper around freenet
Freenet uses a wrapper program, to perform init.d like behavior.
If you are not installing freenet using the installer, you may want to configure the wrapper manually. The wrapper is not necessary to run freenet, but is necessary to allow the node to automatically restart itself, as well as to auto-update.
To install the wrapper:
Create a bin directory, in your freenet directory
In the bin directory, download the appropriate version of the wrapper binary for your platform/Architecture-
You can either get this in one of two places-
Place a version of either run.sh or run.cmd in your freenet directory. USe run.cmd for Windows, run.sh for linux
make a config directory, in your freenet directory
Modify the parameters of wrapper.conf as needed- Changing the java command, max memory or min memory as desired.
make sure the freenet user can read the wrapper.conf directory, and can execute run.sh
run.sh functions like an init script.
"run.sh start" starts the node
"run.sh stop" stops the ndoe
"run.sh status" will tell you if the node is running, and the process number of the JVM.
Oldest known version of this page was edited on 2006-05-31 07:08:58 by JuiceMan []
Page view:
Installing Freenet 0.7 on Linux
- 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.
- Run the installer from the command line:
- 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.
- The installer will start Freenet automatically. But if you need to start Freenet manually in the future, use the run.sh script. You will need to use this script to start it (./run.sh start).
- Freenet 0.7 uses a proxy so your standard web browser can access the pages on Freenet. Open a browser pointing to http://127.0.0.1:8888/∞. This is called FProxy, the primary built-in interface to Freenet 0.7.
- 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.
- Some config settings can be changed from the Freenet Node Configuration∞ page. For those that cannot, you have to shut the node down as above and edit freenet.ini. The Configuration 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 through the Configuration page.
Installing Freenet 0.7 on Linux Without X
wget http://downloads.freenetproject.org/alpha/installer/selfextractpack.jar∞
DISPLAY="" java -jar selfextractpack.jar
You can also telnet to port 2323 to get to the console interface:
$ telnet localhost 2323
Securing the Freenet installation on Debian Linux
The following will work on Debian, not tested elsewhere!
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
This will become easier when we have some proper linux packages!!
Installing a node with only the console
wget http://downloads.freenetproject.org/alpha/freenet-ext.jar
wget http://downloads.freenetproject.org/alpha/freenet-cvs-snapshot.jar.url
wget -i freenet-cvs-snapshot.jar.url
java -Xmx100M -cp freenet-ext.jar;freenet-cvs-snapshot.jar freenet.node.Node freenet.ini
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