Una lista de comandos y trucos.

Comandos y trucos que siempre olvido

Administración de usuarios y grupos en Linux

1
2
3
4
5
6
7
useradd mombre_usuario
groupadd nombre_grupo
passwd mombre_usuario
cat /etc/passwd
cat etc/group
usermod -a -G nombre_grupo nombre_usuario # Agrega el usuario al grupo secundario
usermod -g nombre_grupo nombre_usuario # Cambia el grupo primario del usuario

Copia de archivos a un servidor remoto

1
2
rsync -avzu /ruta/local usuario@host:/ruta/en/servidor #Preserva usuarios, grupos, fechas
rsync -rvzu /ruta/local usuario@host:/ruta/en/servidor #No preserva usuarios, grupos, fechas

Como montar imágenes dmg en Linux

Primero, toca determinar si la imágen esta comprimida o no usando el comando file: $ file nombre_imagen.dmg. Si devuelve algo como VAX COFF executable not stripped – version 376, la imágen está comprimida. Si devuelve algo como Macintosh HFS Extended version 4 data, la imágen no está comprimida.

Para montar una imágen no compprimida:

1
2
modprobe hfsplus
mount -t hfsplus -o loop nombre_imagen.dmg /media/nombre_imagen

Y para montar una que no esté comprimida:

1
2
3
dmg2img -i nombre_imagen.dmg -o nombre_imagen-uncompressed.img
modprobe hfsplus
mount -t hfsplus -o loop nombre_imagen-uncompressed.img /media/nombre_imagen/nom

Running PureData patches on a Beagle Board.

PureData patch Running on a BeagleBoard from Rafael Vega on Vimeo.

If you don't want to read the whole thing and just want to play a PD patch on your
BeagleBoard, read part 2 of this article.

0. Motivation.

  1. There is a large number of open-source software tools for working with audio. From low level programming tools to full-fledged digital audio workstations. On another side, there are musicians, producers and sound designers who use many hardware tools and there are few open-hardware alternatives for musical applications.

  2. Audio designers, musicians and producers don't usually have software development skills and need graphic tools for audio processing. Many of them want to take their algorythms to stage or to the studio "in a box".

This is a small step towards the possible development of an open and portable audio processing platform.

Continue reading

PEAR en Mac OS Lion.

Pear es un comando que sirve para instalar paquetes de php. Así se activa en Mac OS Lion:

1
2
sudo php /usr/lib/php/install-pear-nozlib.phar
sudo pear upgrade pear

Y en php.ini:

1
include_path = ".:/php/includes:/usr/lib/php/pear"

Luego para instalar algún paquete (PHPUnit, por ejemplo):

1
2
3
4
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover pear.symfony-project.com
sudo pear channel-discover components.ez.no
sudo pear install phpunit/PHPUnit