I made this FREE script to help me setting up WordPress installations simultaneously on my linux staging server, as well as within my local staging environment. It includes all the annoying tasks of adjusting vhosts for Apache, registering the staging subdomain with the DNS server, populating the wp-config file and creating a Wordmove movefile for push/pull capabilities, etc.
Basically you run the command and after answering some questions, you will be presented with two fresh, synced WordPress installations, ready to hack, push and pull!
Startup Retreat Japan