| View previous topic :: View next topic |
| Author |
Message |
Freddy Fonero Pub A
Joined: 26 Jul 2006 Posts: 230 Location: Germany
|
Posted: Wed Sep 20, 2006 05:41 Post subject: |
|
|
| Satras wrote: | cool thanx... can you tell me what is the different between these two values ?
| Quote: | WLMAC="$(/usr/sbin/nvram get wl0_hwaddr)"
ETMAC="$(/usr/sbin/nvram get et0macaddr)" |
and where are you actually sending the information to fon ?
ATM i try to learn scrips but i have not come that far with that one. I hope you can bring some light into my dark  |
it's the wlan and the ethernet mac.
the "ssh ..." command will connect to the fon server _________________ status: Linus
setup: Debian Router » Linksys WRT54G + La Fonera
firmware: custom (based on dd-wrt) overclocked to 216 mhz and a modified Fonera firmware
link: 3Mbit down 512 kbit/s up
My Fonera Stuff
How to add a third signal to your Fonera |
|
| Back to top |
|
 |
Satras Fonero B

Joined: 29 Jun 2006 Posts: 54 Location: Germany
|
Posted: Wed Sep 20, 2006 19:16 Post subject: |
|
|
so you mean.. Send this information:
| Code: | | "mode='cron' wlmac='$MAC' mac='$ETMAC' fonrev='$FONREV' firmware='$FIRMWARE'" |
to the ssh
| Code: | $SSHPATH -T ${PORT:+ -p $PORT}${KEY:+ -i $KEY} "${USER}@${SERVER}" > $THINCLIENTOUT
|
right ? _________________ status: Bill
setup: SDSL » EISFAIR Router » WRT54GL
firmware: 0.6.6
link: 1553><1024 kbit/s
ISP: QSC
ssid: FON_HotSpot
Fonero: 64303
 |
|
| Back to top |
|
 |
Freddy Fonero Pub A
Joined: 26 Jul 2006 Posts: 230 Location: Germany
|
Posted: Wed Sep 20, 2006 19:52 Post subject: |
|
|
yes _________________ status: Linus
setup: Debian Router » Linksys WRT54G + La Fonera
firmware: custom (based on dd-wrt) overclocked to 216 mhz and a modified Fonera firmware
link: 3Mbit down 512 kbit/s up
My Fonera Stuff
How to add a third signal to your Fonera |
|
| Back to top |
|
 |
gulp Fonero

Joined: 23 Sep 2006 Posts: 8 Location: Italy
|
Posted: Sat Sep 23, 2006 14:05 Post subject: |
|
|
i've downloaded custom firmware DD-WRT v23 SP2 (08/30/06) std, on a WRT54GL,
then i've enabled JFFS2 and Cron
but i'm unable to download "fonkey" and "thinclient" to /jffs/
i've tried | Code: |
/jffs # wget http://fon.freddy.eu.org/heartbeat/fonkey
/jffs # wget http://fon.freddy.eu.org/heartbeat/thinclient
|
But if i do "/jffs # ls" the jffs dir is empty.
I can download fonkey and thinclient to /tmp , here i can write but i've no response at all if i try to download these files in /jffs.
btw i've added "/jffs/thinclient start 2>&1 | logger" at startup and enabling syslog i've these messages in "/tmp/var/log/messages":
| Code: |
Sep 23 14:32:49 DD-WRT user.notice root: /tmp/.rc_startup: /tmp/.rc_startup: 1: /jffs/thinclient: not found
Sep 23 14:32:49 DD-WRT user.info : /etc/init.d/rcS: /etc/init.d/rcS: 4: /etc/init.d/S*: not found
Sep 23 14:33:53 DD-WRT user.notice root: sent: mode='start' wlmac='**:**:**:**:**:**' mac='**:**:**:**:**:**' fonrev='3' firmware='0.6.6' chillver='1.0-1' thclver='1.0'
Sep 23 14:33:53 DD-WRT user.notice root: /tmp/.thinclient.sh is the default one, deleted |
is the heartbeat running or not? |
|
| Back to top |
|
 |
Freddy Fonero Pub A
Joined: 26 Jul 2006 Posts: 230 Location: Germany
|
Posted: Sat Sep 23, 2006 14:33 Post subject: |
|
|
probably not enough space, try to enable "clear jffs2" if it doesnt work there's absolutely no space left _________________ status: Linus
setup: Debian Router » Linksys WRT54G + La Fonera
firmware: custom (based on dd-wrt) overclocked to 216 mhz and a modified Fonera firmware
link: 3Mbit down 512 kbit/s up
My Fonera Stuff
How to add a third signal to your Fonera |
|
| Back to top |
|
 |
gulp Fonero

Joined: 23 Sep 2006 Posts: 8 Location: Italy
|
Posted: Sat Sep 23, 2006 14:41 Post subject: |
|
|
| Freddy wrote: | | probably not enough space, try to enable "clear jffs2" if it doesnt work there's absolutely no space left |
tried to clean jffs2 already....
There is an alternative way to install the heartbeat? |
|
| Back to top |
|
 |
Freddy Fonero Pub A
Joined: 26 Jul 2006 Posts: 230 Location: Germany
|
Posted: Sat Sep 23, 2006 14:44 Post subject: |
|
|
you can try to add the download command (to /tmp) to the startup commands, or maybe try to add the complete script to the startup? :> _________________ status: Linus
setup: Debian Router » Linksys WRT54G + La Fonera
firmware: custom (based on dd-wrt) overclocked to 216 mhz and a modified Fonera firmware
link: 3Mbit down 512 kbit/s up
My Fonera Stuff
How to add a third signal to your Fonera |
|
| Back to top |
|
 |
gulp Fonero

Joined: 23 Sep 2006 Posts: 8 Location: Italy
|
Posted: Sun Sep 24, 2006 01:42 Post subject: |
|
|
but this firmware:
| Code: | Freddy's custom DD-WRT firmware
v 1.01
based on: DD-WRT v23 SP2 (08/30/06) std (SVN revision 3789)
added FON heartbeat script (enable syslog to make sure it's working)
removed kaid
removed telnet
removed sputnik
removed samba |
runs the heartbeat script once installed, or i've to download also on this firmware the fonkey and thinclient on jffs2?
And about "enable syslog to make sure it's working" how can i understand if thinclient it's working or not?
Reading /tmp/var/log/messages i've
| Code: | DD-WRT user.notice root: sent: mode='start' wlmac='**:**:**:**:**:**' mac='**:**:**:**:**:**' fonrev='3' firmware='0.6.6' chillver='1.0-1' thclver='1.0'
DD-WRT user.notice root: /tmp/.thinclient.sh is the default one, deleted | is it running fine?
Thanx for any info  |
|
| Back to top |
|
 |
Freddy Fonero Pub A
Joined: 26 Jul 2006 Posts: 230 Location: Germany
|
Posted: Sun Sep 24, 2006 07:35 Post subject: |
|
|
yes, "/tmp/.thinclient.sh is the default one, deleted" means it's working _________________ status: Linus
setup: Debian Router » Linksys WRT54G + La Fonera
firmware: custom (based on dd-wrt) overclocked to 216 mhz and a modified Fonera firmware
link: 3Mbit down 512 kbit/s up
My Fonera Stuff
How to add a third signal to your Fonera |
|
| Back to top |
|
 |
hellofon Fonero C
Joined: 28 May 2006 Posts: 121
|
Posted: Sun Sep 24, 2006 09:25 Post subject: |
|
|
@Freddy
Will there be a version based on the released SP2 dated 2006-09-15? |
|
| Back to top |
|
 |
Freddy Fonero Pub A
Joined: 26 Jul 2006 Posts: 230 Location: Germany
|
Posted: Sun Sep 24, 2006 09:33 Post subject: |
|
|
yes, there will be one.
There's an official _nokaid_ version now, so you can put it on the jffs easily _________________ status: Linus
setup: Debian Router » Linksys WRT54G + La Fonera
firmware: custom (based on dd-wrt) overclocked to 216 mhz and a modified Fonera firmware
link: 3Mbit down 512 kbit/s up
My Fonera Stuff
How to add a third signal to your Fonera |
|
| Back to top |
|
 |
vincent.e Fonero
Joined: 24 Sep 2006 Posts: 4
|
Posted: Sun Sep 24, 2006 16:29 Post subject: |
|
|
Hello everyone. I've read all this topic and tried to install Freddy's Custom Firmware. Here's what i did :
- reset to factory defaults
- flash with dd-wrt v23 mini generic
- reset to factory defaults
- flash with freddy's custom firmware
at this point, DHCP works for Lan clients, so i execute fon.cgi and did what is noticed in "Manually install FON on dd-wrt with Chillispot" but it doesn't work.
Chillispot doesn't give me an IP. So i connect by SSH to the router and did :
- nvram show | grep chilli
and all seems to be ok, here is the report :
| Code: |
chilli_interface=wlan
~ # chilli_enable=1
~ # chilli_backup=radius02.fon.com
~ # chilli_uamanydns=1
~ # chilli_uamallowed=www.fon.com,www.paypal.com,www.paypalobjects.com,www.skype.com,www.dd-wrt.com,www.dd-wrt.org,www.dd-wrt.com.de,213.134.45.0/24
~ # chilli_radius=radius01.fon.com
~ # chilli_additional=
~ # chilli_nowifibridge=1
~ # chilli_macauth=0
~ # chilli_radiusnasid="the id is the wireless one"
~ # chilli_url=https://login.fon.com/cp/index.php
~ # chilli_pass=garrafon
~ # chilli_uamsecret=garrafon
~ # chilli_dns1=0.0.0.0
|
So what is the problem ?
I've tried these commands in Administration>Commands:
| Code: | /jffs # wget http://fon.freddy.eu.org/heartbeat/fonkey
/jffs # wget http://fon.freddy.eu.org/heartbeat/thinclient |
but it says me that permission is denied for /jffs also JFFS2 is enabled on the router. THanks for any help. |
|
| Back to top |
|
 |
vincent.e Fonero
Joined: 24 Sep 2006 Posts: 4
|
Posted: Sun Sep 24, 2006 17:16 Post subject: |
|
|
I have modified my chillispot settings like this
| Code: |
chilli_interface=wlan
chilli_enable=1
chilli_backup=radius02.fon.com
chilli_uamanydns=1
chilli_uamallowed=www.fon.com,www.paypal.com,www.paypalobjects.com,www.skype.com,www.dd-wrt.com,www.dd-wrt.org,www.dd-wrt.com.de,213.134.45.0/24
chilli_radius=radius01.fon.com
chilli_nowifibridge=1
chilli_additional=
chilli_macauth=0
chilli_radiusnasid="the wireless id"
chilli_url=https://login.fon.com/cp/index.php
chilli_pass=garrafon
chilli_uamsecret=garrafon
size: 22835 bytes (9933 left)
chilli_dns1=212.27.32.176
|
and now i have an IP, but the result is the same, I don't have any IP from Chillispot.
I ran via Putty in SSH the commands to download fonkey and thinclient and I have the same problem as gulp. Directory jffs is empty. |
|
| Back to top |
|
 |
gulp Fonero

Joined: 23 Sep 2006 Posts: 8 Location: Italy
|
Posted: Sun Sep 24, 2006 18:25 Post subject: |
|
|
i've resolved, building a custom firmware by myself, based on 24beta, and removing, kaid,samba,sputnik,telnet,RFlow / MACupd,watchdog and some other things, and adding Freddy's heartbeat script (Thanx Freddy for your useful script! ).
then to enable jffs (enabling it on http page seems to have no effect) open a ssh terminal (with putty or another client)
and write this:
| Code: | nvram set jffs_mounted=1
nvram set enable_jffs2=1
nvram set sys_enable_jffs2=1
nvram set clean_jffs2=0
nvram set dhcpd_usejffs=0
nvram set sys_clean_jffs2=0
nvram commit
reboot |
now i'm able to write in jffs and there is a lot of space (now i'm putting in some htm page to use my router as a webserver, with external images), seems like before jffs was unmounted...
btw with these custom firmwares you don't need to copy fonkey and thinclient, they are automatically executed at router startup.
For your Fon and chillispot problem, these are my setting for chillispot and fon access is going well.
| Code: | chilli_interface=wlan
chilli_enable=1
chilli_backup=radius02.fon.com
chilli_uamanydns=1
chilli_uamallowed=www.fon.com,en.fon.com,www.paypal.com,www.paypalobjects.com,192.168.1.1,213.134.45.0/24
chilli_radius=radius01.fon.com
chilli_nowifibridge=1
chilli_additional=
chilli_macauth=0
chilli_radiusnasid=xx-xx-xx-xx-xx-xx
chilli_url=https://login.fon.com/cp/index.php
chilli_pass=garrafon
chilli_uamsecret=garrafon
chilli_dns1=0.0.0.0 |
|
|
| Back to top |
|
 |
vincent.e Fonero
Joined: 24 Sep 2006 Posts: 4
|
Posted: Sun Sep 24, 2006 18:50 Post subject: |
|
|
thanks gulp, i'll try this when i can .. but, please could you share your personal firmware ?
DD-WRT 24 base firmware enabled multi-SSIDs, and so i think it would intereset more than someone ! |
|
| Back to top |
|
 |
vincent.e Fonero
Joined: 24 Sep 2006 Posts: 4
|
Posted: Sun Sep 24, 2006 20:54 Post subject: |
|
|
All right guys, all works fine now.
For this to work, i didn't ran fon.cgi, but set all the settings manually and that's ok now.
Thanks. |
|
| Back to top |
|
 |
Freddy Fonero Pub A
Joined: 26 Jul 2006 Posts: 230 Location: Germany
|
Posted: Mon Sep 25, 2006 06:08 Post subject: |
|
|
fon.cgi is buggy, try to remove "www.dd-wrt.com.de" from the uamallowed line
check syslog for errors _________________ status: Linus
setup: Debian Router » Linksys WRT54G + La Fonera
firmware: custom (based on dd-wrt) overclocked to 216 mhz and a modified Fonera firmware
link: 3Mbit down 512 kbit/s up
My Fonera Stuff
How to add a third signal to your Fonera |
|
| Back to top |
|
 |
gulp Fonero

Joined: 23 Sep 2006 Posts: 8 Location: Italy
|
Posted: Mon Sep 25, 2006 13:51 Post subject: |
|
|
Btw here is my custom firmware based on DD-WRT v24:
| Code: | added Freddy's FON heartbeat script (enable syslog to make sure it's working)
modified jffs2 initializing script (now on wrt54gl jffs2 is mounted and working)
removed kaid
removed telnet
removed sputnik
removed samba
removed ipv6
removed mmc
removed DNSMasq
removed PPTP
removed SNMP
removed watchdog
removed languages (only english left) |
Custom_Firmware_v24.rar
Use at your own risk, i'm using it on a wrt54gl and i've no problem at all. |
|
| Back to top |
|
 |
dozzer Fonero Pub A
Joined: 27 Jun 2006 Posts: 152
|
Posted: Mon Sep 25, 2006 15:28 Post subject: |
|
|
| gulp wrote: | Btw here is my custom firmware based on DD-WRT v24:
| Code: | added Freddy's FON heartbeat script (enable syslog to make sure it's working)
modified jffs2 initializing script (now on wrt54gl jffs2 is mounted and working)
removed kaid
removed telnet
removed sputnik
removed samba
removed ipv6
removed mmc
removed DNSMasq
removed PPTP
removed SNMP
removed watchdog
removed languages (only english left) |
Custom_Firmware_v24.rar
Use at your own risk, i'm using it on a wrt54gl and i've no problem at all. |
Will flashing this put my stock fon linksys (0.6.6) into a fully working (as far as FON are concerned) FON router?
Does anything else have to be done.. _________________ -----------
FON Sux!!!
----------- |
|
| Back to top |
|
 |
[DrAg] Fonero Reg
Joined: 26 Sep 2006 Posts: 2
|
Posted: Thu Sep 28, 2006 23:52 Post subject: |
|
|
No problem at all flashing my linksys wrt54gl with the custom firmware from GULP. Only wondering where the startup script can be found with the heartbeat code.... I'm not sure my heart is beating
I'm trying to check if the script is working by looking at: /tmp/var/log/ not any messages as found in your instruction with the firmware can be found here:
info.txt GULP custom firmware:
Heartbeat script should start at router startup.
Enable syslog and open a ssh connection, and read the log file under /tmp/var/log/ to see if all is ok
(if you can see a line like this all should be ok
"DD-WRT user.notice root: /tmp/.thinclient.sh is the default one, deleted" )
Any idea how this works? I only installed the customfirmware I did not download any thinclient or fonkey, it is with the custom firmware isn't it?
Thanks in advance |
|
| Back to top |
|
 |
|