1

I really want to make my own distro of linux but I do not know where to find the source code. Also I don't know how to compile it, is there any special way to compile Ubuntu and install everything.

2

1 Answer 1

1

There's no such thing as "Ubuntu source code". It's not a single package, it's a software distribution. You'd need to compile everything, to the kernel, core utilities and libraries to Python, APT and Unity and it would take ridiculous amounts of time.

If you want to make an Ubuntu-based distro, you'll have some basic steps:

  • Download Ubuntu ISO;

  • Extract the ISO's content somewhere;

  • Unsquashfs casper/filesystem.squashfs file inside extracted ISO;

  • Correctly mount --bind /dev, /dev/pts, /proc and /sys to the unsquashfs'd filesystem and chroot into it;

  • Make your changes in the chroot environment and unmount the binded filesystems;

  • Create a new filesystem.squashfs from the chroot directory and place it in /casper;

  • Make an ISO image with your new customized Ubuntu distro.

A more detailed approach can be found at https://help.ubuntu.com/community/LiveCDCustomization .

11
  • So exactly where can I get everything, and how can I make the installer? Jan 17, 2016 at 3:16
  • As I said, you can get everything in the Ubuntu ISO. And what do you mean by "make the installer"? Jan 17, 2016 at 3:19
  • Yes PS I know this is against but pls upvote Jan 17, 2016 at 3:20
  • Yes what? Upvote what? What do you want/need? Your questions are a bit messy, OK? Jan 17, 2016 at 3:22
  • Upvote question Jan 17, 2016 at 3:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .