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

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

June 03, 2012

Netbeans with KDE

1
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":

2
Open your "netbeans.conf" file. It's located at "etc" subdirectory of your Netbeans' main directory. If your Netbeans' location is
~/netbeans-7.1/
then config file will be located at
~/netbeans-7.1/etc/netbeans.conf
3
Find "netbeans_default_options" variable.
4
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.
5
Launch Netbeans and enjoy.

June 01, 2012

Install True Type Fonts on Linux

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