Size: 961
Comment:
|
← Revision 6 as of 2013-07-13 18:12:03 ⇥
Size: 1905
Comment: A pair of recomendations
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
depends: | Warning: This is still a highly untested software use with caution. |
Line 3: | Line 3: |
[[Netsukuku_Dev/vala/flashing_notes2 | Openwrt notes]] For compilation you will need the following dependencies: |
|
Line 10: | Line 13: |
recommends: | It is recommended to install bazaar to interact with the source code repository since currently there is no stable tarball for downloading. |
Line 16: | Line 21: |
clone vala ntk repository | Clone the vala ntk repository |
Line 19: | Line 24: |
$bzr branch bzr://bzr.savannah.nongnu.org/netsukuku/vala netsukuku-vala | $ bzr branch bzr://bzr.savannah.nongnu.org/netsukuku/vala netsukuku-vala |
Line 21: | Line 26: |
Line 22: | Line 28: |
The following will generate the necesary files for autotools work as intended. It will install ntk to /usr/local by default. Feel free to run ./configure --help to see all the variables you might change. |
|
Line 25: | Line 35: |
./autogen.sh ./configure make sudo make install |
|
Line 26: | Line 40: |
__copy configurations__ |
|
Line 27: | Line 44: |
./autogen.sh }}} {{{ ./configure }}} {{{ make #got a lot of warnings here }}} {{{ make install |
sudo cp -r INSTALL_DIR/linux/etc/netsukuku /etc/ |
Line 40: | Line 48: |
{{{ | |
Line 41: | Line 50: |
# for example: ntkd -i eth0 -i wlan0 -v 4 }}} |
|
Line 42: | Line 54: |
for example: ntkd -i tap0 -i eth0 | For messing around: {{{ # Install OpenVPN and bridge utils apt-get install openvpn bridge-utils |
Line 44: | Line 59: |
For messing around apt-get install openvpn bridge-utils | # Make a tunnel interface sudo openvpn --mktun --dev tap0 --user `id -un` |
Line 46: | Line 62: |
#make a tunnel interface sudo openvpn --mktun --dev tap0 --user `id -un` | # Check it's there ifconfig tap0 |
Line 48: | Line 65: |
#check it's there ifconfig tap0 | # Make a bridge interface brctl addbr br0 |
Line 50: | Line 68: |
#make a bridge interface brctl addbr br0 | # Check it's there ifconfig br0 |
Line 52: | Line 71: |
#check it's there ifconfig br0 #add tunnel iface to bridge |
# Add tunnel iface to bridge |
Line 58: | Line 74: |
#start ntkd on the bridge (won't work on tap0 ?!?) ntkd -i br0 | # Start ntkd on the bridge (won't work on tap0 ?!?) sudo ntkd -i br0 |
Line 60: | Line 77: |
#watch it tcpdump -i br0 | # Watch it tcpdump -i br0 }}} |
Line 62: | Line 81: |
more or less... | Make sure you are not running some sort of network interface manager such as NetworkManager, wicd, dhcpd, etc., on that NIC, otherwise it will interrupt the process and assign a new IP address destroying our link with the Ntk network. The instructions to deactivate such services depends higly on your GNU/Linux disto. |
Warning: This is still a highly untested software use with caution.
For compilation you will need the following dependencies:
valac >=0.14
- libgee-dev
- libpth-dev
- libgcrypt11-dev
- cmake
- autogen
It is recommended to install bazaar to interact with the source code repository since currently there is no stable tarball for downloading.
bzr #see https://savannah.nongnu.org/bzr/?group=netsukuku for CVS and tar
howto:
Clone the vala ntk repository
$ bzr branch bzr://bzr.savannah.nongnu.org/netsukuku/vala netsukuku-vala
build
The following will generate the necesary files for autotools work as intended. It will install ntk to /usr/local by default. Feel free to run ./configure --help to see all the variables you might change.
cd netsukuku-vala ./autogen.sh ./configure make sudo make install
copy configurations
sudo cp -r INSTALL_DIR/linux/etc/netsukuku /etc/
usage:
ntkd --help # for example: ntkd -i eth0 -i wlan0 -v 4
For messing around:
# Install OpenVPN and bridge utils apt-get install openvpn bridge-utils # Make a tunnel interface sudo openvpn --mktun --dev tap0 --user `id -un` # Check it's there ifconfig tap0 # Make a bridge interface brctl addbr br0 # Check it's there ifconfig br0 # Add tunnel iface to bridge brctl addif br0 tap0 # Start ntkd on the bridge (won't work on tap0 ?!?) sudo ntkd -i br0 # Watch it tcpdump -i br0
Make sure you are not running some sort of network interface manager such as NetworkManager, wicd, dhcpd, etc., on that NIC, otherwise it will interrupt the process and assign a new IP address destroying our link with the Ntk network.
The instructions to deactivate such services depends higly on your GNU/Linux disto.