03-01-2012, 02:15 AM
langsung saja ya :apn:
install paket dan untuk mongcompile dan mengkonfigurasi kernel
kita lakukan download source kernel
dan juga download apparmor, nanti untuk buat patch kernel
ekstrak file linux-3.2.6 ke directory /usr/src/
copy semua file .patch dari direktori apparmor-2.7.2/kernel-patches/3.1/ ke /usr/src/linux-3.2.6/
mengcopy config kernel, ini dilakukakan di directory /usr/src/linux-3.2.6/
patching kernel dengan patch apparmor
mengkonfigurasi kernel
di tweak kernel, pilih enable apparmor
keluar dari menu configurasi, kemudian jalankan
selesai mengcompile, saatnya kita membuat file .deb dari hasil compile source kernel tersebut
dari perintah tersebut akan menghasilkan 2 file .deb
reboot pc
visit us
visit me
install paket dan untuk mongcompile dan mengkonfigurasi kernel
Code:
root@h3ll0s:~#apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 fakeroot kernel-wedge build-essential makedumpfile libncurses5
kita lakukan download source kernel
Code:
root@h3ll0s:~#wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.2.6.tar.bz2
dan juga download apparmor, nanti untuk buat patch kernel
Code:
root@h3ll0s~#wget http://launchpad.net/apparmor/2.7/2.7.2/+download/apparmor-2.7.2.tar.gz
ekstrak file linux-3.2.6 ke directory /usr/src/
Code:
root@h3ll0s:~#tar xjvf linux-2.6.34.tar.bz2 -C /usr/src/
root@h3ll0s:~#tar xzvf apparmor-2.7.2.tar.gz
copy semua file .patch dari direktori apparmor-2.7.2/kernel-patches/3.1/ ke /usr/src/linux-3.2.6/
Code:
root@h3ll0s:~#cp apparmor-2.7.2/kernel-patches/3.1/*.patch /usr/src/linux-3.2.6/
mengcopy config kernel, ini dilakukakan di directory /usr/src/linux-3.2.6/
Code:
cp /boot/config-`uname -r` ./.config
patching kernel dengan patch apparmor
Code:
patch --verbose --strip=1 -i 0001-AppArmor-compatibility-patch-for-v5-network-controll.patch
patch --verbose --strip=1 -i 0002-AppArmor-compatibility-patch-for-v5-interface.patch
patch --verbose --strip=1 -i 0003-AppArmor-Allow-dfa-backward-compatibility-with-broke.patch
mengkonfigurasi kernel
Code:
make menuconfig
di tweak kernel, pilih enable apparmor
Code:
"Security options" ---> "AppArmor support", "Enable AppArmor 2.4 compatability"
keluar dari menu configurasi, kemudian jalankan
Code:
make-kpkg clean && make all
selesai mengcompile, saatnya kita membuat file .deb dari hasil compile source kernel tersebut
Code:
fakeroot make-kpkg --initrd --append-to-version=-custom kernel-image kernel-headers
dari perintah tersebut akan menghasilkan 2 file .deb
Code:
dpkg -i linux-headers-3.2.6-custom_3.2.6-custom-10.00.Custom_i386.deb
dpkg -i linux-image-3.2.6-custom_3.2.6-custom-10.00.Custom_i386.deb
reboot pc
visit us
visit me