Published on Friday March 16th, 2007 .
The Dropbear mini ssh daemon doesn’t recognize $HOME/.ssh/authorized_keys files. However, you can configure authorized public keys in /etc/dropbear/authorized_keys (using the same format).
For example, you can do:
scp .ssh/id_rsa.pub root@fon01:/etc/dropbear/authorized_keys
The next time you access your Fonera box, you won’t need to enter root’s password ;-).
ShareThis / Compartelo
Published on Monday March 5th, 2007 .
Following Ivan’s article about how the La Fonera automatically updates it’s chilli.conf file (Chillispot configuracion file), and about the fact that you may like to configure your own set of allowed URLs — URLs users can browse without registering against FON radius –, I propose here a modification of /etc/init.d/N50chillispot.
With that patch applyed to N50chillispot:
* You can now specify your own set of allowed URLs. Put the lines into /etc/chilli.allowed (create the file). Leave the file blank or remove file if you don’t want to allow any URL.
* You’ll receive any update to the file (radius changes,…) but you won’t be affected by "uamallowed" lines (your lines will apply instead).
Here is the patch I propose:
--- N50chillispot.old 2007-03-05 11:43:53.000000000 +0100
+++ N50chillispot 2007-03-05 12:22:13.000000000 +0100
@@ -2,7 +2,9 @@
. /tmp/network-config
TMP_C=/tmp/chilli.conf
+TMP_C_T=/tmp/chilli.conf.tmp
ETC_C=/etc/chilli.conf
+ETC_W=/etc/chilli.allowed
PID_F=/var/run/chilli.pid
PID_LOOP_F=/var/run/chilli_loop.pid
LOG_LOOP_F=/var/log/chilli_loop.log
@@ -69,6 +71,9 @@
--dhcpif $wifi_ifname \
> $TMP_C
[ -n "$(cat $TMP_C)" ] && {
+ grep -v "^uamallowed" $TMP_C > $TMP_C_T
+ [ -f "$ETC_W" ] && cat $ETC_W >> $TMP_C_T
+ mv $TMP_C_T $TMP_C
MD5SUM_TMP=$(md5sum $TMP_C | awk '{ print $1 }')
MD5SUM_ETC=$(md5sum $ETC_C | awk '{ print $1 }')
if [ ! "$MD5SUM_TMP" = "$MD5SUM_ETC" ]; then
(tested on Fonera Firmware Version 0.7.1 rev 1)
ShareThis / Compartelo
Published on Sunday March 4th, 2007 .
# echo "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00" > /etc/TZ
# ntpclient -c 1 -s -h pool.ntp.org
39143 45854.743 153016.0 25.0 104118.5 43060.3 0
# date
Sun Mar 4 13:44:29 CET 2007
Now the date and timezone is correct.
Reference:
* Timezone at OpenWRT Configuracion wiki
ShareThis / Compartelo
Published on Sunday March 4th, 2007 .
The Fonera OS doesn’t bring the hostname command, but you can change it’s default “OpenWrt” hostname to any hostname you like:
# sysctl -w kernel.hostname=fon01
kernel.hostname = fon01
# uname -a
Linux fon01 2.4.32 #9 jue nov 23 12:11:45 UTC 2006 mips unknown
(note: the date is wrong!)
You can make it persistent accross reboot:
echo "kernel.hostname=fon01" >> /etc/sysctl.conf
ShareThis / Compartelo
Recent Comments