Size: 2123
Comment:
|
Size: 2473
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 100: | Line 100: |
== Configure the daemon settings == There are a few settings that are configurable and influence the behaviour of the daemon. See a sample file in /usr/share/doc/netsukuku/ntkd.ini.sample The settings are in /etc/netsukuku/ntkd.ini Change settings only if you do know what you are doing. {{{ sudo vi /etc/netsukuku/ntkd.ini }}} |
Download and install netsukuku on a ubuntu machine
Install packages for building.
sudo apt-get install build-essential -y sudo apt-get install pkg-config -y sudo apt-get install libglib2.0-dev libpth-dev libgee-0.8-dev -y sudo apt-get install libgcrypt20-dev -y
Prepare a directory for compilation.
mkdir ~/netsukuku-dev cd ~/netsukuku-dev for pkg in tasklet-0.9.tar.gz zcd-0.9.tar.gz netsukuku-rpc-0.9.tar.gz \ andns-rpc-0.9.tar.gz ntkresolv-0.9.tar.gz netsukuku-0.9.tar.gz do wget http://download.savannah.gnu.org/releases/netsukuku/${pkg} tar xf ${pkg} done
Compile.
cd ~/netsukuku-dev/tasklet-0.9 && ./configure --enable-logtasklet --prefix=/usr && make && make check && sudo make install cd ~/netsukuku-dev/zcd-0.9 && ./configure --enable-logtasklet --prefix=/usr && make && sudo make install cd ~/netsukuku-dev/netsukuku-rpc-0.9 && ./configure --enable-logtasklet --prefix=/usr && make && sudo make install cd ~/netsukuku-dev/andns-rpc-0.9 && ./configure --enable-logtasklet --prefix=/usr && make && make check && sudo make install cd ~/netsukuku-dev/ntkresolv-0.9 && ./configure --enable-logtasklet --prefix=/usr --sysconfdir=/etc && make && make check && sudo make install cd ~/netsukuku-dev/netsukuku-0.9 && ./configure --enable-logtasklet --prefix=/usr --sysconfdir=/etc && make && make check && sudo make install
Configure machine to resolve names
You can see a sample configuration of the resolver library in /usr/share/doc/ntkresolv/ntkresolv.ini.sample
You have to edit the configuration file in /etc/ntkresolv/ntkresolv.ini
sudo vi /etc/ntkresolv/ntkresolv.ini
Configure like this:
[NTKRESOLV] ANDNASERVER=127.0.0.1
To instruct your system resolver to use ANDNA edit the configuration file /etc/nsswitch.conf and place "andna [NOTFOUND=return]" before "dns" in the line for the database "hosts".
sudo vi /etc/nsswitch.conf
There should be a line like this:
hosts: files andna [NOTFOUND=return] dns
Configure the daemon settings
There are a few settings that are configurable and influence the behaviour of the daemon.
See a sample file in /usr/share/doc/netsukuku/ntkd.ini.sample
The settings are in /etc/netsukuku/ntkd.ini
Change settings only if you do know what you are doing.
sudo vi /etc/netsukuku/ntkd.ini