Wednesday, October 25, 2006

LINUX Kernel 2.6.x .xx compile

LINUX Kernel compile
This is only for people who have experienced with linux commands and linux file structure. sufficient knowledge is needed.

-------------------------------
Linux Kernel 2.6.x... compiling step by step

step 1:

download the latest linux kernel from the internet

eg: www.kernel.org

step 2:

extract the archive file in to /usr/src

eg:
cp linux-2.6.17.tar_2.gz /usr/src
tar xzvf linux-2.6.17.tar_2.gz

step 3:
go to the extract directory and you can configure your kernel using following command

*in a command mode use

make menuconfig

*in graphical interface

make xconfig or make gconfig

step 4:


configre your kernel,according to your machine configuration;

step 5:

after that do the following commad

make modules
make modules_install
make bzImage

you can do this by one line

step 6:
create initial ram disk file using follwing command

mkinitrd -o /boot/initrd.img-2.6.1x.x-386 2.6.x.x

-or-


mkinitramfs -o /boot/initrd.img-2.6.1x.x-386 2.6.1x-386

if you want to see the created initrd.img file, type following command-

zcat /boot/initrd.img-2.6.17.4-386 |cpio --list

step 7:

now you must in the kernel source folder

do the following command(linux version must be changed according to the your version)

cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.17.4

cp System.map /boot/System.map-2.6.17.4-386

cp .config /boot/config-2.6.17.4-386

step 8:

now you have finished compiling kernel & some of the configuration

step 9:
edit your menu.lst file

vi /boot/grub/menu.lst

here you must give a path to new kernel & name and the imagefile

step 10:

reboot your system

Monday, October 23, 2006

let's learn some computer stuff nw. Do u have a flash drive (USB)? Then do u want to add a background to the falsh drive and add ur own icon to be displayed in My Computer (Windows). Here's the code for the icon display.

just make an autorun file. open the notepad and type the following.
-----------------------------------
[autorun]
icon = UCSC.ico
-----------------------------------
UCSC.ico may be any picture of the form of .ico . that is an icon format. and finally save the file as autorun.inf . u r done.

code for flash drive background
type the following in the notepad.
-----------------------------------
[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC}={BE098140-A513-11D0-A3A4-00C04FD706EC}

[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
Attributes=1
IconArea_Image=kalpa1.jpg
IconArea_text=0x00ffffff

[.ShellClassInfo]
ConfirmFileOp=0
font color="#00ffffff"
-----------------------------------
in the iconArea_image, u can give any picture of type jpg, bmp, gif, etc. here i have used a picture called kalpa.jpg picture of the jpeg format. u can change the Icon_Area_text and font color by using html color codes. try this. enjoy. now u can customize ur flash drive with ur identity.

Tuesday, October 03, 2006

Enjoying a ride.

Thursday, September 07, 2006

Here is a picture of my cousins. You can see me there. ( the tallest guy)
Thanks alot for ur comments on my last question published earlier. Now another one. It's ok no?

Do we always need to look at the darker side of the life? Can we beleive in JESUS even though we go through various difficulties in our life? The important point is to remember that Jesus is with us in our difficulties, But not always send us into a bed of flowers. Comment on.

Wednesday, August 23, 2006

I'll ask u all a question. Please be honest when u comment on.
Girls
What do you expect from your boyfriend?
Boys
What do you expect from your girlfriend?
23.08.2006

Hi everyone,
I went on a trip to the eastern province (Ampara) last week & spent 5 days there in hospital quarters. It was a nice trip that I went with all of my cousins & had really a good time over there. One day we went to see wild elephants late in the evening and there was only one bulb at the elephant cross over path. After we went beyond that the light went off and We were really frightened at that moment. Our grand mother could hardly run and fortunately there were no elephants passing by on that day. actually we all had our hearts on our hands. You know Sri Lanka is a really beautiful country and I enjoyed very much during my trip. if you are a foreigner I can guaraty that you will not forget Sri Lanka If one day you visit here.
ok bye for now. God Bless You.

Thursday, August 10, 2006

Hi,
My name is Kalpa Gunaratna. 22 years old & hope doing well at the University of Colombo School of Computing Sri Lanka( undergraduate & 3rd year). It's a whole new experience to become an undergraduate of a Sri Lanka University.
Speaking about my self, I'm a catholic & I beleive in JESUS who is my only saviour. I experience him day by day and through CSM( Catholic Student Movement of Colombo University). For now, this is enough. You can read about me more later. It's me, Kalpa. God Bless you all.