:: Re: [DNG] What can I do after netma…
Top Page
Delete this message
Reply to this message
Author: Edward Bartolo
Date:  
To: tilt!
CC: dng
Subject: Re: [DNG] What can I do after netman?
Hi Tilt,

I will guide you to successfully compile both the GUI frontend and the
CLI backend. If you have the source code, it should not be difficult
to build both executables.

To compile and build the backend change directory to where the netman
source directory is.
i) cd netman/backend_src/src

Invoke gcc as follows:
ii) $ gcc -lm -I../include core_functions.c file_functions.c backend.c
essid_encoder.c automated_scanner.c -o backend

gcc should create an executable named backend.

Please note that you need the math.h library. This was used to
calculate the absolute power received from the surrounding wifis

iii) Now cd back to where the Lazarus source files are as follows:
cd ../../

Your path should change to netman/

To compile the Lazarus frontend, issue this command:

fpc -MObjFPC -Scghi -O3 -Tlinux -vewnhi -Filib/x86_64-linux
-Fl/opt/gnome/lib
-Fu/usr/lib/lazarus/1.2.4/lcl/units/x86_64-linux/gtk2
-Fu/usr/lib/lazarus/1.2.4/lcl/units/x86_64-linux
-Fu/usr/lib/lazarus/1.2.4/components/lazutils/lib/x86_64-linux
-Fu/usr/lib/lazarus/1.2.4/packager/units/x86_64-linux -Fu.
-FUlib/x86_64-linux -l -dLCL -dLCLgtk2 netman.lpr

You should now find the netman executable in the same directory.

To install copy backend and place it where you suggested me, ie in:
/usr/lib/netman/bin

And don't forget to change backend's ownership to that of root, ie
issue this command:
chown root:root backend

And also give it an SUID belonging to root as follows:
chmod u+s backend

Create where to store the various wifi interfaces files as follows:
mkdir /etc/network/wifi

Edit the /etc/network/interfaces to contain:
iface wlan0 inet dhcp

but do not use "auto wlan0"

Now, run netman, the frontend from wherever you decide and it should
find the backend.

To enable automatic connections, use the --auto-conn parameter when
running the frontend.

If you want me to implement indirect support for wlan1, eth1 please
tell me. This can be done indirectly using a configuration file.

Hopefully, that sets you going. I have been using netman since it has
been a foetus of a few days.

Edward


On 21/09/2015, tilt! <tilt@???> wrote:
> Hi Edward,
>
> congratulations on wrapping this up!
>
> However, attempting to build "netman" from branch "master" at
>
>     https://git.devuan.org/edbarx/netman.git

>
> i get the following errors:
>
>     * directory ./backend_src/obj missing
>     * directory ./bin missing
>     * link-time error:

>
>     backend_src/src/backend.c:248:
>        undefined reference to `autoWirelessScanPlus'

>
> Also, wasn't there a Debian packaging effort? Can it be downloaded
> somewhere?
>
> Best regards,
> T.
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>