Total Pageviews

Monday, June 25, 2007

Gnome Keyring without password

Everytime I login into my Ubuntu (Feisty) system the Gnome Keyring Manager asks for the password I already provided when logging into the system (via gdm).
This can be skipped by doing the following steps:
  1. apt-get install libpam-keyring
  2. Edit file /etc/pam.d/gdm and insert the following snippet

@include common-pamkeyring

Note: This does not work if you have enabled automatic or timed login!


Monday, May 28, 2007

MySQL Server only accessible from localhost

Yesterday I spent some time figuring out why my MySQL Server doesn't accept remote connections anymore. I was not able to connect from any other machines in my local network except from the machine running the server (localhost).
It turns out to be a problem in the MySQL configuration file. The option bind-address was set to 127.0.0.1, which means the server was only listening locally.
The solution is to comment out the "bind-address" line and restart the server. This may be a security risk, because the server is now accessible from any host.
I assume this modification in the MySQL config file was made during a Debian update process.

Saturday, May 12, 2007

Running Confluence and Jira in the same JBoss AppServer


I recently wanted to get rid off several Standalone distributions of web applications hosted on my server at home. Each web application is using its own Tomcat Servlet container and is consuming memory and cpu due to the fact that each container is running in its own JVM.
Jira was already running on my JBoss 4.0.4GA instance and I wanted to deploy Confluence 2.5.1 in the same instance. It turns out to be not that easy, because there are a few problems with the classloading mechanism JBoss is using.
But after a few minutes I found the solution on Confluence great documentation site. The comments from Lindsay Smith and Gerald MacKenzie in this article gave me the hints about what to do to run both software products in a single JBoss instance.
Here we go (For a complete list of tasks for upgrading or installing Confluence take a look at Atlassians Homepage. The following steps describe only the procedure to build a Confluence WAR archive that is deployable in a JBoss container next to an existing JIRA WAR archive!):
  1. Unpack the new confluence WAR version in a directory called $NEW_CONFLUENCE_INSTALL_DIR
  2. Delete file: $NEW_CONFLUENCE_INSTALL_DIR/confluence/WEB-INF/classes/log4j.properties
  3. Delete file: $NEW_CONFLUENCE_INSTALL_DIR/confluence/WEB-INF/lib/commons-logging.jar
  4. Delete file: $NEW_CONFLUENCE_INSTALL_DIR/confluence/WEB-INF/lib/log4j.jar
  5. Create the file $NEW_CONFLUENCE_INSTALL_DIR/confluence/WEB-INF/jboss-web.xml with the following content
     <?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE jboss-web PUBLIC-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">  
     <jboss-web>  
     <class-loading java2ClassLoadingCompliance="false">  
          <loader-repository>  
               com.example:loader=unique-archive-name         
               <loader-repository-config>  
                    java2ParentDelegation=false  
               </loader-repository-config>       
          </loader-repository>  
     </class-loading>  
     <context-root>/confluence</context-root>  
     </jboss-web>  
    
  6. Build the Confluence WAR archive using the build script.

Wednesday, April 18, 2007

Release of MAIDEA 1.2.3

This is a bugfix release.

Release Notes - MAIDEA
Version 1.2.3

Bug

  • [MAIDEA-58] - Maven process exits because of classpath error when using Maven version 2.0.6
This will be the last release of the plugin because it has moved
(together with the Maven Reloaded plugin) to the Mevenide project on
Codehaus. Information can be found at: http://mevenide.codehaus.org/m2-site/mevenide2-idea/

We hope to release a version of the plugin soon.

Friday, April 06, 2007

Resource filtering in Maven2 corrupts images in Jar archive

I had a very strange problem with the Maven2 resource filtering behaviour. I have a resource directory containing XML files and PNG images. Everytime I started to build a JAR archive of my project the images in there were corrupted.
It took me some time to identify the resource filtering as the source of the problem. My configuration filtered all files in that directory. So the images were filtered as well. If the resource plugin sees a filter token in a binary file which in configured to be filtered it replaces the token with the value.
So the solution is either to move the images to a different resource folder or use inclusions/exclusions on the filtered resource directory.
If you plan to just have a single resource directory your configuration of the resource filtering may look like this:




true
${basedir}/src/main/resources

**/*.jpg
**/*.gif
**/*.png



${basedir}/src/main/resources
false

**/*.jpg
**/*.gif
**/*.png




I found the solution in the user mailing list. The interesting posts are:
http://www.nabble.com/forum/ViewPost.jtp?post=4231228&framed=y&skin=177
and this one:
http://www.nabble.com/forum/ViewPost.jtp?post=4231635&framed=y&skin=177

Sunday, April 01, 2007

Maven 2.0.6 released

The Maven Team released Version 2.0.6 of their software today, on April 1st. Let's hope it's not an April fool's joke ;-)

Friday, March 23, 2007

Do you like Dilbert?

Then you might want to check this out:
http://www.dotnetpowered.com/dailydilbertservice/dailydilbert.axd
This link gives you a daily update of the famous Dilbert comics. You can simply embed this URL in your website.


What is needed to run a X Server on Debian Linux

Today I installed a Debian (etch) system from scratch and wanted to start a X server... hm ... no X server on a fresh installation. So what packages do I have to install to get a X server running on my system?

apt-get install x11-common xserver-xorg-core xserver-xorg xfonts-base xterm

If you prefer a small and fast window manager and no desktop like KDE or Gnome try out enlightenment.

apt-get install enlightenment

Gary Moore will release new album on May 21st, 2007

Gary Moore is going to release a new Blues album in May 2007 containing a mix of Blues originals and self composed songs.
If you are interested check out this article on one of the best Gary Moore fan club sites out there. That page is not the official Gary Moore homepage!

Wednesday, March 21, 2007


In case you are using Trillian 3 Pro and want to chat with people using GoogleTalk you can configure this in Trillian via the Jabber plugin. First you have to activate the Jabber plugin (in case it is deactivated) and then go to "Connections->Manage My Connections->Add New Connection".
Choose Jabber and enter your Gmail account details: This is your complete email address, e.g. john.doe@gmail.com and your password.
After this click on Change ... and fill in the values shown in the following screenshot: