Indonesian Back|Track Team
[SHARE] Compile Kernel 3.2.6 dari source - Printable Version

+- Indonesian Back|Track Team (https://www.indonesianbacktrack.or.id/forum)
+-- Forum: Penetration Testing Os (https://www.indonesianbacktrack.or.id/forum/forum-170.html)
+--- Forum: Backtrack (https://www.indonesianbacktrack.or.id/forum/forum-171.html)
+---- Forum: BackTrack 5 (https://www.indonesianbacktrack.or.id/forum/forum-74.html)
+----- Forum: BackTrack 5 tutorial (https://www.indonesianbacktrack.or.id/forum/forum-82.html)
+----- Thread: [SHARE] Compile Kernel 3.2.6 dari source (/thread-1954.html)

Pages: 1 2 3


[SHARE] Compile Kernel 3.2.6 dari source - h3ll0s - 03-01-2012

langsung saja ya :apn:

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





RE: [SHARE] Compile Kernel 3.2.6 dari source - iKONspirasi - 03-01-2012

keren nih, thx bro

+1 dari ane


RE: [SHARE] Compile Kernel 3.2.6 dari source - h3ll0s - 03-01-2012

terima kasih om Angel


RE: [SHARE] Compile Kernel 3.2.6 dari source - yogi - 03-01-2012

ini gunanya untuk apa yah??


RE: [SHARE] Compile Kernel 3.2.6 dari source - h3ll0s - 03-01-2012

(03-01-2012, 02:32 AM)yogi Wrote: ini gunanya untuk apa yah??

apabila kita yang biasanya update kernel via synaptic / download file .deb kdang kala menemukan banyak bugs.
dengan cara ini lah, kernel akan diconfigurasi sesuai dengan spek komp




RE: [SHARE] Compile Kernel 3.2.6 dari source - iKONspirasi - 03-01-2012

(03-01-2012, 02:32 AM)yogi Wrote: ini gunanya untuk apa yah??

install kernel from scratch...


RE: [SHARE] Compile Kernel 3.2.6 dari source - m4k4ss4rh4ck3r - 03-01-2012

thanks sob


RE: [SHARE] Compile Kernel 3.2.6 dari source - yogi - 03-01-2012

oh ini yah caranya..thx bro tak coba dulu yah,,

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

itu kalo udah jadi 2 file .deb itu di klik dua x file"nya ato langsung reboot??


RE: [SHARE] Compile Kernel 3.2.6 dari source - ekawithoutyou - 03-02-2012

masukan keterminal 1 per 1
Code:
dpkg -i linux-headers-3.2.6-custom_3.2.6-custom-10.00.Custom_i386.deb
setelah itu
Code:
dpkg -i linux-image-3.2.6-custom_3.2.6-custom-10.00.Custom_i386.deb
setelah semua terinstall baru reboot Tongue


RE: [SHARE] Compile Kernel 3.2.6 dari source - yogi - 03-02-2012

Quote:mengcopy config kernel, ini dilakukakan di directory /usr/src/linux-3.2.6/
Code:
cp /boot/config-`uname -r` ./.config

saia gak bisa nih,, knpa nih??
Spoiler! :

yogi@bt:/usr/src/linux-3.2.6# cp /boot/config-'uname -r' ./.config
cp: cannot stat `/boot/config-uname -r': No such file or directory
yogi@bt:/usr/src/linux-3.2.6#


eh udah bisa, tadi salah tulis kayaknya..hehe
tiba disini:
"Security options" ---> "AppArmor support", "Enable AppArmor 2.4 compatability"

itu "security options" nya dikasih '*' (bintang) gak kk?? yg lain jga ada yg harus dikasih bintang gak..ckckck