Difference between revisions of "Compile Kernel"

From OnnoWiki
Jump to navigation Jump to search
(New page: Compile Kernel di Ubuntu Jika baru install, ubah password root $ sudo passwd root Password: Password: Masuk sebagai root $ su - # update source # apt-get update $ sudo apt-...)
 
Line 1: Line 1:
Compile Kernel di Ubuntu
 
 
 
Jika baru install, ubah password root
 
Jika baru install, ubah password root
  
Line 52: Line 50:
 
  # shutdown -r now
 
  # shutdown -r now
 
  # uname -r
 
  # uname -r
 +
 +
 +
 +
 +
==Pranala Menarik==
 +
 +
* [[Linux Howto]]

Revision as of 07:31, 28 March 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

# 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



Pranala Menarik