Thread Solved
Reply

Join Date: Jun 2009
Posts: 13
Reputation: valinux is an unknown quantity at this point 
Solved Threads: 0
valinux valinux is offline Offline
Newbie Poster

Source

 
0
  #1
Jun 27th, 2009
I've been reading all this stuff about Linux and how it is open-source for everything, and that is one of the great things about it. But I haven't really seen anything. On the one hand I have just switched to Linux so don't really know anything. Please correct me if I am wrong: any program can be opened and looked at and THAT'S the source or you can execute the program, which runs the program.
I'm trying to learn the shell and one of the tutorials was talking about with different users you can put restrictions on them so they can only view the program and not run it:
When applied to a folder, the execute permission has nothing to do with
running programs. Instead, the execute permission controls who can
access or modify the small folder file.
I don't really want to change any program source codes, but I would like to look at them so I can learn from them.
Thanks
"Learn It. Run it. Tinker with it."
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 91
Reputation: athlon32 is on a distinguished road 
Solved Threads: 16
athlon32's Avatar
athlon32 athlon32 is offline Offline
Junior Poster in Training

Re: Source

 
1
  #2
Jun 27th, 2009
Welcome to Linux!

First of all not all programs for Linux are open source!!! Infact, in some cases it is illegal to look at certain programs source code!!! (just thought I'd mention that)

>I haven't really seen anything
Your probably not looking right...for example...in Ubuntu you can view the Linux Kernel source code by going to the directory: /usr/src/

cd /usr/src
generally when you install a program, you don't really work with the source code(you work with binaries), unless you compile it, almost always the project supplies the source code in a separate tarball for downloading, you just gotta find them.

A good example of this is the mozilla FTP server:
the binaries are located here:
ftp://ftp.mozilla.org/pub/firefox/re...c3/linux-i686/

and the source is here:
ftp://ftp.mozilla.org/pub/firefox/re...3.5rc3/source/

get it?

Sometimes however, programs installed also will bring the source, this is generally stored in a directory called "src"

for example there might be a pidgin/src/ or mozilla/src/ directory on your system. Those would hold source code

Just for your reference
/bin - binaries
/lib - libraries
/src - source

> When applied to a folder, the execute permission has nothing to do with
running programs. Instead, the execute permission controls who can
access or modify the small folder file.


That just means if you have a program located in a file, and you aren't allowed to access that folder, you can't run that program.

Hope I helped

Please tell me if you need more explanation
Last edited by athlon32; Jun 27th, 2009 at 8:54 pm. Reason: typo
I'm pretty much a noob! I'm here to learn new things and to gain skillz by observing and helpin'. I'll try to help you to the best of my abilities, and apparently the guys on here aren't cool enough to appreciate my rep begging :(
Look, it's a link!!!!
http://shallweprogram.blogspot.com/
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 39
Reputation: emiola is an unknown quantity at this point 
Solved Threads: 1
emiola emiola is offline Offline
Light Poster

Re: Source

 
0
  #3
Jun 28th, 2009
hello friend,
I could be of assistance too. Just mention one thing you'd like to do and let's see if we can throw in some practice!
First thing though: You must get this book to open your eyes and depending, turn you to a pro within three or four dedicated months:http://search.barnesandnoble.com/boo...rk+G%2E+Sobell
Go for either the 2008 or 2006 edition. You can buy the used one as it is very cheap and they ship worldwide. Without meaning to, I find the book really helpful.
Once you get the book, let me know.
However, for a start, if you must touch any code, you must first log in as "root" as username and supply the p[assword you created during installation. Also go to the desktop preference to change to KDE desktop to enable you use the command console better.
See you then!
O God! He that teaches man what he knows not, please grant us the solution.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 13
Reputation: valinux is an unknown quantity at this point 
Solved Threads: 0
valinux valinux is offline Offline
Newbie Poster

Re: Source

 
0
  #4
Jun 28th, 2009
I have Ubuntu, not Red Hat Linux. I don't know the difference and don't have time to research it right now, but I will.
Thanks
"Learn It. Run it. Tinker with it."
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Getting Started and Choosing a Distro Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC