Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  agyat : (24 May 2013 - 05:15 PM) O Dear, Where Are You? Without Your Words This Sb Is ..
@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?

Photo
- - - - -

What Language Is Linux Written In ?


22 replies to this topic

#1 Jguy101

Jguy101

    Premium Member

  • Members
  • 257 posts

Posted 16 November 2005 - 05:15 AM

I''ve been wondering lately, what language is Linux written in?

I'm interested in this, because my friend and I are considering writing our own distro. I know, it sounds like a bit of a feat, but one guy wrote MEPIS by playing with the Debian source code. I think the two of us could do something similar. ;)


#2 the empty calorie

the empty calorie

    Premium Member

  • Members
  • 254 posts

Posted 16 November 2005 - 05:38 AM

Linux I am not sure about, but I do know that UNIX is entirely written in C, and I'm willing to make a safe bet that Linux itself is also written in C.

Writing a distro seems to be more about packages included and the package management used than actually altering the source code. If I was going to creat a distro, I'd basically end up creating another Slackware.

#3 qwijibow

qwijibow

    Way Out Of Control - You need a life :)

  • Members
  • 1,366 posts
  • Location:Nottingham England
  • Interests:Computer / nerd related things (who would have guessed)<br />also. the following cartoons...<br /><br />South Park<br />King of the hill<br />Family guy<br />Sponge Bob Square pants<br />Simpsons

Posted 16 November 2005 - 03:01 PM

You do not need to program to make a new distro.

however, for the sake of answering your question.....

Linux itself is written in C and Assembly.
GNU is written mostly in C.
Libraries are written in C and C++ (QT is written in C++, GTK i believe is C)
Boot scripts are USUALLY written in Bash Script, but there is no reason you couldnt use some other scripting language


To create a differant distro, here's what you need to do....

1) Decide on a package management system.
You can use a currently existing system such as RPM, Debian PKG, Gentoo's Portage, or Slackware's TGZ.

Alternativly, you could choose to have no package management system, and the user will needto compile everything from source (similar to Linux From Scratch)

OR Ideally, Program your own package management system (the language of your choice)

2) The Kernel....
Most distro's patch the vanilla linux kernel. For example, Gentoo has many krnels available, some patched to be optimised towards desktop use, some optimised for server use.

You need to decide on what makes your distro differant / beter than other distro's and patch the kernel accordingly.

For example, you may decide that disk IO is more important that disk reliability on your distro, so you may want to patch your kernel with the experimental file system Reiser4.

Alternativly, you could use the kernel from anouther distro, for example the Gentoo kernel for performance, or the Redhat kernel for a more server oriented kernel.

Alternativly, you could just use the un-patched vanilla linux kernel from kernel.org

3) Boot scripts.
Many disto's use differant methods for selecting what scripts are executed dureing boot up.
Slackware just executes every script that has executable permissions.

Redhat / Fedora executes every script that has a symbolic link in the runlevel folder.

Gentoo uses a tool called rc-update,

Either use a currently existing method, or create your own method.

4) Create an Install CD.
This doesnt have to be complicated.
a simple install CD could be a simpl bootable CD, that just coppies a default install folder to the root of the hard disk, and installs GRUB to the MBR.


Their are2 reasons i can think of for creating a distro...
1) for fun and learning
2) because there are no distro's that work exactly the way you like.

For help getting started, you may want to look at Linux From Scratch.

http://www.linuxfromscratch.org/

this is a book with step by step instructions on how to start with a completely empty hard disk, and download and compile a full linux distro.

the end result is a completely customised, lightning fast minimal distro.
then books like Beyond Linux From Scratch will help you turn this into a full OS with all the features of any top quality distro.

Many people create there own distro's using LFS as a base to work from.

Enjoy.

#4 vizskywalker

vizskywalker

    Techno-Necromancer

  • Members
  • 1,018 posts
  • Location:The Net

Posted 16 November 2005 - 07:25 PM

Like all OSes, Linux is written in any programming language someone who adds to it rights in. Since OS kernels are compiled, the used language doesn't matter. However, most OSes are written in Assembly and C++.

~Viz

#5 Jguy101

Jguy101

    Premium Member

  • Members
  • 257 posts

Posted 17 November 2005 - 01:24 AM

Ooh, that Linux From Scratch site looks like it'd help a lot...thanks, Qwijibow! ;)

#6 hatim

hatim

    Advanced Member

  • Members
  • 196 posts
  • Location:Topi,Swabi,NWFP,Pakistan
  • Interests:Linux,Unix,Open Source,Programming, C++,Java,PHP,Technology,News,General Knowldge,Travel

Posted 17 November 2005 - 09:24 AM

Well i would recomend that instead of making your own distribution , you should focus on maintainng an already established distribution. Alot of distributions require maintainers as people leave as they dont have time to contribute . Like Danial Robbins , founder of Gentoo....he had a family to take care of..but he did take a job at Microsoft :S

Good Distros to contribute are Ubuntu , Fedora and Gentoo as they have a very strong community based program.

#7 xboxrulz

xboxrulz

    Colonel Panic

  • Members
  • 3,057 posts
  • Gender:Male
  • Location:Toronto, Ontario, Canada
  • myCENTs:59.15

Posted 17 November 2005 - 10:05 PM

Hatim is right, there are a surplus of Linux distributions out there already. Too much is NOT a good idea. Try maintaining Ubuntu, OpenSuSE.

xboxrulz

#8 PureHeart

PureHeart

    Premium Member

  • Members
  • 212 posts
  • Location:RMIT University
  • Interests:IT, English, PC, Internet, Traditions and Customs
  • myCENTs:65.61

Posted 18 November 2005 - 01:50 AM

And for the ones that' not a developer. Contributing by testing the new software and report the bugs.

If you're very familiar with a distro, you may also help others on the forum, guide them to the Open Source World.

#9 qwijibow

qwijibow

    Way Out Of Control - You need a life :)

  • Members
  • 1,366 posts
  • Location:Nottingham England
  • Interests:Computer / nerd related things (who would have guessed)<br />also. the following cartoons...<br /><br />South Park<br />King of the hill<br />Family guy<br />Sponge Bob Square pants<br />Simpsons

Posted 18 November 2005 - 09:45 AM

Its amasing, but this thing seems to happen all the time in the Linux forum.

A question is asked, but instead of beeing answered, they get an alien surgestion.

"Q: How do i create a new distro ?"
"A: Use Ubuntu"

"Q: Does Linux support brand X wireless network"
"A: I dont Know, use Ubuntu"

"Q: Whats the capital of Scotland?"
"A: Ubuntu"

Lol. If only this site had a humour section.

Seriously though.....

Go for Linux From Scratch, or google for "Meta Distribution"
a Meta Distribution is a bit like a distro used for creating s custom distro ( gentoo :) yipee )

#10 xboxrulz

xboxrulz

    Colonel Panic

  • Members
  • 3,057 posts
  • Gender:Male
  • Location:Toronto, Ontario, Canada
  • myCENTs:59.15

Posted 19 November 2005 - 05:42 AM

lol, everyone (well, mainly newbs) would just tell u to use Ubuntu. I can tell them to use any existing ones and tell them to help further develop it.

xboxrulz

#11 abhiram

abhiram

    Hedonist at large

  • Members
  • 610 posts
  • Location:another realm
  • Interests:Computers, Music (both playing and listening)

Posted 19 November 2005 - 06:20 AM

A little off-topic, but some of my friends tried ubuntu 5.04 and hated it... three of them to be precise .... and they switched to alternate OSes. One of them jumped back to Windows and CS :), one to Archlinux and one took up gentoo on my suggestion. Surprisingly, one of them got pained with the package management system, and the other two got pained with X (Max resolution of 640x480 on 17" monitors ... i810 chipset). The guy who didn't like the package management is now using gentoo and is very happy with it.

LFS sounds very interesting. I think I'm gonna take it up next semester when I have some free time. How long will it take to install LFS if I follow the handbook? A week maybe? Since Gentoo took 1 day to give me a usable KDE, LFS should take longer.

#12 xboxrulz

xboxrulz

    Colonel Panic

  • Members
  • 3,057 posts
  • Gender:Male
  • Location:Toronto, Ontario, Canada
  • myCENTs:59.15

Posted 19 November 2005 - 07:13 PM

not surprising. I don't like Ubuntu because it's annoying. It's debian configurator keeps overriding my manual configurations, which I need for running some games on my computer. Also, since it's Ubuntu, regular users can't open up extra X windows,(xinit /usr/local/games/[gamename]/[game] -- : 1) which makes me wonder, how is this a bad thing? It's actually better than if the game crashes and you losing all of your programs, like running Mercury Messenger and Skype in the background.

After thinking for a while and returned back to SuSE Linux and have stuck to it since.

I don't like gentoo because there's too much configuration needed and the compilation takes forever.


xboxrulz

#13 tadex

tadex

    Newbie [ Level 1 ]

  • Members
  • 3 posts

Posted 19 November 2005 - 11:07 PM

I''ve been wondering lately, what language is Linux written in?

I'm interested in this, because my friend and I are considering writing our own distro. I know, it sounds like a bit of a feat, but one guy wrote MEPIS by playing with the Debian source code. I think the two of us could do something similar. :)

View Post


I think in C

#14 qwijibow

qwijibow

    Way Out Of Control - You need a life :)

  • Members
  • 1,366 posts
  • Location:Nottingham England
  • Interests:Computer / nerd related things (who would have guessed)<br />also. the following cartoons...<br /><br />South Park<br />King of the hill<br />Family guy<br />Sponge Bob Square pants<br />Simpsons

Posted 20 November 2005 - 03:08 AM

How long will it take to install LFS


Linux from scratch leaves you with a bootable linux OS and a full set of development tools.

bascially, all your basic bash commands, and a compiler.

This took me 2 solid days on a 1.2Ghz Athlon Thunderbird.

he whole of the linux from scratch is equivelent to a gentoo @emerge system@ (forgive me, im on a windows machine, and the keyborad is set to american... no speach marks)

Its a good learning experiance, but it gets repetative.

you spend half the time readinf explanations of why you need to do each step, and typing...

wget files and patches
tar -zxf blah
gzcat patch.diff.gz | patch -P0
./configre --prefix=/usr <and other random options >
make
make install 

the *FUN* doesnt start untill you more onto the other books, like BeyondLinuxFrom scratch, which helps you build things like Xorg.

#15 abhiram

abhiram

    Hedonist at large

  • Members
  • 610 posts
  • Location:another realm
  • Interests:Computers, Music (both playing and listening)

Posted 20 November 2005 - 02:13 PM

Well... I gotta try everything I can right now, because I've only got one sem left before I graduate and once I leave, I doubt I'll have free internet ;). Besides, I don't think I'll have the freedom and time later on.

I'll give LFS a shot .... let's see what it has to offer :).

#16 Guest_iGuest-Zia_*

Guest_iGuest-Zia_*
  • Guests

Posted 20 August 2008 - 05:54 PM

how to change linux time with putty?
What Language Is Linux Written In ?

Any one know how to change Linux server Time with putty ?
Any help about it will be appreciated !

Thanks in advance !

Zia

#17 Guest_bs_*

Guest_bs_*
  • Guests

Posted 27 May 2012 - 01:39 AM

@ first question


you need a "linux from scratch" dvd or cd it comes with debian distro disks or something like that google the title

#18 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,677 posts

Posted 27 May 2012 - 12:54 PM

I''ve been wondering lately, what language is Linux written in?

I'm interested in this, because my friend and I are considering writing our own distro. I know, it sounds like a bit of a feat, but one guy wrote MEPIS by playing with the Debian source code. I think the two of us could do something similar. ^_^

I would say that Linux, by itself, is rather easy to bo maked. Students are learning that at the university. Creating the Linux kernel and the main compiling the main programs is rather easy, because the sources are available.
I would say that the most difficult part is writing down the drivers. You need to find a way of detecting wich hardware is present in each possible computer you are installing your distro on, and writing the corresponding driver, or obtaining the driver from somebody else.
The key point defining if a given current Linux distro is "better" than another one, from my point of view, is the fact that it already has all the drivers needed by my own PC, so the installation from the Linux distro is straightforward, I boot from the distro bootable CD and I click "accept" in each question. This supposed that a lot of people spent a lot of time on the install interface and on the automatic detection of all my communication, audio and printer devices which could possibly be found on my PC.

#19 manuleka

manuleka

    Way Out Of Control - You need a life :)

  • Members
  • 1,603 posts
  • Gender:Male
  • Location:myComputer
  • myCENTs:41.72

Posted 29 May 2012 - 02:36 AM

I would say that Linux, by itself, is rather easy to bo maked. Students are learning that at the university. Creating the Linux kernel and the main compiling the main programs is rather easy, because the sources are available.
I would say that the most difficult part is writing down the drivers. You need to find a way of detecting wich hardware is present in each possible computer you are installing your distro on, and writing the corresponding driver, or obtaining the driver from somebody else.
The key point defining if a given current Linux distro is "better" than another one, from my point of view, is the fact that it already has all the drivers needed by my own PC, so the installation from the Linux distro is straightforward, I boot from the distro bootable CD and I click "accept" in each question. This supposed that a lot of people spent a lot of time on the install interface and on the automatic detection of all my communication, audio and printer devices which could possibly be found on my PC.


this is why Windows 7 rocks... because it comes with a huge readily available/accessible libraries of drivers

#20 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,677 posts

Posted 29 May 2012 - 08:25 AM

this is why Windows 7 rocks... because it comes with a huge readily available/accessible libraries of drivers

And that's the main problem when we tell people that they should switch to Linux. We should provide them with a free Lunix distro which also has this huge amount of available drivers, so that whatever they buy, they can simply plug it.
And, unfortunately, when a new device appears (printer, phone, mp3 player, camera) it usually has the drivers for the current Microsoft Windows version, and does not have the driver for my old Windows or my own Linux version.



Reply to this topic



  


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users