Tuesday, October 27, 2009

How to clean xdm at startup ?


I tried tne new version of xorg and I had some problem when I reboot.Xdm start and freeze because I had dome problem whith my xorg configuration.To avoid xdm automatic launch, I just do :
emerge -C xdm.After it's easy to re-install.

Note :
You can startup grub in single mode by adding "single" at the enf of the boot line (e to edit).


Friday, October 9, 2009

How to solve : All ebuilds that could satisfy ... have been masked.

Problem

During update, you have the following message :

!!! All ebuilds that could satisfy "x11-wm/compiz" have been masked.

!!! One of the following masked packages is required to complete your request:

- x11-wm/compiz-0.8.2-r3 (masked by: ~x86 keyword)


Solution


You have to put the package name in package.keywords.
It's because you have compiled in masked mode and when you make an update it try to search in masked package but it is not authorized.So you have to tell it that it can do by adding in package.keyword file.


Thursday, October 8, 2009

Hudson : Failed to create /dev/null/.m2

Problème :

When you launch an Hudson build, you have the following error: Failed to create /dev/null/.m2

Solution :

ADD MAVEN_HOME same as HUDSON_HOME at JAVA_OPTS variable in startup Tomcat script :

vi /etc/init.d/tomcat-6

# Activate Logging

if [ -r "${CATALINA_HOME}"/bin/tomcat-juli.jar ]; then

JAVA_OPTS="${JAVA_OPTS}
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \

-Djava.util.logging.config.file=${CATALINA_BASE}/conf/logging.properties"

fi

JAVA_OPTS="$JAVA_OPTS -DHUDSON_HOME=/home/hudson
-DMAVEN_HOME=/home/hudson"

Tuesday, October 6, 2009

Unable to create the home directory '/dev/null/.hudson'


Problem :


You deploy hudson.war in Tomcat 6 and when you want to show hudson main page, you have
this error :
Unable to create the home directory '/dev/null/.hudson'. This is most likely a permission problem.

To change the home directory, use HUDSON_HOME environment variable or set the
HUDSON_HOME system property. See Container-specific documentation for more details of how to do this.


Solution :


- Create a home directory for Hudson.


mkdir -p /home/hudson

chown -R tomcat:tomcat /home/hudson/


ls -al /home/hudson/

drwxr-xr-x 6 tomcat tomcat 4096 Oct 3 18:45 hudson


Note : I've notice that you must restart Tomcat for that's work.


- Add the HUDSON home directory for Tomcat in the tomcat startup script :


vi /etc/init.d/tomcat-6


Search JAVA_OPTS

Then add some line after :


JAVA_OPTS="$JAVA_OPTS -DHUDSON_HOME=/home/hudson"


Example :

...

# Activate Logging

if [ -r "${CATALINA_HOME}"/bin/tomcat-juli.jar ]; then

JAVA_OPTS="${JAVA_OPTS} -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \

-Djava.util.logging.config.file=${CATALINA_BASE}/conf/logging.properties"

fi

JAVA_OPTS="$JAVA_OPTS -DHUDSON_HOME=/home/hudson"

...


- Modify the Tomcat user file (
vi /etc/tomcat-6/tomcat-users.xml )
cf AdministrationHudson

- Then Restart Tomcat.

Saturday, October 3, 2009

Tomcat 6 compilation error under Gentoo : ImportError

Installation of Tomcat 6 under Gentoo is simple : emerge tomcat.
I just met an compilation 's error :ImportError (see under).
To resolve, just follow the message in the error's description like that :
emerge -l dev-python/pyxml

>>> '/var/tmp/portage/www-servers/tomcat-6.0.20/temp/build.log'

* Messages for package www-servers/tomcat-6.0.20:

* If the output above contains:

* ImportError:

* /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so:

* undefined symbol: PyUnicodeUCS2_DecodeUTF8

* Try re-emerging dev-python/pyxml

*

* ERROR: www-servers/tomcat-6.0.20 failed.

* Call stack:

* ebuild.sh, line 49: Called src_configure

* environment, line 4310: Called java-ant-2_src_configure

* environment, line 2127: Called java-ant_bsfix

* environment, line 2149: Called java-ant_bsfix_files './build.xml' './res/deploye
/build.xml' './webapps/ROOT/build.xml' './test/build.xml'

* environment, line 2244: Called _bsfix_die 'xml-rewrite2 failed: ./test/build.xml'

* environment, line 306: Called die

* The specific snippet of code:

* die ${1} " Look at the eerror message above";

* The die message:

* xml-rewrite2 failed: ./test/build.xml Look at the eerror message above

*

* If you need support, post the topmost build error, and the call stack if relevant.

* A complete build log is located at '/var/tmp/portage/www-servers/tomcat-6.0.20/temp/build.log'.

* The ebuild environment file is located at '/var/tmp/portage/www-servers/tomcat-6.0.2
/temp/environment'.


Friday, October 2, 2009

Installation KDE4 : directory package.keywords

When i install KDE4, I was surprised to see in the documentation : cd /etc/portage/package.keywords : Manuel KDE4
However, on my computer there is only a single file
package.keywords
I search on the web and i found the solution :


/etc/portage/

Any file in this directory that begins with "package." can be more than just a flat file. If it is a
directory, then all the files in that directory will be summed together as if it were a single file.

Thursday, October 1, 2009

Installation of Maven under Gentoo

It exists maven's ebuild.To see them, you can make a search like that :
eix maven.

Then if you wan to install, you can make : emerge dev-java/maven-bin

If you don't know eix, see my article.You will be impressed by this command !