When you have a machine working that took you a lot of time to build it up and you need to clone it, there is onw simple way to do it with a single Unix command.
First, install the same Unix on the new machine, set up the network properly and run, on the original machine, the following commands:
$ tar cfpsP - /usr /etc /lib /var (...) | ssh dest -C tar xvf -
Explained:
In a nutshell, you're creating a tarball of your whole system, piping it through an encrypted and compressed channel to the dest machine where another tar is running to extract the files in the right place.
Beware that, because of the -P, it'll override everything the dest machine have in the same location.