LaFonera Software Heartbeat
From DD-WRT Wiki
Revision as of 21:55, 3 September 2007 (edit) Wildblue (Talk | contribs) m (Reverted edits by InzG2u (Talk); changed back to last version by Wildblue) ← Previous diff |
Revision as of 17:46, 6 September 2007 (edit) (undo) Pepsimax2k (Talk | contribs) (→Fast and simple) Next diff → |
||
Line 19: | Line 19: | ||
This is the most easy way (This guide is also available on http://www.wildblue.de/fonera/heartbeat/howto). | This is the most easy way (This guide is also available on http://www.wildblue.de/fonera/heartbeat/howto). | ||
It is for simply putting your LaFonera on maps.fon.com without any need to set up your own WEBserver / FTPserver. | It is for simply putting your LaFonera on maps.fon.com without any need to set up your own WEBserver / FTPserver. | ||
+ | |||
+ | |||
+ | <div style="text-align: left; padding: 5px; background: #FFBE69; border: #000000 1px solid;">PLEASE NOTE: The following heartbeat script only runs once an hour. FON have recently changed their system to recognise heartbeats once every half hour, so this script will leave you seemingly unactive 50% of the time. To fix, simthefon needs both occurences of "3600" changing to "1800". I'll notify wildblue of this but for now, either put up with it or wget an edited copy from your own server.</div> | ||
Revision as of 17:46, 6 September 2007
You are here: DD-WRT wiki mainpage / LaFonera / Software / Heartbeat
The Fon heartbeat
This is the way to simulate the fon heartbeat, so that the LaFonera with dd-wrt is shown as active on the fon maps.
It is based on the work of freddy (http://fon.freddy.eu.org), futejia (http://futejia.blogspot.com) and krikkit (http://www.krikkit.net)
At first you have to register your LaFonera on www.fon.com
If you have done this successfully there are two ways you can enable it on maps.fon.com.
Fast and simple
This is the most easy way (This guide is also available on http://www.wildblue.de/fonera/heartbeat/howto). It is for simply putting your LaFonera on maps.fon.com without any need to set up your own WEBserver / FTPserver.
made by wildblue!
Actual Version: 2.0.3
Feel free to ask me for an update of the code.
- Open the web-based configuration on your DD-WRT-Fonera (e.g. 192.168.1.1)
- Go to the "Administration" section, then to "Commands" (German: "Diagnose")
- paste the follwing commands and select "Save Startup" (German: "Startup speichern")
#!/bin/sh mkdir /tmp/simthefon echo '#!/bin/sh sleep 60 cd /tmp/simthefon /usr/bin/wget http://www.wildblue.de/fonera/heartbeat/key /usr/bin/wget http://www.wildblue.de/fonera/heartbeat/simthefon /usr/bin/wget http://www.wildblue.de/fonera/heartbeat/known_hosts cat /tmp/simthefon/known_hosts >> /tmp/root/.ssh/known_hosts chmod a x /tmp/simthefon/simthefon ( /tmp/simthefon/simthefon cron >/tmp/simthefon/simthefon.log & ) &' >> /tmp/simthefon/heartbeat echo 'SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/tmp/root */5 * * * * root /tmp/simthefon/simthefon cron >/tmp/simthefon/simthefon.log' >> /tmp/cron.d/heartbeat chmod a+x /tmp/simthefon/heartbeat /tmp/simthefon/heartbeat stopservice cron && startservice cron