Compiling and Installing The Kernel

  1. Before you do any kind of such work, have a backup of everything.
  2. Obtain the kernel you wish to compile: for me this was this was key for getting my 965GM video card working correctly.
  3. # cd to /usr/src
    # wget
  4. Edit your lilo.conf config, make the following changes:
  5. image = /boot/vmlinuz.old
    label = OldKernel
  6. Next open up
  7. /usr/src/linux/Makefile
    Uncomment the line...
    #export INSTALL_PATH=/boot
  8. Then cd back to where you downloaded the new kernel too and
  9. # tar zxf linux-2.6.XX.XX.tar.gz
  10. Next we create a symlink to linux from the new kernel:
  11. # ln -s linux- linux
    # cd /usr/src/linux
  12. It’s a good idea to use the configuration of your current working kernel as a basis for your new kernel. You will be editing it in a second if you nee to change anything before the install, do it then. So we copy the existing configuration to /usr/src/linux:
  13. # make clean && make mrproper
    # cp /boot/config-`uname -r` ./.config
  14. Now we run:
  15. # make menuconfig
  16. The kernel configuration menu will pop up, proceed to the bottom where it says:
  17. Load an Alternate Configuration File
  18. If you happen to have the same chipset I do, this next step is imperative. Navigate to:
  19. Device Driver -> Character Devices -> Scroll down to /dev/agpgart
    Press space to build this module into the kernel. It should show up as a (*) to the left of it.
  20. Exit out of everything when you’re done and it will ask if you’d like to save your changes, select Yes.
  21. Now that we have everything configured let’s go ahead and start to build the kernel:
  22. # make bzImage
    # make
    # make install
    # make modules
    # make modules_install

    This could take a while if you have a slow computer.

  23. When all is said and done check to make sure it installed the bzImage to you /boot directory and that lilo.conf was altered to reflect the new kernel compilation.
  24. Reboot and enjoy your new kernel. If something goes wrong, you can always boot back to you’re old kernel and see what happened.

Author :

Ditulis dalam Modding. 8 Comments »

8 Tanggapan to “Compiling and Installing The Kernel”

  1. denis Says:

    aku sangat suka backtrack2,dah beberapa hari ini aku mencoba menginstalnya,tapi eroorr mulu.labtopku acer aspire 4520,tolong dong beri pencerahan,hampir putus asa ne,mohon bantuannya(krmim tutorialnya ke email aku)

  2. kurt_kabayan Says:

    om ini udah di coba blom?

  3. Aziz Says:

    hi i was wondering if you could tell me why i can not compile a new kernel to my backtrack, it keep getting error like no command found or permission denied, or no such a file in directory, also i been trying to sort my sound out i got lenovo 3000 n200, i been searching every website try most command in a shell still not sound

  4. G4j@h Says:


    coba kernelnya dipake kernel 2.6.23 keatas.. disaya sudah jalan dengan baik. tapi untuk BT3

  5. Lovette Says:

    This is great info to know.

  6. rahmad Says:

    saya sudah coba BT3 tp ttp tidak bisa untuk di install ke acer aspire 4520 dari live cd. saya coba option acpi=off noapic live cdnya bisa jalan tp gak bisa diinstall. tolong pencerahannya. thank’s

  7. Rezza Says:

    Setingan Bios di Ganti AHCI…klo Pakek IDE untuk Backtrack Blum Bisa….

    (ikatan Backtrack Solo Indonesia).

  8. james0baster Says:

    Salam kenal om
    mohon kerjasamanya 😀
    saling berbagi backlink 🙂
    ayo terus kenalkan backtrack di indonesia

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:


You are commenting using your account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )


Connecting to %s

%d blogger menyukai ini: