Nov 21, 2009
Pages: 1, 2

What Language Is Linux Written In ?

free web hosting

Read Latest Entries..: (Post #15) by iGuest on Aug 20 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
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Computers & Tech > Operating Systems > Linux

What Language Is Linux Written In ?

Jguy101
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. tongue.gif

Comment/Reply (w/o sign-up)

the empty calorie
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.

Comment/Reply (w/o sign-up)

qwijibow
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.

 

 

 


Comment/Reply (w/o sign-up)

vizskywalker
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

Comment/Reply (w/o sign-up)

Jguy101
Ooh, that Linux From Scratch site looks like it'd help a lot...thanks, Qwijibow! biggrin.gif

Comment/Reply (w/o sign-up)

hatim
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.

Comment/Reply (w/o sign-up)

xboxrulz
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

Comment/Reply (w/o sign-up)

PureHeart
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.

Comment/Reply (w/o sign-up)

qwijibow
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 smile.gif yipee )

Comment/Reply (w/o sign-up)

xboxrulz
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

Comment/Reply (w/o sign-up)

Latest Entries

iGuest
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

Comment/Reply (w/o sign-up)

abhiram
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 wink.gif. 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 smile.gif.

Comment/Reply (w/o sign-up)

qwijibow
QUOTE
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...

CODE

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.


Comment/Reply (w/o sign-up)

tadex
QUOTE(Jguy101 @ Nov 16 2005, 06: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. tongue.gif

*



I think in C

Comment/Reply (w/o sign-up)

xboxrulz
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

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : language, linux, written

  1. Lightest Linux
    (15)
  2. When And What Is Your First Linux Experience?
    (4)
    Hi All, I want to learn when and what is your first experience of linux? Mine is; 1996 first
    install of linux. 1995 first time I heard of linux. I remember how I was happy and how I was curious
    about linux. I was bored of Windows. It was not the OS I was dreaming of. It was not completely
    flexible. I was feeling that windows is not the edge of the computer tech. There are something wrong
    about windows. And Linux was like a dream for me.. I remember how I tried to get a linux distro. I
    remember how I installed it.. How excited I was. It was incredible.. The linux I ins....
  3. I Want To Get Linux, Which One Is Best?
    (20)
    currently have Windows XP (god help me) and want to change to Linux. I know that Linux is
    open-source, but does that mean that it is free? I have no idea on the matter so I decided to
    consult the forums. ....
  4. Linux Software Installation Help
    it tells how to install software in tar.bz2 or .bin extension (2)
    installing .tar.bz2 software open the terminal window.Place the s/w in root's home..then
    write file.tar.bz2 in terminal. uncompressing will take place.a folder with .tar extension will b
    created.Now write tar -xvf filename.tar,contents will be read..Now,move to the directory just
    created..read the readme file..follow instruction such as make or make install to be commanded in
    terminal...now its done..use it by writing in terminal for ex. mplayer movie.avi. ..or just drop ur
    movie file nin the terminla..nd remove the " " in the file..append mplayer with blank spa....
  5. Which Linux Version For Newbies?
    Give your opinion (14)
    Hi, well i have been a windows user all my life, and I'm really satisfied with it. But from a
    time know as a good programmer/user, I want to know what I'm missing(or not) from not using
    linux, so for those who have a long time using it I would like you to ask a favor, if you could
    recommend me the version that I should test. I don't understand when someone says to a newbie in
    linux that is asking for a version to start, they say to them "well ubuntu(example) is a good
    version to start", what are the real diference between the different types of linux. ....
  6. Why Linux?
    (23)
    i have always wonder, what is so special about linux? why do people have linux? rather than windows
    or mac? is it recommended that noobs like me /laugh.gif" style="vertical-align:middle"
    emoid=":lol:" border="0" alt="laugh.gif" /> have an linux os? /rolleyes.gif"
    style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />....
  7. Choice Of Motherboard For Linux Virtualization
    Who knows which ones work well? (6)
    Virtualization is a relatively arcane subject, but it is one which is very rapidly growing, and
    apparently very "hot" in commercial enterprises. For the hobbyist with multiple computers (I have
    8), it offers the possibility of taking snapshots of running, fully configured applications and
    operating systems, and transferring some or all of them onto a single computer platform. First, it
    saves energy. Second, once the conversion has been made from real hardware to a virtual "guest,"
    the driver problems associated with moving from one hardware platform to another are sol....
  8. Linux Basic Command - For Storing Compilation Error To File
    (1)
    Ex: Compiling a cpp file using a basic command " g++ filename.cpp " and to run the program use
    ./a.out , Then to store the compilation error to text file use this command. g++ test.cpp >
    log.txt log.txt contains the compile time errors. ....
  9. Linux For Beginners- Easy To Install
    (16)
    Which Linux distru is for beginners and Easy to install?....
  10. Access Linux Box From Windows Machine- Putty Tool
    (2)
    Most of the guys want to access Linux box from Windows machine just to do some programming on the
    command line. The "Putty Tool" is the solution for this. Just google for "Putty" and download this
    small package(less then 1MB) and keep it on your desktop. Just you need to configure the linux
    machine IP on this Putty tool and connect to Linux machine. If you face any problem in configuring
    Linux IP, then let me know, i will help you out. If you think this is help full, please rate this.....
  11. How To Copy File & Folders From Linux To Windows?.
    (14)
    Many face problem while transfering file from Linux to windows and Vise versa. My solution for
    this is "winscp405". Winscp is a windows freeware tool used to copy file from & to Linux machine.
    To get this tool just google for " winscp405" tool and download this small package and install.
    Enjoy working with Linux and windows /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />....
  12. Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One.
    (0)
    Let me give some usefull linux commands and utilities. Please add to this list if you know.
    Work with tar files. To make tar archive use $ tar -cvf filename.tar filename
    To extract tar archive use $ tar -xvf filename.tar To extract tar archive
    with gz use $ tar -xzvf filename.tar.gz Connect to remote system through ssh
    $ ssh name@ip followed by passwd e.g. ssh project@172.16.0.14 passwd: List the
    file in current directory $ ls -l list the running process ....
  13. How To Play Music And Movie In Linux? Which Is The Good One?.
    (6)
    How to play Movie and music on linux. I am using fedora and i dont think so any player is specific
    to any one flavour of linux. I have used "MP3 blaster" player, but this you need to play from
    command line. Any other user friendly player pls let me know /rolleyes.gif"
    style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> ......
  14. So, I Want To Try Out Linux.
    What do I need? (9)
    If I want to use Linux, would I need XP or a OS on a LAPTOP already? Or can I just pure boot Linux?
    I've wanted to use Linux for a while, preferably Ubuntu. Unless those are two completely
    different things. /dry.gif" style="vertical-align:middle" emoid=" I don't know, I have never
    used Linux before. /tongue.gif" style="vertical-align:middle" emoid=":P" border="0"
    alt="tongue.gif" /> So, any help?....
  15. What Is Linux
    Introduction to Linux (2)
    QUOTE "Linux" generally refers to an open-source Unix-clone operating system based on the Linux
    kernel, written from scratch originally by Linus Torvalds and other smart people from across the
    web. Although the linux kernel, which interfaces with a computer's hardware, is the core of the
    operating system, many other programs are needed to form a complete operating system. Various
    commercial and non-commercial groups produce Linux-based operating systems containing the kernel,
    all necessary programs, and an installer. These different versions of linux are referr....
  16. Linux?
    (3)
    What is the pros and cons of linux? Does it cost money to get or is it free?....
  17. Diablo 2 In Linux?
    possible or not? (11)
    Hey! Sorry if this should be in the game forum, but it is about a game in Linux. And I need help
    with it /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> so I
    thougt that it belongs to here. So.. Is it possible to install Diablo 2 on Linux using some sort of
    patch, or any special software? Not just diablo. But other games too, that only works on Windows.
    Thanks //Feelay....
  18. How To Install Linux Without A CD or DVD?
    Would like to learn how to use Linux but don't know how to install (11)
    Hey! I've tryed to install linux without a cd (as they said on the website).. But I did'nt
    understand it so good =/ Can anyone please tell me how I can install linux without a CD? Any
    version.. The only thing I need is a fast one (faster than windows).. I am completly new (never
    tried it before) and would want to learn Linux. But thats not easy, if I don't know hoiw to
    install it /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Thanks
    //Feelay....
  19. Three Ways To Access Linux Partitions From Windows On Dual-boot Systems
    (11)
    If you have a dual-boot Windows/Linux system, you probably know this problem: you can access files
    from your Windows installation while you are in Linux, but not the other way round. This tutorial
    shows three ways how you can access your Linux partitions (with ext2 or ext3 filesystem) from within
    Windows: http://www.howtoforge.com/access-linux-par...ns-from-windows
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  20. Looking For Linux
    2 choices that I will choose - make it easy to install and MAINTAIN (34)
    Ok I have tried Linux before, it was ok, until something with the kernel screwed up and it left me
    with a command line interface that I didn't know what to do. I am looking for 2 different
    distributions of Linux here, my first one is for: (Currently running Windows XP SP2) A computer
    with 512 MB RAM Pentium 4 processor Internet Access GNOME or KDE desktop, doesn't matter Minimal
    command line work!!! Absolutely no command line work when installing. I have tried Ubuntu, it was
    easy enough. Anything easier than Ubuntu and I'll give it a try. My second cho....
  21. Psybnc - Howto
    How to make a psyBNC on Linux (5)
    Installation First, fetch the latest source code from http://www.psybnc.at QUOTE cd wget
    http://www.psybnc.at/download/beta/psyBNC-2.3.2-7.tar.gz tar -zxvf psyBNC-2.3.2-7.tar.gz cd psybnc
    Configuration QUOTE make menuconfig Now go in `Bouncer Config', next set Listening
    Port and Ip. Next select `User' Here you will be able to create a user for your bouncer. You
    must set Ident, Realname and Password, and vhost too. So return to main menu, and choose exit. When
    prompted for saving select Yes. Launching psyBNC QUOTE make ./psybnc ....
  22. What Made You Switch To Linux?
    (65)
    I first tried Linux a few years ago, not because I was completely against Windows or anything like
    that, but just because I had some free time on my hands. I started off with Mandrake 9.0 which was
    very user friendly and Windows-like. After reading through a bunch of message boards and learning
    which distros are good for what, I soon realized my current distro was great for Linux noobs. So
    then I decided to try something a little more advanced like Slackware which I knew had a steep
    learning curve. Since then I've been using Slackware as my main OS and couldn'....
  23. Where To Find Notepad++ For Linux ?
    (38)
    I'm searching 2 days ago trying to find notepad++ for linux but i couldn't find it yet,
    does anyone know or have this great software?, ofcourse i have it on windows, but i don't use
    windows so much time, most times i'm on linux so i need it to be run on linux. P.S: i don't
    use WINE so please don't recommend it /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> ....
  24. Binds ( Dns Server For Linux ) - How To Use It ?
    (3)
    I have BINDS installed on my Linux box and was wondering how you use it. For the fact that it is a
    DNS server, that is all I know. Otherwise, I'm lost! Thanks! F....
  25. What's The Difference Between Linux And Unix?!?
    (23)
    are they even made by the same people...?....
  26. Linux - which distributiuon?
    (21)
    I'm wondering what distributions of Linux do you like most. Please make some comments on
    distribution you like so everybody will know its adventagies.....
  27. You can Play now in Linux
    These is a list of the games. (26)
    You can Play a greates gameg in linus as: Unreal Tournament Quake 3 Wolfenstein Enemy teritory Medal
    of Honor And Emule Nintendo 64 and Play Station games. He have your property games as: Tux Raser
    Tux Cart Flith of the amazon queen Beneath a Steel Sky and most more.....
  28. Linux SuSE detec you all hareware
    Yea SuSE detec all. (2)
    Yea SuSE heve the best tools. Mplayer, Xmms, OpenOfecce, K3B, FireFox etc.....
  29. Now Linux is ease
    The linux SuSE 9.1 is most ease linux (9)
    /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> if you desire
    to do your linux most ease, I recommend yourself to change you to SuSE 9.1 and your life to be ease.
    These linux make all to you. you don't need to make nothing. /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  30. Running Linux on slow computers
    (17)
    I'm wondering if Mandrake 9.2 with X can be used on slow machine like: Pentium 350, 64mb ram,
    2mb graphic card. I don't want to install any servers (ssh maybe).....

    1. Looking for language, linux, written

See Also,

*SIMILAR VIDEOS*
Searching Video's for language, linux, written
Similar
Lightest Linux
When And What Is Your First Linux Experience?
I Want To Get Linux, Which One Is Best?
Linux Software Installation Help - it tells how to install software in tar.bz2 or .bin extension
Which Linux Version For Newbies? - Give your opinion
Why Linux?
Choice Of Motherboard For Linux Virtualization - Who knows which ones work well?
Linux Basic Command - For Storing Compilation Error To File
Linux For Beginners- Easy To Install
Access Linux Box From Windows Machine- Putty Tool
How To Copy File & Folders From Linux To Windows?.
Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One.
How To Play Music And Movie In Linux? Which Is The Good One?.
So, I Want To Try Out Linux. - What do I need?
What Is Linux - Introduction to Linux
Linux?
Diablo 2 In Linux? - possible or not?
How To Install Linux Without A CD or DVD? - Would like to learn how to use Linux but don't know how to install
Three Ways To Access Linux Partitions From Windows On Dual-boot Systems
Looking For Linux - 2 choices that I will choose - make it easy to install and MAINTAIN
Psybnc - Howto - How to make a psyBNC on Linux
What Made You Switch To Linux?
Where To Find Notepad++ For Linux ?
Binds ( Dns Server For Linux ) - How To Use It ?
What's The Difference Between Linux And Unix?!?
Linux - which distributiuon?
You can Play now in Linux - These is a list of the games.
Linux SuSE detec you all hareware - Yea SuSE detec all.
Now Linux is ease - The linux SuSE 9.1 is most ease linux
Running Linux on slow computers
advertisement



What Language Is Linux Written In ?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com