

{"id":761,"date":"2013-09-06T18:42:39","date_gmt":"2013-09-06T17:42:39","guid":{"rendered":"http:\/\/www.fabionline.net\/aaaaaaa\/?p=761"},"modified":"2020-08-29T08:16:18","modified_gmt":"2020-08-29T08:16:18","slug":"aggiorniamo-il-kernel-debian-wheezy","status":"publish","type":"post","link":"https:\/\/www.fabionline.net\/blog\/linux\/aggiorniamo-il-kernel-debian-wheezy\/","title":{"rendered":"Kernel update on Debian Wheezy"},"content":{"rendered":"<p>I wanted to try Debian Wheezy, cause i love its solidity and as you know some months ago\u00a0 it was officially released as &#8216; stable &#8216;\u00a0 Needless to say that it&#8217;s <strong>really<\/strong> stable.<br>\nMy pc is equipped with an i5\u00a0 quadcore processor so I &#8216;ve installed 64 bit version<br>\nHaving started from a netinstall version, at the end of the fast network installation I had nothing except the beautiful black shell (having unchecked flag &#8220;desktop environment&#8221; that I would &#8216;nt have installed gnome); After I&#8217;ve decided to install KDE, also for better testing\u00a0 new future kernel, so<br>\n<em><span style=\"color: #0000ff;\">apt-get install kde-standard<span style=\"color: #999999;\"><br>\n<\/span><\/span><\/em>After i finished installation packages, the system was absolutly perfect<br>\nHowever, by running a &#8220;<span style=\"color: #0000ff;\">uname-r<\/span>&#8221;\u00a0 current kernel was 3.2 ; ok it works great, but &#8230; Why i can not use a kernel not so dated and that supports better devices, (considering also that my pc is a regular Desktop so is not required same stability needs a server.) Then I tried to download, compile and install another kernel and I decide for 3.10.5 version&#8217;.<br>\nWe can start whit this packages: (switching on root or using sudo):<br>\n<em><span style=\"color: #0000ff;\">sudo apt-get install kernel-package fakeroot build-essential ncurses-dev<\/span><\/em><br>\nDownload\u00a0 new kernel :<br>\n<span style=\"color: #0000ff;\">wget <\/span><em><span style=\"color: #3366ff;\"><span style=\"color: #0000ff;\">https:\/\/www.kernel.org\/pub\/linux\/kernel\/v3.0\/linux-3.10.5.tar.bz2<br>\n<\/span><br>\n<\/span><\/em>Extract the archive and cd into it:<br>\n<em><span style=\"color: #0000ff;\">tar xvf linux-3.10.5.tar.bz2<\/span><\/em><br>\n<em><span style=\"color: #0000ff;\">cd linux-3.10.5\/<\/span><\/em><\/p>\n<p>At this point we make sure to retrieve some info from the current kernel:<span style=\"color: #0000ff;\"><em><br>\n<\/em><\/span><em><span style=\"color: #0000ff;\">cat \/boot\/config-`uname -r`&gt;.config<\/span><\/em><br>\n<em><span style=\"color: #0000ff;\">make oldconfig<\/span><\/em><span style=\"color: #0000ff;\"><em><br>\n<\/em><\/span><br>\nYou will be asked a lot of questions; If in doubt, choose the default answer (press enter), now you can have fun in customization:-)<br>\nNext, do:<br>\n<em><span style=\"color: #0000ff;\">make-kpkg clean<\/span><\/em><br>\nCompile the kernel (number in bold\u00a0 is related to the number of CPUs, so replace with your CPU number- in my example is 4 cause i&#8217;ve 4 CPUs),\u00a0 following command will generate the kernel and the header in .deb format<br>\n<span style=\"color: #0000ff;\">sudo time fakeroot make-kpkg <span style=\"color: #000000;\"><span style=\"color: #0000ff;\">-j<\/span><\/span><strong><span style=\"color: #000000;\">4<\/span><\/strong> &#8211;initrd kernel_image kernel_headers<\/span><br>\nat the end of this process will be two nice .deb files<br>\n<em><span style=\"color: #0000ff;\">linux-headers-3.10.5_3.10.5-10.00.Custom_amd64<\/span><\/em><br>\n<em><span style=\"color: #0000ff;\"> linux-image-3.10.5_3.10.5-10.00.Custom_amd64<\/span><\/em><br>\nNow we can install the kernel and headers *:<br>\n<em><span style=\"color: #0000ff;\">sudo dpkg-i linux-image-3.10.5_3.10.5-10.00.Custom_amd64.deb<\/span><\/em><br>\n<em><span style=\"color: #0000ff;\">sudo dpkg-i linux-headers-3.10.5_3.10.5-10.00.Custom_amd64.deb<br>\n<\/span><\/em>then when it finished, make a reboot ,and new kernel will appear in your grub:-)<br>\n* are files that allow you to compile and install external driver to the kernel without having to download the sources of the latter and recompile everything.<\/p>","protected":false},"excerpt":{"rendered":"<p>I wanted to try Debian Wheezy, cause i love its solidity and as you know some months ago\u00a0 it was officially released as &#8216; stable &#8216;\u00a0 Needless to say that it&#8217;s really stable. My pc is equipped with an i5\u00a0 &hellip; <a href=\"https:\/\/www.fabionline.net\/blog\/linux\/aggiorniamo-il-kernel-debian-wheezy\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/posts\/761"}],"collection":[{"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/comments?post=761"}],"version-history":[{"count":0,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/posts\/761\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/media?parent=761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/categories?post=761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/tags?post=761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}