četrtek, 28. marec 2013

Initialize DB2 environment in cmd

Usually when I want to work with DB2 on Windows I run db2cmd, so the DB2 environment gets initialized. However this does not work if I'm connected to a Windows machine via SSH, since db2cmd opens new cmd window.
Solution to this problem is typing "db2cmd -i -w db2clpsetcp" in cmd. Wihout quotes of course.

sobota, 23. marec 2013

Ubuntu: Make F10 work in Midnight Commander

If you are using Unity and Midnight Commander in gnome-terminal then F10 gets send to the terminal program not the Midnight Commander.
Here are the steps to correct this:

  1. install compizconfig-settings-manager
  2. run it
  3. go to "Ubuntu Unity plugin"
  4. disable "Key to open first panel menu"
  5. go to terminal menu Edit - keyboard shortcuts and disable "Enable the menu shortcut key (F10 by default)"
  6. paste this code into terminal (https://bugs.launchpad.net/ubuntu/+source/unity/+bug/726639/comments/18):

mkdir -p ~/.config/gtk-3.0
cat< ~/.config/gtk-3.0/gtk.css
@binding-set NoKeyboardNavigation {
     unbind "F10"
}
* {
     gtk-key-bindings: NoKeyboardNavigation
}
EOF

Ubuntu: How to change the location of various default directories


If you want to change the location of the Desktop, Documents, Download, ... directories:
vi ~/.config/user-dirs.dirs