Building and Installing affix kernel modules

First install module source:

# apt-get install affix-source

Now we are ready to compile modules. This includes following steps:

  1. Make sure you have sources for kernel you are running.

  2. Go to /usr/src and unpack the driver source archive:

    $ cd /usr/src
    $ tar xzvf affix.tar.gz

    Now affix source is in /usr/src/modules/affix.

  3. Go to your kernel source (i.e. /usr/src/linux) directory and run make-kpkg:

    $ cd /usr/src/kernel-source-<version>
    $ make-kpkg --added-modules affix modules_image --rootcmd fakeroot
  4. Then you get package affix-modules-<version>.deb. Install it with:

    # dpkg -i affix-modules-<version>.deb