Page 1 of 2 12 LastLast
Results 1 to 16 of 19

Thread: Linux code help!

  1. #1
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts

    Linux code help!

    I wanna have a look at he linux code i was told to download it from http://www.kernel.org/ but i cant find the code that i can view, like i would view HTML code right? On not pad? lol, sound increasingly stupid. Just wanna have a look at it
    thx
    P.S. can this forum use html? cant seem to get it to even though others seem to.

    EDIT: ok, i found the code but how do i view it on xp ?
    Last edited by nvening; 23-02-2005 at 08:55 PM.
    (\__/)
    (='.'=)
    (")_(")

  2. #2
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts
    Download the latest kernel and extract it to /usr/src/

    I really don't know what you're looking for though if you don't know how to extract a tarball.

  3. #3
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    so i cant do it on xp, do i see code like html?
    (\__/)
    (='.'=)
    (")_(")

  4. #4
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts
    You should be able to by opening the files in something like notepad.

  5. #5
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    Thisis what i got when i opened it with notepad http://www.freewebs.com/nvening/linux%20code.JPG
    is that right?
    (\__/)
    (='.'=)
    (")_(")

  6. #6
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts
    Yes, that's it. Code is complicated eh?

  7. #7
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    WTF!!!!!!!! LOL. It does not seeem to follow any patten or anything, got any sites that would explain the real basics abt what the hell it means, definately nothing like the tags in html lol. Is that what all program code is like? netscape windows etc. What about java and C+?
    (\__/)
    (='.'=)
    (")_(")

  8. #8
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts
    I was joking. If you don't know how to extract the file then I don't think you stand a chance of learning the code.

  9. #9
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    FEW! Ok, ok. I extracted it and there are loads of folders, i guessed it was kernal so i went in that. There are loads of notepad files what one! ahhhh, i havnt even got onto the code yet! lol

    EDIT: well this is what i opend first, this right, looks it: http://www.freewebs.com/nvening/linux%20code.JPG
    Last edited by nvening; 23-02-2005 at 11:11 PM.
    (\__/)
    (='.'=)
    (")_(")

  10. #10
    Bigger than Jesus Norky's Avatar
    Join Date
    Feb 2005
    Posts
    1,579
    Thanks
    1
    Thanked
    8 times in 8 posts
    Quote Originally Posted by nvening
    FEW! Ok, ok. I extracted it and there are loads of folders, i guessed it was kernal so i went in that. There are loads of notepad files what one ahhhh, i havnt even got onto the code yet! lol
    What exactly are you trying to do? The Kernel won't just be like one nice neat HTML file, if you think about it your going all the way down to the core hardware of the computer.

  11. #11
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    Quote Originally Posted by nvening
    WTF!!!!!!!! LOL. It does not seeem to follow any patten or anything, got any sites that would explain the real basics abt what the hell it means, definately nothing like the tags in html lol. Is that what all program code is like? netscape windows etc. What about java and C+?
    it's c. hence the '.c' extension on files.

    and use wordpad, or preferably an editor like context. things look particularly bad for you because windows and unix have different ways of starting new lines in text files - windows isn't seeing unix line breaks.

    bear in mind you're looking at over 200 meg of pure operating system source code. it's not a trivial hello world app. it's ALL linux kernel source code. except for a few bits of documentation, anyway

    and any app written in C will look like that. download any source code from sourceforge.net, it doesn't become easy all of a sudden. modern netscapes should be similar to mozilla, so take a look at the source on mozilla.org
    Last edited by directhex; 23-02-2005 at 11:39 PM.

  12. #12
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    Im not trying to learn it, i just have never really seen proper code, just html. Also, so i understand, html is read by the browser. Is the browser read kinda by the OS? But if thats true then what the hell reads the OS?
    (\__/)
    (='.'=)
    (")_(")

  13. #13
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    there are two ways of dealing with source code. you can interpret it, whereby a program reads the text & acts upon it (html, perl, python, php, jsp). or you can have compiled code, whereby the text code is turned into program code (c, c++, visual basic), in a form which the computer can understand. there are blurred lines in this, but that's the gist.

    usually, only the kernel (e.g. the linux kernel or nt5 kernel) are written close to the system, once the kernel is in place it can have added layers of abstraction put on top - eventually allowing applications to be run and multitasked.

  14. #14
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts
    nevening, may I suggest taking a step back.

    Learn how to use an operating system before trying to read the code that makes it work

    Thats not a dig but the fact that you are stuggling to understand what the code should look like eg: "will it look like html" and the fact that your stuggling to un-tar it suggests your way over your head.

    you seem quite familier with windows perhaps taking a basic look at visual basic may give you a bit of a grounding or an introduction to code in general.
    It is Inevitable.....


  15. #15
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    Lets get this straight. I just wanted to look at the code to actually see what it is all about, cause people say that html is not proper code (thats y i didnt no if it would look at all like html) and thats all i know. I can use windows fine and because i have not come across that file extention before i did not know how to open it. Because i new code wes just text i tryed to open it with note pad but that did not work, but i didnt no that at first (due to some sarcastic comments lol). I soon learned after a quick google that the file was like a unix .zip so i downloaded a program which could decompress it. If you can think of a better way i would like to hear it.
    (\__/)
    (='.'=)
    (")_(")

  16. #16
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    some simple My First Programs in a language like Java would be a good step.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Linux - Anyone educated in it?
    By gamezfreak in forum Software
    Replies: 19
    Last Post: 12-12-2007, 10:42 AM
  2. Tried and tested Gigbit ethernet card (Linux)
    By ikonia in forum Software
    Replies: 3
    Last Post: 26-02-2005, 10:41 AM
  3. Download Suse 9.2
    By nvening in forum Software
    Replies: 22
    Last Post: 31-01-2005, 09:12 PM
  4. Linspire Linux OS with 1 Month Subscription [Download]
    By rc55 in forum Retail Therapy and Bargains
    Replies: 0
    Last Post: 10-01-2005, 10:10 AM
  5. audio and video problems, and windows app in linux
    By fedoracore in forum Software
    Replies: 0
    Last Post: 28-01-2004, 05:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •