Guest User

Untitled

a guest
May 25th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Compileing Kernel From Source
  2. Created by: Gingerbreadman
  3.  
  4.  
  5. 1.Prepareing the system
  6.  
  7. First of all you may want to Sudo su your terminal before you begin
  8. download the latest kernel from kernel.org (make sure you download the kernel source not just a patch)
  9. open a terminal and sudo apt-get install build-essential kernel-package bin86 libqt3-headers libqt3-mt-dev libncurses5-dev fakeroot
  10. once the kernel source is downloaded move it to /usr/src and unpack it
  11. cd /usr/src
  12.  
  13.  
  14. 2. Prepareing the Kernel
  15.  
  16. From your terminal cd to where you unpacked the kernel source (eg. cd /usr/src/linux-2.6.30)
  17. now we need to copy your current config just to make things easy cp /boot/config-`uname -r` .config
  18.  
  19.  
  20. 3.Now we are ready to open the config tool
  21.  
  22. if you use kde make xconfig
  23. if you use gnome make gconfig
  24. if you dont use either make menuconfig
  25. configure the kernel any way you like :-) once your done save and exit the config tool
  26.  
  27. 4. Compile the kernel
  28.  
  29. Gets easier now make-kpkg clean
  30. fakeroot make-kpkg --initrd --append-to-version=-cookie kernel_image kernel_headers
  31. this will leave you with 2 debian packages your new kernel and kernel headers ( tho headers arnt always needed)
  32.  
  33.  
  34. 5. Install the Kernel
  35.  
  36. dpkg -i both your 2 new deb packages
  37. check to make sure it updated grub correctly
  38. reboot and see if it works if not boot into your old kernel and try again
Add Comment
Please, Sign In to add comment