DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
But as he said in the guide if ya havent at least compiled the kernel you have now then the leap to not only compile but install a new kernel is a large one. Not impossible but fustrating
it is very very simple to upgrade to a newer kernel using debian. all you need do is
Code:
su -c "apt-get install kernel-image-2.6.7-1-386"
reboot and select the new kernel at the GRUB prompt. that's it.
if you have an intel pentium 2 or better processor, then replace "386" with "686", or if you have an amd athlon or better processor, replace "386" with "k7" for optimum performance.
if you're using the nvidia proprietary driver, you will need to rerun the installer after booting into the new kernel.
the "uname -r" command automatically fills in the kernel version that you are running, so you will need to boot into your new kernel first. alternatively, you can replace "$(uname -r)" with "2.6.7-1-386" or whatever kernel you chose to install.
in all actuality, you only need the kernel headers unless you actually want to build your own kernel.
if you want compile kernel by yourself,you can do this below:
Code:
apt-get install kernel-package kernel-headers-$(uname -r) kernel-source-$(uname -r)
cd /usr/src
tar -jxvf kernel-source-xxx.tar.bz2
ln -s kernel-source-xxx linux(if there is a linux directory already existed,delete it using command "rm")
cd linux
make menuconfig
make kernel_image modules_image
cd ..
dpkg -i *.deb
update-grub (if you use grub to boot system)
if you use lilo,you should edit the configufile which lilo use to boot system,then
lilo -v
replace the "xxx" with the kernel version you have down
Last edited by gosapphire; 08-29-2004 at 01:36 PM.
Just done this for the first time myself and its not quite as daunting as you think. (having said that, you will probably do it about five times before it actually works properly ) First thing is to make sure you have all the tools you need for compiling kernels, which includes make, kernel-package, mod-init-tools, qt3, and more but cant remember off the top of my head. The freindliest way is with make xconfig once you have the kernel source and have made a symbolic link to it. See post above. ie ln -s kernel-source-2.6.7 linux ( once already in the /usr/src directory) If xconfig works ( and as far as I think, that is the hardest thing, getting all the packages to actuallly make it work) Then all you have to do, is take your time and read through everything as you go, and you will end up with a shiny new kernel that is just for you. . Then just make-kpkg kernel-image. And it will make a kernel image. Then dpkg-install kernel-image-2.6.7.(probably custom something) and it will install and update grub and your set. Reboot and you should have your new kernel to pick on the first line of the grub boot screen. Liek I said though, getting xconfig to work is the biggest problem I had, and then, just make sure that you take your time when you are picking your options with your kernel (ie, what to include and what to make modules. which in xconfig it will tell you, if you are using blah, then dont compile this as a module.) Play with it and try a few different things and you will probably be surprised how easy it is. Is you have problems just google and I'm sure someone would have the problem before you, and have an answer or at least steer you in the right direction. There is a really good guide written that I followed. Just google: very verbose kernel compile and it will be the osnews page. Have fun
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.