Bajamos el paquete
Backup de una maquina virtual KVM
Seguir los siguientes pasos
Listado de las maquina virtuales
|
1 |
virsh -c qemu:///system list --all |
Sacar backup de la configuracion
|
1 |
virsh -c qemu:///system dumpxml win2011 > /s3mnt/dms/backup.xml |
Si el clon ya existe de deben seguir los siguientes pasos
|
1 2 3 |
virsh destroy win2011-clone virsh undefine win2011-clone rm win2011-clone.img |
Parar la maquina y sacar backup
|
1 2 3 |
virsh suspend win2011 virt-clone --connect qemu:///system --original win2011 --name win2011-clone --file /home/maguilar/win2011-clone.img --check all=off virsh resume win2011 |
En la maquina destino, definir la configuracion
|
1 |
virsh define win2011.xml |
Copiar el disco duro (img) de la maquina virtual al servidor destino
Iniciar la maquina
|
1 |
virsh create win2011.xml |
Hacer un test de velocidad por linea de comandos
Ejecutar
|
1 |
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - |
Version 2016
Bajar el script de speedtest
|
1 |
wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py |
Dar permisos de ejecucion
|
1 |
chmod +x speedtest.py |
Ejecutar
|
1 |
./speedtest.py --secure |
Virtualbox en Suse
Añadir las siguientes lineas en el archivo:
|
1 |
vi /etc/zypp/repos.d/repo-virtualbox |
|
1 2 3 4 5 6 7 8 9 10 |
[virtualbox] name=VirtualBox for openSUSE 11.4 baseurl=http://download.virtualbox.org/virtualbox/rpm/opensuse/11.4 type=yum enabled=1 priority=120 autorefresh=1 gpgcheck=1 gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc keeppackages=0 |
Instalar los siguientes paquetes
|
1 2 |
sudo zypper in virtualbox sudo zypper in python-gobject-pygtkcompat |
Se ejecuta con
|
1 |
vboxgtk |
MySQL crear registros consecutivos
Para crear registros por medio de un loop
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
DELIMITER $$ DROP PROCEDURE IF EXISTS insert_ell_rows $$ CREATE PROCEDURE insert_ell_rows () BEGIN DECLARE crs INT DEFAULT 0; WHILE crs < 11 DO SET crs = crs + 1; Insert into events (id,Valor) Values(crs,0); END WHILE; END $$ |
Para ejecutar la funcion
|
1 |
call insert_ell_rows; |
MariaDB on CentOS 7 – “Error in accept: Too many open files”
By default is seems the soft and hard open files limits on MariaDB in CentOS 7 are 1024 and 4096 respectfully. You can see these limits by first getting the process ID:
|
1 |
cat /var/run/mariadb/mariadb.pid |
And then looking at the limits in the proc filesystem:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
[root@web1 ~]# cat /proc/7688/limits Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 8388608 unlimited bytes Max core file size 0 unlimited bytes Max resident set unlimited unlimited bytes Max processes 31209 31209 processes Max open files 1024 4096 files Max locked memory 65536 65536 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 31209 31209 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us |
Notice the numbers for “Max open files”.
If you run into problems with MariaDB failing and you see errors like this in the log:
|
1 |
systemctl daemon-reload |
and restart the MariaDB service:
OpenVPN en Windows
Instalar el cliente de OpenVPN para windows
https://openvpn.net/index.php/open-source/downloads.html
Copiar los certificados a la siguiente carpeta (O donde quede instalado)
C:\Program Files\OpenVPN\config
Ediar el client.conf con los parametros del cliente
Cambiar la extension del client.conf a client.ovpn
Ejecutar el programa
Contar extensiones que se desconectan
Con este comando podemos ver las extensiones que tienen problemas en el full, ya sean porque estan Lagged o porque estan UNREACHABLE
Las caidas
|
1 |
tail -20000 /var/log/asterisk/full | grep UNREACHABLE | cut -d' ' -f6 | sort | uniq -c |
Solo para las de pings altos
|
1 |
tail -20000 /var/log/asterisk/full | grep Lagged | cut -d' ' -f6 | sort | uniq -c |
HOWTO: Boot your Raspberry Pi into a fullscreen browser kiosk | Wired Watershed
Origen: HOWTO: Boot your Raspberry Pi into a fullscreen browser kiosk | Wired Watershed
Software for the Project:
Anyway, lets get down to building a Raspberry Pi Web Kiosk.
Seguir leyendo HOWTO: Boot your Raspberry Pi into a fullscreen browser kiosk | Wired Watershed