Installing Drupal from command line

Using twill because until Drupal 7, there's no way you can install Drupal without opening the browser.
#debug http 1
go http://192.168.1.6:12000/install.php?profile=pulut&locale=en
code 200
find "To set up your Pulut database, enter the following information."
#show_cookies
fv 1 db_type pgsql
fv 1 db_path gmp
fv 1 db_user kamal
fv 1 db_pass abc123
submit op
find "All necessary changes to <em>./sites/default</em> and <em>./sites/default/settings.php</em> have been made. They have been set to read-only for security."
fv 1 site_mail kamal@bytecraft.com.my
fv 1 account[name] admin
fv 1 account[mail] kamal@bytecraft.com.my
fv 1 account[pass][pass1] abc123
fv 1 account[pass][pass2] abc123
fv 1 update_status_module[1] 0
submit op
find "Congratulations, Pulut has been successfully installed"
clear_cookies
go http://192.168.1.6:12000/
fv 1 name admin
fv 1 pass abc123
submit op
find "Log out"It's pretty crude at the moment but I guess a good start. Couple with some other tools I'm working on, installing Drupal can be fully automated. The next step is to convert this twill script into Python equivalent to be more flexible.
Update
Here some good and better explanation on this from Lin Clark's blog.
- Tags:


Comments
Have you tried the drush provision module?
Aegir has the drush provision module that sets out and creates a full drupal install for you, db and all.
Aegir
Not yet, Aegir look to heavy for me. Plus I need to integrate the tools with our own infrastructure. Maybe I'll try to take a look at it.