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/04 00:18] – [How do I install volkszaehler in a VMware running OpenWRT] 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 ===== |
| - | < | + | < |
| - | + | This description | |
| - | + | ||
| - | ===== How do I install volkszaehler in a VMware running OpenWRT ===== | + | |
| keeping to [[http:// | keeping to [[http:// | ||
| Zeile 12: | Zeile 10: | ||
| * download [[http:// | * download [[http:// | ||
| * create a new file system for the db in an appropiate size - you might want to start with 1 GB: | * create a new file system for the db in an appropiate size - you might want to start with 1 GB: | ||
| - | * dd if=/ | + | < |
| * create an ext2 file system in that image | * create an ext2 file system in that image | ||
| - | * mkfs.ext2 sparedisk-1G.img | + | < |
| * convert the image using qemu-img from the package „qemu“ (Ubuntu/ | * convert the image using qemu-img from the package „qemu“ (Ubuntu/ | ||
| - | * qemu-img convert -f raw sparedisk-1G.img -O vmdk sparedisk-1G.vmdk | + | < |
| * get the [[http:// | * get the [[http:// | ||
| * open the vmx file with VMWare Player | * open the vmx file with VMWare Player | ||
| Zeile 27: | Zeile 25: | ||
| </ | </ | ||
| * restart your network using the new settings: | * restart your network using the new settings: | ||
| - | * / | + | < |
| * set a new root password: | * set a new root password: | ||
| - | * passwd | + | < |
| - | * update | + | * retrieve current |
| - | | + | < |
| * mount overlay file system: | * mount overlay file system: | ||
| - | * mount /dev/sdb1 /overlay | + | < |
| * move dirs with high disk space requirements to overlay file system: | * move dirs with high disk space requirements to overlay file system: | ||
| - | * mv /mnt/data/mysql /overlay | + | < |
| - | | + | mkdir /overlay/mysql |
| - | * mv /usr/ | + | mkdir /mnt/data |
| - | | + | ln -s / |
| - | * retrieve current package list: | + | mkdir /overlay/libexec |
| - | * opkg update | + | ln -s / |
| + | </ | ||
| * install required packages: | * install required packages: | ||
| - | * opkg install mysql-server php5-mod-mysql lighttpd coreutils-su php5-mod-pdo-mysql php5-mod-json git bash php5-cgi | + | < |
| * remarks: bash for install script (temporary) (php -> php-cli) | * remarks: bash for install script (temporary) (php -> php-cli) | ||
| + | < | ||
| mkdir -p / | mkdir -p / | ||
| ln -s / | ln -s / | ||
| mysql_install_db --force (weil: / | mysql_install_db --force (weil: / | ||
| - | | + | </ |
| - | | + | * clone volkszaehler.org: |
| - | | + | < |
| - | * run installer: | + | cd /overlay |
| - | * bash / | + | git clone git:\/\/ |
| - | * set doctrine path to "/ | + | cd / |
| - | * set volkszaehler path to "/ | + | </ |
| - | * 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 | + | < |
| + | cp volkszaehler.conf.template.php volkszaehler.conf.php | ||
| + | volkszaehler.conf.php: | ||
| + | $config[' | ||
| + | $config[' | ||
| + | </ | ||
| + | * run installer: | ||
| + | < | ||
| + | * set doctrine path to "/ | ||
| + | * set volkszaehler path to "/ | ||
| + | * stop uhttpd before removing it | ||
| + | < | ||
| + | * now remove uhttpd and all packages that depend on uhttpd: | ||
| + | < | ||
| + | * modify / | ||
| < | < | ||
| - | "To start mysqld at boot time you have to copy support-files/ | ||
| - | to the right place for your system" | ||
| - | cd /usr ; / | ||
| - | / | ||
| - | / | ||
| - | (benchmark: cd sql-bench ; perl run-all-tests) | ||
| - | |||
| - | |||
| - | / | ||
| server.document-root = "/ | server.document-root = "/ | ||
| + | index-file.names = ( " | ||
| + | </ | ||
| + | * modify / | ||
| + | < | ||
| + | doc_root = "/ | ||
| + | ; 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 = ( " | ||
| + | </ | ||
| + | * or else enable fastcgi modify / | ||
| + | < | ||
| fastcgi.server = ( | fastcgi.server = ( | ||
| " | " | ||
| Zeile 79: | Zeile 102: | ||
| server.modules = ( | server.modules = ( | ||
| " | " | ||
| - | ) | + | ) |
| - | cgi.assign = ( " | + | |
| </ | </ | ||
| + | |||
| + | 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.1291418280.txt.gz · Zuletzt geändert: (Externe Bearbeitung)