martes, 21 de octubre de 2014

Arduino + LCD Keypad Shield + LCD Smartie 5.4

Hola a todos.

Iniciamos este nuevo proyecto con un vídeo de como quedo el trabajo terminado.


Materiales:

- Arduino 1
- LCD Keyboard Shield
- Cable USB (De esos de impresora)
- PC con windows para manipular el software.

Procedimiento:

1) Como todos sabemos conectar un arduino y un shield omitiremos esa parte.

2) El codigo:


sábado, 11 de octubre de 2014

MiniDLNA 1.1.4 para Raspberry Pi



1.1.4 - Released 26-Aug-2014 -------------------------------- - Add magic container infrastructure. - Add magic containers for 50 recent items for each category. - Fix bad null termination in AAC parsing. - Fix requests for the last byte of a file, which affected MKV playback on Philips TV's. - Support 64-bit time_t values.

miércoles, 1 de octubre de 2014

Bios reset en Dell R210

Hola a todos.

Hoy perdí medio día peleando con problemas de bios en este dichoso servidor.

Para los que les toque luchar con este modelo de servidor el reseteo se realiza de la siguiente forma.

1) Ingresar a la bios.
2) Activar Num, Bloq y Scroll Lock en el teclado.
3) Presionar en el mismo orden las siguientes teclas:

ALT-E , ALT-F , ALT-B

Después de esto el servidor se reiniciara y cargara con su bios con conf default.

viernes, 26 de septiembre de 2014

Vulneravilidad CVE-2014-7169 #Shellshock

Comprobar que nuestra maquina esta expuesta:

# env x='() { :;}; echo vulnerable' bash -c "echo this is a test"

vulnerable
this is a test


* Si aparece la palabra vulnerable como en el ejemplo significa que la maquina es vulnerable a esta falla.

Parchando vulneravilidad.

Centos.

1) buscar la ultima actualizacion.

# yum list updates -q|grep bash

2) actualizar con esa version.

# yum update bash.x86_64

* Al comprobar nuevamente con el código ya no debería aparecer la palabra vulnerable, 

martes, 16 de septiembre de 2014

Asterisk 1.8 : Sending fake auth rejection for device

http://forums.asterisk.org/viewtopic.php?t=74947#p183312

Script: Monitorear fail2ban

Este es cript es bien simple, solo revisa la lista de procesos y si no encuentra el demonio fail2ban ejecutándose ejecuta un "service fail2ban restart"




#!/bin/bash

resultado=`ps awx | grep 'fail2ban' |grep -v grep|wc -l`
if [ $resultado == 0 ]; then
    /etc/init.d/ fail2ban restart
    echo "Fail2ban estaba caido y el cron lo reactivo."
fi


jueves, 11 de septiembre de 2014

Proyecto Cybersyn

El proyecto Synco o proyecto Cybersyn fue el intento chileno de planificación económica controlada en tiempo real, desarrollado en los años del gobierno de Salvador Allende. En esencia, se trataba de una red de máquinas de teletipo que comunicaba a las fábricas con un único centro de cómputo en Santiago, centro que controlaba a las máquinas empleando los principios de la cibernética. El principal arquitecto del sistema fue el científico británico Stafford Beer.

En 1971, durante el gobierno del presidente Salvador Allende, se comienza a desarrollar en Chile un innovador sistema cibernético de gestión y transferencia de información. El proyecto se llamó CYBERSYN, sinergia cibernética, o SYNCO, sistema de información y control.
En las empresas del área de la propiedad social del Estado de Chile se implementaría un sistema de transferencia de información económica a "casi" tiempo real con el gobierno.
Después de nacionalizar y anexar diversas empresas de propiedad social al Estado, el sistema económico del Gobierno de Allende se enfrentó a la necesidad de coordinar la información de las empresas existentes estatales y las recientemente nacionalizadas. Para lograrlo, se necesitó crear un sistema de transferencia de información dinámico y flexible.
En 1970, Fernando Flores fue nombrado Director General Técnico de CORFO (Corporación para el Fomento de la Producción de Chile). Comenzó a ser el responsable de la gestión y coordinación entre las empresas nacionalizadas y el Estado. Conocía las teorías y las soluciones propuestas por el británico Stafford Beer desde que era estudiante de ingeniería y posteriormente por su relación profesional con la empresa de consultoría de Stafford Beer SIGMA.
Junto a Raúl Espejo, quien también trabajaba en CORFO y posteriormente fuera director operacional del proyecto, escribió una carta a Stafford Beer con el propósito de invitarlo a implementar en Chile el VSM (modelo del sistema viable), modelo que describía en su libro The Brain of the Firm (Allen Lane, London, 1972). Beer aceptó y el proyecto comenzó su desarrollo en 1971.
Luego de casi dos años de trabajo y de avances inimaginables, el proyecto de gobierno cibernético fue aprobado por el Presidente Salvador Allende para ser implementado en el Palacio La Moneda.
Tomó un año el construirlo (desde noviembre de 1971 al mismo mes de 1972), aunque nunca se finalizó del todo.
El sistema tuvo la oportunidad de demostrar su utilidad en octubre de 1972, cuando 50.000 camioneros en paro bloquearon las calles de Santiago; empleando las máquinas de teletipos, el gobierno fue capaz de coordinar el transporte de alimentos a la ciudad con los cerca de 200 camiones leales a Allende y que no se encontraban en paro. Comentando este hecho, Beer señalaba modestamente: "Comunicación es control".1
Tras el golpe militar del 11 de septiembre de 1973, el centro de control fue destruido. Cybersyn o Synco nunca pudo ser aplicado y fue abortado irrevocablemente, frustrando uno de los proyectos políticos y cibernéticos más avanzados de la época en el mundo.

Fuente: http://es.wikipedia.org/wiki/Cybersyn

martes, 29 de julio de 2014

Autostart VM en Xenserver 6.x

1. Crear vApp
2. Asignar vApp a la maquina virtual
3. Asignar orden de inicio y delay
4. Obtener el UUID de la vApp:

xe appliance-list name-label="name-vapp"

5. Editar rc.local file to start vApp:

echo "sleep 40" >> /etc/rc.local
echo "xe appliance-start uuid=uuid-vapp" >> /etc/rc.local

7. Guardar y reiniciar XenServer

miércoles, 7 de mayo de 2014

miércoles, 29 de enero de 2014

Guerilla Open Access Manifesto

Guerilla Open Access Manifesto 

Information is power. But like all power, there are those who want to keep it for 
themselves. The world's entire scientific and cultural heritage, published over centuries 
in books and journals, is increasingly being digitized and locked up by a handful of 
private corporations. Want to read the papers featuring the most famous results of the 
sciences? You'll need to send enormous amounts to publishers like Reed Elsevier. 

There are those struggling to change this. The Open Access Movement has fought 
valiantly to ensure that scientists do not sign their copyrights away but instead ensure 
their work is published on the Internet, under terms that allow anyone to access it. But 
even under the best scenarios, their work will only apply to things published in the future. 
Everything up until now will have been lost. 

That is too high a price to pay. Forcing academics to pay money to read the work of their 
colleagues? Scanning entire libraries but only allowing the folks at Google to read them? 
Providing scientific articles to those at elite universities in the First World, but not to 
children in the Global South? It's outrageous and unacceptable. 

"I agree," many say, "but what can we do? The companies hold the copyrights, they 
make enormous amounts of money by charging for access, and it's perfectly legal — 
there's nothing we can do to stop them." But there is something we can, something that's 
already being done: we can fight back. 

Those with access to these resources — students, librarians, scientists — you have been 
given a privilege. You get to feed at this banquet of knowledge while the rest of the world 
is locked out. But you need not — indeed, morally, you cannot — keep this privilege for 
yourselves. You have a duty to share it with the world. And you have: trading passwords 
with colleagues, filling download requests for friends. 



Meanwhile, those who have been locked out are not standing idly by. You have been 
sneaking through holes and climbing over fences, liberating the information locked up by 
the publishers and sharing them with your friends. 

But all of this action goes on in the dark, hidden underground. It's called stealing or 
piracy, as if sharing a wealth of knowledge were the moral equivalent of plundering a 
ship and murdering its crew. But sharing isn't immoral — it's a moral imperative. Only 
those blinded by greed would refuse to let a friend make a copy. 

Large corporations, of course, are blinded by greed. The laws under which they operate 
require it — their shareholders would revolt at anything less. And the politicians they 
have bought off back them, passing laws giving them the exclusive power to decide who 
can make copies. 

There is no justice in following unjust laws. It's time to come into the light and, in the 
grand tradition of civil disobedience, declare our opposition to this private theft of public 
culture. 

We need to take information, wherever it is stored, make our copies and share them with 
the world. We need to take stuff that's out of copyright and add it to the archive. We need 
to buy secret databases and put them on the Web. We need to download scientific 
journals and upload them to file sharing networks. We need to fight for Guerilla Open 
Access. 

With enough of us, around the world, we'll not just send a strong message opposing the 
privatization of knowledge — we'll make it a thing of the past. Will you join us? 

Aaron Swartz 

July 2008, Eremo, Italy