Change default editor

Execute as root:

update-alternatives –config editor

Create (remove) links to init scripts

Use update-rc.d

Example: update-rc.d ssh defaults

Modify keyboard layout

Execute the following (as root):

dpkg-reconfigure console-data

Modify locales

Execute the following (as root):

dpkg-reconfigure locales

Power button don't work

If the power button don't shut the computer off, probably it's a permission problem with the file .ICEauthority. To determine the location of the file, manually execute the following command:


The above command will show something like that:

WARNING: ICE authority file /root/.ICEauthority is not readable by you!
Please check permissions or set the $ICEAUTHORITY variable manually before calling dcop.

Remove the offending file to fix the problem.