Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 14th February 2007, 19:58
ikkem ikkem is offline
Member
 
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
Default

The error message I get is

Quote:
Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use.


If the running kernel has been shipped with the Debian distribution, please
install the package kernel-headers-2.6.19.3-raysun1. If your kernel source tree (or headers) is located in some non-usual location, please set the KERNELDIRS environment variable to the path of this directory, alternatively) specify the source directory we build for with the --kernel-dir option in module-assistant calls.
I am new to Linux so please tell me if I have to be more specific....

Thanks in advance....

Last edited by ikkem; 14th February 2007 at 20:32.
Reply With Quote
Sponsored Links
  #12  
Old 15th February 2007, 19:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's the output of
Code:
ls -la /lib/modules/2.6.19.3-raysun1
and
Code:
ls -la /boot
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #13  
Old 15th February 2007, 20:36
ikkem ikkem is offline
Member
 
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
Default

The output of those commands is

Quote:
ls -la /lib/modules/2.6.19.3-raysun1
totaal 1044
drwxr-xr-x 3 root root 4096 2007-02-13 15:53 .
drwxr-xr-x 5 root root 4096 2007-02-11 02:34 ..
lrwxrwxrwx 1 root root 23 2007-02-11 02:34 build -> /usr/src/linux-2.6.19.3
drwxr-xr-x 10 root root 4096 2007-02-13 15:53 kernel
-rw-r--r-- 1 root root 207692 2007-02-13 15:53 modules.alias
-rw-r--r-- 1 root root 69 2007-02-13 15:53 modules.ccwmap
-rw-r--r-- 1 root root 232896 2007-02-13 15:53 modules.dep
-rw-r--r-- 1 root root 813 2007-02-13 15:53 modules.ieee1394map
-rw-r--r-- 1 root root 394 2007-02-13 15:53 modules.inputmap
-rw-r--r-- 1 root root 21531 2007-02-13 15:53 modules.isapnpmap
-rw-r--r-- 1 root root 180188 2007-02-13 15:53 modules.pcimap
-rw-r--r-- 1 root root 94667 2007-02-13 15:53 modules.symbols
-rw-r--r-- 1 root root 277481 2007-02-13 15:53 modules.usbmap
lrwxrwxrwx 1 root root 23 2007-02-13 15:51 source -> /usr/src/linux-2.6.19.3
Quote:
zxqv@darkstar:~$ ls -la /boot
totaal 13028
drwxr-xr-x 3 root root 4096 2007-02-13 15:56 .
drwxr-xr-x 22 root root 4096 2007-02-05 21:13 ..
lrwxrwxrwx 1 root root 23 2007-02-13 15:53 config -> config-2.6.19.3-raysun1
-rw-r--r-- 1 root root 69659 2007-02-06 16:32 config-2.6.19.2-386~
-rw-r--r-- 1 root root 70063 2007-01-23 02:37 config-2.6.19.2-686~
-rw-r--r-- 1 root root 67304 2007-02-11 00:37 config-2.6.19.3-386
-rw-r--r-- 1 root root 67304 2007-02-07 00:15 config-2.6.19.3-386~
-rw-r--r-- 1 root root 67314 2007-02-07 23:06 config-2.6.19.3-custom686~
-rw-r--r-- 1 root root 67484 2007-02-13 15:56 config-2.6.19.3-raysun1
-rw-r--r-- 1 root root 67482 2007-02-13 15:53 config-2.6.19.3-raysun1~
-rw-r--r-- 1 root root 66656 2007-02-06 18:55 config-2.6.20-686~
-rw-r--r-- 1 root root 55809 2005-08-16 14:41 config-2.6.8-2-386
drwxr-xr-x 2 root root 4096 2007-02-13 16:09 grub
-rw------- 1 root root 1046716 2007-02-07 00:21 initrd.img-2.6.19.3-386
-rw------- 1 root root 1048816 2007-02-13 15:56 initrd.img-2.6.19.3-raysun1
-rw-r--r-- 1 root root 4317184 2007-01-22 21:23 initrd.img-2.6.8-2-386
lrwxrwxrwx 1 root root 27 2007-02-13 15:53 System.map -> System.map-2.6.19.3-raysun1
-rw-r--r-- 1 root root 801058 2007-02-11 00:37 System.map-2.6.19.3-386
-rw-r--r-- 1 root root 800244 2007-02-13 15:53 System.map-2.6.19.3-raysun1
-rw-r--r-- 1 root root 865767 2005-08-16 17:14 System.map-2.6.8-2-386
lrwxrwxrwx 1 root root 31 2007-02-13 15:53 System.map.old -> System.map-2.6.19.3-raysun1.old
lrwxrwxrwx 1 root root 24 2007-02-13 15:53 vmlinuz -> vmlinuz-2.6.19.3-raysun1
-rw-r--r-- 1 root root 1308845 2007-02-11 00:37 vmlinuz-2.6.19.3-386
-rw-r--r-- 1 root root 1320322 2007-02-13 15:53 vmlinuz-2.6.19.3-raysun1
-rw-r--r-- 1 root root 1097554 2005-08-16 17:14 vmlinuz-2.6.8-2-386
lrwxrwxrwx 1 root root 28 2007-02-13 15:53 vmlinuz.old -> vmlinuz-2.6.19.3-raysun1.old
thanks in advance....
Reply With Quote
  #14  
Old 16th February 2007, 18:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

But there's an initrd.img-2.6.19.3-raysun1 in the /boot directory, so you don't need to create another ramdisk.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #15  
Old 16th February 2007, 18:48
ikkem ikkem is offline
Member
 
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
Default

I made a ram disk after that I booted into the new kernel but I still get a error message when I try to compile dazuko....

Quote:
Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use.


If the running kernel has been shipped with the Debian distribution, please
install the package kernel-headers-2.6.19.3-raysun1. If your kernel source tree (or headers) is located in some non-usual location, please set the KERNELDIRS environment variable to the path of this directory, alternatively) specify the source directory we build for with the --kernel-dir option in module-assistant calls.

Last edited by ikkem; 16th February 2007 at 18:52.
Reply With Quote
  #16  
Old 16th February 2007, 19:02
ikkem ikkem is offline
Member
 
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
Default

Quote:
Originally Posted by falko
But there's an initrd.img-2.6.19.3-raysun1 in the /boot directory, so you don't need to create another ramdisk.
At first the ramdisk was not created with:
Code:
make all
make modules_install
make headers_install
make install
I made the ramdisk with
Code:
mkinitrd.yaird -o /boot/initrd.img-2.6.19.3-raysun1 2.6.19.3-raysun1
updated grub
Code:
update-grub
Reply With Quote
  #17  
Old 21st February 2007, 16:42
ikkem ikkem is offline
Member
 
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
 
Default

I succeeded in installing dazuko I compiled it from source(followed the instructions for SuSE 9.1)

$ mkdir dazuko
$ cd dazuko
$ wget http://www.dazuko.de/files/dazuko-2.3.2.tar.gz
$ tar xzvf dazuko-2.3.2.tar.gz
$ cd dazuko-2.3.2
$ ./configure --enable-syscalls --mapfile=/boot/System.map-2.6.19.3-raysun1
$ su
# make
# cp dazuko.ko /lib/modules/2.6.19.3-raysun1/kernel/security
#depmod -a
#gedit /etc/modprobe.d/dazuko

Copy and paste the following code into the blank document and save it.

install dazuko modprobe -r capability;\
modprobe -i dazuko; \
modprobe -i capability

#gedit /etc/modules file. Add "dazuko" to the end of the list. Save and exit the file.

modify the boot parameters to disable NSA SELinux support

#gedit /boot/grub/menu.lst and add "selinux=0" to the end of the line:
kernel /boot/vmlinuz-2.6.19.3-raysun1 root=/dev/hda1 ro selinux=0

reboot

sources
http://www.dazuko.de/tgen.shtml
http://klamav.sourceforge.net/klamav...Eft_.286.10.29
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
Xen 3.0.2 /3.0.3 | No Swap in DomU Merc HOWTO-Related Questions 10 27th March 2007 11:40
Howto resolve sudden server crashes? Possibly spamassassin or clamscan? linus General 3 1st February 2007 09:00
WG311v2 almost working with Edgy (w/o ndiswrapper) need help with the rest caudata Server Operation 11 13th November 2006 20:02
Questions about ubuntu ISP-Server Setup badgerbox76 HOWTO-Related Questions 15 5th March 2006 14:41


All times are GMT +2. The time now is 16:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.