Some #!crunchbang customizations

Here are some little tweaks I employed to adapt my #!crunchbang system.

Disable System Beep:

1. Add the following to /etc/modprobe.d/blacklist:

blacklist pcspkr

2. Reboot or do:

sudo rmmod pcspkr

Customize default apps:

1. Install the package libfile-mimeinfo-perl.

2. In a terminal, invoke the mimeopen command like this:

mimeopen -d /path/to/file

E.g. you want VLC to open .mkv-files. Type:

mimeopen -d /path/to/my.mkv-file

Then select VLC from the appearing list. Done!

Change default language:

1. In a terminal type:

sudo dpkg-reconfigure locales

2. Choose your preferred language.

3. Log out and back in.

Short appendix (7dez11):

Another way to change system language is to edit /etc/default/locale:

sudo vim /etc/default/locale

Then change:


to e.g.:


or e.g.:


or whatever you want.

Save the changes. Reboot. Enjoy.

Turn on numlock by default:

1. Install numlockx with apt or synaptic.

2. Open /home/user/.config/Openbox/autostart

3. Add:

numlockx on &

4. Save.

Install Nvidia proprietary driver:

Tested nov11. Worked fine. No guarantee though.

1. Add the unstable repositories to your source list. Open your source list by running:

sudo vim /etc/apt/sou*

Then add:

deb http://http.us.debian.org/debian/ unstable main contrib non-free

deb-src http://http.us.debian.org/debian/ unstable main contrib non-free

2. Run the following in order:

apt-get update

apt-get -t unstable install nvidia-kernel-source

m-a a-i nvidia-kernel-source

apt-get -t unstable install nvidia-glx

apt-get install nvidia-xconfig


3. Open your source list again, and comment out the unstable repositories.

#deb http://http.us.debian.org/debian/ unstable main contrib non-free

#deb-src http://http.us.debian.org/debian/ unstable main contrib non-free

Otherwise the next time you run an update, you might upgrade from Squeeze to Sid. Reboot, and you’re done (hopefully).

(Source: https://rustyshacklefordslibrarycard.wordpress.com/tag/drivers/ 28nov11)

Use Virtualbox on #!crunchbang or debian:

1. In a terminal type:

sudo adduser your-user-name vboxusers


sudo usermod -a -G vboxusers your-user-name


if [ "`grep vboxusers /etc/group|grep $USER`" == "" ] ; then sudo usermod -G vboxusers -a $USER ; fi

2. Add in /etc/fstab:

none /proc/bus/usb usbfs devgid=xxx,devmode=664 0 0

Where xxx is the 3 digit number in the result of the following command:

grep vbox /etc/group

3. Reboot

Mount nfts formatted usb-flash-sticks without admin-rights:

Sometimes when you install #!crunchbang it writes mountpoints into fstab for mounting removable usb devices. This does not happen always. And I don't know why or when. The point is, when it happens you cannot mount removable usb-flash-drives with a ntfs partition as a normal user.

To solve the problem just remove or better comment out the following lines in /etc/fstab:

/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0

/dev/sdg1 /media/usb1 auto rw,user,noauto 0 0

/dev/sdh1 /media/usb2 auto rw,user,noauto 0 0

So it looks like this:

#/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0

#/dev/sdg1 /media/usb1 auto rw,user,noauto 0 0

#/dev/sdh1 /media/usb2 auto rw,user,noauto 0 0

!Please be careful with what you comment out or delete! It might be your system won't boot any more if you do something wrong!

Save and reboot.

Now it should work without any further ado.

Close windows with a middle click on tint2 panel:

The default tint behavior is to bring a window to the foreground or to minimize or maximize a window no matter if you do a right, left or middle click with your mouse.

To define an action to close a window - open the file /home/user/.config/tint2. Scroll down to:

# Mouse

mouse_middle = none

mouse_right = toggle

mouse_scroll_up = toggle

mouse_scroll_down = iconify

Change "none" to "close" like this:

mouse_middle = close

That's it.

Install Appfinder for finding apps:

If you don't want to edit your menu config file too often and fear you wont remember what you already have installed – fear no longer - install xfce4-appfinder. You can do so via synaptic or apt. The only drawback is you have to install xfdesktop4 with some more dependencies to get it working.


Xfce panel customization:

I like to use the Xfce panel as a program launcher that auto-hides (just install xfce4-panel). Usually I place it on the left hand side of the desktop. (A little bit like the Unity-panel.) Unfortunately the default crunchbang-theme only looks good when placed on bottom or top. Left or right hand side it looks kind of tiled.

To change this you have to go to /usr/share/themes/statler/gtk-2.0/images and change the image file panel-bg.png to your liking. E.g. with gimp.

Better make a backup of the original file if you want to revert back one time!

So that's my To-Do-List. Enjoy.