Archive for November 2011

To activate “click on tap” for your touchpad, edit /usr/share/X11/xorg.conf.d/50-synaptics.conf and replace the content of the file with the following:

Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "VertEdgeScroll" "1"

I feel embarrased because I used to put previous lines on my .bashrc ๐Ÿ˜ฆ but anyway I realized the right way to do that ๐Ÿ™‚

Today, I was installing my both lovers: Debian and Archlinux ๐Ÿ™‚ on my laptop. After finishing the installation process, I rebooted and.. Grub gave me its famous error: "ยป [SOLVED] Grub Error 15: File Not Found" arrrrggg… so
Troubleshooting time!.. The thing is:

I have the following partitions in just one disk:
* 2 volume groups: vg_debian and vg_archlinux.
* 2 boot partitions: /dev/sda1 and /dev/sda4.

1. Rebooting operating system with a rescue cd.

2. Installing lvm in case it is not installed on the rescue cd.

3. Logical volumes should now be located in /dev/mapper If you cannot find them, use the next commands to bring up the module for creating device nodes and to make volume groups available:

# modprobe dm-mod
# vgscan
# vgchange -ay

4. Listing grub configuration on /boot/grub/menu.lst

cat /boot/grub/menu.lst
title Debian GNU/Linux
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/vg_debian-lv_raiz ro
initrd /boot/initrd.img-2.6.32-5-amd64

title Archlinux
root (hd0,3)
kernel /vmlinuz-linux root=/dev/mapper/vg_archlinux-lv_raiz ro
initrd /initramfs-linux.img

So.. what was the error??.. replace /boot/ y /, if not Grub find kernel on /boot/boot/ and.. of course it doesn’t exist!

5. After modification, save file, reboot and.. taraaaa!!! it works!

Badblocks: is used to search for bad blocks on a device. ๐Ÿ™‚
Assuming the faulty disk is: /dev/sdb1

# badblocks -o output_bad_blocks /dev/sdb1

If the disk is healthy, the output_bad_blocks file will be clean. If not, it will have a list of bad blocks. Which is very useful, because you can pass that file as parameter on mkfs tool to say it wont use it on time of creating filesystem ๐Ÿ˜‰

Sometimes we need to kill a user session and all processes owned by this user (PIDs).

1. Kill a user session

$ sudo pkill -9 -u username


# pkill -9 -u username

2. List user’s processes

$ pgrep -u username


$ ps -fp $(pgrep -d, -u username)

  • None
  • analialorenzatto: Buzz is just a host name for this example, it doesn't have any relation to the topic. Instead of being "Buzz", could be whatever name.
  • fridelain: >buzz What's the story behind this host name? Actully running buzz, once running buzz and upgraded many times since, or unrelated to debian naming
  • Pratik: Nice, but I would change it to include more directories. Like my .mozilla and .kde4 by using .{config,mozilla,kde4} instead of just .config .