June 16, 2012

Arch Linux: logging system in hangs up

    After installing 'kdebase' package on an Arch Linux having just minimalistic 'base' packages group, you may found that starting KDE hangs up and such message in '~/.xsession-errors' appears:
QDBusConnection: session D-Bus connection created before QCoreApplication.
Application may misbehave.
    It can appear even if you have DBus daemon installed. The solution is to install missing in dependencies DejaVu font running command:
sudo pacman -S ttf-dejavu

June 11, 2012

Hunspell ukrainian and russian dictionaries

Download dictionaries:
Move to a proper directory:
sudo mv ./hunspell-uk_UA/* /usr/share/hunspell/
sudo mv ./hunspell-ru_RU/* /usr/share/hunspell/
Change files' mod
cd /usr/share/hunspell/
sudo chmod 644 uk_UA.* ru_RU.*

June 03, 2012

Netbeans with KDE

Uniform Look for Qt and GTK Applications. I know, your linux distro may be not Arch Linux, but the plot is the same. Oxygen-gtk works very Ok. If you really don't get how to do that, just install oxygen-gtk, go to "System Settings->Lost and Found->GTK style":

Open "GTK style" setting dialog and select "oxygen-gtk":

Open your "netbeans.conf" file. It's located at "etc" subdirectory of your Netbeans' main directory. If your Netbeans' location is
then config file will be located at
Find "netbeans_default_options" variable.
Add this parameter
--laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel
to the end of variable's declaration. Use space to separate it from other parameters.
Launch Netbeans and enjoy.

June 01, 2012

Install True Type Fonts on Linux

Navigate to the directory, where TTF fonts are placed.
Create a directory for fonts (if not exists):
# mkdir /usr/share/fonts/truetype
Move the font files to the new font directory:
# mv *.ttf /usr/share/fonts/truetype
Navigate to the font directory:
# cd /usr/share/fonts/truetype
Create fonts.scale and fonts.dir:
# mkfontscale && mkfontdir
# fc-cache