The Java plugin for Firefox is activated if Firefox finds a symlink to libnpjp2.so in its plugins folder.

  1. Locate the plugins directory of Firefox. You may either use the per-profile or the global directory. In my case these are
  2. Locate the path to your JRE’s browser plugin:
  3. Remove any existing (links to) Java plugins from the plugins folders.
  4. Create a symbolic link to the plugin:
  5. Restart Firefox and verify that the plugin is recognized by opening about:plugins .

References

  • [1] Original instructions

I like to have system messages (such as those by apt-get) to be in their original language – English – while the rest of my localization should be for German. In KDE, this can configured in System Settings -> Locale or with

But even after selecting “American English” as my favorite language, the results of apt-get remained in German, probably because these settings only affect KDE applications. Only after changing the LC_MESSAGES locale property to POSIX, these messages appeared in English.

The changed locale is reflected by the locale command after the next restart:

 

 

Recently, when connecting an external monitor to my laptop, KDE turned off both displays, which sometimes even endured when disconnecting the monitor. Resetting the display configuration on the command line helped: Before plugging in the video cable, I opened a terminal and typed the following command:

After both screens had become black, I pressed Enter and the desktop re-appeared on the laptop screen and I could continue configuring with the regular Display Configuration:

 

The standard shortcut for killing the X server is (was) Ctrl-Alt-Backspace, but it has been disabled by default in Ubuntu for a while. However, it can easily re-enabled in the KDE system settings (command: systemsettings) under

Input Devices -> Keyboard -> Tab: Advances -> Checkbox: Key sequence to kill the X server

The touchpad of the Lenovo Y510p laptop has no extra mouse buttons, but only soft-buttons below the surface. With the default settings, Kubuntu 14.04 recognizes a click on a soft-button additionally as move of the cursor, which led to imprecise behavior of the curosr.

KDE uses synaptiks to configure the touchpad. The option AreaBottomEdge can be used to set the y position of the bottom of the touchpad area (see man synpatiks for details).

It is sensible not to change the original synaptiks configuration, but to work with a copy, because the configuration file may be overridden by other tools:

In the new file, add the AreaBottomEdge option to the input device with identifier “Default clickpad buttons”. For me, it worked well with an area of 20% for the soft buttons.

The new settings will be read when the X server gets restarted (e.g. by pressing Ctrl-Alt-Backspace, if enabled).

If everything works fine, the new option is reflected in /var/log/Xorg.0.log after the next start of X:

 

When dd is done with copying data, it prints statistics that show the amount of copied data and the transfer rate such as in the following example:

When dd receives the signal USR1 while it is running, it prints its current progress in the same format. For testing, start a process that copies data from /dev/zero to a new file (/tmp/fileWithZeros) indefinitely:

Afterwards, open second terminal and execute

In the first terminal, dd prints transfer statistics to standard error. The process can be automatized with the following command (e.g. every 3 seconds)

References

  • [1] Detailed description of dd in Wikipedia
  • [2] Blog article with instructions how to send the USR1 signal to dd

The new file indexing system baloo appears quite unpopular because many users cannot figure out its benefits and see the tremendous amounts of disk space that it uses.

The question of how to stop baloo has already been widely discussed (e.g. on Stackoverflow) and the simplest solution is to open ~/.kde/share/config/baloofilerc and turn Indexing-Enabled=true into Indexing-Enabled=false:

This will take effect on the next restart. If you want to stop baloo immediately, you need to kill its processes baloo_file_cleaner, baloo_file, baloo_file_extr.

Afterwards, the already created index files can be deleted by removing the contents of ~/.local/share/baloo.

Apparently, another method to stop baloo is to exclude the home directory from indexing as described here.

References

  • [1] Discussion and solution ideas on askubuntu.com

In KDE, you can toggle display effects (such as transparency, dynamic preview during window tabbing,…) by pressing Alt+Shift+F12. I actually liked mos t effects, but one annoying thing is that Gwenview turns almost completely transparent, making it hard to recognize anything within the window.

I finally found out how to solve this issue:

  1. Start Gwenview
  2. Right-click title bar (or press Alt+F3)
  3. Select More Actions -> Special Application Settings
  4. In the tab Appearance and Fixes, you can configure the Active Opacity to 100% (totally intransparent) or uncheck the entry (both worked for me).

References

  • [1] OpenSUSE guide to KDE – KDE Workspace

This article summarizes how to set up xdebug for Apache 2.

Use apt-get to install xdebug from the package repositories. This will also enable xdebug for command line php.

Additionally, I had to manually configure the time zone (sudo vim /etc/php5/apache2/php.ini):

By default, xdebug is not set for remote debugging. You need to activate it (run sudo vim /etc/php5/apache2/conf.d/20-xdebug.ini):

After you’re done with the configuration, restart Apache server:

Testing in shell

In order to test your installation run the following command:

Afterwards, search for xdebug by typing “/xdebug”.

Testing in browser

Place a file phpinfo.php in your web server’s directory and add the following content (set appropriate rights to execute it!):

Open up the corresponding URL (e.g. http://localhost/phpinfo.php) and search for xdebug.

Netbeans

For use with Netbeans, you need to correct the debugging session ID. Open the xdebug.ini file:

Then, add the following line. Make sure, the ID is literally the same as in the Netbeans preferencese:

References

  • [1] Installing xdebug for PHP5 on Ubuntu
  • [2] Wizard that generates installation instructions for xdebug (not specific to Ubuntu)