Where service_name is the name of the service that I want it starts at boot time or take it off..

To start at boot time

#update-rc.d service_name defaults

To remove it from boot

#update-rc.d -f service_name defaults


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)


There are many classes of applications which have many programs that can be used, Debian allows you to choose which particular alternative you wish to be used, globally. This covers a set of programs such as: text-editor, web-browser, windows-manager, x-session-manager, etc.

The way it works is to have a set of standard command names such as editor, www-browser, and view. Each of those commands are merely symobilic links to the real command.

For example assume you have both the vim and emacs21 packages installed. To handle this a program that wishes to allow you to edit a file merely runs:


This is a symbolic link which links to:


This in turn links to the real editor, either vim or emacs in our example.

So, to set you preferred text-editor, you could update the symbolic links by hand, but the preferred approach is to run:

$update-alternatives --set editor /usr/bin/emacs21

To list which are the options you have:

$update-alternatives --list editor

You can set other applications, replacing editor by: x-www-browser, x-session-manager, etc.


  • 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 .