Wednesday, February 8, 2012
Sunday, November 20, 2011
Running mesh with OLSR with Openwrt (backfire)
1. checkout the svn source codes from official SVN repo.
2.update software packages and install them
./scripts/feeds install -a -p olsrd
3. compile the Openwrt system with Luci image
4. under Network/Interface, add new interface
5. configure the new created interface
6. configure wifi under Network/Wifi
7. ssh into the node, and edit /etc/config/olsrd, must set 'interface' to 'wl0' as we configure the wifi interface in previous step.
config 'Interface'
list 'interface' 'wl0'
8. then start the olsrd, by /etc/init.d/olsrd start
2.update software packages and install them
./scripts/feeds update
./scripts/feeds install -a -p luci./scripts/feeds install -a -p olsrd
3. compile the Openwrt system with Luci image
4. under Network/Interface, add new interface
5. configure the new created interface
6. configure wifi under Network/Wifi
7. ssh into the node, and edit /etc/config/olsrd, must set 'interface' to 'wl0' as we configure the wifi interface in previous step.
config 'Interface'
list 'interface' 'wl0'
8. then start the olsrd, by /etc/init.d/olsrd start
Tuesday, October 25, 2011
things need to change to enable multiple hop routing
#!/bin/ash
# needed for static multihop routing
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath0/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath0/accept_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath1/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath1/accept_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath2/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath2/accept_redirects
# needed for static multihop routing
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath0/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath0/accept_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath1/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath1/accept_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath2/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/ath2/accept_redirects
embedded linux tools for android
Busybox
http://www.androidfanatic.com/community-forums.html?func=view&id=228&catid=9
Iperf
http://www.magicandroidapps.com/wiki//index.php?title=Using_iPerf_for_Android
Rooting Galaxy S2
http://samsunggalaxys2review.org/root-your-samsung-galaxy-s2-heres-how/
enable multi-hop routing
http://thindot.blogspot.com/2011/10/things-need-to-change-to-enable.html
http://www.androidfanatic.com/community-forums.html?func=view&id=228&catid=9
Iperf
http://www.magicandroidapps.com/wiki//index.php?title=Using_iPerf_for_Android
Rooting Galaxy S2
http://samsunggalaxys2review.org/root-your-samsung-galaxy-s2-heres-how/
enable multi-hop routing
http://thindot.blogspot.com/2011/10/things-need-to-change-to-enable.html
Thursday, September 29, 2011
Discontinuation of libhid library in Ubuntu 10.10 causes problems
root@router39:~/mesh-svn-repo/LabBrick-Control# ./LabBrickControl
./LabBrickControl: error while loading shared libraries: libhid.so.0: cannot open shared object file: No such file or directory
all you need to do is to copy /usr/local/lib/libhid.so.0 to the node that needs it.
./LabBrickControl: error while loading shared libraries: libhid.so.0: cannot open shared object file: No such file or directory
all you need to do is to copy /usr/local/lib/libhid.so.0 to the node that needs it.
Tuesday, September 20, 2011
How to disable GRUB 2 menu, even after crash.
Just wanted to share this with anyone wanting to know.
If your headless server crashes, GRUB2 (at least on Ubuntu Server) is designed to force the GRUB menu to load up next time it starts up, which means you are locked out of SSH until someone physically makes a kernel selection on the PC.
To prevent this do the following change to your grub.cfg file.
#nano /boot/grub/grub.cfg
You want to find this line and change it:
And change to:
Or a number other than -1.
when install new kernel image, the system will update this grub.cfg file. Therefore, you also need to change the /etc/grub.d/00_header, find the following function:
So we need to change "set timeout=-1" to "set timeout=1" as well.
Also, please enable the "auto answering feature" for fsck:
/etc/default/rcS
it is enough to change FSCKFIX=no => FSCKFIX=yes
If your headless server crashes, GRUB2 (at least on Ubuntu Server) is designed to force the GRUB menu to load up next time it starts up, which means you are locked out of SSH until someone physically makes a kernel selection on the PC.
To prevent this do the following change to your grub.cfg file.
#nano /boot/grub/grub.cfg
You want to find this line and change it:
Code:
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fiCode:
if [ ${recordfail} = 1 ]; then
set timeout=3
else
set timeout=10
fiwhen install new kernel image, the system will update this grub.cfg file. Therefore, you also need to change the /etc/grub.d/00_header, find the following function:
Code:
make_timeout ()
{
cat << EOF
if [ "\${recordfail}" = 1 ]; then
set timeout=1
else
set timeout=${2}
fi
EOF
}Also, please enable the "auto answering feature" for fsck:
/etc/default/rcS
Quote:
| cat /etc/default/rcS # # /etc/default/rcS # # Default settings for the scripts in /etc/rcS.d/ # # For information about these variables see the rcS(5) manual page. # # This file belongs to the "initscripts" package. TMPTIME=0 SULOGIN=no DELAYLOGIN=no UTC=yes VERBOSE=no FSCKFIX=no |
Thursday, September 15, 2011
在Modoer2.0中更换为Google地图后修复“地图坐标不正确” 问题
在./data/cachefiles/item_field_1.php里,找“地图坐标不正确”
4 =>
array (
'fieldid' => '5',
'modelid' => '1',
'tablename' => 'subject',
'fieldname' => 'mappoint',
'title' => '地图坐标',
'unit' => '',
'style' => '',
'template' => '',
'note' => '',
'type' => 'mappoint',
'listorder' => '4',
'allownull' => '0',
'enablesearch' => '0',
'iscore' => '1',
'isadminfield' => '0',
'show_list' => '0',
'show_detail' => '1',
'regular' => '/[0-9a-z]+,[0-9a-z]+/i',
'errmsg' => '地图坐标不正确',
'datatype' => 'varchar(60)',
'config' =>
array (
'default' => '',
'size' => '30',
),
'disable' => '0',
),
把
'regular' => '/[0-9a-z]+,[0-9a-z]+/i',
改成
'regular' => '/[\-\.0-9a-z]+,[\-\.0-9a-z]+/i',
4 =>
array (
'fieldid' => '5',
'modelid' => '1',
'tablename' => 'subject',
'fieldname' => 'mappoint',
'title' => '地图坐标',
'unit' => '',
'style' => '',
'template' => '',
'note' => '',
'type' => 'mappoint',
'listorder' => '4',
'allownull' => '0',
'enablesearch' => '0',
'iscore' => '1',
'isadminfield' => '0',
'show_list' => '0',
'show_detail' => '1',
'regular' => '/[0-9a-z]+,[0-9a-z]+/i',
'errmsg' => '地图坐标不正确',
'datatype' => 'varchar(60)',
'config' =>
array (
'default' => '',
'size' => '30',
),
'disable' => '0',
),
把
'regular' => '/[0-9a-z]+,[0-9a-z]+/i',
改成
'regular' => '/[\-\.0-9a-z]+,[\-\.0-9a-z]+/i',
Subscribe to:
Posts (Atom)
RISC-v emulator
Changes are based on https://risc-v-getting-started-guide.readthedocs.io/en/latest/linux-qemu.html For Ubuntu/Debian, in addition to sud...
-
#!/bin/ash # needed for static multihop routing echo 1 > /proc/sys/net/ipv4/ip_forward echo 0 > /proc/sys/net/ipv4/conf/all/send_r...
-
/etc/rc.local # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. ...
-
It took me a few days to resolve this problem with the NTL library on Mac OS X. http://www.shoup.net/ntl/doc/tour-unix.html So I am...



