8

This question already has an answer here:

I have heard that we can obtain the source code of Ubuntu and customize it as we wish. But where can I find the source code of Ubuntu, and what languages are used to write Ubuntu?

marked as duplicate by muru, karel, Eric Carvalho, David Foerster, Zanna Mar 22 '18 at 19:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Ubuntu, as you know, is an operating system. Quite naturally, it actually consists of many different parts that depend on each other. What in particular do you want to modify? You may decide that you want to modify the kernel code, for instance. Or you may just want to modify a specific application that comes with the operating system (like gedit). – Eren Tantekin Feb 23 '12 at 3:54
  • 1
    I want to modify some applications. – Chathura Widanage Feb 23 '12 at 4:13
19

You really don't want to download the source code for all of Ubuntu. That's millions and millions of pages of text – literally. Instead, you'll get the source code for specific packages you're interested in, and that's very easy.

Ubuntu is written in lots and lots of different languages. C, C++, Vala and Python are highly popular, but all kinds of languages are used. Getting the source code for a specific package is very easy. As an example, let's download the source code for the Ubuntu One control panel. Open a terminal and run apt-get source ubuntuone-control-panel

You now have the source code for Ubuntu One Control Panel in a directory called ubuntuone-control-panel-VERSION_NUMBER.

Ready to explore? :)

4

While Ubuntu is an operating system, it is actually comprised of several different aspects.

One aspect is the kernel, the extreme back-end of the operating system.

Another aspect is the desktop manager, window manager, etc.

Then of course there's the programs.

Generally speaking, the source for all of these aspects is all open, and freely available. Most of these have their own projects, and you can download the source code from those projects specifically rather than have to mess around with source packages and stuff.

4

The packages and their sources are all available through Launchpad.

Not the answer you're looking for? Browse other questions tagged or ask your own question.