Hello! & Asalam-o-alaikom to ALL
I m new to Linux, and I join Linux because of Its Open Source.
I want to Know how can I Change Source Code, Compile It , And finally Make , What tools to use What Command to Use to.Here by Open Source I mean Linux,PHP,MySQL, ALSA (sound-linux Kernel),etc. The Language I would prefer is mostly C...
Programming Open Source
-
- Cadet
- Posts: 4
- Joined: Tue Aug 03, 2004 8:54 am
- Location: Vill: Wattar, PO: Akkorra Khattak, Nowshera.
- Contact:
Programming Open Source
Tahseen Ali
tahseenvs@hotmail.com
tahseenvs@hotmail.com
First of all, when you install linux you must select kernel developement kit, so that the linux source code will be copied on your system. First question, WHY YOU WANT TO CHANGE THE SOURCE CODE?? mostly we need to compile the the kernel when we write some drivers for our new hardware or download them, suppose your modem is not supported by linux, you download your modem drivers for linux from somewhere and you can't install them as in windows, you have to recompile the linux kenel with your new drivers. or you want to compile the kernel to upgrade your kernel version.
You will find the source of linux on /usr/src folder.
The language C is perfect as it is written in C.
Steps to compile the redhat kernel
===============================
1) Download all RPMs from
http://people.redhat.com/arjanv/2.5/RPMS.kernel/
2) download an original kernel source and compile it, how it describe in README.
3) do not forget the next about:
/sbin/mkinitrd myLinux.img 2.0.6-test11
cp bzImage /boot/myLinux
4) and than, adjust some lines in your grub.cfg
that's all !
Vadim Kataev http://www.compuvisor.net
And if you seriously want to learn all this stuff, i recommend you a book "Linux from scrach", you'll find it everywhere and it's the best book, you will be looking for.
Wish you all the best.
You will find the source of linux on /usr/src folder.
The language C is perfect as it is written in C.
Steps to compile the redhat kernel
===============================
1) Download all RPMs from
http://people.redhat.com/arjanv/2.5/RPMS.kernel/
2) download an original kernel source and compile it, how it describe in README.
3) do not forget the next about:
/sbin/mkinitrd myLinux.img 2.0.6-test11
cp bzImage /boot/myLinux
4) and than, adjust some lines in your grub.cfg
that's all !
Vadim Kataev http://www.compuvisor.net
And if you seriously want to learn all this stuff, i recommend you a book "Linux from scrach", you'll find it everywhere and it's the best book, you will be looking for.
Wish you all the best.
Praise the sea, But stay on Land
-
- Cadet
- Posts: 4
- Joined: Tue Aug 03, 2004 8:54 am
- Location: Vill: Wattar, PO: Akkorra Khattak, Nowshera.
- Contact:
hello Cppid
Hello!
thanks for Response. I need it for many things and mostly for my taste . i also need it for a driver for my modem which is not there. the i want to ask is to where to go where to change how to compile and what tool to use. as You told about Modem so also tell me where to find driver for My modem (in Linux) My modem is Accorp,Motrolla 56kbps...
Thanks!
thanks for Response. I need it for many things and mostly for my taste . i also need it for a driver for my modem which is not there. the i want to ask is to where to go where to change how to compile and what tool to use. as You told about Modem so also tell me where to find driver for My modem (in Linux) My modem is Accorp,Motrolla 56kbps...
Thanks!
Tahseen Ali
tahseenvs@hotmail.com
tahseenvs@hotmail.com
Google is your friend, Try it hope you will find the drivers for your modem. If you find them, you will also find some steps to compile and install them.
You may not find the drivers. The simplest way then is that you can buy a new modem and preffer to buy intel or Lucent, or some that already has support. Incase you don't want to buy, then you can send me the specification for your modem, I will write down the modem drivers for you.
Wish you all the best. Keep it up. Explore.....
You may not find the drivers. The simplest way then is that you can buy a new modem and preffer to buy intel or Lucent, or some that already has support. Incase you don't want to buy, then you can send me the specification for your modem, I will write down the modem drivers for you.
Wish you all the best. Keep it up. Explore.....
Praise the sea, But stay on Land