Eclipse / Zend Studio crashing on New project on Ubuntu KDE

Posted August 30th, 2015 in Razno by Metod

If you are using the latest stable versions of either Eclipse or Zend Studio on Ubuntu with KDE installed you might have run into some trouble along the way. If you have oxygen theme installed the IDE will crash whenever you want to create a new project. Or maybe the close buttons won’t work. Plenty of problems.

However there is a simple solution which I found digging around the comments in bug reports.

For oxygen, edit the normally already existing file “/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc” and change
GtkComboBox::appears-as-list = 1
into
GtkComboBox::appears-as-list = 0

Works like a charm!

All credit goes to Axel Müller for pointing to the original comment made by Hugo Pereira Da Costa.

P.S.: The workaround for this is quite old. However since google search does not provide the straight up answer and the problem persists in latest Ubuntu 14.04 LTS I have decided this is worth a post.

Setup ssh-agent in KDE in Ubuntu

Posted May 28th, 2011 in Razno by Metod

I began toying around with KDE desktop since I got tired of Gnome. I wanted to try something new and shiny. Everything went great, it is highly customizable etc. Only one thing did not work. When ssh-ing to a server it did not ask me for keychain password anymore. So how to fix that?

First, if you don’t already have it installed, install ssh-askpass:

  1. sudo apt-get install ssh-askpass

Ok, now that that is installed, we must ensure that it asks us for password everytime we log on. For KDE we have to create a script inside ~/.kde/Autostart/ directory.

  1. #!/bin/sh
  2.  
  3. export SSH_ASKPASS=/usr/bin/ssh-askpass
  4. ssh-add < /dev/null

askpass.sh

You can also specify the name of the key file:

  1. ssh-add ~/.ssh/some_other_key < /dev/null

The startup script has to be correctly chmod-ed:

  1. chmod 755 askpass.sh

Now log out and log in again and it should ask you for password. Happy ssh-ing. :)