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 Wed, 09 May 2012 14:47:50 +0000 es hourly 1 ZendFramework HowTo: Cómo escuchar un disco http://blog.woralelandia.com/2012/05/09/howto-como-escuchar-un-disco/ http://blog.woralelandia.com/2012/05/09/howto-como-escuchar-un-disco/#comments Wed, 09 May 2012 14:47:50 +0000 Renich http://blog.woralelandia.com/?p=1041 Continue reading ]]> Hola,

Por si no lo sabes, postéo mis HowTos para recordar como hacer las cosas.

Hoy, recordaba lo bonito que era ir a comprar un disco que me gustaba. Me costaban de $100 a $200 pesos en ProAudio; en Ciudad Cuauhtémoc. Normalmente, no sabía qué compraba. Me iba, generalmente, por el disco nuevo de artistas que parecieran gustarme. No pre-escuchaba nada; no había YouTube o Internet en mi rancho. Es más, no tenía ni MTV para ver qué estaba chido.

No se parece nada a lo que hago hoy. Hoy, voy a Jamendo, busco un artista de estilo determinado (rock, industrial, instrumental, game, 8bit, etc) y me pongo a escuchar fragmentos. Los pongo en una playlist y, eventualmente, cuando trabajo, pongo alguna y no le presto mucha atención.

No me sé los nombres de los artistas. Tampoco los de las canciones. Solo oigo una pre-selección rápida… o pongo la radio (peor!)

Bien, entonces comienza el HowTo:

# Encontrar un disco que me dé buena espina por su arte, su título y el nombre de la banda.
# Prepararme una buena botana y una buena bebida.
# Apagar la luz.
# Cerrar los ojos. Alternativamente:
## Admira el arte del disco.
## Lée el nombre de la rola que estés escuchando
## Lée la letra (si la hay).
# Ir por mis audífonos de buena calidad.
# Dedicar 1 hora para escuchar detenidamente los tracks del disco; dejándome llevar por la música.
# Repetir dos o tres veces; en diferentes días, para aprender cuales son las que realmente me gustan.

Esta actividad se puede realizar en conjunto. Haz lo mismo, pero con tus amigos. No es imperativo apagar la luz, pero si es muy importante:

- Que el sonido esté de primera.
- Que no te distraiga algo como una red social, el cel, tu mamá, tu novia o el televisor.
- Que aprendas el nombre del disco, del artista y de las rolas.

Dedícale todo el tiempo y atención al disco que escuches. Así, disfrutarás mucho más tu música y te interesarás por el nombre del artista y los nombres de los tracks.

Ahora, te dejo con el link a mis discos. Te recomiendo empezar por: “Dos por 10″: http://www.jamendo.com/en/artist/renich

]]>
http://blog.woralelandia.com/2012/05/09/howto-como-escuchar-un-disco/feed/ 1
HowTo: Use zram on Fedora 16 http://blog.woralelandia.com/2012/02/12/howto-use-zram-on-fedora-16/ http://blog.woralelandia.com/2012/02/12/howto-use-zram-on-fedora-16/#comments Sun, 12 Feb 2012 06:41:18 +0000 Renich http://blog.woralelandia.com/?p=1037 Continue reading ]]> Ok, this one is badly documented. Even the kernel docs are outdated.

Here’s how to start using zram on Fedora 16:


# get rpmfusion: http://rpmfusion.org/Configuration
...

# install the staging kmod
su -c 'yum install kmod-staging'

# get zram running (aha!)
su -c 'modprobe zram zram_num_devices=4'

# define the block's size (512 MB each)
echo $((512*1024*1024)) > /sys/block/zram0/disksize
echo $((512*1024*1024)) > /sys/block/zram1/disksize
echo $((512*1024*1024)) > /sys/block/zram2/disksize
echo $((512*1024*1024)) > /sys/block/zram3/disksize

# do some swap initialization
mkswap /dev/zram0
swapon /dev/zram0

mkswap /dev/zram1
swapon /dev7zram1

# create a filesystem on the others ( btrfs ;) )
mkfs.btrfs /dev/zram[34]
mkdir /mnt/zram
mount /dev/zram3 /mnt/zram

# do some testing!
...

# check out some stats
cat /sys/block/zram3/*

Have fun with it!

# references

http://code.google.com/p/compcache/

http://mystilleef.blogspot.com/2011/10/enable-zram-in-fedora.html

]]>
http://blog.woralelandia.com/2012/02/12/howto-use-zram-on-fedora-16/feed/ 2
HowTo: Appfirst with SELinux enabled http://blog.woralelandia.com/2012/02/11/1032/ http://blog.woralelandia.com/2012/02/11/1032/#comments Sun, 12 Feb 2012 05:42:06 +0000 Renich http://blog.woralelandia.com/?p=1032 Continue reading ]]> Ok, first off, I hate people that say “turn off SELinux”… man, those idiots might as well tell you to turn off your firewall and open up your servers to the world.

This sounds like a nice gesture but, in today’s internet, it’s a shortcut to online suicide.

Anyway, here’s a mini-howto on how to generate your appfirst policy. This might require that you do it yourself since you might have different plugins/modules/whatever configured.

Anyway, here it goes:

# install the nice tools you need
su -
yum install -y setools-console policycoreutils-python

# remove the selinux_chk from /etc/init.d/afcollector.
...

# clean your audit.log
cat /dev/null > /var/log/audit/audit.log

# start app first while selinux is active
service afcollector start

# wait for it to start and generate a few selinux warnings (and get denied)
...

# now, set enforce off
setenforce 0

# generate a good policy
cat /var/log/audit/audit.log | audit2allow -M appfirst

# activate it
semodule -i appfirst.pp

# set selinux up again
setenforce 1

# check for errors
seaudit-report /var/log/audit/audit.log

# done!

You can copy your appfirst.pp to all your servers. It’s untested but it has worked fine so far for me! ;)

I got this file. Please, comment on it.


# cat appfirst.te

module appfirst 1.0;

require {
type unconfined_t;
type initrc_state_t;
type consoletype_t;
type proc_t;
type user_tmpfs_t;
type systemd_passwd_agent_t;
class process execmem;
class shm { write unix_read getattr unix_write associate read };
class file { write getattr read open };
}

#============= consoletype_t ==============
allow consoletype_t initrc_state_t:file read;

#============= systemd_passwd_agent_t ==============
allow systemd_passwd_agent_t initrc_state_t:file { read getattr open };
allow systemd_passwd_agent_t proc_t:file { read getattr open };
allow systemd_passwd_agent_t self:process execmem;
allow systemd_passwd_agent_t unconfined_t:shm { write unix_read getattr unix_write associate read };
allow systemd_passwd_agent_t user_tmpfs_t:file { read write };

-- end of file; don't copy this --

p.s. never turn off SELinux; that’s major idiot’s way!

]]>
http://blog.woralelandia.com/2012/02/11/1032/feed/ 11
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/ 8
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