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.
    • as of 2008-12-20 if you are running on 2.6.27 kernel (Ubuntu 8.10) you may need a patch #839
    • For Ubuntu 9.04 on 2.6.28 kernel, download and apply the patch for the 2.6.27 kernel, and then the patch for the 2.6.28 kernel, before you start to install the package.
      tar zxf ndas-1.x-x.tar.gz
      cd ndas-1.x-x
      patch -p1 <Linux2.6.27.patch
      patch -p1 <Linux2.6.28.patch
      dpkg-buildpackage -rfakeroot
      cd ..
      
      After continue with install:
      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 
      
  • 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