With a web browser go to http://lazyinstaller.net/pages/generator.xhtml and complete the form.
Copy/paste the generated script to a text file on the target server and make executable.
Edit the script and comment out the first echo line.
Run the script.