Difference between revisions of "Compile Kernel"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 34: | Line 34: | ||
# ln -s linux-2.6.18.1 linux | # ln -s linux-2.6.18.1 linux | ||
− | Compile kernel | + | Compile kernel 2.6 di Linux |
# cd /usr/src/linux | # cd /usr/src/linux | ||
Line 56: | Line 56: | ||
==Pranala Menarik== | ==Pranala Menarik== | ||
+ | |||
+ | * [http://www.layangan.com/asfik/writings/kompilasi-kernel.html Kompilasi kernel 2.4.x di Linux] ([http://www.layangan.com/asfik/writings/postfix-virtual.pdf pdf]) | ||
* [[Linux Howto]] | * [[Linux Howto]] |
Revision as of 05:57, 26 April 2008
Jika baru install, ubah password root
$ sudo passwd root Password: Password:
Masuk sebagai root
$ su - #
update source
# apt-get update $ sudo apt-get update
Set supaya /bin/sh menjadi /bin/bash jika di perlukan
# rm -f /bin/sh # ln -s /bin/bash /bin/sh
Siapkan kernel package
# apt-get update # apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
Copy source code kernel
# cd /usr/src # wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.1.tar.bz2 # tar xjf linux-2.6.18.1.tar.bz2 # ln -s linux-2.6.18.1 linux
Compile kernel 2.6 di Linux
# cd /usr/src/linux # cp /boot/config-`uname -r` ./.config # make menuconfig # make-kpkg clean # fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers # cd /usr/src # dpkg -i linux-image-2.6.18.1-custom_2.6.18.1-custom-10.00.Custom_i386.deb # dpkg -i linux-headers-2.6.18.1-custom_2.6.18.1-custom-10.00.Custom_i386.deb
Ubah GRUB
# vi /boot/grub/menu.lst # shutdown -r now # uname -r