LinuxQuestions.org
Visit Jeremy's Blog.
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 12-11-2005, 02:16 PM   #1
pbpersson
Member
 
Registered: Feb 2005
Location: Arizona, USA
Distribution: Ubuntu
Posts: 40

Rep: Reputation: 19
List of Linux modules and connnections?


I'm a Linux newbie and my goal during 2006 is to really learn what this Linux thing is, how it is put together, and how to fix it when it breaks. I have a test machine with SUSE 10.0 on it and I can go wild - if I totally break it I can always wipe the hard drive and re-install. This is the only way I will learn this, up until now I have been afraid to tinker.

Anyway, I am learning that....well, let me first say that I realize Linux is just a kernel HOWEVER, when my machine comes up with SUSE 10.0 and KDE and Kaffine and amaroK and Kooka I think of it as all Linux because what you see is what you get.

So, I'm learning that this Linux world is very modular - Kooka talks to Sane which talks to some libraries. If you are not happy with your version of Sane you just drop an older version in there and it will all work. The same is true of Arts - it is a module for sound that is used by KDE system notifications. I don't know what else uses Arts or what libraries it needs.

Does there exist somewhere a high-level graph or document that explains what the modules are, what they are used for, and what talks to what? At this high level are all distros pretty much the same?


Phil
 
Old 12-11-2005, 02:34 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi,

Off the top of my head I'd suggest just reading the kernel
documentation while glancinp over /lib/modules/`uname -r`/modules.dep


There's a link to cross-referenced source somewhere on the kernel.org
server, too.


CHeers,
Tink
 
Old 12-11-2005, 04:11 PM   #3
pbpersson
Member
 
Registered: Feb 2005
Location: Arizona, USA
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 19
It was my understanding that if I wanted to know about XMMS and Kaffeine and Ksd and amaroK and Kooka that I was way above the kernel. These are KDE modules.

For instance, Kooka needs to talk to Sane. Sane needs to talk to ?????

What else talks to Sane?

What else can Kooka talk to?

What about XMMS and Kaffeine and Ksd? Are they just frontends to some engine that in turn connect to some libraries inside the kernel?

Is there a graph showing all these relationships and how the dots are connected?


Phil
 
Old 12-11-2005, 04:35 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Sorry, my bad. I assumed you actually meant modules when you
talked about modules, and that you weren't looking for KDE
applications and their relationship to other libraries.

To find out which application utilises which libraries
you can run
Code:
ldd `which kooka`
for example, which will then produce a list of libraries
that kooka was linked against.



Cheers,
Tink
 
Old 12-11-2005, 04:51 PM   #5
pbpersson
Member
 
Registered: Feb 2005
Location: Arizona, USA
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 19
Thanks....I think.....

I have so much to learn about this....

To get it to work I typed "ldd /opt/kde3/bin/kooka"

Then I learned everything I ever wanted to know about what Kooka needs to function.

I think that 2006 will be an interesting year for me.
 
Old 12-11-2005, 05:43 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Heh - you're welcome.

If you find the output overwhelming you can narrow it down
by for instance excluding the obvious from the list, e.g.
all KDE libraries and the X11 libs ...

Code:
ldd `which kooka`|egrep -v "(/opt/kde|/usr/X11)"


Cheers,
Tink
 
Old 12-11-2005, 08:16 PM   #7
pbpersson
Member
 
Registered: Feb 2005
Location: Arizona, USA
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 19
Here is a web site that appears to show all the KDE packages,
a description of what they do,
their run-time dependencies (what do they need in place to function),
and their reverse dependencies (who depends upon them to function).....


http://gentoo-portage.com/kde-base
 
Old 12-11-2005, 08:32 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Caution: that's NOT a list of KDE dependencies as such, that's how
the maintainer of the KDE stuff within the Gentoo-team sees them.

That can be quite distinct, no matter what distro you look at.

Plus (in the case of kooka) you don't see anything about interaction
with Sane, for example.



Cheers,
Tink
 
Old 12-11-2005, 08:40 PM   #9
pbpersson
Member
 
Registered: Feb 2005
Location: Arizona, USA
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 19
Yes, I was LOOKING for SANE in there and didn't see it and wondered.

Here is my goal - and since this is my goal I don't know if I want to take your advice about simplifying the dependency list.

Let's say that my Linux distro is a hotel with many floors and many rooms. During 2006 I would like to visit all the rooms, see how they are arranged, see what furniture they have, and how the view is from the windows - but I also want to know how they are put together.

Now, to be really dangerous let's view this hotel as a puzzle. Let's say that Kooka is on the top floor and is built on Sane which is on the second floor and that is built on another layer that then sits on the foundation which is the kernel.

Which key pieces in the kernel when removed will cause that entire part of the building to collapse? What other parts will collapse? If for instance I rename some file and reboot Linux, what will fail, how will that appear and how will I know by looking at the errors what has failed and how to fix it?

Do you think this is a good way to learn the inner workings of Linux or am I totally crazy?
 
  


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 list all installed Perl modules SharpyWarpy Linux - General 8 12-12-2011 05:48 AM
list modules acidjuice Slackware 4 05-09-2005 05:00 PM
When I compile a kernel do I need to list which modules to boot.. HGeneAnthony Linux - General 5 02-13-2005 04:27 AM
how to list/install perl modules lsimon4180 Linux - Software 1 10-02-2004 01:57 PM
Can I Get A List Of Modules Loaded In The Kernel ? linu_soft Programming 2 06-28-2004 07:39 AM


All times are GMT -5. The time now is 04:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration