Luca Dionisi | 1 May 2012 18:16
Picon

netsukuku is now running on a router

It is possible to compile a OpenWRT firmware for the wireless router
TPLink WR1043ND with which you can run Netsukuku.
This device has 8 MB of flash storage and 32 MB of RAM.
(It also has an USB port that one could use to get more storage, but
that's not needed to be able to run ntkd)

I finally succeeded to install it. It is the Vala implementation that
I am working on recently.
It hasn't got yet all of the features that were in the python version.
Anyhow, once you start it and give it a NIC interface, it will automatically:
  * obtain an IP address (this will not harm the one IP you got from
your ISP, if any)
  * listen to neighborhood for other netsukuku nodes
  * configure routing tables in order to reach other nodes in the network

During the process I wrote down some notes, I placed them here today:
http://lab.dyne.org/Netsukuku_Dev/vala/flashing_notes

It's a starting point, if someone wants to try with his hardware.

--Luca
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku

Luca Cappelletti | 2 May 2012 16:58
Picon
Gravatar

Re: netsukuku is now running on a router

On Tue, May 1, 2012 at 6:16 PM, Luca Dionisi <luca.dionisi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

It is possible to compile a OpenWRT firmware for the wireless router
TPLink WR1043ND with which you can run Netsukuku.
This device has 8 MB of flash storage and 32 MB of RAM.
(It also has an USB port that one could use to get more storage, but
that's not needed to be able to run ntkd)

I finally succeeded to install it. It is the Vala implementation that
I am working on recently.
It hasn't got yet all of the features that were in the python version.
Anyhow, once you start it and give it a NIC interface, it will automatically:
 * obtain an IP address (this will not harm the one IP you got from
your ISP, if any)
 * listen to neighborhood for other netsukuku nodes
 * configure routing tables in order to reach other nodes in the network

During the process I wrote down some notes, I placed them here today:
http://lab.dyne.org/Netsukuku_Dev/vala/flashing_notes

It's a starting point, if someone wants to try with his hardware.


\o/

go Luca!

:)

_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku
Hollman Enciso R. | 2 May 2012 17:16
Picon
Gravatar

Re: netsukuku is now running on a router



On Tue, May 1, 2012 at 11:16 AM, Luca Dionisi <luca.dionisi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
It is possible to compile a OpenWRT firmware for the wireless router
TPLink WR1043ND with which you can run Netsukuku.
This device has 8 MB of flash storage and 32 MB of RAM.
(It also has an USB port that one could use to get more storage, but
that's not needed to be able to run ntkd)

I finally succeeded to install it. It is the Vala implementation that
I am working on recently.
It hasn't got yet all of the features that were in the python version.
Anyhow, once you start it and give it a NIC interface, it will automatically:
 * obtain an IP address (this will not harm the one IP you got from
your ISP, if any)
 * listen to neighborhood for other netsukuku nodes
 * configure routing tables in order to reach other nodes in the network

During the process I wrote down some notes, I placed them here today:
http://lab.dyne.org/Netsukuku_Dev/vala/flashing_notes

It's a starting point, if someone wants to try with his hardware.

--Luca

Excellent new :D

Luca, where I can find information to install on x86 ?
.. for test connection between router and my laptop

thanks!

--
Hollman Eduardo Enciso R.
http://www.hollmanenciso.com/
twitter/identi.ca <at> hollman
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku
Luca Dionisi | 3 May 2012 08:36
Picon

Re: netsukuku is now running on a router

On Wed, May 2, 2012 at 5:16 PM, Hollman Enciso R.
<hollman.enciso@...> wrote:
> Luca, where I can find information to install on x86 ?

Ah, right... for x86.
It should go like this:
# dependencies
sudo apt-get install libgcrypt11-dev libpth-dev libgee-dev tinc
# grab code
bzr branch bzr://bzr.savannah.nongnu.org/netsukuku/vala netsukuku
# build
cd netsukuku
make
make test
# you now have the daemon ./ntkd

Then read ./INSTALL/linux/README for instructions on configuration
files. This goes also for the router.

--Luca
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku

Hollman Enciso R. | 5 May 2012 02:23
Picon
Gravatar

Re: netsukuku is now running on a router



On Thu, May 3, 2012 at 1:36 AM, Luca Dionisi <luca.dionisi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Ah, right... for x86.
It should go like this:
# dependencies
sudo apt-get install libgcrypt11-dev libpth-dev libgee-dev tinc
# grab code
bzr branch bzr://bzr.savannah.nongnu.org/netsukuku/vala netsukuku
# build
cd netsukuku
make
make test
# you now have the daemon ./ntkd

Then read ./INSTALL/linux/README for instructions on configuration
files. This goes also for the router.

whats wrong ?? :P

root <at> saboteur:/home/hollman/netsukuku# make
make -C testsuites
make[1]: Entering directory `/home/hollman/netsukuku/testsuites'
valac -D linux -D littleendian -C --main=Ntk.Test.MapTester.main \
        ../map.vala \
        ../topology.vala \
        ../serializer.vala \
        map_tester_1.vala \
        --pkg gee-1.0 --pkg posix
make[1]: valac: Command not found
make[1]: *** [map_tester_1] Error 127
make[1]: Leaving directory `/home/hollman/netsukuku/testsuites'
make: *** [subdirs] Error 2


--
Hollman Eduardo Enciso R.
http://www.hollmanenciso.com/
twitter/identi.ca <at> hollman
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku
Shadr | 5 May 2012 03:24
Favicon

Re: netsukuku is now running on a router

On 05/05/2012 04:23 AM, Hollman Enciso R. wrote:
> make[1]: valac: Command not found 

> whats wrong ?? :P
You really have vala compiler installed?
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku

Luca Dionisi | 5 May 2012 11:57
Picon

Re: netsukuku is now running on a router

On Sat, May 5, 2012 at 2:23 AM, Hollman Enciso R.
<hollman.enciso@...> wrote:
>
>
> On Thu, May 3, 2012 at 1:36 AM, Luca Dionisi <luca.dionisi@...> wrote:
>>
>> Ah, right... for x86.
>> It should go like this:
>> # dependencies
>> sudo apt-get install libgcrypt11-dev libpth-dev libgee-dev tinc
>> # grab code
>> bzr branch bzr://bzr.savannah.nongnu.org/netsukuku/vala netsukuku
>> # build
>> cd netsukuku
>> make
>> make test
>> # you now have the daemon ./ntkd
>>
>> Then read ./INSTALL/linux/README for instructions on configuration
>> files. This goes also for the router.

Yes, to be able to build with the makefile you have to install valac also.
sudo apt-get install valac
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku

Hollman Enciso R. | 5 May 2012 15:40
Picon
Gravatar

Re: netsukuku is now running on a router



On Sat, May 5, 2012 at 4:57 AM, Luca Dionisi <luca.dionisi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Yes, to be able to build with the makefile you have to install valac also.
sudo apt-get install valac

Thanks Luca. 
now whatś wrong?

root <at> saboteur:/home/hollman/netsukuku# make
make -C testsuites
make[1]: Entering directory `/home/hollman/netsukuku/testsuites'
valac -D linux -D littleendian -C --main=Ntk.Test.NetworkLinuxTester.main \
        ../network_linux.vala \
        ../nic_generic.vala \
        ../route_generic.vala \
        ../tunnel.vala \
        ../channel.vala \
        ../libwrappth.vala \
        ../serializer.vala \
        ../tasklet.vala \
        ../use_with_libpth_vapi.vala \
        ../microfunc.vala \
        ../settings.vala \
        ../time_utils.vala \
        networklinux_tester_1.vala \
        --pkg gee-1.0 --pkg gio-2.0 --pkg posix --pkg libpth --vapidir ..
../network_linux.vala:416.40-416.59: error: Argument 2: Cannot convert from `uint8[]' to `string?'
            ftable.load_contents(null, out rt_table_content);
                                       ^^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
make[1]: *** [networklinux_tester_1] Error 1
make[1]: Leaving directory `/home/hollman/netsukuku/testsuites'
make: *** [subdirs] Error 2


--
Hollman Eduardo Enciso R.
http://www.hollmanenciso.com/
twitter/identi.ca <at> hollman
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku
Luca Dionisi | 5 May 2012 16:24
Picon

Re: netsukuku is now running on a router

On Sat, May 5, 2012 at 3:40 PM, Hollman Enciso R.
<hollman.enciso@...> wrote:
> root <at> saboteur:/home/hollman/netsukuku# make
> make -C testsuites
> make[1]: Entering directory `/home/hollman/netsukuku/testsuites'
> valac -D linux -D littleendian -C --main=Ntk.Test.NetworkLinuxTester.main \
>         ../network_linux.vala \
>         ../nic_generic.vala \
>         ../route_generic.vala \
>         ../tunnel.vala \
>         ../channel.vala \
>         ../libwrappth.vala \
>         ../serializer.vala \
>         ../tasklet.vala \
>         ../use_with_libpth_vapi.vala \
>         ../microfunc.vala \
>         ../settings.vala \
>         ../time_utils.vala \
>         networklinux_tester_1.vala \
>         --pkg gee-1.0 --pkg gio-2.0 --pkg posix --pkg libpth --vapidir ..
> ../network_linux.vala:416.40-416.59: error: Argument 2: Cannot convert from
> `uint8[]' to `string?'
>             ftable.load_contents(null, out rt_table_content);
>                                        ^^^^^^^^^^^^^^^^^^^^
> Compilation failed: 1 error(s), 0 warning(s)
> make[1]: *** [networklinux_tester_1] Error 1
> make[1]: Leaving directory `/home/hollman/netsukuku/testsuites'
> make: *** [subdirs] Error 2

I have vala 0.12 and it works.
What's your vala version?
$ valac --version

--Luca
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku

Hollman Enciso R. | 7 May 2012 03:38
Picon
Gravatar

Re: netsukuku is now running on a router



On Sat, May 5, 2012 at 9:24 AM, Luca Dionisi <luca.dionisi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I have vala 0.12 and it works.
What's your vala version?
$ valac --version

Vala 0.14.2

--
Hollman Eduardo Enciso R.
http://www.hollmanenciso.com/
twitter/identi.ca <at> hollman
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku
Valeska Grim | 7 May 2012 08:19
Picon
Favicon

Re: netsukuku is now running on a router

On 05/06/2012 06:38 PM, Hollman Enciso R. wrote:
I've had some problems installing Netsukuku, I tried it on my friends mac book pro with Ubuntu 10.10 and it didn't work properly, I think I couldn't get it into monitor mode.

On Sat, May 5, 2012 at 9:24 AM, Luca Dionisi <luca.dionisi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I have vala 0.12 and it works.
What's your vala version?
$ valac --version

Vala 0.14.2

--
Hollman Eduardo Enciso R.
http://www.hollmanenciso.com/
twitter/identi.ca <at> hollman


_______________________________________________ Netsukuku mailing list Netsukuku-pma9X3FYtpzZ+VzJOa5vwg@public.gmane.org http://lists.dyne.org/mailman/listinfo/netsukuku

_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku
Luca Dionisi | 7 May 2012 08:53
Picon

Re: netsukuku is now running on a router

On Mon, May 7, 2012 at 3:38 AM, Hollman Enciso R.
<hollman.enciso@...> wrote:
>
>
> On Sat, May 5, 2012 at 9:24 AM, Luca Dionisi <luca.dionisi@...> wrote:
>>
>> I have vala 0.12 and it works.
>> What's your vala version?
>> $ valac --version
>
>
> Vala 0.14.2

I hope that I will have the opportunity soon to upgrade valac and test
netsukuku sources against it. For the moment your option is to install
valac 0.12.
Another option is that I send to you the C sources that are the output
of valac. And a modified makefile.
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku

Hollman Enciso R. | 7 May 2012 15:39
Picon
Gravatar

Re: netsukuku is now running on a router

On Mon, May 7, 2012 at 1:53 AM, Luca Dionisi <luca.dionisi@...> wrote:
>
> On Mon, May 7, 2012 at 3:38 AM, Hollman Enciso R.
> <hollman.enciso@...> wrote:
> >
> >
> > On Sat, May 5, 2012 at 9:24 AM, Luca Dionisi
<luca.dionisi@...> wrote:
> >>
> >> I have vala 0.12 and it works.
> >> What's your vala version?
> >> $ valac --version
> >
> >
> > Vala 0.14.2
>
> I hope that I will have the opportunity soon to upgrade valac and test
> netsukuku sources against it. For the moment your option is to install
> valac 0.12.
> Another option is that I send to you the C sources that are the output
> of valac. And a modified makefile.

I installed vala 0.12

but now i have this error:

root <at> nexus:/home/hollman/netsukuku# make test
make -C testsuites test
make[1]: Entering directory `/home/hollman/netsukuku/testsuites'
/Map/Fundamentals: OK
/Topology/Types: OK
/Metrics/Types: OK
/Serializer/AllSerializableRegistered: OK
/Serializer/HelperMethods: OK
/Serializer/ISerializable: OK
/Serializer/List: OK
/Serializer/SerializedList: OK
/Serializer/ListISerializable: OK
/Messages/Broadcast: OK
/Messages/RemoteCallIterator: OK
/Messages/RemoteCallIteratorAfterDeserialization: OK
/Messages/BroadcastInTasklet: OK
/Tasklet/PassRefCountedObject: OK
/Tasklet/PassStruct: OK
/Tasklet/PassSimpletypeStruct: OK
/Tasklet/nap_time: OK
/Tasklet/system: OK
/Tasklet/abort: OK
/Tasklet/self: OK
/Tasklet/schedule_back: OK
/Tasklet/Sequence: OK
/Tasklet/ExitApp:
You shoud read S0123456789...
S0123456789
/Microfunc/SimpleMicrofunc: OK
/Microfunc/DispatchedMicrofunc: OK
/Channel/RecvOrder: OK
/Channel/RefcountedMessage: OK
/Logger/Basics: OK
/DummyNIC/Basics: OK
/DummyRoute/Basics: OK
/RouteSetter/InternalTablesAndLists: OK
/LinuxNIC/Basics:
** ERROR **: settings.vala:189: No such file or directory
aborting...
make[1]: *** [test] Error 134
make[1]: Leaving directory `/home/hollman/netsukuku/testsuites'
make: *** [test] Error 2

--
Hollman Eduardo Enciso R.
http://www.hollmanenciso.com/
twitter/identi.ca  <at> hollman
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku

Luca Dionisi | 7 May 2012 15:42
Picon

Re: netsukuku is now running on a router

Read INSTALL/linux/README
It is looking for /etc/netsukuku/ntkd.ini probably.

On Mon, May 7, 2012 at 3:39 PM, Hollman Enciso R.
<hollman.enciso@...> wrote:
> On Mon, May 7, 2012 at 1:53 AM, Luca Dionisi <luca.dionisi@...> wrote:
>>
>> On Mon, May 7, 2012 at 3:38 AM, Hollman Enciso R.
>> <hollman.enciso@...> wrote:
>> >
>> >
>> > On Sat, May 5, 2012 at 9:24 AM, Luca Dionisi
<luca.dionisi@...> wrote:
>> >>
>> >> I have vala 0.12 and it works.
>> >> What's your vala version?
>> >> $ valac --version
>> >
>> >
>> > Vala 0.14.2
>>
>> I hope that I will have the opportunity soon to upgrade valac and test
>> netsukuku sources against it. For the moment your option is to install
>> valac 0.12.
>> Another option is that I send to you the C sources that are the output
>> of valac. And a modified makefile.
>
> I installed vala 0.12
>
> but now i have this error:
>
> root <at> nexus:/home/hollman/netsukuku# make test
> make -C testsuites test
> make[1]: Entering directory `/home/hollman/netsukuku/testsuites'
> /Map/Fundamentals: OK
> /Topology/Types: OK
> /Metrics/Types: OK
> /Serializer/AllSerializableRegistered: OK
> /Serializer/HelperMethods: OK
> /Serializer/ISerializable: OK
> /Serializer/List: OK
> /Serializer/SerializedList: OK
> /Serializer/ListISerializable: OK
> /Messages/Broadcast: OK
> /Messages/RemoteCallIterator: OK
> /Messages/RemoteCallIteratorAfterDeserialization: OK
> /Messages/BroadcastInTasklet: OK
> /Tasklet/PassRefCountedObject: OK
> /Tasklet/PassStruct: OK
> /Tasklet/PassSimpletypeStruct: OK
> /Tasklet/nap_time: OK
> /Tasklet/system: OK
> /Tasklet/abort: OK
> /Tasklet/self: OK
> /Tasklet/schedule_back: OK
> /Tasklet/Sequence: OK
> /Tasklet/ExitApp:
> You shoud read S0123456789...
> S0123456789
> /Microfunc/SimpleMicrofunc: OK
> /Microfunc/DispatchedMicrofunc: OK
> /Channel/RecvOrder: OK
> /Channel/RefcountedMessage: OK
> /Logger/Basics: OK
> /DummyNIC/Basics: OK
> /DummyRoute/Basics: OK
> /RouteSetter/InternalTablesAndLists: OK
> /LinuxNIC/Basics:
> ** ERROR **: settings.vala:189: No such file or directory
> aborting...
> make[1]: *** [test] Error 134
> make[1]: Leaving directory `/home/hollman/netsukuku/testsuites'
> make: *** [test] Error 2
>
>
> --
> Hollman Eduardo Enciso R.
> http://www.hollmanenciso.com/
> twitter/identi.ca  <at> hollman
> _______________________________________________
> Netsukuku mailing list
> Netsukuku@...
> http://lists.dyne.org/mailman/listinfo/netsukuku
_______________________________________________
Netsukuku mailing list
Netsukuku@...
http://lists.dyne.org/mailman/listinfo/netsukuku

hellekin | 9 May 2012 14:00
Favicon
Gravatar

Re: netsukuku is now running on a router


On 05/05/2012 04:24 PM, Luca Dionisi wrote:
> 
> I have vala 0.12 and it works. What's your vala version? $ valac
> --version
> 
*** Debian Wheezy has 0.16.0 and make fails there too.

==
hk

--

-- 
hellekin@... C333 AA4F 507F F57F B16E F23E 3863 6139 1CA2 4A13

Gmane