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
- Download the universal tarball from http://code.ximeta.com/dev/current/linux ( or http://code.ximeta.com/dev/current/linux64 for x86_64)
- Run following commands
tar zxf ndas-1.x-x.tar.gz cd ndas-1.x-x dpkg-buildpackage -rfakeroot cd ..
- 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`
- Note: ndas-modules for current running kernel can be removed using following command.
Proceed
You are now ready to Use the NDAS Software
Attachments
- ndas-modules-src.buildlog.2.6.27-8-generic.1227250725.gz (1.7 kB) -
I got as far as the "m-a auto-install ndas" step. I am running Ubuntu 8.10
, added by ndas@keser.com on 11/20/08 23:13:55. - ndas-modules-src.buildlog.2.6.27-7-generic.1227399190 (7.3 kB) -
The same problem I have (Ubuntu 8.10)
, added by anonymous on 11/22/08 16:17:48. - ndas-modules-src.buildlog.2.6.27-10-generic.1229375541 (7.3 kB) -
Same thing than the others, still on ubuntu 8.10 but with kernel 2.6.27.10. Please help me!!!
, added by mart.berube@gmail.com on 12/15/08 13:24:18. - use older kernel (173 bytes) -
use older kernel
, added by papz on 01/04/09 15:49:27. - error.txt (1.1 kB) -
Same problem as the others too... The best solution is still to use an older kernel?
, added by anonymous on 05/11/09 09:27:59.
