I have two requirements

  1. I want whole Ubuntu 12.04 Source code.
  2. I want to compile it.

Can you please tell me about from where I can get the source code and what tool I will need to compile it? From 30000 feet, it might look stupid but I really need this.

Thanks for your support...


  • 1
    There is nothing like "Ubuntu source" or any "OS source", you can get the source code of every individual element Ubuntu is composed starting from the kernel itself. – xangua Oct 31 '14 at 6:08
  • 1
    You are basically asking how to create your own Ubuntu. That is possible with askubuntu.com/questions/409607/… This is a method where you take a server version (so no desktop) and add in packages to create your own system. Another one with a desktop can be found here: askubuntu.com/questions/48535/… – Rinzwind Oct 31 '14 at 6:38
  • Thank you @Rinzwind for your prompt response. The link is definitely interesting. However, it raises one more question in my mind. The question is that kickstart is allowing me to only add/delete some specific package from available pool of packages.What if I want to add my own written package to it? Actually, I have customize upstart library and I want to integrate that library into my Ubuntu. Can I do this by following your link? Thanks again for your help.... I really appreciate it... – Tahir Rauf Oct 31 '14 at 23:13
  • 1
    That is also possible. You can add packages to any system manually and add those files to the kickstart file yourself. There is a cache directory on the disc where you put your own files. – Rinzwind Nov 1 '14 at 7:42
  • 1
    That should be the correct method yes. Delete the original from the pool and add the package you want. The system will install all packages that are in the pool so that should be all you need to do. Do keep in mind that kickstart is redhat software that is supported in Ubuntu -but- not 100%. It might be smarter to take the manual route (and mount the iso, and copy it over to the iso yourself). – Rinzwind Nov 3 '14 at 19:45