Monday, December 10, 2018

software installation - Where is the source code of Ubuntu and how do I compile it?



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.



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 .


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...