LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2008, 01:53 PM   #1
MichaelBoz
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
How to view kernel source code


I ordered and received over 20 CDs marked "Debian GNU/Linux 4.0 rev4 etch" Some cds are marked binary and some are marked source. I have
installed Linux on an old Micron computer which does not have internet
access. I would like to view the source code for the kernel. In a
number of different places I have seem the instruction line:
apt-get install linux-source-2.6.18
But this line and similar variations give back nothing.
Do you have some suggestions on how best to view the source code?
 
Old 11-16-2008, 01:56 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
just open the source in your favourite text editor, nothing cryptic about it. normally it'd be under /usr/src/linux/ or similar.
 
Old 11-16-2008, 04:52 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
apt-get install linux-source-2.6.18
But this line and similar variations give back nothing.
That's a command for installing from a repository. Unless you've named your CDs as sources for installation, apt-get should have given you some kind of error message.

The previous post assumes you have already installed the source. If not, you could just read it from the CD.

You could also get the source directly here: http://kernel.org/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to view and edit source code of a program? Metal_Merlin Linux - Newbie 3 05-03-2008 01:15 AM
How to view source code in LINUX? karthikg356 Linux - General 4 12-23-2007 09:37 AM
How to view source code in linux? karthikg356 Programming 2 12-23-2007 02:28 AM
how to view source code nick021 Linux - Newbie 4 02-13-2006 01:51 AM
source code for tree view ambitionless Programming 0 09-13-2004 10:39 AM


All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration