R-Tech Solutions' RSS Feed http://blog.woralelandia.com El Feed RSS de noticias y artículos sobre FOSS; de R-Tech Solutions - Guadalajara, Jalisco, México Tue, 07 Feb 2012 08:27:22 +0000 es hourly 1 ZendFramework HowTo: Removing BtrFS from a bunch of drives (BOD) http://blog.woralelandia.com/2012/02/07/howto-removing-btrfs-from-a-bunch-of-drives-bod/ http://blog.woralelandia.com/2012/02/07/howto-removing-btrfs-from-a-bunch-of-drives-bod/#comments Tue, 07 Feb 2012 08:27:22 +0000 Renich http://blog.woralelandia.com/?p=1023 Continue reading ]]> Ok, I just discovered how to remove BtrFS from a bunch of drives. It got kind of hard at first but, thanks to the #btrfs channel, I discovered how.

for device in sd{d..g}; do dd if=/dev/zero of=/dev/$device bs=4k count=1 seek=16; done

This will remove a 4k block; starting from 64k. This did it.

Why would you like to do this? Well, just to try some different configurations. Also, I got into a problem while using different labels and stuff…

]]>
http://blog.woralelandia.com/2012/02/07/howto-removing-btrfs-from-a-bunch-of-drives-bod/feed/ 2
The Pirate Bay’s SOPA/PIPA Press Release http://blog.woralelandia.com/2012/01/19/the-pirate-bays-sopapipa-press-release/ http://blog.woralelandia.com/2012/01/19/the-pirate-bays-sopapipa-press-release/#comments Thu, 19 Jan 2012 21:08:48 +0000 Renich http://blog.woralelandia.com/?p=1025 Continue reading ]]> INTERNETS, 18th of January 2012.
PRESS RELEASE, FOR IMMEDIATE RELEASE.

Over a century ago Thomas Edison got the patent for a device which would “do for the eye what the phonograph does for
the ear”. He called it the Kinetoscope. He was not only amongst the first to record video, he was also the first person
to own the copyright to a motion picture.

Because of Edisons patents for the motion pictures it was close to financially impossible to create motion pictures
in the North american east coast. The movie studios therefor relocated to California, and founded what we today call
Hollywood. The reason was mostly because there was no patent.
There was also no copyright to speak of, so the studios could copy old stories and make movies out of them – like
Fantasia, one of Disneys biggest hits ever.

So, the whole basis of this industry, that today is screaming about losing control over immaterial rights, is that they
circumvented immaterial rights. They copied (or put in their terminology: “stole”) other peoples creative works,
without paying for it. They did it in order to make a huge profit. Today, they’re all successful and most of the
studios are on the Fortune 500 list of the richest companies in the world. Congratulations – it’s all based on being
able to re-use other peoples creative works. And today they hold the rights to what other people create.
If you want to get something released, you have to abide to their rules. The ones they created after circumventing
other peoples rules.

The reason they are always complainting about “pirates” today is simple. We’ve done what they did. We circumvented the
rules they created and created our own. We crushed their monopoly by giving people something more efficient. We allow
people to have direct communication between eachother, circumventing the profitable middle man, that in some cases take
over 107% of the profits (yes, you pay to work for them).
It’s all based on the fact that we’re competition.
We’ve proven that their existance in their current form is no longer needed. We’re just better than they are.

And the funny part is that our rules are very similar to the founding ideas of the USA. We fight for freedom of speech.
We see all people as equal. We believe that the public, not the elite, should rule the nation. We believe that laws
should be created to serve the public, not the rich corporations.

The Pirate Bay is truly an international community. The team is spread all over the globe – but we’ve stayed out of the
USA. We have Swedish roots and a swedish friend said this:
The word SOPA means “trash” in Swedish. The word PIPA means “a pipe” in Swedish. This is of course not a coincidence.
They want to make the internet inte a one way pipe, with them at the top, shoving trash through the pipe down to the
rest of us obedient consumers.
The public opinion on this matter is clear. Ask anyone on the street and you’ll learn that noone wants to be fed with
trash. Why the US government want the american people to be fed with trash is beyond our imagination but we hope that
you will stop them, before we all drown.

SOPA can’t do anything to stop TPB. Worst case we’ll change top level domain from our current .org to one of the
hundreds of other names that we already also use. In countries where TPB is blocked, China and Saudi Arabia springs to
mind, they block hundreds of our domain names. And did it work? Not really.
To fix the “problem of piracy” one should go to the source of the problem. The entertainment industry say they’re
creating “culture” but what they really do is stuff like selling overpriced plushy dolls and making 11 year old girls
become anorexic. Either from working in the factories that creates the dolls for basically no salary or by watching
movies and tv shows that make them think that they’re fat.

In the great Sid Meiers computer game Civilization you can build Wonders of the world. One of the most powerful ones
is Hollywood. With that you control all culture and media in the world. Rupert Murdoch was happy with MySpace and had
no problems with their own piracy until it failed. Now he’s complainting that Google is the biggest source of piracy
in the world – because he’s jealous. He wants to retain his mind control over people and clearly you’d get a more
honest view of things on Wikipedia and Google than on Fox News.

Some facts (years, dates) are probably wrong in this press release. The reason is that we can’t access this information
when Wikipedia is blacked out. Because of pressure from our failing competitors. We’re sorry for that.

THE PIRATE BAY, (K)2012

# Source

http://static.thepiratebay.org/legal/sopa.txt

]]>
http://blog.woralelandia.com/2012/01/19/the-pirate-bays-sopapipa-press-release/feed/ 0
LemonPOS: Cómo instalarlo en Fedora 16 http://blog.woralelandia.com/2012/01/17/lemonpos-como-instalarlo-en-fedora-16/ http://blog.woralelandia.com/2012/01/17/lemonpos-como-instalarlo-en-fedora-16/#comments Tue, 17 Jan 2012 09:03:21 +0000 Renich http://blog.woralelandia.com/?p=1020 Continue reading ]]> Un vato (Alejandro), me dijo que quiere instalar LemonPOS y que, éste, está chido.

Me doy cuenta de que lo hace un Mexicano! Ajuá!A webo! Y que está en pinche C++! Mejor! Pinche Java; es pa’ putos y que chingue a su madre!

Lo único que no me gustó es que usa kde4 y qt… wákala…

En todo caso, ahí va como instalarlo en Fedora. Hay que calarlo. Si alguien quiere mantener el paquete en Fedora, que me pida ayuda y con gusto le echo el paro.

Le hice algunas modificaciones para hacerlo más estándar (IMHO). En todo caso, si no jala, me pones un comentario y lo corrijo.

#
## Construcción

# Instalar dependencias
su -c 'yum install kdelibs kdelibs-devel qt qt-devel qt-mysql mysql-server git'

# clonar
git clone git://gitorious.org/lemonpos/lemonpos.git
cd lemonpos
git pull origin persa:persa
git checkout persa

# compilar
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix )
make

# instalar
su -c 'make install'

#
## MySQL

# configurar mysql
systemctl enable mysqld.service
mysql_secure_installation
systemctl start mysqld.service

# instalar DB y usuario de lemonpos
cd ../database_resources/
mysql -u root -p < lemon_mysql.sql
mysql -u root -p < mexico_taxes.sql

# correr el programa (usuario: admin, password: linux)
lemon

# Fuentes

http://lemonpos.org/

http://sourceforge.net/apps/mediawiki/lemonpos/index.php?title=Installation_Guide

]]>
http://blog.woralelandia.com/2012/01/17/lemonpos-como-instalarlo-en-fedora-16/feed/ 4
CloudSgima: Virtualización con KVM/Quemu y SSD http://blog.woralelandia.com/2011/11/20/cloudsgima-virtualizacion-con-kvmquemu-y-ssd/ http://blog.woralelandia.com/2011/11/20/cloudsgima-virtualizacion-con-kvmquemu-y-ssd/#comments Sun, 20 Nov 2011 06:22:24 +0000 Renich http://blog.woralelandia.com/?p=1012 Continue reading ]]> No hay más rápido!!

Estoy todo emocionado porque probé instalar un CentOS 6 y se instaló en menos de 1 minuto! Increible!

Están ofreciendo virtualización con discos duros de hasta 50 GB (SSD) y hasta 8 TB en discos duros normales (2.5 ” scsi… no tan normal… muuuuy rápidos).

Mi onda, ahora, es poner servers con el sistema instalado en un disco SSD y, lo demás en un disco duro normal. Se me ocurren muchos maravares con btrfs o LVM2 para ésto. Me gusta la idea! A ver si, al rato, publico un HowTo de ésto para optimizar tu LVM a que ponga tus DBs y archivos web (cache, mejor, o algo así) en el SSD y, lo estático, en el disco normal.

# fuente
CloudSigma

]]>
http://blog.woralelandia.com/2011/11/20/cloudsgima-virtualizacion-con-kvmquemu-y-ssd/feed/ 3
HowTo: Substitución de una línea completa con sed http://blog.woralelandia.com/2011/11/10/howto-substitucion-de-una-linea-completa-con-sed/ http://blog.woralelandia.com/2011/11/10/howto-substitucion-de-una-linea-completa-con-sed/#comments Fri, 11 Nov 2011 00:03:11 +0000 Renich http://blog.woralelandia.com/?p=1008 Continue reading ]]> Seguramente, alguna vez en tu vida, has querido reemplazar una línea en 300+ zonas de DNS. Claro, a todos nos ha pasado… ¬_¬… por lo menos a todos los que no tenemos vida, eh?

Gracias a los de #fedora @ freenode por ésto (Jefe fue el autor):

sed -ri 's@SOA@s@^.+$@lo que quieras poner en esa línea@' /path/al/archivo

]]>
http://blog.woralelandia.com/2011/11/10/howto-substitucion-de-una-linea-completa-con-sed/feed/ 0
F/Red: Fedora/Red Hat Electric Devices http://blog.woralelandia.com/2011/10/24/fred-fedorared-hat-electric-devices/ http://blog.woralelandia.com/2011/10/24/fred-fedorared-hat-electric-devices/#comments Mon, 24 Oct 2011 07:55:12 +0000 Renich http://blog.woralelandia.com/?p=1003 Continue reading ]]> Ok, this idea woke me up: https://fedoraproject.org/wiki/User:Renich/Projects/Fed

I think Fedora/Red Hat could get into the device realm. Who would buy a Fedora/Red Hat tailored laptop? Imagine that? Or maybe an audio player? Or a phone?

# Raw Ideas
- Laptops and PCs
* Upgradeable hardware.
* A native GNU & Linux keyboard. I dislike the windows logo on my keyboard.
* 100% compatible and optimized hardware.
* Fedora Art on it.
* Linux native keys on the keyboard.

- Audio Player
* Plays open formats (ogg, webm, flac, etc)
* Upgradable (hdd, memory, processor, etc)
* Sync all (contacts, pictures, movies, music, etc)
* Share music (streaming, p2p, etc)
* Creative Commons Friendly (jamendo, libre.fm, etc)

- Phone
* Android and/or something tailored for it?
* SIP clients

- Camera
* Open formats
* shareable
* syncable

- T.V.
* Web enabled
* Upgradeable (hardware and software)
* Open Formats

I like the idea of generating an open hardware specification for these and some conceptual art. If you’re interested, please, lend me a hand. The idea rocks… to me at least ;)

]]>
http://blog.woralelandia.com/2011/10/24/fred-fedorared-hat-electric-devices/feed/ 2
LinuxCabal: Thank you, CloudSigma, for a wonderful year! http://blog.woralelandia.com/2011/10/19/linuxcabal-thankyou-cloudsigma/ http://blog.woralelandia.com/2011/10/19/linuxcabal-thankyou-cloudsigma/#comments Thu, 20 Oct 2011 04:26:11 +0000 Renich http://blog.woralelandia.com/?p=990 Continue reading ]]> Ah, yes, it’s been more than a year without downtime and that is because we host ourselves in CloudSigma.

I remember the first days, right after Rackspace and all. Richard Couture was very uncertain about “The Cloud”. He disliked Rackspace and kept saying: “I want a server I can touch!”. Well, after a year, I’d like you to hear him saying: “CloudSigma rules!”. He doesn’t miss a thing about real servers.

The service has been great and flexible as we need it. We even host a Mageia mirror thanks to CloudSigma.

This year, we started building our wiki and the PHPCabal, PythonCabal and ArduinoCabal communities.

Our website provides all kinds of info about our activities

Guadalajara owns them a lot. Our FOSS community is possible, in great part, thanks to them.

Thank you, CloudSigma, for the past year. We’re grateful. We, also, congratulate you for your grant U.S.A. opening. May you conquer the world and keep offering great KVM/Qemu virtualization options to the world.

If you like the poster, feel free to do whatever you want with it; as long as it stays under Creative Commons Unported 3.0 Share-Alike license. Also, feel free to share your work with me in my email: renich@woralelandia.com. The svg files will be at the link show bellow.

A poster with LinuxCabal, GNU, Tux and CloudSigma's logo; with a bottom liner saying: standing on the shoulders of giants

Creative Commons Poster

# Source files

http://downloads.woralelandia.com/design/2d/linuxcabal/

]]>
http://blog.woralelandia.com/2011/10/19/linuxcabal-thankyou-cloudsigma/feed/ 28
HowTo: Cómo alterar todas las tablas de una DB de MySQL http://blog.woralelandia.com/2011/10/08/howto-como-alterar-todas-las-tablas-de-una-db-de-mysql/ http://blog.woralelandia.com/2011/10/08/howto-como-alterar-todas-las-tablas-de-una-db-de-mysql/#comments Sat, 08 Oct 2011 10:05:15 +0000 Renich http://blog.woralelandia.com/?p=986 Continue reading ]]> Hoy necesité alterar las 130 tablas de una DB. Se hizo así:

#!/usr/bin/env bash

mysql -B -N -h mysql1 -u root --password="YourSuperPassword" my_db -e "show tables" | while read db; do
mysql -h mysql1 -u root --password="YourSuperPassword" my_db -e "alter table $db character set utf8 collate utf8_general_ci;";
done

exit 0

]]>
http://blog.woralelandia.com/2011/10/08/howto-como-alterar-todas-las-tablas-de-una-db-de-mysql/feed/ 0
HowTo: Cómo liberar la cache de RAM http://blog.woralelandia.com/2011/08/22/howto-como-liberar-la-cache-de-ram/ http://blog.woralelandia.com/2011/08/22/howto-como-liberar-la-cache-de-ram/#comments Mon, 22 Aug 2011 08:36:57 +0000 Renich http://blog.woralelandia.com/?p=945 /proc/sys/vm/drop_caches # Para liberar los dentries y los inodes: echo 2 > /proc/sys/vm/drop_caches # Para liberar todo (pagecache, dentries e inodes): echo 3 > /proc/sys/vm/drop_caches Ésta es … Continue reading ]]> A veces, necesitas el espacio:

# To liberar el pagecache:
echo 1 > /proc/sys/vm/drop_caches

# Para liberar los dentries y los inodes:
echo 2 > /proc/sys/vm/drop_caches

# Para liberar todo (pagecache, dentries e inodes):
echo 3 > /proc/sys/vm/drop_caches

Ésta es una operación no destructiva. Los objetos “sucios” no son liberables. El usuario debiera correr “sync” antes para asegurarse de que todos los objetos cacheados serán liberados.

Esta configuración fue agregada en la versión 2.6.16.

# Nota: Otra manera de hacerlo sería:
/sbin/sysctl -w vm.drop_caches=3

Gracias a Omar Briseño por su aportación. Por cierto, él dice que ésto afecta mucho las conexiones de tu firewall (se resetéan); así como la cache de tu proxy (se pierde) pero no lo he comprobado.

# Referencias

http://www.linuxinsight.com/proc_sys_vm_drop_caches.html

]]>
http://blog.woralelandia.com/2011/08/22/howto-como-liberar-la-cache-de-ram/feed/ 0
HowTo: Cómo forzar a un usuario a refrescar su password en el siguiente login http://blog.woralelandia.com/2011/08/05/howto-como-forzar-a-un-usuario-a-refrescar-su-password-en-el-siguiente-login/ http://blog.woralelandia.com/2011/08/05/howto-como-forzar-a-un-usuario-a-refrescar-su-password-en-el-siguiente-login/#comments Fri, 05 Aug 2011 15:57:38 +0000 Renich http://blog.woralelandia.com/?p=965 Continue reading ]]> Muy fácil; solo caduca el password. Ahora, si es un usuario nuevo, en Fedora, no puede hacer login sin password. Hay que asignar uno temporal:

# te haces root
su -

# creas un usuario
useradd renich

# le das un password temporal
passwd renich

# le caducas el password
chage -d 0 renich

En el siguiente login, renich tendrá que actualizar su password tras poner el password temporal que le asignaste. Si fuera un usuario existente, solo corre el último comando y voila!

]]>
http://blog.woralelandia.com/2011/08/05/howto-como-forzar-a-un-usuario-a-refrescar-su-password-en-el-siguiente-login/feed/ 0