LaFonera Software Heartbeat

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 06:06, 1 July 2007 (edit)
Ng6Fwr (Talk | contribs)
m
← Previous diff
Revision as of 12:11, 1 July 2007 (edit) (undo)
BrainSlayer (Talk | contribs)
(spam revert)
Next diff →
Line 1: Line 1:
-[http://people.msoe.edu/~millerni/forums.php?show=topic&id=114&forum=13 online meridia] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=157&forum=13 free wwe ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=128&forum=13 phentermine online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=158&forum=13 xanax online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=106&forum=13 hydrocodone online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=160&forum=13 cheap zanaflex] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=102&forum=13 free ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=97&forum=13 buy didrex] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=135&forum=13 real ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=100&forum=13 fioricet online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=96&forum=13 diazepam online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=136&forum=13 rivotril online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=87&forum=13 ativan online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=144&forum=13 free sonyericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=137&forum=13 free sagem ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=152&forum=13 verizon ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=139&forum=13 free sharp ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=125&forum=13 cheap ortho] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=156&forum=13 wellbutrin online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=151&forum=13 valium] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=121&forum=13 nexium online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=147&forum=13 free tracfone ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=142&forum=13 free sony ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=94&forum=13 free cool ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=161&forum=13 but zoloft] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=117&forum=13 motorola ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=133&forum=13 free qwest ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=138&forum=13 free samsung ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=122&forum=13 nextel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=89&forum=13 celexa online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=99&forum=13 ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=115&forum=13 midi ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=146&forum=13 tenuate online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=109&forum=13 cheap levitra] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=82&forum=13 adipex online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=132&forum=13 punk ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=130&forum=13 propecia online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=83&forum=13 cheap albuterol] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=85&forum=13 alprazolam online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=153&forum=13 viagra online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=148&forum=13 tramadol online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=143&forum=13 free sony ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=86&forum=13 ambien online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=103&forum=13 free funny ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=104&forum=13 hgh online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=129&forum=13 free polyphonic ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=90&forum=13 cheap cialis] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=123&forum=13 free nokia ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=101&forum=13 but flexeril] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=124&forum=13 norco] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=149&forum=13 ultracet online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=88&forum=13 carisoprodol online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=108&forum=13 kyocera ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=93&forum=13 clonazepam online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=127&forum=13 cheap pharmacy online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=95&forum=13 cheap cyclobenzaprine] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=150&forum=13 cheap ultram] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=111&forum=13 lisinopril online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=159&forum=13 xenical online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=162&forum=13 zyban online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=116&forum=13 free mono ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=112&forum=13 buy lorazepam] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=145&forum=13 sprint ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=110&forum=13 lipitor online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=131&forum=13 prozac online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=120&forum=13 music ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=105&forum=13 hoodia online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=155&forum=13 vigrx online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=98&forum=13 diethylpropion online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=113&forum=13 but lortab] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=154&forum=13 vicodin online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=119&forum=13 mtv ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=84&forum=13 alltel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=141&forum=13 cheap soma] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=107&forum=13 jazz ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=140&forum=13 sildenafil online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=126&forum=13 paxil online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=118&forum=13 free mp3 ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=92&forum=13 clomid online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=91&forum=13 cingular ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic+[[Category:LaFonera]]
 +[[Category:LaFonera_(en)]]
 +[[Category:LaFonera_Software]]
 +[[Category:LaFonera_Software_(en)]]
 +You are here: '''[[Main_Page|DD-WRT wiki mainpage]] / [[LaFonera|LaFonera]] / [[LaFonera_Software|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 [[User:wildblue|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")
 + 
 +<pre>
 +#!/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</pre>
 + 
 +4. Now you can reboot your router '''or''' simply past the commands again and select "Run Commands" (German: "Kommandos ausführen")
 + 
 + 
 +Thats` it. Your LaFonera is now active on maps.fon.com
 + 
 +'''* Keep in mind that it can take some time before your router gets active on the maps, it doesn't update immediately because FON is updating their maps not every minute.'''
 + 
 +Also please note, that i will change the script, if nessesary, for the correct execution on your device.
 + 
 +== advanced setup with better security (requires a local/trusted server)==
 + 
 +IMPORTANT! This method doesent seem to work, have tested it thrououghly on the latest two-three releaases and I never get active. The above script from Wildblue however works correctly. This one below just dolesnt make any connection, the only message in the logfile is *** starting mode *** and nothing else! You can still adopt the above script tomrelaym on your own HTTP/FTP server, like below, to gain security.
 + 
 +:I have the same problem with the advanced method, script v2.0.3 too. when i made a ''ps'', I can see the "dbclient" process which remains blocked. When I execute manually the script with ''( /tmp/simthefon/simthefon.sh >/tmp/simthefon/simthefon.log & ) &'' , everything is OK. Wildblue, can you look at that? If necessary, I can provide logs. --[[User:Microbug|Microbug]] 15:51, 13 Apr 2007 (CEST)
 + 
 + 
 +- The method shown above is potentially dangerous! If the www.wildblue.de server gets compromised, it is able to execute *anything* as root on your router! It is not recommended to choose that simple approach. Copy the scripts to a local/trusted ftp/web server, like described below, instead! It would also be a good idea to inspect the content of the downloaded script files!
 + 
 +1. download the script from http://www.wildblue.de/fonera/heartbeat/simthefon
 + 
 +2. download the fon key from http://www.wildblue.de/fonera/heartbeat/key
 + 
 +3. download known_hosts file from http://www.wildblue.de/fonera/heartbeat/known_hosts
 + 
 +4. copy the files "simthefon, key, known_hosts" on your local WEBserver / FTPserver or any other location where you can download it with wget on your LaFonera afterwards...
 + 
 +6. paste the text below into Administration --> Commands --> Commands input field and click "Save startup"
 + 
 +<pre>
 +#!/bin/sh
 +sleep 60
 +mkdir /tmp/simthefon
 +cd /tmp/simthefon
 +/usr/bin/wget ftp://192.168.1.2/simthefon/key
 +/usr/bin/wget ftp://192.168.1.2/simthefon/simthefon.sh
 +/usr/bin/wget ftp://192.168.1.2/simthefon/known_hosts
 +cat /tmp/simthefon/known_hosts >> /tmp/root/.ssh/known_hosts
 +chmod a+x /tmp/simthefon/simthefon.sh
 +( /tmp/simthefon/simthefon.sh >/tmp/simthefon/simthefon.log & ) &
 +</pre>
 + 
 +do not forget to edit the wget commands, to fit your locations...
 + 
 +reboot your LaFonera...
 + 
 +your hotspot should now be ACTIVE on http://maps.fon.com
 + 
 + 
 +'''Maybe you want to see what is developed?'''
 + 
 +You can always check the development progress at
 + 
 +http://www.wildblue.de/fonera/heartbeat/versions/simthefon_2.0.0
 + 
 +http://www.wildblue.de/fonera/heartbeat/versions/simthefon_2.0.1
 + 
 +http://www.wildblue.de/fonera/heartbeat/versions/simthefon_2.0.2
 + 
 +http://www.wildblue.de/fonera/heartbeat/versions/simthefon_2.0.3
 + 
 +etc.
 + 
 +You can find the actual Version at
 +http://www.wildblue.de/fonera/heartbeat/simthefon
 + 
 +When you run this file the version number is displayed.
 + 
 + 
 +* In the near future maybe this script could be included in the DD-WRT source (depends on BrainSlayer)
 + 
 +* Here is a Link to another Forum where the heartbeat-function was discussed earlier [http://boards.fon.com/viewtopic.php?p=7517#7517 Heartbeat for the LaFonera]
 + 
 + 
 + 
 + 
 +----
 + 
 +this page was made by [[User:wildblue|wildblue!]]

Revision as of 12:11, 1 July 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.


  1. Open the web-based configuration on your DD-WRT-Fonera (e.g. 192.168.1.1)
  2. Go to the "Administration" section, then to "Commands" (German: "Diagnose")
  3. 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

4. Now you can reboot your router or simply past the commands again and select "Run Commands" (German: "Kommandos ausführen")


Thats` it. Your LaFonera is now active on maps.fon.com

* Keep in mind that it can take some time before your router gets active on the maps, it doesn't update immediately because FON is updating their maps not every minute.

Also please note, that i will change the script, if nessesary, for the correct execution on your device.

advanced setup with better security (requires a local/trusted server)

IMPORTANT! This method doesent seem to work, have tested it thrououghly on the latest two-three releaases and I never get active. The above script from Wildblue however works correctly. This one below just dolesnt make any connection, the only message in the logfile is *** starting mode *** and nothing else! You can still adopt the above script tomrelaym on your own HTTP/FTP server, like below, to gain security.

I have the same problem with the advanced method, script v2.0.3 too. when i made a ps, I can see the "dbclient" process which remains blocked. When I execute manually the script with ( /tmp/simthefon/simthefon.sh >/tmp/simthefon/simthefon.log & ) & , everything is OK. Wildblue, can you look at that? If necessary, I can provide logs. --Microbug 15:51, 13 Apr 2007 (CEST)


- The method shown above is potentially dangerous! If the www.wildblue.de server gets compromised, it is able to execute *anything* as root on your router! It is not recommended to choose that simple approach. Copy the scripts to a local/trusted ftp/web server, like described below, instead! It would also be a good idea to inspect the content of the downloaded script files!

1. download the script from http://www.wildblue.de/fonera/heartbeat/simthefon

2. download the fon key from http://www.wildblue.de/fonera/heartbeat/key

3. download known_hosts file from http://www.wildblue.de/fonera/heartbeat/known_hosts

4. copy the files "simthefon, key, known_hosts" on your local WEBserver / FTPserver or any other location where you can download it with wget on your LaFonera afterwards...

6. paste the text below into Administration --> Commands --> Commands input field and click "Save startup"

#!/bin/sh
sleep 60
mkdir /tmp/simthefon
cd /tmp/simthefon
/usr/bin/wget ftp://192.168.1.2/simthefon/key
/usr/bin/wget ftp://192.168.1.2/simthefon/simthefon.sh
/usr/bin/wget ftp://192.168.1.2/simthefon/known_hosts
cat /tmp/simthefon/known_hosts >> /tmp/root/.ssh/known_hosts
chmod a+x /tmp/simthefon/simthefon.sh
( /tmp/simthefon/simthefon.sh >/tmp/simthefon/simthefon.log & ) &

do not forget to edit the wget commands, to fit your locations...

reboot your LaFonera...

your hotspot should now be ACTIVE on http://maps.fon.com


Maybe you want to see what is developed?

You can always check the development progress at

http://www.wildblue.de/fonera/heartbeat/versions/simthefon_2.0.0

http://www.wildblue.de/fonera/heartbeat/versions/simthefon_2.0.1

http://www.wildblue.de/fonera/heartbeat/versions/simthefon_2.0.2

http://www.wildblue.de/fonera/heartbeat/versions/simthefon_2.0.3

etc.

You can find the actual Version at http://www.wildblue.de/fonera/heartbeat/simthefon

When you run this file the version number is displayed.


  • In the near future maybe this script could be included in the DD-WRT source (depends on BrainSlayer)




this page was made by wildblue!