View make-chr.sh
wget http://download2.mikrotik.com/routeros/6.40.5/chr-6.40.5.img.zip -O chr.img.zip && \ | |
gunzip -c chr.img.zip > chr.img && \ | |
apt-get update && \ | |
apt install -y qemu-utils pv && \ | |
qemu-img convert chr.img -O qcow2 chr.qcow2 && \ | |
qemu-img resize chr.qcow2 `fdisk /dev/vda -l | head -n 1 | cut -d',' -f 2 | cut -d' ' -f 2` && \ | |
modprobe nbd && \ | |
qemu-nbd -c /dev/nbd0 chr.qcow2 && \ | |
echo "Give some time for qemu-nbd to be ready" && \ | |
sleep 2 && \ |
View install-ispconfig3-centos.sh
#!/bin/bash | |
## Install ISPConfig 3.x on CentOS 7 64Bits | |
## http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-centos.html | |
## https://www.howtoforge.com/tutorial/perfect-server-centos-7-2-apache-mysql-php-pureftpd-postfix-dovecot-and-ispconfig/2/ | |
## http://nareshv.blogspot.com.br/2014/02/configure-hhvm-with-apache-fastcgi-on.html | |
## ISPConfig3 3.x + Apache2 + CentOS 7 64Bits | |
## VM HD 50GB, swap 2GB, / 19GB, /var/www all | |
## Filesystem ext4 | |
## Run as root |