public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails
@ 2008-11-16 15:41 jan
  2008-11-16 15:48 ` Outback Dingo
  2008-11-16 16:15 ` Marek Lindner
  0 siblings, 2 replies; 13+ messages in thread
From: jan @ 2008-11-16 15:41 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi

I have a mesh running freifunk â’ˆ.6.32 nodes.
I am using the recommended batman0.2 ipkg to test it next
to OLSR. (Is there no ipkg package and source for 0.3 or 
the latest stable?)

When I did two nodes manually, I installed and set the network
migration, and saw some batman packets.

Then I went ahead and scripted an install on all the nodes (about 40).

It goes, with dropbear authorized_keys, for each node in $NEWIP:

   # batman sources
   scp root@${NEWIP}:/etc/ipkg.conf .
   patch ipkg.conf < ipkg.conf.patch
   scp ipkg.conf root@${NEWIP}:/etc/ipkg.conf
   # update
   ssh root@${NEWIP} ipkg update
   #########################
   ## Admin > B.A.T.M.A.N ##
   #########################
   # Setup screen for migration of network (only shown once)
   /usr/sbin/nvram set ff_bat_netmig=172.18/172.16
   # B.A.T.M.A.N. on/off
   /usr/sbin/nvram set ff_bat_start=1
   # WLAN as eth1:bat on subnet/16
   /usr/sbin/nvram set ff_bat_ran_on=1
   /usr/sbin/nvram set ff_bat_ran_if=eth1:bat
   /usr/sbin/nvram set ff_bat_ran_ip=172.16.174.97
   /usr/sbin/nvram set ff_bat_ran_pf=16
   # LAN as br0 on subnet/29
   /usr/sbin/nvram set ff_bat_lan_on=1
   /usr/sbin/nvram set ff_bat_lan_if=br0
   /usr/sbin/nvram set ff_bat_lan_ip=192.168.174.97
   /usr/sbin/nvram set ff_bat_lan_pf=29
   # local internet-bandwidth: This is not internet gw
   /usr/sbin/nvram set ff_bat_gw_uplink=0
   # common used gateway: set no default route
   /usr/sbin/nvram set ff_bat_gw_choose=0
   # preferred gateway
   # HNA
   # Viz server
   # Hello interval (1000ms)
   # Deamon stakeout
   # Stop OLSR
   # Open firewall
   /usr/sbin/nvram set ff_bat_fw=1
   #
   ##########################
   ## Admin > B.A.T.M.A.N. ##
   ##########################
   ssh root@${NEWIP} ipkg install batmand freifunk-batman
   # Next line must be done with expect else nvram not found
   # For now it will be done on reboot anyway
   #ssh root@${NEWIP} /etc/init.d/S66batman restart

The nvram command is usually not in the path over an ssh like
that (not interactive, passing the command to ssh as an argument)
thus I use /usr/sbin/nvram. In two places this fail:

The freifunk-batman package:
Unpacking freifunk-batman...Done.
Configuring freifunk-batman...//usr/lib/ipkg/info/freifunk-batman.postinst: 10: nvram: not found
//usr/lib/ipkg/info/freifunk-batman.postinst: 10: nvram: not found
Done.

And the S66batman restart, which I did manually.

Now the batman runs, has all the nvram settings, though I didn't go through
the prompt for network migration via the web interface -- I did the script
above. But there are no batman neigbours or messages shown on the info/status
pages in the web interface. Even when I reinstalled freifunk-batman two nodes manually,
that is via interactive ssh, and there was no error, I am still getting no batman
neigbours shown.

Usually I do such cases with expect, there are several places
in my freifunk install / upgrade script where I do this). 
The long term answer is clearly? a trx/bin image of our own.

In the meantime, do I have to reflash them, install batman manually
or with expect? Can I even do that or what happens when the web interface
is used to enter the network migration info, which is now not happening
on my nodes?

regards,
Jan



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails
  2008-11-16 15:41 [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails jan
@ 2008-11-16 15:48 ` Outback Dingo
  2008-11-16 15:52   ` Jan Groenewald
  2008-11-16 16:15 ` Marek Lindner
  1 sibling, 1 reply; 13+ messages in thread
From: Outback Dingo @ 2008-11-16 15:48 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

[-- Attachment #1: Type: text/plain, Size: 3683 bytes --]

id guess this is a  broadcom device running white russian correct ???

On Sun, Nov 16, 2008 at 10:41 PM, <jan@aims.ac.za> wrote:

> Hi
>
> I have a mesh running freifunk ⒈.6.32 nodes.
> I am using the recommended batman0.2 ipkg to test it next
> to OLSR. (Is there no ipkg package and source for 0.3 or
> the latest stable?)
>
> When I did two nodes manually, I installed and set the network
> migration, and saw some batman packets.
>
> Then I went ahead and scripted an install on all the nodes (about 40).
>
> It goes, with dropbear authorized_keys, for each node in $NEWIP:
>
>   # batman sources
>   scp root@${NEWIP}:/etc/ipkg.conf .
>   patch ipkg.conf < ipkg.conf.patch
>   scp ipkg.conf root@${NEWIP}:/etc/ipkg.conf
>   # update
>   ssh root@${NEWIP} ipkg update
>   #########################
>   ## Admin > B.A.T.M.A.N ##
>   #########################
>   # Setup screen for migration of network (only shown once)
>   /usr/sbin/nvram set ff_bat_netmig=172.18/172.16
>   # B.A.T.M.A.N. on/off
>   /usr/sbin/nvram set ff_bat_start=1
>   # WLAN as eth1:bat on subnet/16
>   /usr/sbin/nvram set ff_bat_ran_on=1
>   /usr/sbin/nvram set ff_bat_ran_if=eth1:bat
>   /usr/sbin/nvram set ff_bat_ran_ip=172.16.174.97
>   /usr/sbin/nvram set ff_bat_ran_pf=16
>   # LAN as br0 on subnet/29
>   /usr/sbin/nvram set ff_bat_lan_on=1
>   /usr/sbin/nvram set ff_bat_lan_if=br0
>   /usr/sbin/nvram set ff_bat_lan_ip=192.168.174.97
>   /usr/sbin/nvram set ff_bat_lan_pf=29
>   # local internet-bandwidth: This is not internet gw
>   /usr/sbin/nvram set ff_bat_gw_uplink=0
>   # common used gateway: set no default route
>   /usr/sbin/nvram set ff_bat_gw_choose=0
>   # preferred gateway
>   # HNA
>   # Viz server
>   # Hello interval (1000ms)
>   # Deamon stakeout
>   # Stop OLSR
>   # Open firewall
>   /usr/sbin/nvram set ff_bat_fw=1
>   #
>   ##########################
>   ## Admin > B.A.T.M.A.N. ##
>   ##########################
>   ssh root@${NEWIP} ipkg install batmand freifunk-batman
>   # Next line must be done with expect else nvram not found
>   # For now it will be done on reboot anyway
>   #ssh root@${NEWIP} /etc/init.d/S66batman restart
>
> The nvram command is usually not in the path over an ssh like
> that (not interactive, passing the command to ssh as an argument)
> thus I use /usr/sbin/nvram. In two places this fail:
>
> The freifunk-batman package:
> Unpacking freifunk-batman...Done.
> Configuring freifunk-batman...//usr/lib/ipkg/info/freifunk-batman.postinst:
> 10: nvram: not found
> //usr/lib/ipkg/info/freifunk-batman.postinst: 10: nvram: not found
> Done.
>
> And the S66batman restart, which I did manually.
>
> Now the batman runs, has all the nvram settings, though I didn't go through
> the prompt for network migration via the web interface -- I did the script
> above. But there are no batman neigbours or messages shown on the
> info/status
> pages in the web interface. Even when I reinstalled freifunk-batman two
> nodes manually,
> that is via interactive ssh, and there was no error, I am still getting no
> batman
> neigbours shown.
>
> Usually I do such cases with expect, there are several places
> in my freifunk install / upgrade script where I do this).
> The long term answer is clearly? a trx/bin image of our own.
>
> In the meantime, do I have to reflash them, install batman manually
> or with expect? Can I even do that or what happens when the web interface
> is used to enter the network migration info, which is now not happening
> on my nodes?
>
> regards,
> Jan
>
>
> _______________________________________________
> B.A.T.M.A.N mailing list
> B.A.T.M.A.N@open-mesh.net
> https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n
>

[-- Attachment #2: Type: text/html, Size: 4635 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails
  2008-11-16 15:48 ` Outback Dingo
@ 2008-11-16 15:52   ` Jan Groenewald
  2008-11-16 16:02     ` Outback Dingo
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Groenewald @ 2008-11-16 15:52 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hi

On Sun, Nov 16, 2008 at 10:48:35PM +0700, Outback Dingo wrote:
>    id guess this is a  broadcom device running white russian correct ???

1. Yes, Linksys WRT54GL. 
2. Sort of, freifunk, which is still based on white russian.

regards,
Jan

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails
  2008-11-16 15:52   ` Jan Groenewald
@ 2008-11-16 16:02     ` Outback Dingo
  2008-11-16 16:12       ` Jan Groenewald
  0 siblings, 1 reply; 13+ messages in thread
From: Outback Dingo @ 2008-11-16 16:02 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

hrmm ive got a freifunk on kamikaze with olsr on atheros, been trying to
find english docs on how to configure it but i used freifunk-ng

On Sun, Nov 16, 2008 at 10:52 PM, Jan Groenewald <jan@aims.ac.za> wrote:

> Hi
>
> On Sun, Nov 16, 2008 at 10:48:35PM +0700, Outback Dingo wrote:
> >    id guess this is a  broadcom device running white russian correct ???
>
> 1. Yes, Linksys WRT54GL.
> 2. Sort of, freifunk, which is still based on white russian.
>
> regards,
> Jan
> _______________________________________________
> B.A.T.M.A.N mailing list
> B.A.T.M.A.N@open-mesh.net
> https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n
>

[-- Attachment #2: Type: text/html, Size: 1133 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails
  2008-11-16 16:02     ` Outback Dingo
@ 2008-11-16 16:12       ` Jan Groenewald
  0 siblings, 0 replies; 13+ messages in thread
From: Jan Groenewald @ 2008-11-16 16:12 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hi

On Sun, Nov 16, 2008 at 11:02:56PM +0700, Outback Dingo wrote:
>    hrmm ive got a freifunk on kamikaze with olsr on atheros, been trying to
>    find english docs on how to configure it but i used freifunk-ng

Can you point me at a URL for freifunk-ng? Is it batman by default?
I am interested in testing the two (OLSR/batman) next to each other.

Is most batman deployments kamikaze or freifunk? Well, most, as
there, I gather, are only a few. Is the biggest in germany 
very customized from freifunk/openwrt?

regards,
Jan


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails
  2008-11-16 15:41 [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails jan
  2008-11-16 15:48 ` Outback Dingo
@ 2008-11-16 16:15 ` Marek Lindner
  2008-11-16 16:37   ` Jan Groenewald
  1 sibling, 1 reply; 13+ messages in thread
From: Marek Lindner @ 2008-11-16 16:15 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking


Hi,

> I have a mesh running freifunk â’ˆ.6.32 nodes.
> I am using the recommended batman0.2 ipkg to test it next
> to OLSR. (Is there no ipkg package and source for 0.3 or
> the latest stable?)

please see our download section to get precompiled packages for your platform:
https://dev.open-mesh.net/batman/wiki/Download

Since 0.3 we fixed a couple of annoying bugs which resulted in a 0.3.1 beta. If 
you experience major problems you should give a try.


> The freifunk-batman package:
> Unpacking freifunk-batman...Done.
> Configuring freifunk-batman...//usr/lib/ipkg/info/freifunk-batman.postinst:
> 10: nvram: not found //usr/lib/ipkg/info/freifunk-batman.postinst: 10:
> nvram: not found Done.
>
> And the S66batman restart, which I did manually.

The batman WebUI from Ludger is outdated and not compatible with newer batman 
versions. You should avoid using it. 


> In the meantime, do I have to reflash them, install batman manually
> or with expect? Can I even do that or what happens when the web interface
> is used to enter the network migration info, which is now not happening
> on my nodes?

I think the main problem is the firewall. Batman sends UDP broadcasts on port 
4305 and uses 4306 for gateway tunneling. The vis server operates on 4307. 

Regards,
Marek




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails
  2008-11-16 16:15 ` Marek Lindner
@ 2008-11-16 16:37   ` Jan Groenewald
  2008-11-16 16:46     ` Marek Lindner
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Groenewald @ 2008-11-16 16:37 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hi

On Mon, Nov 17, 2008 at 12:15:45AM +0800, Marek Lindner wrote:
> please see our download section to get precompiled packages for your platform:
> https://dev.open-mesh.net/batman/wiki/Download

Is there an ipkg.conf line I can use to set the source url?

regards,
Jan

-- 
   .~.     Jan Groenewald
   /V\     IT Manager
  /( )\    +27 21 787 9328
  ^^-^^    www.aims.ac.za

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails
  2008-11-16 16:37   ` Jan Groenewald
@ 2008-11-16 16:46     ` Marek Lindner
  2008-11-16 16:53       ` [B.A.T.M.A.N.] ipkg install batman over ssh: postinst failsi Jan Groenewald
  0 siblings, 1 reply; 13+ messages in thread
From: Marek Lindner @ 2008-11-16 16:46 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Monday 17 November 2008 00:37:35 Jan Groenewald wrote:
> Is there an ipkg.conf line I can use to set the source url?

Sorry, we don't have a complete ipkg repository but you can simply install the 
whole URL: ipkg install http://downloads.open-mesh.net/batman/<package.ipk>

Regards,
Marek


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst failsi
  2008-11-16 16:46     ` Marek Lindner
@ 2008-11-16 16:53       ` Jan Groenewald
  2008-11-16 17:05         ` Marek Lindner
  2008-11-17  9:44         ` Axel Neumann
  0 siblings, 2 replies; 13+ messages in thread
From: Jan Groenewald @ 2008-11-16 16:53 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hi

On Mon, Nov 17, 2008 at 12:46:24AM +0800, Marek Lindner wrote:
> On Monday 17 November 2008 00:37:35 Jan Groenewald wrote:
> > Is there an ipkg.conf line I can use to set the source url?
> 
> Sorry, we don't have a complete ipkg repository but you can simply install the 
> whole URL: ipkg install http://downloads.open-mesh.net/batman/<package.ipk>

Thanks. Will this still run in test mode next to OLSR? Can I leave the nvram
settings as is? Should I uninstall freifunk-batman (is that the webif?).
Is there any other webif?

regards,
Jan

-- 
   .~.     Jan Groenewald
   /V\     IT Manager
  /( )\    +27 21 787 9328
  ^^-^^    www.aims.ac.za

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst failsi
  2008-11-16 16:53       ` [B.A.T.M.A.N.] ipkg install batman over ssh: postinst failsi Jan Groenewald
@ 2008-11-16 17:05         ` Marek Lindner
  2008-11-16 17:12           ` Jan Groenewald
  2008-11-17  9:44         ` Axel Neumann
  1 sibling, 1 reply; 13+ messages in thread
From: Marek Lindner @ 2008-11-16 17:05 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Monday 17 November 2008 00:53:12 Jan Groenewald wrote:
> Thanks. Will this still run in test mode next to OLSR? Can I leave the
> nvram settings as is? 

The ipk files from our servers are plain batmand binaries and come without any 
start skript. How it runs is up to you. I suggest you create a very simple 
start script for your own needs:

1. create an ip alias for batman (ifconfig eth1:bat x.,x.x.x)
2. start batmand using that interface (batmand eth1:bat)

Another idea: Simply reuse the IPs from your OLSR network - just change the 
first byte. It will be easier to recognize the nodes.


> Should I uninstall freifunk-batman (is that the
> webif?). Is there any other webif?

Yes, uninstall would be best. There is no other web interface I know of. If 
you update the current webif many people would be happy about it.  :-)

Regards,
Marek


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst failsi
  2008-11-16 17:05         ` Marek Lindner
@ 2008-11-16 17:12           ` Jan Groenewald
  2008-11-16 17:26             ` Marek Lindner
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Groenewald @ 2008-11-16 17:12 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hi

On Mon, Nov 17, 2008 at 01:05:56AM +0800, Marek Lindner wrote:
>  The ipk files from our servers are plain batmand binaries and come without any 
> start skript. How it runs is up to you. I suggest you create a very simple 
> start script for your own needs:
> 
> 1. create an ip alias for batman (ifconfig eth1:bat x.,x.x.x)
> 2. start batmand using that interface (batmand eth1:bat)

OK, they seem to be running due to the nvram settings from the previous batmand.
I do want them to last over flashes.
 
> Another idea: Simply reuse the IPs from your OLSR network - just change the 
> first byte. It will be easier to recognize the nodes.

This is done from the previous freifunk-batman network migration.
 
> Yes, uninstall would be best. There is no other web interface I know of. If 
> you update the current webif many people would be happy about it.  :-)

OK, now where is the main config file please? Or is it only nvram, and is it still
reading those? So I'm down to the command line only? It is fine, I just want to 
understand. I won't be doing the webif soon, but maybe later... still learning.

regards,
Jan

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst failsi
  2008-11-16 17:12           ` Jan Groenewald
@ 2008-11-16 17:26             ` Marek Lindner
  0 siblings, 0 replies; 13+ messages in thread
From: Marek Lindner @ 2008-11-16 17:26 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Monday 17 November 2008 01:12:52 Jan Groenewald wrote:
> OK, they seem to be running due to the nvram settings from the previous
> batmand. I do want them to last over flashes.
>
> This is done from the previous freifunk-batman network migration.

Yes, freifunk-batman does this for you. It definitely is good work - just needs 
some upgrades. It also contains some firewall settings but they open the wrong 
ports (next to some other issues).


> OK, now where is the main config file please? Or is it only nvram, and is
> it still reading those? So I'm down to the command line only? It is fine, I
> just want to understand. I won't be doing the webif soon, but maybe
> later... still learning.

Batman does not need any config file. Every option (if needed) can be supplied 
as parameter when starting the application or running the batman client 
(batmand -c). If you just started I suggets you to have a look at our doc 
section: https://dev.open-mesh.net/batman/wiki/UserDocs

I guess the S66batman startup file reads the nvram variables and generates a 
command line for batman. 

Regards,
Marek


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [B.A.T.M.A.N.] ipkg install batman over ssh: postinst failsi
  2008-11-16 16:53       ` [B.A.T.M.A.N.] ipkg install batman over ssh: postinst failsi Jan Groenewald
  2008-11-16 17:05         ` Marek Lindner
@ 2008-11-17  9:44         ` Axel Neumann
  1 sibling, 0 replies; 13+ messages in thread
From: Axel Neumann @ 2008-11-17  9:44 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking


Hi,

On Sonntag 16 November 2008, Jan Groenewald wrote:
> Hi
>
> On Mon, Nov 17, 2008 at 12:46:24AM +0800, Marek Lindner wrote:
> > On Monday 17 November 2008 00:37:35 Jan Groenewald wrote:
> > > Is there an ipkg.conf line I can use to set the source url?
> >
> > Sorry, we don't have a complete ipkg repository but you can simply
> > install the whole URL: ipkg install
> > http://downloads.open-mesh.net/batman/<package.ipk>
>
> Thanks. Will this still run in test mode next to OLSR? Can I leave the
> nvram settings as is? Should I uninstall freifunk-batman (is that the
> webif?). Is there any other webif?

The people from Freifunk Leipzig have spend lots of time in integrating batman 
next to olsr and for freifun/whiterussion based system. 

You can find ipk packages in their repository:
http://firmware.leipzig.freifunk.net/svn2ipkg/1/6/10/

Some further informatin is here:
http://wiki.leipzig.freifunk.net/Firmware_Guide
and 
http://wiki.leipzig.freifunk.net/BATMAN

PS.: Due to an older mail there is also a traffic/cpu-load statistic plugin 
available named freifunk-statistics-ng-de-le. To use this you may have to 
edit the base-port value in  /etc/init.d/S97rrdconfig .


>
> regards,
> Jan



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-11-17  9:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-16 15:41 [B.A.T.M.A.N.] ipkg install batman over ssh: postinst fails jan
2008-11-16 15:48 ` Outback Dingo
2008-11-16 15:52   ` Jan Groenewald
2008-11-16 16:02     ` Outback Dingo
2008-11-16 16:12       ` Jan Groenewald
2008-11-16 16:15 ` Marek Lindner
2008-11-16 16:37   ` Jan Groenewald
2008-11-16 16:46     ` Marek Lindner
2008-11-16 16:53       ` [B.A.T.M.A.N.] ipkg install batman over ssh: postinst failsi Jan Groenewald
2008-11-16 17:05         ` Marek Lindner
2008-11-16 17:12           ` Jan Groenewald
2008-11-16 17:26             ` Marek Lindner
2008-11-17  9:44         ` Axel Neumann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox