howto:openwrt-vm
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| howto:openwrt-vm [2010/12/03 18:57] – ...under contruction... justinotherguy | howto:openwrt-vm [2019/11/04 11:24] (aktuell) – Warnung Version jau | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | <note important> | + | ===== Volkszaehler in einer VMware mit OpenWRT installieren ===== |
| - | ===== How do I install volkszaehler | + | <note warning> |
| + | This description is out of date, it differs in important steps from the actual version.</ | ||
| keeping to [[http:// | keeping to [[http:// | ||
| - | * download [[http://volkszaehler.org/ | + | * download [[http://downloads.openwrt.org/ |
| - | * download [[http:// | + | |
| - | * well - gunzip | + | * download [[http:// |
| - | * convert | + | * create a new file system for the db in an appropiate size - you might want to start with 1 GB: |
| - | * qemu-img convert -f raw openwrt-x86-2.6-ext2.image -O vmdk openwrt-x86-2.6-ext2.vmdk | + | < |
| - | * download [[http:// | + | |
| - | * create a new file system for the db in an appropiate size - you might want to start with 100 MB: | + | |
| - | | + | |
| * create an ext2 file system in that image | * create an ext2 file system in that image | ||
| - | * mkfs.ext2 | + | < |
| - | * get the [[http:// | + | * convert the image using qemu-img from the package „qemu“ (Ubuntu/ |
| + | < | ||
| + | * get the [[http:// | ||
| * open the vmx file with VMWare Player | * open the vmx file with VMWare Player | ||
| * boot your new vm | * boot your new vm | ||
| Zeile 24: | Zeile 24: | ||
| option ' | option ' | ||
| </ | </ | ||
| + | * restart your network using the new settings: | ||
| + | < | ||
| * set a new root password: | * set a new root password: | ||
| - | * passwd | + | < |
| - | * update | + | * retrieve current |
| - | | + | < |
| - | * install required packages | + | * mount overlay file system: |
| - | | + | < |
| - | * get PostgreSQL running: | + | * move dirs with high disk space requirements to overlay file system: |
| - | * echo " | + | < |
| - | * echo " | + | mkdir / |
| - | * mkdir /volkszaehler | + | mkdir /mnt/data |
| + | ln -s / | ||
| + | mkdir / | ||
| + | ln -s / | ||
| + | </ | ||
| + | * install required packages: | ||
| + | < | ||
| + | * remarks: bash for install script (temporary) (php -> php-cli) | ||
| + | < | ||
| + | mkdir -p / | ||
| + | ln -s / | ||
| + | mysql_install_db --force (weil: / | ||
| + | </ | ||
| + | * clone volkszaehler.org: | ||
| + | < | ||
| + | cd /overlay | ||
| + | git clone git: | ||
| + | cd / | ||
| + | </ | ||
| + | * copy the config template and modify it to your needs: | ||
| + | < | ||
| + | cp volkszaehler.conf.template.php volkszaehler.conf.php | ||
| + | volkszaehler.conf.php: | ||
| + | $config[' | ||
| + | $config[' | ||
| + | </ | ||
| + | * run installer: | ||
| + | <code>bash / | ||
| + | * set doctrine path to "/ | ||
| + | * set volkszaehler path to "/ | ||
| + | * stop uhttpd before removing it | ||
| + | <code>/etc/init.d/ | ||
| + | * now remove uhttpd and all packages that depend on uhttpd: | ||
| + | < | ||
| + | * modify / | ||
| + | < | ||
| + | server.document-root = "/ | ||
| + | index-file.names = ( " | ||
| + | </ | ||
| + | * modify / | ||
| + | < | ||
| + | doc_root = "/overlay/ | ||
| + | ; Dynamic Extensions | ||
| + | extension=ctype.so | ||
| + | extension=json.so | ||
| + | extension=pdo.so | ||
| + | extension=pdo-mysql.so | ||
| + | extension=session.so | ||
| + | extension=sockets.so | ||
| + | </ | ||
| + | |||
| + | * enable (normal) cgi modify / | ||
| + | < | ||
| + | cgi.assign = ( " | ||
| + | </code> | ||
| + | * or else enable fastcgi modify | ||
| + | < | ||
| + | fastcgi.server = ( | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ) | ||
| + | ) | ||
| + | ) | ||
| + | server.modules = ( | ||
| + | " | ||
| + | ) | ||
| + | </ | ||
| + | |||
| + | todos: | ||
| + | * mount /overlay at boot time | ||
| + | * start mysqld at boot time ("To start mysqld at boot time you have to copy support-files/ | ||
| + | * cd /usr ; / | ||
| + | * / | ||
| + | * / | ||
| + | * start lighttpd at boot time | ||
howto/openwrt-vm.1291399049.txt.gz · Zuletzt geändert: (Externe Bearbeitung)