顯示具有 La Fonera 標籤的文章。 顯示所有文章
顯示具有 La Fonera 標籤的文章。 顯示所有文章

2007年9月1日 星期六

FON chilli.conf

radiusserver1 radius01.fon.com
radiusserver2 radius02.fon.com
radiussecret garrafon
dhcpif eth1
uamsecret garrafon
uamallowed 60.199.247.73
uamanydns
uamallowed www.martinvarsavsky.net,www.google.com,www.flickr.com,static.flickr.com,video.google.com,216.239.51.0/24,66.249.81.0/24
uamallowed www.fon.com,www.paypal.com,www.paypalobjects.com,www.skype.com,66.249.93.0/24,72.14.207.0/24,72.14.209.0/24,84.96.67.0/24,213.91.9.0/24,80.118.99.0/24
uamallowed shop.fon.co.kr,secure.nuguya.com,inilite.inicis.com,fon-en.custhelp.com,maps.fon.com,c20.statcounter.com
uamallowed www.excite.co.jp,image.excite.co.jp,adimp.excite.co.jp,202.47.16.159,202.47.16.161,202.47.17.159,202.47.17.161,202.47.18.159
uamallowed 202.47.18.161,202.47.19.159,202.47.19.161,ssl.google-analytics.com,c26.statcounter.com,www.fonshop.jp,gringo.fon.com
uamallowed labs.fon.com,213.134.44.0/23,www.fonshop.com.tw,shop.hk.fon.com,maps.naver.com
uamserver https://www.fon.com/login/gateway/sec/bcaeb47c9e2dee6f7b30ad7d009e6be4

2007年8月30日 星期四

Fonera GCC IPK

root@OpenWrt:~# ipkg install libgcc_4.1.1-8_mips.ipk
Upgrading libgcc on root from 3.4.6-8 to 4.1.1-8...
Configuring libgcc
Done.
WARNING: Unable to remove temporary directory: /tmp/ipkg-rDpCrp: Directory not empty


網路上找到的
有空來試試~~

DD-WRT 刷回 FON

1.
抓FON解壓

wget http://www.hotlinkfiles.com/files/176104_p4wta/fonera_0.7.1.3.fon

dd if=fonera_0.7.1.3.fon of=fonera_0.7.1.3.fon.tgz bs=1 skip=519

tar -zxvf fonera_0.7.1.3.fon.tgz

會解出下面三個file
rootfs.squashfs
kernel.lzma
hotfix

2.
開始工作

ip_address -l 192.168.1.254/24 -h 192.168.1.166

fis init
load -r -v -b 0x80040450 rootfs.squashfs
fis create -b 0x80040450 -f 0xA8030000 -l 0x00700000 -e 0x00000000 rootfs
load -r -b %{FREEMEMLO} kernel.lzma
fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7
fis load -l vmlinux.bin.l7
exec

3.
大功告成

La Fonera 刷成 DD-WRT

1.
所需東東

(1) putty: http://www.chiark.greenend.org.uk/~sgtatham/putty/
(2) TFTP server: http://sourceforge.net/projects/tftp-server/
(3) HFS(Http File Server): http://www.rejetto.com/hfs/?f=dl
(4) openwrt-ar531x-2.4-vmlinux-CAMICIA.lzmaout.hex
(5) DD-WRT root.fs and vmlinux.bin.l7 : DD-WRT 下載處

2.
SSH 連到 La Fonera

cd /tmp
wget http://fonera.info/camicia/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma
mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma vmlinux.bin.l7
reboot

cd /tmp
wget http://fonera.info/camicia/out.hex
mtd -e "RedBoot config" write out.hex "RedBoot config"
reboot

3.
連到La Fonera使用 RedBoot 刷入 DD-WRT
設定電腦ip為192.168.1.166
拷貝 root.fs 及 vmlinux.bin.l7 到 TFTP server 資料夾

telnet 192.168.1.254 9000 來連入

RedBoot> ip_address -l 192.168.1.254/24 -h 192.168.1.166
RedBoot> fis init
RedBoot> load -r -v -b 0x80041000 root.fs
RedBoot> fis create -b 0x80041000 -f 0xA8030000 -l 0x002C0000 -e 0x00000000 rootfs
RedBoot> load -r -v -b 0x80041000 vmlinux.bin.l7
RedBoot> fis create -r 0x80041000 -e 0x80041000 -l 0x000E0000 vmlinux.bin.l7
RedBoot> fis create -f 0xA83D0000 -l 0x00010000 -n nvram
RedBoot> reset

在以上過程中, 需要有耐心去等待, 一步步來, 別不小心刷掛了La Fonera

4.
以上都ok了
就可以用 http://192.168.1.1 來連入了

預設
帳號: root
密碼: admin

DynDNS on La Fonera

NSLU2-Linux 提到 - HowTo / DynDNSupdate browse
能在 La Fonera 上面更新 dyndns 的 script。真是方便。

主要程式 dnsupd 是從 fragrantblue COPY 來的,
但放到La Fonera有問題不能跑, 再經過修改後的結果如下囉!!

1.建立dnsupd
vi /bin/dnsupd
=================================================
#!/bin/sh
user=
pass=
domain=
wildcard=[ON|OFF]

if [ ! -f /tmp/old.ip ]
then
echo "Current IP Address: 0.0.0.0" > /tmp/old.ip
fi

wget -q http://checkip.dyndns.com:8245/index.html --output-document=/tmp/new.ip

if [ "`cat /tmp/new.ip`" = "`cat /tmp/old.ip`" ]
then
echo "No new IP"
rm -f /tmp/new.ip
else
PAT='Current IP Address:.*[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*'
if grep -q "${PAT}" /tmp/new.ip && grep -q "${PAT}" /tmp/old.ip; then
wget -q "http://${user}:${pass}@members.dyndns.org:8245/nic/update?hostname=${domain}&wildcard=${wildcard}" -O /tmp/upd.ip
echo "New IP"
rm -f /tmp/upd.ip
mv /tmp/new.ip /tmp/old.ip
fi
fi
==========================================

2.設定啟動執行
vi /etc/init.d/S60dnsupd
==========================================
#!/bin/sh
if [ -n "`pidof dnsupd`" ]; then
/bin/killall dnsupd 2>/dev/null
fi
umask 077
/bin/dnsupd
==========================================

3.變更權限
chmod 755 /bin/dnsupd
chmod 755 /etc/init.d/S60dnsupd

4.定時查驗ip是否變更
crontab -e (加入下一行)
==========================================
*/15 * * * * /bin/dnsupd &>/dev/nul
==========================================

La Fonera 加裝散熱風扇

看到最近網站上大家都在發表自行改裝的散熱裝置
我也來分享一下我之前改裝的成果
1.
所需物品如下:
(1)一分二的3pin電源線(我只找到這種的線)
(2)風扇 (3 x 3 x 0.5 cm), 因我不喜歡去改那散熱片, 特別去量大小找這size的
這size剛好可放那空間(圖三位置)


2.
將一分二的3pin電源線一條剪下 在電源座下依正負極焊上去, 正負極我是看變電器上的標示



3.
風扇底部有膠, 將他貼在散熱片上, 就完成了, 是可以靠左邊貼上並開個洞將熱氣吹出會更好, 但我不喜歡將Fon開洞所以就這樣貼上


4.
最後蓋上外衣, 在改裝前FON溫度近70度, 改裝後溫度為近60度, 約下降10度, 主要是我沒將FON開洞將熱氣吹出, 而是在內部循環


5.
有人問那風扇多少錢??
我是在是在台北車站新光三越旁的NOVA(台北市館前路2號)
地下一樓的店面買的
(一下樓往左邊轉, 走到底的角落那家, 就可看到風扇專賣店)

那個的確不便宜, 要200元
我在裝時
是有考慮風的方向要朝哪,想了一陣子
1.靠左邊貼上,風的方向朝左吹並開個洞, 將熱氣吹
2.風的方向朝右吹讓熱風在內部循環
因但我不喜歡將Fon開洞, 所以就選第二項就這樣貼上