Posts Tagged ‘linux’

How to encrypt your USB extarnal devices

Saturday, October 11th, 2008

based and thanks to http://feraga.com/node/51

FIRST: detect your device name using dmesg (you should be familiar with this). For example, in my company they bought a comstar 160GB usb external device, and I see it under /dev/sdc1

# Install cryptsetup with LUKS (under linux2.6)
apt-get install cryptsetup

# Create the encrypted partition
cryptsetup luksFormat /dev/sdc1

# Map it to a device mapper
cryptsetup luksOpen /dev/sdc1 comstar

# Give it a FS of your choice
mkfs.ext3 /dev/mapper/comstar

# Make the mount point and mount the device
mkdir /media/comstar
mount /dev/mapper/comstar /media/comstar

# That’s all? -yes. Now, just for test:

# Umount the device
umount /media/comstar

# Close the encrypted partition
cryptsetup luksClose /dev/mapper/comstar

# Open and mount again, etc…
cryptsetup luksOpen /dev/sdc1 comstar
mount /dev/mapper/comstar /media/comstar

/usr/bin/ld: crti.o: No such file

Wednesday, August 6th, 2008

Typical libc6-dev missing, example:

$ sudo invoke-rc.d varnish start
Starting HTTPd accelerator: /usr/bin/ld: crti.o: No such file: No such file or directory
collect2: ld returned 1 exit status
pclose=256
Internal error: GCC returned 0×0100
invoke-rc.d: initscript varnish, action “start” failed.

Solution:

$ sudo apt-get install libc6-dev

Specially you Mr. politician

Monday, August 4th, 2008

Read sudo msg once or twice a year:

“We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.”

xmonad + GNOME

Sunday, June 8th, 2008


Finally I feel comfortable with my desktop.
I was using xmonad for a couple of months but I wasn’t liking with the ways I had to show a desktop bar, I was using dzen2 but with no time to put all the gadgets and things I need / like. So in the first free time I had I tried it with GNOME. Try it you too! it’s very easy to configure (with xmonad 0.7) Ah! one last important thing: if it doesn’t work at the first attemp, try to remove your .gnome and .gnome2 directories

pppacc (Plugin para pppd para manejo de quotas)

Thursday, April 5th, 2007

En breve subiré el programa, las indicaciones de instalación de su creador, y los errores que he tenido al intentar usarlo.

Instalación de glassfish en debian

Saturday, March 31st, 2007

La guía de instalación en la página de glassfish está perfecta (https://glassfish.dev.java.net/downloads/v2-b33.html) lo único que me gustaría agregar es que el glassfish queda en el directorio donde fue instalado y no se si se puede mover de allí (yo no lo intenté) así que yo aconsejo que ya lo instalen donde el mismo quedará; por ejemplo pongan el .jar en /usr/share que luego el propio instalador genera un subdirectorio llamado glassfish.
Opino que es una buena práctica al brindar un instalador advertir en algún lado al menos los directorios que se van a crear, a mi como usuario me gustaría saberlo ;)