March 3rd, 2010 | Categories: gentoo, problems | Tags: , , ,

This kind of message appeard on my maching after invoking
glxinfo | grep -i direct

Error was (at least I think so) caused by compiling nvidia-drivers against sources with slightly different version then running kernel (I forgot to update symlinc to kernel sources (eselect kernel)).

The interesting part of it is that X sever started at all!
So far I tought that after such compiling X will not start as it happed to me couple of times earlier.

(running kernel was 2.6.32-gentoo-r6 and drivers were compile against -r5)

Tags: , , ,

March 2nd, 2010 | Categories: Uncategorized | Tags:

Tags:

February 10th, 2010 | Categories: gentoo, problems | Tags: , , , , , , ,

Peace of simple functionality I’ve been lacking for some time in dolphin was “send to ” option which would create an email with attached file(s) (many files). I have no idea why it does not exists “out of box” but there is quite simple way of adding this.

This descriptions applies to KDE4.
directory /usr/share/kde4/services/ServiceMenus

contains list of actions avaiable in Dolphin for various file types.
If you add file there an entry will appear in Dolphin (Settings -> Configure Dolphin, Services)
In order to Dolphin re-read content of this dir you have to change something in that window (check and uncheck any selectbox and press apply).

Ok. create email.desktop in mentioned dir:

[Desktop Entry]
Actions=attachToEmail
Encoding=UTF-8
ServiceTypes=KonqPopupMenu/Plugin,all/allfiles
ExcludeServiceTypes=application/x-iso,kdedevice/*,inode/directory
Type=Service

[Desktop Action attachToEmail]
Name=Attach to Thunderbird Mail
Name[en]=Send file as attachment
Name[]=Wyslij jako zalacznik
Icon=/usr/share/thunderbird/icons/mozicon16.xpm

#Exec=a.sh -compose “attachment=file:/$(echo %F | sed ’s/\\ \\//,file:\\/\\//g’)”
# bactick operator also works
Exec=thunderbird -compose “attachment=’file:/`echo %F | sed ’s/\\ \\//,file:\\/\\//g’`'”

Download above sample from here (if you copy above content directly from browser IT MAY NOT WORK)

As you see you can specify with which file types this context menu should appear.
Above configuration works for thunderbird 2.x (2.x requires files:// prefix, because of some bug)

There is a peace of magic in Exec line, because of the way thunderbirds expects filenames.

More about desktop file format here.

Tags: , , , , , , ,

February 10th, 2010 | Categories: Uncategorized | Tags: , , , ,

Peace of simple  functionality I’ve been lacking for some time in dolphin was “send to ” option which would create an email with attached file(s). I have no idea why it does not exists “out of box” but there is quite simple way of adding this.

This descriptions applies to KDE4.
/usr/share/kde4/services/ServiceMenus

contains list of actions avaiable in Dolphin for various file types.
If you add file there an entry will appear in Dolphin (Settings -> Configure Dolphin, Services)
In order to Dolphin re-read content of this dir you have to change something in that windows (check and uncheck any selectbox and press apply).

Ok. create email.desktop in mentioned dir:

[Desktop Entry]
Actions=attachToEmail
Encoding=UTF-8
ServiceTypes=KonqPopupMenu/Plugin,all/allfiles
ExcludeServiceTypes=application/x-iso,kdedevice/*,inode/directory
Type=Service

[Desktop Action attachToEmail]
Name=Attach to Thunderbird Mail
Name[en]=Send file as attachment
Name[]=Wyslij jako zalacznik
Icon=/usr/share/thunderbird/icons/mozicon16.xpm

[Desktop Entry]
Actions=attachToEmail
Encoding=UTF-8
ServiceTypes=KonqPopupMenu/Plugin,all/allfiles
ExcludeServiceTypes=application/x-iso,kdedevice/*,inode/directory
Type=Service

[Desktop Action attachToEmail]
Name=Attach to Thunderbird Mail
Name[en]=Send file as attachment
Name[]=Wyslij jako zalacznik
Icon=/usr/share/thunderbird/icons/mozicon16.xpm
Exec=thunderbird -compose “attachment=’file:/`echo %F | sed ’s/\\ \\//,file:\\/\\//g’`'”

Download above sample from here.

As you see you can specify with which file types this context menu should appear.
Above configuration works for thunderbird 2.x (2.x requires files:// prefix, because of some bug)

There is a peace of magic in Exec line, because of the way thunderbirds expects filenames.

More about desktop file format here.

Tags: , , , ,

January 28th, 2010 | Categories: gentoo, problems | Tags: , , , , ,

Have you ever  added users to a group and  they do not have access to the rights of that group until they login again?

Instead of telling them to log out and login again (sounds like MS solution?) they can type:

newgrp name_of_a_group

For more details read
man newgrp

Tags: , , , , ,

January 27th, 2010 | Categories: gentoo, problems | Tags: , , , , , ,

New version of portage adds support for licence acceptance for specific packages.
sun-jdk requires now acceptance of dlj licence (in /usr/portage/licenses)

If you do not want to get into more details simply add

ACCEPT_LICENSE=”dlj-1.1″

to your /etc/make.conf

You can also set this to
ACCEPT_LICENSE=”*”

but you won’t receive and error during installation of  licensed software.

Tags: , , , , , ,

December 1st, 2009 | Categories: problems | Tags:

(Soprano::PluginManager) found no soprano plugin at  “/usr/lib64/soprano/libsoprano_sesame2backend.so”
Failed to create memory model

First guessed solution works:

emerge soprano -av

October 26th, 2009 | Categories: gentoo, problems | Tags:

Proper firefox installation should create symlinks in $HOME/.mozilla/plugins directory.
You should find there libflashplayer.so or valid symlink to libflashplayer.so

1. Make sure you have www-plugins/adobe-flash installed
2.
cd $HOME/.mozilla/plugins
ln -s /usr/lib/mozilla-firefox/plugins/libflashplayer.so

And that’s it.. in my case I didn’t even had to restart browser.

One may ask why creating symlink to other symlink.
This allows firefox instalation assume that /usr/lib/mozilla-firefox/plugins/libflashplayer.so is always valid URL for flash plugin while system administrator can change this symlink to all users using

eselect java-nsplugin

For me problem occured for the first time after kernel upgrade from 2.6.25-r7 to 2.6.29-r1 .
During shutdown system hung with message:
“Killing processes using ALSA

There is bug for this issue and patch (working for me) here that’s needs to by aplied to  /etc/init.d/alsasound   (wrong order during module unloading)

I havn’t tested if this is fixed in alsa*-1.0.19

Tags: , , ,

April 13th, 2009 | Categories: Uncategorized | Tags: , , , ,

Error obviously suggests problem with library versions. Generally first step  to solve this is to find out in what version of library below method is used, what version we  are using (jar may be provided by your application, by application server or sometimes in java libs folder).

java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V  org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute (TagLibraryInfoImpl.java:577)

Most often conflict is in jetty/libs directory, but where does jetty under maven has it’s home dir?
More about configuring jetty plugin here.

After struggling with my configuration I find out that problem was in following lines:


<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-j2ee_1.4_spec</artifactId>
<version>1.0</version>
</dependency>

which I copied from other tutorial so small chances thay it will be your cause.

Tags: , , , ,