Dec 22, 2013

Upgrade Fedora 19 -> Fedora 20 Heisenbug

Yersterday I attemtped to upgrade my Fedora 19 installation.

The usual way with fedup started fine.

fedup-cli --network 20 --reboot

The packages were downloaded and the reboot-entry in grub was installed.

After downloading several times and rebooting the update installation in the
rebooted system was not started. After every reboot the GNOME desktop
should be started.

Even disabling the desktop and removing the nvidia drivers didn't work.  I need them, because I use also an external monitor for extending the display.

After some attempts, I found an update instruction with yum here.

The instructions are:

# rpm --import https://fedoraproject.org/static/246110C1.txt
# yum update yum
# yum --releasever=20 distro-sync

After some hours and a reboot:
[ewer@lxewer ~]$ cat /etc/fedora-release
Fedora release 20 (Heisenbug)


The system with the new Fedora 20 ( Heisenbug) is up and running 

Dec 18, 2013

Fedora 19 - theme changing does not work

I worked since Fedora 17 on the same system by upgrading. Till last time
I had Fedora 19 and a problem with the harddisk. After a fresh installation
a lot of things were missing.

An other thing is changing the theme. After installing a lot of themes with
yum, they were not visible in gnome-tweak-tool. I found a hint here about
theming.

Using the dconf-editor and navigate to org.gnome.desktop.wm.preferences and the item theme, lets you set one of the themes found in /usr/share/themes.

After changing a theme, the look changes.

I currently use Clearlooks, because this theme changes the titlebar to blue,
if the window is active.

The other ( default-theme?) didn't make any huge visible change between the active and the other windows on the screen.

Dec 11, 2013

gpg2 import fails with " this may be caused by a missing self-signature"

I tried to import a public PGP-key into my GPG keyring, but this failed: 

gpg2 -v --import /tmp/publicKey.asc                    
Version: OpenPGP totemomail
gpg: armor header:
Comment: totemomail OpenPGP - http://www.totemo.com
gpg: armor header:
gpg: can't handle public key algorithm 3
gpg: can't handle public key algorithm 2
gpg: pub     0s/XXXXXXXXX 2013-07-15  User Name <user.name@exmaple.com>
gpg: key XXXXXXX: unsupported public key algorithm on user ID "User Name <user.name@example.com>"
gpg: key XXXXXXX: unsupported public key algorithm
gpg: key XXXXXXX: skipped user ID "User Name <user.name@example.com>"
gpg: key XXXXXXX:X skipped subkey
gpg: key XXXXXXXX: no valid user IDs
gpg: this may be caused by a missing self-signature
gpg: Total number processed: 1
gpg:           w/o user IDs: 1

There is an option for gpg to be inserted into gpg.conf to allow the import:

allow-non-selfsigned-uid 

After this, the import works and the key is available in the keyring.

Dec 8, 2013

PGP PGP/Mime EMail processing in Java

I have to problem to read emails from an IMAP-Server, where the emails are encrypted with PGP/GPG.

This toolset uses a public/private Keyset for encryption. Thunderbird with the Plugin Enigmail supports
the encryption/decryption of emails with S/Mime OR PGP/Mime encrypted email messages.

On my Fedora 19, the gpg2 command can be used to manage the GPG-Keys on the command line.

But my problem is using this feature in a service developed in Java.

There is an "old" project named javamail-crypto on sourceforge.net. After compiling the source with ant, the
cryptix is not necessary -> only the bouncycastle-pgp provider.

After using the source from here, I could decrypt messages, but the day after, new encrypted messages
couldn't be encrypted.

Here are the exceptions I got:

org.bouncycastle.openpgp.PGPException: Exception creating cipher
at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createDataDecryptor(Unknown Source) at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createDataDecryptor(Unknown Source)
at org.bouncycastle.openpgp.operator.jcajce.OperatorHelper.createDataDecryptor(Unknown Source)
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyDataDecryptorFactoryBuilder$2.createDataDecryptor(Unknown Source)
at org.bouncycastle.openpgp.PGPPublicKeyEncryptedData.getDataStream(Unknown Source)
at org.bouncycastle.openpgp.PGPPublicKeyEncryptedData.getDataStream(Unknown Source)
at org.bouncycastle.openpgp.PGPPublicKeyEncryptedData.getDataStream(Unknown Source)
at org.bouncycastle.openpgp.PGPPublicKeyEncryptedData.getDataStream(Unknown Source)
at net.suberic.crypto.bouncycastlepgp.BCPGPProviderImpl.decrypt(BCPGPProviderImpl.java:106)
at net.suberic.crypto.PGPEncryptionUtils.decrypt(PGPEncryptionUtils.java:52)
at net.suberic.crypto.PGPEncryptionUtils.decryptMultipart(PGPEncryptionUtils.java:225)
at javamailtest.JavaMailTest.main(JavaMailTest.java:116)
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
... 10 more
Exception in thread "main" java.security.GeneralSecurityException: Incorrectly formed message:  org.bouncycastle.openpgp.PGPException: Exception creating cipher
at net.suberic.crypto.bouncycastlepgp.BCPGPProviderImpl.decrypt(BCPGPProviderImpl.java:140)
at net.suberic.crypto.PGPEncryptionUtils.decrypt(PGPEncryptionUtils.java:52)
at net.suberic.crypto.PGPEncryptionUtils.decryptMultipart(PGPEncryptionUtils.java:225)
at javamailtest.JavaMailTest.main(JavaMailTest.java:116)
Java Result: 1

After long time of searching, I found a hint on the bouncycastle homepage, about a missing JCE files from the JDK to get the decryption to work again.

After downloading the JCE-Package from Oracle's JDK and installing, the decryption worked again.

Now I found, that the openJDK-Installation on Fedora 19 had no problems, but the JDK from Oracle with
the missing JCE.


Nov 21, 2013

Graphical Explanation of Concurrency in Java with a nice app named Java Concurrent Animated

This week the JavaMagazine for November/December 2013 was release.

In this issue is an interview with Java Champion Victor Grazi and the tool
he created named


This tool offers a GUI where you can select the area of concurrency and do a
"simulation" by giving a graphical feedback, which makes it much easier to 
understand. 

 

Nov 20, 2013

Code Completion in XML Documents within NetBeans 7.4 and a XSD

In former times I used XML files in Netbeans with the codecompletion, but the files had DTD's.

Now I came back to edit XML files, but this time with XSD's.

The XML files look like this:

<repo xmlns="http://server.com/some/path" >

Now I can add a Mapping via the Menu path "Tools -> DTD and XML Schemas"

Under the entry of "User Catalog" I can add a new DTD/ or Schema, when it is selected.


After pressing the "Add Local..." you get the following dialog:


Under SystemID you set the link, which is set under xmlns and "Browse" under URI to the xsd.

After the OK, the completion doesn't work always, but a
restart helps ;-).


Oct 25, 2013

Fedora 19 Gnome displays the cinnamon lock-screen and doesn't allow input, so you can not unlock.

Since one of the last updates, it happens, that sometimes the cinnamon-Lockscreen is active and it doesn't allow input.

To save your work , you ca kill the screensaver process cinnamon-screensaver 
 on one of the virtual terminals.

Use <Ctrl><Alt><F2>, login and terminate that process.
Change back to the GUI with <Ctrl><Alt><F1>

A detailed description can be found here


Sep 21, 2013

Last Update of Fedora 19 installed Kernel 3.11.1, but NVidia 319.49 did not compile

One of the last updates on Fedora 19 brought Linux Kernel 3.11.1.
But on this kernel version the NVidia driver 319.49 was not compilable
anymore.


I found a int here with a link to a code change here. This simple change in the header file of the NVidia source let the driver compile again and
Fedora 19 with Kernel 3.11.1 has again a GUI.

Aug 22, 2013

How to search for files containing a desired text by the help of nautilus browser in Fedora 19 / Linux

Gnome3 has the Filebrowser nautilus as default.

The filebrowsers appearance has one window. With the help of <Ctrl>-<t> you can open another tab.

On the top is a search button, which searches for files, but sometimes I have a lot of files and just want to look into the ones, which contain a special text.

The way till  now was to use jedit, which can search for a text in files, but
nautilus also supports this featuer.

open the menu with the tooth-wheel and select search files


In the dialog you can select the directory in which you like to search and for what additional properties:




After selecting the type of available Options, press the "+" Add button and insert your text.

Here are the additional filter options:


After adding the "Contains the text" and adding your search text, press the "Find" button on the right bottom of the dialog and the result shows your files.


This is a hidden gem, I just detected by accident.

Aug 20, 2013

journalctl in Linux shows the logs, but in the terminal the log-data seems to be not visible or truncated

On my Fedora 19 box, logs are written by journald. The logs can
be retrieved by journalctl.

But on a "standard" terminal the necessary data is not visible at all.


The secret feature, I found after searching on the net is, to use the cursor right keys , which scroll the display:

and like in my case you see the necessary data which hints for the problem.


Aug 6, 2013

digital Photoframe Agfa AF 5075 EU didn't display pictures anymore

Since a long time we have a digiatl Photoframe AF 5075.

But since some longer time it didn't display always the photos put onto an SD card.

Now I have the solution. The photos are to large, taken by the camera.

The solution was to convert the photos to a lower size by a tool from the ImageMagick toolkit.


cd photos
mkdir resize
cd resize
for d in `ls ../*`; convert $d -resize 50% `basename $d`
done


and the resized photos are displayed again.


.

Aug 5, 2013

How to connect to the JBoss 7.1 internal Message Broker HornetQ ( JMS-Implemention ) with HermesJMS

HermesJMS is a GUI-Client for JMS. The acutal Version 1.14 can connect but
closes the connection after every sent message.  To let the connection open or reconnect, This is solved in Bug 184, which contains the link to Version 1.15, which reopens the JMS connection afer sending.

JBoss only has JMS active, if started with the standalone-full.xml configuration.

<JBOSS_HOME>/bin/standalone.sh -c standalone-full.xml

There you configure your queue, have to add an user in the application realm with the group guest and configure security domain other:

                <security-domain name="other" cache-type="default">
                    <authentication>
                        <login-module code="Remoting" flag="optional">                                                         
                            <module-option name="password-stacking" value="useFirstPass"/>
                        </login-module>
                        <login-module code="RealmUsersRoles" flag="required">
                            <module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>
                            <module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>
                            <module-option name="realm" value="ApplicationRealm"/>
                            <module-option name="password-stacking" value="useFirstPass"/>
                            <module-option name="unauthenticatedIdentity" value="guest"/>
                        </login-module>
                    </authentication>
                </security-domain>


This is only for testing on my side, so for security reasons, this might be wrong.

First you have to create a session and a Classpath-Group with the JBoss-Client-jar:


Choose the tab below to configure the JBoss-Classpath-Group:

Select the jboss-client.jar and change back to the session-tab.
Here name the session and set the Connection-Factory and the loader. 
The properties can be found in the image. the initialContextFactory is:
org.jboss.naming.remote.client.InitialContextFactory



In the Destinations add a queue you have configured in the standalone-full.xml configuration.




For the queue I had also to set the username/password from JBoss, because otherwise I didn't get a connection to the queue. 


When you have the queue, select it from the session and double-click it, to get it. After this, select the queue with a right-click and select New Message as shown below.


 After getting the dialog, you can set the properties for the message and depending on the select type of message, the payload tab contains the input form for the data.


With Version 1.15 the dialog keeps open and the message can be resent multipel times, without error. Version 1.14 closes the connection after the first sending and issues an error afterwards.

How to connect to a WebSphere MQ Server with HermesJMS

I had the problem to get a GUI for connecting to the WebSphere MQ Server,
for sending JMS Messages, which should be processed by a developed MDB.


After the Queue is created in the MQ-Server, HermeJMS must be confgured.

HermesJMS is a GUI, which allows to connect the JMS-Brokers,investigate the Queues/Topics and also to manage/send/delete messages in the Queues.

For MQ-Connections, you have to installed or provide the jar's from the
MQ-Client.

 First you create a new session:



In the new session click on the tab below to create a new Classpath-Group
for the MQ-Server. In the mask you see the jar's, from the MQ-Client-Installation.




In the Session-Properties, you name the session. Here MQSeries and select
in the plugin section the predefined "IBM WeSphereMQ".

The Connection Factory is "com.ibm.mq.jms.MQQeueuConnectionFactory", because I'm connecting to a queue and the Loader is the ClasspathGroup you defined before.

The properties you can add by a right click into the properties window and
set the parameters for the MQ-Server, like host, port of the MQServer and the queue-Manager for this connection.
The transportType 1 is for a TCP/IP connection, I got from different Sources on the web. 

 Here are the queues already discovered. You can select from the session the Discover context-menu entry and get all the queues.


After a double click on the queue a connection is build and you can select the queue and with a right-Click select to create a new message


And the message window allows you to select the data and the type of the
JMS-Message, you like to send. Depending on the type, the PayLoad shows
different options to create the message. 


Update: With Version 1.14 of HermesJMS, the connection is always closed after the first sending of a message. Version 1.15 solved this problem, so
that you can send the message more often and the connection is not closed.

Aug 3, 2013

Fedora 19 update brings Linux Kernel 3.10.4, but NVidia 319.32 does not compile.

The last Fedora 19 updats brought kernel 3.10.4 into the system.

The current nvidia driver for me is 319.32, but this driver is not compilable.

But there is a patch available:

My investigation started at the blog Adventures With Linux
and brought me to the download link for the Patch for NVidia 319.32.  

After downloading the patch and going into

<nvidia-path>/kernel and issuing patch -p1 < ../../<patchfile>

patches the NVidia source.

After booting the new kernel and issuing nvidia-installer compiles the
driver and a reboot shows the Gnome Desktop.

Aug 1, 2013

JBoss has not enough space for HTTP-Header -> ArrayIndexOutOfBoundsException with 8192

During testing of a REST-Servcie, I got an ArrayIndexOutOfBoundsException with the Value 8192.

The service packaged a lot of Links into HTTP.

Older Versions of JBoss had a parameter in the connection configuration named maxHttpHeaderSize, but
in V7.x this is not available and you get a parser error on startup.

But setting the system property
org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE 
to a value of your choice solves the problem if it is enough.

On my system I added it to JAVA_OPTS in standalone.conf 

JAVA_OPTS="$JAVA_OPTS -Dorg.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE=24000"

Jul 19, 2013

Start JBoss AS 7.1 in Netbeans with the full profile to get JMS support.

Netbeans 7.x supports JBoss AS 7 as a JEE Server.

Per Default, JBoss is started with the  standalone.xml configuration.

My first attempt was to change the configuration in bin/standalone.conf from standalone.xml to standalone-full.xml, but this didn't help by starting JBoss via the services in NetBeans.



In the Properties of the JBoss-Server, I appended the following to the VM O[tions: -Djboss.server.default.config=standalone-full.xml from the config file:




and after this the Admin-Console showed the JMS Destinations.



Jul 4, 2013

Fedora 19 Notebook didn't suspend when closing the Screen ( LID ) -> change config in logind.conf

In Fedora 18 it was sufficient to close the LID( Laptop Display ) and the system suspended.

In Fedora 19 it just switched of the display. To enable this feature, you have to edit
/etc/systemd/logind.conf

activate the line:

HandleLidSwitch=suspend

after a

systemctl restart systemd-logind.service

the system suspended after closing the LID.


Jul 3, 2013

CoverflowAltTab using in Feodra 19

After downloading the CoverflowAltTab from
https://github.com/dmo60/CoverflowAltTab

and installing as described the folder
CoverflowAltTab@dmo60.de" to ~/.local/share/gnome-shell/extensions/
and restarting the gnome-Shell with <Alt>-<F2> and <r>, the other display of 
<Alt>-<Tab> works. 



 

Jul 2, 2013

Message Tray/Panel in Fedora 19 Schroedigners Cat is not visible by pressing the Meta/Windows-Key

Fedora 19 doesn't show the Message Tray/Panel when you press the Meta/Windows-Key.

You can press <Alt>-<Ctrl>-<TAB> to get a switching window for selecting Desktop sections:



The Message Tray shows the panel, where e.g skype is visible after beeing minimized.

UPDATE : after installing CoverflowAltTab, the keys do not work anymore.
But with <Meta/Windows>-<m>, the message try is displayed.

Jun 30, 2013

Updated from Fedora 18 to Schroedingers Cat ( FEdora 19 )

I updated from Fedora 18 to 19 with fedup

fedup --network 19 --reboot 

Updated worked without problems, but the default-boot  didn't succeed to complete.

My /var isn't on a separted lvm partition. After finding out that the default language is now english in the
ASCII-Screens, I could log in and see with journalctl -xb what problems occured.

After mkdir /var/log and a reboot, the system came back online with the Gnome-Login screen.


Jun 26, 2013

print with lpd on AIX to a printer over a CUPS installation on a Solaris 10 system

I had the need of beeing able to print on a spool printer on an AIX 6.1 system.

The installation of a SystemV LPD-Service was more ore less straight forward on the AIX
system by smitty. There was only a firewall rule necessary to allow the port 515 for the lpd service.

On a solaris 10 system there was already a cups ( Common Unix Printing System )  up and running.

CUPS has a cups-lpd backend, which is designed to work with inetd.
Therefore a entry in the /etc/inet/inetd.conf  was necessary:

printer stream tcp nowait lp /opt/local/cups/lib/cups/daemon/cups-lpd cups-lpd -o document-format=application/octet-stream

a inetconv converts the entry into an SMF-Service.

But after doing this on AIX the printer queue always went down. A tcp-Trace revealed, that the
cups-lpd sent back, that the printer queue was not accepting print jobs.

After some searching, I found a hint about the user with which the cups-lpd was started.

After setting the suer equal to that one ussed for cups itself in the SMF-Service svc:/network/printer/tcp:default
the printing was working from AIX.

svccfg -s svc:/network/printer/tcp
setprop inetd_start/user = astring: <user>
setprop inetd_start/group= astring: <group>


If the print queue on AIX is doww, smitty helps with the short path qstart

smitty qstart 

or
smitty -> Print Spooling -> AIX Print Spooling -> Manage Print Queues -> Start a Print Queue

Jun 18, 2013

get mysql database to log the queries to see what was requested

in my mysql instance, I have some databases running and I have some programs from which  I do not know which queries they use.

So I'd like to have a log with all queries.

The useful link is here.

log into your  database and activate the logging:

mysql> set global general_log=1;
mysql> set global log_output='table';

and
mysql> select * from mysql.general_log;

to show the entries.


use

mysql> set global general_log=0; 

to turn logging of.

If tried to delete entries from the table and dropped it, the table is not
available.

See here how to restore the table:

USE mysql;

CREATE TABLE IF NOT EXISTS `general_log` (
  `event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `user_host` mediumtext NOT NULL,
  `thread_id` int(11) NOT NULL,
  `server_id` int(10) unsigned NOT NULL,
  `command_type` varchar(64) NOT NULL,
  `argument` mediumtext NOT NULL
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log';
 to delete entries from the table use

truncate table mysql.general_log;

Jun 10, 2013

Update a solaris 11 installation with pkg and behind a proxy

Installing solaris 11 in a KVM-Machine on Fedora 18 is no problem, if you have the iso-Image available

After rebooting and trying to install some packages and you are protected by a firewall, pkg times out.


To let the pkg command talk to a proxy for getting the packages from the IPS-Repo, you have to
set an environment variable.

https_proxy=https://<IP of proxy>:<Port>
http_proxy=http://<IP of proxy>:<Port>
export https_proxy
export http_proxy
pkg install developer/gcc-45
 

( source )

Jun 6, 2013

Java - JMX through firewalls and RMI debugging hints.

Currently I'm working on JMX.

The problem with the Java JMX is, that the communication is done by RMI-Calls.

The initial port is a fixed port, but the ongoing communication over RMI
uses dynamic ports and this is a killer when you are communicating through
a firewall.

Here is a hint for an Agent-Implementation, which uses a second fixed
port for the RMI communication.

This is easier for firewalls to allow 2 ports for the communication.

The communication is done by RMI-Calls, which are "garbage" when you
trace the network traffic by wireshark, tcpdump or something else.
Some parts are readable , but not all.

Here was a hint about a system property, which can be set and after this, there are outputs in the console in my case.
The system-property is:

-Djava.rmi.server.logCalls=true

When there also is also a NAT, the RMI-Server has the wrong server in the
response to contact. Therefore an other property sets the name, which the
RMI-Calls returns as contact:
( from here )

-Djava.rmi.server.hostname=<public/NAT address>

Jun 5, 2013

compress/uncompress of zip/gzip files without the necessary tools but python is available

This week, I read about python onliners, which are provided by some
modules ( "batteries included" as the slogan of python ).

The gzip-Module allows to decompress gzip-Archives by
python -m gzip -d <gz-File>

the zipfile module allows create, test, list and decompress of zip archives:

# python -m zipfile -h 
Usage: 
    zipfile.py -l zipfile.zip # Show listing of a zipfile 
    zipfile.py -t zipfile.zip # Test if a zipfile is valid 
    zipfile.py -e zipfile.zip target # Extract zipfile into target dir 
    zipfile.py -c zipfile.zip src ... # Create zipfile from sources 


The  json/tool -Module allows formating of json-Strings:

# echo '{ "json": "obj", "test": [ 1, 2, 3] }' | python -m json.tool 

    "json": "obj", 
    "test": [ 
        1,
        2, 
        3 
    ] 

This call allows also an input and optional output-file for the json-Data.


May 29, 2013

plugins in Firefox 21 are not found anymore -> new directory structure

With the new firefox 21, the plugins on my linux system are not found
anymore.

When I update, the new firefox is installed and in previous releases I
copied the <InstallDir>/plugins folder to the new one.


But with firefox 21 there started a redesign. This link helped, by moving
plugins into browser/plugins of the new firefox installion.

May 10, 2013

Marking a screenshot with circles and arrows in GIMP

GIMP is a nice tool for doing graphics without having large commercial products. Sometime its not easy to find a way for some things.

GIMP allows you to acquire a screenshot from the desktop, a window or a
region ( at least on Linux ).

You can select File->Create->Screenshot to get to the menu.

When you have the picture, for some documentation you may have the
need to mark some areas with a circle:

Use the ellipse selection tool and select the area. After this go to Edit->Stroke Selection.



This show a dialog for some settings. The color is taken from the current
foreground color.

After pressing "Stroke" the selected area is surrounded by an ellipse.


If there are multiple Items you can use arrows.

I have installed the GIMP Scripts FUs ( see http://www.webupd8.org/2012/05/download-gimp-28-script-fus-pack-more.html ), which provides an
Arrow in the Script-Fu Menu.

How to draw an arrow comes from this blog.

You take the paths tool and draw a path:


When you have drawn the path, Select the arrow menu item from Script-Fu-Menu:


After pressing OK you get an arrow. See the options in the dialog above to
remove the path after the arrow is drawn.


Apr 23, 2013

Analysing of JVM dumps from IBM JDKs

A nice analysis tool for Java Memory dumps is the "Eclipse Memory Analyzer" - mat.

For the IBM JVM there are additional plugins necessary. A nice overview is
here.
This blog entry contains links to the update sites.

MAT doesn't have a proxy setting.

NVidia driver updated to 310.44 on Fedora 18

The last update to the NVidia driver 310.44 was without problems.

System runs, even with multimonitor operation, but from time to time
the screen locker of Gnome does not allow to enter the password again.

Mar 22, 2013

Updated NVidia driver on Fedora 18 to 310.40

Just updated the NVidia graphics driver to the version 310.40 without
problems.

  • start the system 
  • telinit 3, to deactivate the graphics 
  • start the nvidia-installer, without any changes like for 310.32
  • after the restart the gnome-desktop was back.

Mar 12, 2013

Deployment of war file failed on IBM WebSphere 8, which died before with a full filesystem, because it seems as if it is already deployed

We've an IBM WebSphere 8.0 running on an AIX development server.

During the deployment via the web-console, the WebSphere died because
the filesystem got full.

After cleaning up and restarting IBM WebSphere, the deployment was started again, but the messages said, that there is allready an application
with this name deployed.

Although the webconsole on the wsadmin.sh didn't show such an application

wsadmin.sh 
>$AdminApp list 
I found a hint here, which shows some files to manipulate and remove.

So I stopped the WebSphere, processed the files listed there and restarted.

After the restart, I can deploy the war again :-)

  • <WebSphere>/profiles/<profile_name>/config/cells/<cell_name<\nodes/<node_name>/serverindex.xml 
  • remove all files/folder ..../profiles/<profile_name>/installedApps\<cell_name>/<application_name>
  • remove also all files/folders under .../profiles/<profile_name>/wstemp/
  • remove also the corresponding files  in .../profiles/<profile_name>/tmp
  • <Profile_Dir>/config/cells/<cellname>/blas
  • <Profile_Dir>/config/cells/<cellname>/cus

Mar 11, 2013

How to get multiline text in OpenOffice 3.3 /LibreOffice 4.0 Calc

I'm working on Solaris  sunray or a fedora linux Laptop, so I'm using
OpenOffice on Solaris and LiberOffice on Fedora Linux.

If you want to insert multiline text in a cell in OpenOffice or LibreOffice Calc ( this is the Microsoft excel in the free world ), you have to position the cursor
into the Cell and not the input line just below the toolbar.

In the cell itself a manual line break can be inserted by pressing <strg>-<return> you get a linebreak of the text in the cell, which improves formating.

Mar 6, 2013

How to change the oracle db password life-time

On our oracle 11 installation, the password life-time would end today, which is printed on logging into the database with sqlplus.

On a stackoverflow.com discussion, I found the hint's, to change the lifetime of an oracle user password.

log in to the database:

sqlpuls system/system
lookup the profile to which your user belongs to:

select profile from DBA_USERS where username = <username>

change the profile for your user: 

alter profile limit password_life_time UNLIMITED;

To view your change: 
select resource_name,limit from dba_profiles where profile='';

Feb 13, 2013

Navigation by keyboard in nautilus on Fedora 18 ( Gnome 3.6 )

In the former Gnome releases of Nautilus, I was used to use "backspace" to go up a directory.

When typing a name in a nautilus window, the visible items are narrowed
down to suitable names/folders.

After selecting wit the cursor keys and pressing <enter>, the directory is changed.

But I didn't know how to go one directory up with the keyboard. Now, I found a hint in an ubuntu forum.

The key's are <alt>-<cursor up/down/left/right>.

Something different, I have to become comfortable with, but it works.

Feb 8, 2013

Improving start performance of apps in Fedora 18 with the preload service

Last week I have red somewhere, to improve startup performance of
often used applications by installing preload and starting the service.

The last few days I've seen that the service is starting apps a lot faster.

yum install preload 

systemctl start preload

systemctl status preload
preload.service - LSB: Adaptive readahead daemon
      Loaded: loaded (/etc/rc.d/init.d/preload)
      Active: active (running) since Fri 2013-02-08 22:15:57 CET; 22min ago
     Process: 1280 ExecStart=/etc/rc.d/init.d/preload start (code=exited, status=0/SUCCESS)
      CGroup: name=systemd:/system/preload.service
          └─1296 /usr/sbin/preload --verbose 1

Feb 08 22:15:57 lxewer preload[1280]: Starting preload daemon: [  OK  ]
Feb 08 22:15:57 lxewer systemd[1]: Started LSB: Adaptive readahead daemon.

Updated to LibreOffice 4.0 in my Fedora 18

This week LibreOffice release version 4.0.

After downloading, the archive can be extracted.

I uninstalled the 3.6 version, which I installed manually by


for d in `rpm -q -a | grep libre`; do
rpm -e --nodeps $d
done


After this the installation worked with

cd RPMS
sudo yum install *.rpm
cd desktop-integration
sudo yum install *freedesktop*.rpm





Update Fedora 18 to kernel 3.7.6 let fail to install NVidia 310.32 driver

Today I updated my Fedora 18 system and the update installed kernel 3.7.6
into the system.

After rebooting, I have to install the NVidia driver again. The current version is 310.32.

But the install-Script fails to recoginze the kernel sources.

I found a hint here, what the problem could be.

After extracting the NVidia-Driver with

./NVIDIA-Linux-x86_64-310.32 -x

cd NVIDIA-Linux-x86_64-310.32/kernel/

vi conftest.sh 

Search for PATCHLEVEL on line 1702, I commented some lines:

1705                 #if [ -n "$PATCHLEVEL" -a $PATCHLEVEL -ge 6 \
1706                  #       -a -n "$SUBLEVEL" -a $SUBLEVEL -le 5 ]; then
1707                     SELECTED_MAKEFILE=Makefile.kbuild
1708                     RET=0
1709                 #fi

as shown here.

After this

./nvidia-installer 

installs the driver and a reboot starts the NVidia driver again and shows the
Gnome3 Desktop.


Jan 31, 2013

copy of files with nautilus in Fedora 18( Gnome 3.6 ) - alternative to second pane with F3

The new Fedora 18 uses the code base of Gnome 3.6. In Gnome 3.6, the
file manager nautilus got a huge redesign.

In Fedora 17, nautilus could open a second panel of a directory by pressing "F3".

Now you could have selected files and issued a "Copy to other pane".
In this way it was easy to copy multiple files from different directories in an
easy way.

The nautilus of Gnome 3.6 does not support the second pane.

But in the Window you can select your files and via the context-menu ( right-click) , the "Copy To" opens a file dialog, which has a "Recently used" section,
where the last folders are listed.



This allows again a faster copy for me:

Netbeans 7.3RC1 -> Paste with history -> How to select an entry

NetBeans 7.3 ( I think so ) has a new feature by giving a clipboard of all copied items.

You can reach this on Linux/Solaris via <Ctrl>-<Shift>-<d>.
This shows a small popup with the last items which are copied in the editor:


You can cycle through the list by the cursor-Up/Down or much faster, by
pressing the number in the first column.

This is a very usefull feature, if you change a lot in a file with multiple
different items.

Jan 30, 2013

SourceCode Pro font installation in Fedora 18

Adobe has designed a monospaced font for developers.

The font SourceCode Pro can be downloaded from sourceForge. 

Font installation in Fedora 18, I've found here.


  • Created a ~/.fonts directory. 
  • Copied all *.ttf fonts into this directory. 
  • run fc-cache -v -f ~/.fonts
  • select the font in your application like ( netbeans, jedit, ... ) 



Jan 24, 2013

USB disk were not automatically mounted in Fedora 18

I recognized, that an plugged in MP3 player didn't get mounted automatically in my Fedora 18 system. After a short question in the german Fedora project, this should work ( I can't say if it worked since the upgrade ).

After searching which service is not running with

systemctl list-units --failed 

showed, that udisks2.service failed ( because of hibernate/resume I didn't recognize this for some time ).

After starting the service again:

systemctl stop udisks2.service
systemctl start udisks2.service 

the automatic mounting worked again.

Jan 18, 2013

Upgraded Fedora 17 to Fedora 18 on Fujitsu CELSIUS

I had Fedora 17 running for some time.
Now I've upgraded to Fedora 18.

My first attempt was, to use a DVD-ISO, but this failed.

fedup-cli --iso <path to iso> --debuglog=/fedupdebug.log

It installed a grub menu entry, but booting this entry just caused some activities on the disk, a reboot and nothing was changed.

The network-update didn't work through the proxy, so I updated at home without
a proxy with

fedup-cli --network 18 --debuglog=/fedupdebug.log 

and this worked for some hours and now I'm up with a running Fedora 18 system. 

The first thing was, to install the NVidia driver. So I had to deactivated nouveau.

There has to be a file 99-local.conf in /etc/dracut.conf.d with:
# drivers to omit
omit_drivers+=" nouveau radeon"

and afterwards
 dracut -f -v
to update the ramdisk.

The nvidia-settings failed also to start.  The libpangox library is missing.

After installing the package pangox-compat, the config also starts.

Screensaver has a new feature. When active you have to slide up by the mouse button, to get to the password entry.



Jan 10, 2013

bash stores path to an executeable and doesn't recognize,when the command is gone

I had a problem with a script, I've stored in a local binary path, which is on the
environment PATH.

Now I had a redesign and the executable was moved.
But when it is called, the old executable on the previous path is stored.
A call of which <file> returns the new location.

The clean the cache of executables in bash:

[ewer@sunray1:/users/trinomic/ewer]>hash -h 
-bash: hash: -h: invalid option 
hash: usage: hash [-lr] [-p pathname] [-dt] [name ...] 
[ewer@sunray1:/users/trinomic/ewer]>hash 
hits command 
1 /usr/bin/which 
6 /usr/bin/tel