Find the answer to your Linux question:
Results 1 to 6 of 6
Hello! Im using the testing netinst, and running on an AMD AthlonXP processor. Does the install automatically configure me for the K7 kernel?? if not after installing the netinst cd ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3

    Trouble installing debian and kernel source / headers?

    Hello!

    Im using the testing netinst, and running on an AMD AthlonXP processor. Does the install automatically configure me for the K7 kernel??

    if not after installing the netinst cd I was thinking of doing it like this:
    - apt-get update
    - apt-get upgrade
    - apt-get install linux-image-2.6.17-2-k7

    I just pulled this out of my ass from what I found on google.... are all those numbers at the end correct??? hell is the whole thing correct??

    And onto my second main dellima..

    to install the nvidia beta drivers I downloaded it says I need to install the kernel source and headers

    what exactly do I type in to do this?

    Thanks for any help


    PS. out of curiosity does changing from the i386 to the K7 kernel really boost my perforamnce? I was just doing it for peace of mind for all i know!

  2. #2
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    to install kernel source
    apt-get install kernel-source-`uname -r`

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3
    It says "Couldnt find package kernel-source-2.6.17-2-k7"

    is this because of my sources? Im using ftp://ftp.us.debian.org/debian/ etch main non-free contrib

    and i have done an update / upgrade just prior to trying this command.

    I also just installed the linux-image-2.6.17-2-k7 from this repistory... so why its saying it cant find the kernel source??

    ALSO:

    I tried the commands:
    apt-cache search kernel-source
    it came back with about 4 items each, and they were for a wacom tablet / cpad

    however when i try:
    apt-cache search kernel-headers

    I see an item called "linux-kernel-headers - Linux kernel headers for development"

    so confused!

  4. #4
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    Quote Originally Posted by igiqi
    I tried the commands:
    apt-cache search kernel-source
    apt-cache search kernel-headers
    If you are to use the Debian testing netinstall, then be aware that the appelation "kernel-headers" and the like have been replace by "linux-headers" and others similar. Your /etc/apt/sources.list file is fine.

    For example, you can install your k7 optimized kernel like that (exactly like you said in your first post) :
    Code:
    apt-get update
    apt-get dist-upgrade
    apt-get install linux-image-2.6.17-2-k7
    If that is not the exact name, you can search for it like that :
    Code:
    apt-cache search linux-image k7
    Then reboot into your new kernel, and finally install the headers (no need for the source unless you want to compile your own kernel) :
    Code:
    apt-get install linux-headers-$(uname -r)
    Then you can install the NVIDIA drivers following those instructions (from my blog) :
    http://wizah.blogspot.com/2006/11/de...a-drivers.html

    No need to use the beta drivers, as the latest stable driver now support AIGLX as well (if that is what you wanted).
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  5. #5
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3
    Thanks for the help!

    when I reboot now grub shows me 4 boot options, two for each kernel...
    can I somehow delete the old kernel or is that a bad idea?

  6. #6
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    Quote Originally Posted by igiqi
    when I reboot now grub shows me 4 boot options, two for each kernel...
    Yep, that's normal. Each kernel as "failsafe" (or single-user mode), which only loads a text only system.

    Quote Originally Posted by igiqi
    can I somehow delete the old kernel or is that a bad idea?
    Yes, you can delete it no problem. Verify which kernels are installed :
    Code:
    dpkg -l | grep linux-image
    And delete the one you don't need anymore (given your not using it at that time). For example :
    Code:
    apt-get remove --purge linux-image-2.6.17-2-486
    or something similar.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •