LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-07-2014, 11:15 PM   #1
KansaiRobot
Member
 
Registered: Dec 2013
Location: Japan
Distribution: Debian...very few times Ubuntu
Posts: 51

Rep: Reputation: 0
source? documentation?


Questions about basic concepts.

Suppose I have a linux system installed (Actually I have two: a Debian one and a Ubuntu one)

Many times I have read advice saying : "read the source code", or "read the documentation" etc.

Where is that???

I thought it was on /usr/src

but my debian system has very few things there and no documentation

(havent checked the ubuntu yet)

thanks a lot
 
Old 10-07-2014, 11:33 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
On Debian and Ubuntu, check in /usr/share/doc for documentation on installed packages. To read the source, you'll generally have to install the Debian source package, which can be done with the "source" option to apt-get. Also, much documentation and source files can be found on-line if you Google for the particular information you are interested in.

One final hint - for usage info about a particular command, typing "man <command name>" will often prove helpful...
 
1 members found this post helpful.
Old 10-07-2014, 11:45 PM   #3
KansaiRobot
Member
 
Registered: Dec 2013
Location: Japan
Distribution: Debian...very few times Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 0
thank you very much for your helpful reply!
I actually want the source since I am trying to compile my first device driver and it requires linking it to the source it seems

so far I have been unsucessful.

the ubuntu one has on /usr/src the following:

linux-headers-3.13.0-24
linux-headers-3.13.0-24-generic

which is which? what is the difference between these?

so the source package is not installed by default??

thanks in advance
 
Old 10-08-2014, 12:42 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
by default the sources not installed they are usually not required. linux-headers-3.13.0-24 contains not the sources but the headers (only) and only for the linux kernel itself.
If you want to have the sources for a package you need to install the related sources. See here: https://wiki.debian.org/PackageManagement (especially at the bottom, link to SourcePackage)
 
1 members found this post helpful.
  


Reply



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
OpenBox source code documentation Roy_SRC Linux From Scratch 5 08-04-2014 06:34 AM
Open source? This 'Ubuntu Documentation page' is NOT... buccaneere General 1 10-02-2012 07:33 AM
JFFS2 source code documentation sarojt Linux - Software 1 10-24-2008 08:06 AM
JFFS2 source code documentation sarojt Linux - Newbie 0 10-24-2008 03:40 AM
Project: Wiki for Open Source Documentation bertlef General 2 07-30-2007 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 PM.

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
Open Source Consulting | Domain Registration