Programming Open Source

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

Programming Open Source

Postby tahseenali » Fri Aug 06, 2004 4:11 pm

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...
tahseenali
Cadet
 
Posts: 4
Joined: Tue Aug 03, 2004 8:54 am
Website: http://www.ztfwebtek.com
WLM: tahseenvs
Yahoo Messenger: tahseenvs
Location: Vill: Wattar, PO: Akkorra Khattak, Nowshera.

Postby cppkid » Fri Aug 06, 2004 6:15 pm

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.
Praise the sea, But stay on Land
cppkid
Lance Naik
 
Posts: 17
Joined: Wed Aug 04, 2004 6:03 pm
WLM: tayyabcool@msn.com
Yahoo Messenger: tayyab_83@yahoo.com
Location: Islamabad

hello Cppid

Postby tahseenali » Sat Aug 07, 2004 10:51 am

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!
tahseenali
Cadet
 
Posts: 4
Joined: Tue Aug 03, 2004 8:54 am
Website: http://www.ztfwebtek.com
WLM: tahseenvs
Yahoo Messenger: tahseenvs
Location: Vill: Wattar, PO: Akkorra Khattak, Nowshera.

Postby cppkid » Mon Aug 16, 2004 10:50 am

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.....
Praise the sea, But stay on Land
cppkid
Lance Naik
 
Posts: 17
Joined: Wed Aug 04, 2004 6:03 pm
WLM: tayyabcool@msn.com
Yahoo Messenger: tayyab_83@yahoo.com
Location: Islamabad


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron