How to build a NDAS package for Debian

Install build tools

  • Following packages are required: dpkg-dev, debhelper, gcc, bzip2, fakeroot, module-assistant, libc6-dev, build-essential
  • Run the following commands with root privilege:
    apt-get install dpkg-dev debhelper gcc bzip2 fakeroot module-assistant libc6-dev build-essential
    apt-get install linux-headers-`uname -r`
    

Build NDAS packages

  • Check ndasadmin_1.x-xxx_arch.deb file and ndas-modules-src_1.x-xxx_all.deb file is created. If those files are not created, please report us with a message from "dpkg-buildpackage".
  • Note: ndas-modules-src_1.x-xxx_all.deb package is actually architecture dependent because it contains pre-built NDAS library.

Install packages

  • Uninstall previously installed package if any. New packages are incompatible with the previous version of NDAS Debian package. See Uninstall section for instruction.
  • With root privilege, run following commands
    dpkg -i ndas-modules-src_1.x-x_all.deb
    m-a prepare
    m-a auto-install ndas
    dpkg -i ndasadmin_1.x-xxx_<arch>.deb 
    
    • Note: If you get an error after the third line about it not finding ndas, restart your machine and try again
    • Note: You don't need to run m-a prepare again when reinstalling NDAS package later.
  • Now installation is completed.

When Linux kernel has changed

  • Changes in kernel version may require rebuilding of kernel modules. When Linux kernel has changed, run following commands with root privilege to rebuild NDAS driver
    m-a auto-install ndas
    

Uninstall

  • You may use GUI tools such as synaptic in Ubuntu or use following commands
    dpkg -r ndasadmin
    dpkg -r ndas-modules-<kernel_version>
    dpkg -r ndas-modules-src
    
    • Note: ndas-modules for current running kernel can be removed using following command.
      dpkg -r ndas-modules-`uname -r`
      

Proceed

You are now ready to Use the NDAS Software

Attachments