1.Backup kernel lama:
cp vmlinuz vmlinuz-old
masuk kan ke lilo.conf untuk backup jikalau compile kernel gagal
image=/boot/vmlinuz-old
root=/dev/sda2
label=Linux-2.6.15.3
readonly
2.masuk ke /usr/src/linux-2.6.15.3 backup .config
cp .config config-old
3.Backup /boot/config
cp config config-old-2.16.15.3
4.masuk ke /usr/src
Ekstrak kernel baru
#tar -xvjf linux-2.6.16.9.tar.bz2
5.Ubah nama /usr/src/linux menjadi /usr/src/linux-old
cp linux linux-old
6.Buat link linux-2.6.16.9 ke linux
ln -s linux-2.6.16.9 linux
Seperti copian ini:
root@server:/usr/src# ln -s linux-2.6.16.9 linux
root@server:/usr/src# ls -l
total 39933
lrwxrwxrwx 1 root root 14 2006-04-20 05:24 linux -> linux-2.6.16.9/
drwxr-xr-x 15 root root 616 2006-04-20 03:15 linux-2.4.31/
drwxr-xr-x 20 root root 1328 2006-04-20 04:58 linux-2.6.15.3/
drwxrwxrwx 19 root root 680 2006-04-19 13:10 linux-2.6.16.9/
-rw-r--r-- 1 root root 40849027 2006-04-20 05:17 linux-2.6.16.9.tar.bz2
lrwxrwxrwx 1 root root 12 2006-01-21 21:54 linuxbackup -> linux-2.4.31/
lrwxrwxrwx 1 root root 14 2006-04-20 02:07 linuxold -> linux-2.6.15.3/
drwxr-xr-x 7 root root 168 2003-10-29 13:08 rpm/
drwxr-xr-x 2 root root 176 2005-06-06 08:25 speakup-2.4.31/
7.Masuk ke /usr/src/linux
lakukan:
a. root@server:/usr/src/linux# make mrproper
b. root@server:/usr/src/linux# make menuconfig
c. root@server:/usr/src/linux# make all
d. root@server:/usr/src/linux# make modules_install
8.copikan seperti di bawah ini.
#pwd
/usr/src/linux
root@server:/usr/src# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.16.9-patch
root@server:/usr/src# cp System.map /boot/System.map-2.6.16.9-patch
root@server:/usr/src# cp .config /boot/config-2.6.16.9-patch
9.Kemudian masuk ke /boot
root@server:/usr/src#rm config
root@server:/usr/src#rm vmlinuz
root@server:/usr/src#rm System.map
trus buat link:
root@server:/usr/src#ln -s vmlinuz-2.6.16.9 vmlinuz
root@server:/usr/src#ln -s System.map-2.6.16.9 System.map
root@server:/usr/src#ln -s config-2.6.16.9 config
nampak seperti di bawah ini:
root@server:/boot# ls -l
total 12130
lrwxrwxrwx 1 root root 37 2006-01-21 21:52 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd
lrwxrwxrwx 1 root root 19 2006-04-20 05:57 System.map -> System.map-2.6.16.9
-rw-r--r-- 1 root root 961470 2006-04-20 03:28 System.map-2.6.15.3
-rw-r--r-- 1 root root 995811 2006-04-20 05:53 System.map-2.6.16.9
-rw-r--r-- 1 root root 608033 2005-06-06 10:37 System.map-ide-2.4.31
-rw-r--r-- 1 root root 512 2006-01-21 21:57 boot.0800
-rw-r--r-- 1 root root 168 2006-01-21 21:57 boot_message.txt
lrwxrwxrwx 1 root root 15 2006-04-20 05:57 config -> config-2.6.16.9
-rw-r--r-- 1 root root 34637 2006-04-20 03:29 config-2.6.15.3
-rw-r--r-- 1 root root 35340 2006-04-20 05:54 config-2.6.16.9
-rw-r--r-- 1 root root 41760 2005-06-06 10:37 config-ide-2.4.31
-rw-r--r-- 1 root root 34637 2006-04-20 04:59 config-old-2.16.15.3
-rw-r--r-- 1 root root 5032 2004-05-21 14:19 diag1.img
-rw------- 1 root root 38400 2006-04-20 04:30 map
lrwxrwxrwx 1 root root 16 2006-04-20 05:57 vmlinuz -> vmlinuz-2.6.16.9
-rw-r--r-- 1 root root 2328458 2006-04-20 03:27 vmlinuz-2.6.15.3
-rw-r--r-- 1 root root 2421268 2006-04-20 05:53 vmlinuz-2.6.16.9
-r-------- 1 root root 1281910 2006-04-20 02:14 vmlinuz-backup
-rw-r--r-- 1 root root 1256566 2005-06-06 10:37 vmlinuz-ide-2.4.31
-rw-r--r-- 1 root root 2328458 2006-04-20 05:18 vmlinuz-old
10.Masukan image ke lilo.conf
image = /boot/vmlinuz-backup
root = /dev/sda2
label = Linux
read-only
image = /boot/vmlinuz-old
root = /dev/sda2
label = Linux-2.6.15.3
read-only
image = /boot/vmlinuz-old
root = /dev/sda2
label = Linux-2.6.16.9
read-only
11.Jalankan Lilo
12.Reboot
13.Alhamdulillah sukses amin
Jika kalau itu pada reiserfs di buat: M ( module) maka harus di mkinitrd,
jika kernel di install dengan built-in gak usah di mkinitrd.
mkinitrd -c -k 2.6.15.3 -m reiserfs -r /dev/sda2
masih memakai 2.6.15.3
root@server:~# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
2 0 0 20256 16660 385560 0 0 10 56 158 91 2 0 97 0
setelah memakai 2.6.16.9
root@server:~# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 390220 7012 66768 0 0 62 6 132 42 0 0 98 1
Install iptables 1.3.5 from tar.bz2
# tar –jxvf iptables-1.3.5.tar.bz2
1) Next, make the package.
% make KERNEL_DIR=/usr/src/linux
2) Finally, you need to to install the shared libraries, and the binary:
# make uninstall KERNEL_DIR=/usr/src/linux
Catatan permasalah pada iptables di /etc/rc.d/rc.local
Setelah itu kopikan iptables dari /usr/local/sbin/iptables ke /usr/sbin
#whereis iptables
iptables: /usr/sbin/iptables /usr/local/sbin/iptables /usr/local/lib/iptables
#cp /usr/local/sbin/iptables /usr/sbin/iptables
Jika instalasi Iptables menggunakan source asli nya dari slackware, maka iptables di temukan pada:
#whereis iptables
/usr/sbin/iptables /usr/lib/iptables
If you are a developer, you can install the headers, development libraries
and associated development man pages, with:
# make install-devel
Alhamdulillah ilmu baru lagi.
# biar squidnya bisa jalan jika server di restart
/bin/rm -rf /etc/squid/var/logs/squid.pid
Cara nge patch kernel 2.6.16.9 :
1.cp -rl linux linux-2.6.16.9-patch
2.cd linux-2.6.16.9-patch
3.bzip2 -dc patch-2.6.16.9.bz2 | patch -p1
4.yes yes yes / y
5.make mrproper
6.make menuconfig
7.make all
8.make modules_install
lakukan seperti di atas selanjut nya
mount –t proc none /proc
Langkah-langkah Upgrade kernel dan compile kernel
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar