This question is cross posted from Stack Overflow: http://stackoverflow.com/questions/7113768/stripping-ubuntu-10-04-server-down-to-jeos-like-setup
I am setting up a web application to run on cloud servers that will be created and destroyed programmatically via a supplied API. For my purposes I want a stripped down version of ubuntu like JeOS, to which I would be adding Node.js and some Node modules. The server company offers the ability to create custom system images by taking an image of a running server but my initial server needs to be booted with an image provided by them, in this case an Ubuntu 10.04 LAMP image. I would therefore need to strip out the unneeded packages. What is the safe way to accomplish this? Is there a list somewhere of what is included in JeOS or something similar so I can determine what is unsafe to remove?
I want to note that I have read similar questions where uses are trying to strip the server down for performance reasons, where the key is minimizing the number of running processes and memory usage. In my situation I am looking to minimize the image size to reduce the time it takes to create a new server