Administra tu Blog

¡Crea tu Blog Ya! Fácil y Gratis

Trasteando voy,trasteando vengo y por el camino yo me entretengo!!!

Categoría: GNU/Linux

02/01/2007 GMT 2

Script para convertir imagenes a 800x600 con imagemagick

jony @ 13:28

#!/bin/bash
if [ $# -eq 0 ]; then
echo 'Script para convertir las fotos de un directorio a 800X600';
echo 'deja el resultado en una carpeta llamada txikis';
echo 'Usage: ' $0 ' ';
else
cd $1;
mkdir txikis;
for file in *
#hacer para cada fichero del directorio
do
#convierte cada fichero del directorio y lo deja en txikis
#-resize 480001@ --> para que tenga tamaño 800X600 o 600X800 --> 480000 pixeles
#-quality 75 --> para rebajar la calidad y disminuir el tamaño
convert $file -resize 480001@ -quality 75 txikis/$file
done
fi

Montar carpetas de linux en varios sitios

jony @ 13:27

añadimos esto a /etc/fstab

/almacen/ii /home/user/ii auto rw,users,bind,auto 0 0

17/11/2006 GMT 2

Backup de Evolution

jony @ 00:46

bueno, acabo de mirar como hacer backup de evolution ...

de esta forma creo

http://ubuntu.wordpress.com/2005/12/03/how-to-backup-evolution/

How to Backup Evolution

December 3, 2005

Posted by ubuntonista in ubuntu, guides. trackback

From an old mailing list gem, I got the right method to back up your Evolution (mail + calendar + contacts) data the right way:

Step 1:

Shutdown evolution and gconftool-2:

$ gconftool-2 --shutdown

$evolution --force-shutdown

Step 2:

Create an archive with the data and configuration files:

Note: To completely save the Evolution data and configuration, you need to save the following directories/files:

1. ~/.evolution/

2. ~/.gconf/apps/evolution/

3. ~/.gnome2_private/Evolution

The following command will take care of these

$cd

$tar -cvzf evolution-backup.tar.gz .evolution .gconf/apps/evolution .gnome2_private/Evolution

Now the file evolution-backup.tar.gz is the backup you want. You can move the data over to another Ubuntu computer if you like, and just un-tar the archive while in your /home/username/ directory to restore it.

http://www.flevour.net/node/7

Export account from Evolution

Always wondered where Evolution stores your account data? Are you stuck in the need to move your 154-configured-evolution-accounts to a new box Did you pass last 7/8 hours grepping through all ~/evolution and ~/.evolution subdirs to find out?

Well, answer is as simple as looking at ~/.gconf/apps/evolution/mail/%gconf.xml.

Hope this helps some Google-before-asking users.

Cheers.

28/10/2006 GMT 2

crear paquetes .deb con sources

jony @ 14:22

inigo me lo hago con un script
inigo makedeb compilar
inigo es un megaescript
inigo makedeb unpack
inigo makedeb pack
inigo makedeb compile
inigo makedeb check
inigo descomprime
inigo crea
inigo compila
inigo y comprueba que no existan conflictos
inigo lo uso para todo
jony jajajaj
inigo ya lo publicare algun dia
jony no utilizas paquetes que haya por ahi?
inigo a si claro
inigo siempre que puedo ;)

CVS como

jony @ 14:21

p>CVS debian

cvs sourceforge info

Juggler/CvsBranches

It helps a lot to have a good .cvsrc file

cvs -z 3
update -Pd
checkout -P
diff -u
rm -f

Acceso de sólo lectura:

$ export CVSROOT=:pserver:anonymous@cvs.sourceforge.net:/cvsroot/vrjuggle
$ cvs login
$ cvs -z3 co vrjuggler

MBR copiar, salvar

jony @ 14:20

you could do:

dd if=/dev/hda of=bootsect.hda1 bs=512 count=1

if you want to recover later you do:

dd if=bootsect.hda1 of=/dev/hda bs=512 count=1

Once you have Linux running you can save the boot record with the command: dd if=/dev/hda of=/boot/boot.MBR bs=512 count=1 It can then be restored with: dd if=/boot/boot.MBR of=/dev/hda bs=512 count=1 or if you do not want/need to overwrite the partition table with: dd if=/boot/boot.MBR of=/dev/hda bs=446 count=1 as the partition table is kept in the last 66 bytes of the MBR.

reinstalar grub

jony @ 14:19

bueno, copio la imagen lin de partimage …

luego monto esa particion en /mnt/lin

luego

chroot /mnt/lin /bin/bash (*/bin/bash sera el shel a ejecutar*)
grub-install /dev/hda

Archivo | ¡Crea tu Blog Ya! Fácil y Gratis