howto:openwrt-vm
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
openwrt-vm-howto [2010/10/28 00:40] – angelegt justinotherguy | howto:openwrt-vm [2011/03/24 23:28] – backend -> middleware justinotherguy | ||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
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 19: | Zeile 18: | ||
< | < | ||
config ' | config ' | ||
- | option ' | + | |
- | option ' | + | option ' |
+ | </ | ||
+ | * restart your network using the new settings: | ||
+ | < | ||
+ | * set a new root password: | ||
+ | < | ||
+ | * retrieve current package list: | ||
+ | < | ||
+ | * mount overlay file system: | ||
+ | < | ||
+ | * move dirs with high disk space requirements to overlay file system: | ||
+ | < | ||
+ | mkdir / | ||
+ | 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: | ||
+ | < | ||
+ | * set doctrine path to "/ | ||
+ | * set volkszaehler path to "/ | ||
+ | * stop uhttpd before removing it | ||
+ | < | ||
+ | * now remove uhttpd and all packages that depend on uhttpd: | ||
+ | < | ||
+ | * modify / | ||
+ | < | ||
+ | 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 = ( | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ) | ||
+ | ) | ||
+ | ) | ||
+ | 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.txt · Zuletzt geändert: 2019/11/04 11:24 von jau