Volkszaehler in einer VMware mit OpenWRT installieren

Diese Anleitung ist lange nicht mehr aktualisiert worden und weicht in wichtigen Punkten von der aktuellen Version ab.
This description is out of date, it differs in important steps from the actual version.

keeping to this howto do this:

(Remark: in case you should wonder why we're using the latest RC of 10.03.1 - it's because that is the first release that sports the mysql-server package)

dd if=/dev/zero of=disk.img bs=1024M count=10
mkfs.ext2 sparedisk-1G.img
qemu-img convert -f raw sparedisk-1G.img -O vmdk sparedisk-1G.vmdk
config 'interface' 'lan'
  option 'ifname' 'eth0'
  option 'proto' 'dhcp'
/etc/init.d/network restart
passwd
opkg update
mount /dev/sdb1 /overlay
mkdir /overlay/mysql
mkdir /mnt/data
ln -s /overlay/mysql/ /mnt/data/
mkdir /overlay/libexec
ln -s /overlay/libexec/ /usr/
opkg install mysql-server php5-mod-mysql lighttpd coreutils-su php5-mod-pdo-mysql php5-mod-json php5-mod-sockets git bash php5-cgi libsqlite3 lighttpd-mod-fastcgi php5-mod-session lighttpd-mod-cgi php5-mod-ctype
mkdir -p /mnt/data/mysql
ln -s /usr/bin/hostname /bin/
mysql_install_db --force (weil: /usr/bin/resolveip ist nicht da)
cd /overlay
git clone git:\/\/github.com/volkszaehler/volkszaehler.org.git
cd /overlay/volkszaehler.org/volkszaehler.org/middleware/
cp volkszaehler.conf.template.php volkszaehler.conf.php
volkszaehler.conf.php:
$config['db']['user']                           = '<db-user>';
$config['db']['password']                       = 'demo';
bash /overlay/volkszaehler.org/share/tools/install.sh
/etc/init.d/uhttpd stop
opkg remove luci-core luci-uci luci-theme-openwrt luci-web luci-sgi-cgi luci-http luci-app-firewall luci-admin-core luci-sys luci-uvl luci-lmo luci-app-initmgr luci-ipkg luci-cbi luci-admin-mini luci-admin-full luci-ipkg luci-admin-core luci-cbi luci-uvl luci-i18n-english luci-uci uhttpd
server.document-root = "/overlay/www/"
index-file.names = ( "index.html", "index.php", "default.html", "index.htm", "default.htm" )
doc_root = "/overlay/www"
; Dynamic Extensions               
extension=ctype.so
extension=json.so       
extension=pdo.so 
extension=pdo-mysql.so
extension=session.so               
extension=sockets.so        
cgi.assign = ( ".php" => "/usr/bin/php-cgi" )    
fastcgi.server = (                             
        ".php" => (            
                "localhost" => (                 
                        "socket" => "/tmp/php-fastcgi.socket",                 
                        "bin-path" => "/usr/bin/php-fcgi"
                )           
        )                                
)                                                           
server.modules = (
        "mod_fastcgi",
)      

todos: