Dec 22, 2008

MP3-Player CMX Stringray 4GB

Today I heard the Netbeans Podcast 49 but I didn't finish on the way to work.
So I connected the MP3-Player to my SunRay 1G station which is operating with
SunRay Software 4.0.

It got automatically mounted under /tmp/SUNWut/mnt/

/opt/SUNWut/bin/utdiskadm -l shows the output:
[ewer@sunray2:/]>utdiskadm -l
Device Partition Mount Path
------ --------- ----------
disk1 disk1s2 /tmp/SUNWut/mnt/ewer/noname


The path is accessible and I could play the mp3 file with the Java Media Player.
After listening, I umounted the device and did the "eject":

[ewer@sunray2:/]>utdiskadm -u /tmp/SUNWut/mnt/ewer/noname
[ewer@sunray2:/]>utdiskadm -l
Device Partition Mount Path
------ --------- ----------
disk1 disk1s2
[ewer@sunray2:/]>utdiskadm -r disk1


After this I could unplug the player.

Dec 12, 2008

using a ramdisk in Solaris/OpenSolaris

Today, I found out, how to create ramdisks in OpenSolaris.
By reading the wiki, which was referenced by the SDN News Blog.

It is really easy.

bash-3.2$ pfexec ramdiskadm -a ramdisk1 100m
/dev/ramdisk/ramdisk1
bash-3.2$ pfexec ramdiskadm -a ramdisk2 100m
/dev/ramdisk/ramdisk2
bash-3.2$ pfexec zpool create rampool mirror /dev/ramdisk/ramdisk1 /dev/ramdisk/ramdisk2
bash-3.2$ zpool status
Pool: fujiUSB
Status: ONLINE
scrub: Keine erforderlich
config:

NAME STATE READ WRITE CKSUM
fujiUSB ONLINE 0 0 0
c6t0d0s7 ONLINE 0 0 0

Fehler: Keine bekannten Datenfehler

Pool: rampool
Status: ONLINE
scrub: Keine erforderlich
config:

NAME STATE READ WRITE CKSUM
rampool ONLINE 0 0 0
mirror ONLINE 0 0 0
/dev/ramdisk/ramdisk1 ONLINE 0 0 0
/dev/ramdisk/ramdisk2 ONLINE 0 0 0

Fehler: Keine bekannten Datenfehler

Pool: rpool
Status: ONLINE
scrub: Keine erforderlich
config:

NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c3d0s0 ONLINE 0 0 0

Fehler: Keine bekannten Datenfehler
bash-3.2$ zfs list | grep rampool
rampool 70,5K 63,4M 18K /rampool


and now destroy the mirrored pool and the ramdisks

bash-3.2$ pfexec zpool destroy rampool
bash-3.2$ pfexec ramdiskadm -d ramdisk1
bash-3.2$ pfexec ramdiskadm -d ramdisk2

It is really that easy, when you know it.

Dec 11, 2008

Update patch 1 for NetBeans 6.5 is available

Today it was announced, that the patch 1 update for NetBeans 6.5 is available

It is a two phase update. On the first run, only one update has been found.

First it updates the updater itself and after a restart the remaining updates are
pulled over the network.

Dec 6, 2008

I've won the Puzzler of the NetBeans PodCast 47

I've won the puzzler of the Netbeans Podcast 47.


Here you see a photo of me with the price I won. The Rich Client Programming book signed by the Authors Geertjan Wielenga and Jaroslav Tulach.

This Netbeans podcast is produced by some members of the Netbeans-Team in the wonderful city of Prague in the Check Republic.

I've visited the city already 3 times and it was always fantastic.

Nov 26, 2008

PDF Document does not print all Fields generated with iText

With the help of iText we patch some fields in already existing PDF documents.
This was no problem so far.
But recently some Windows PC can print the whole document and others have
the document but not the patched fields.

After some investigation of the problem, the reason was, that the fields use
an unicode font.
The AdobeReader was extended with the FontPack.
This allows the usage of e.g arabic fonts.
But when a Reader has not the FontPack, the PDF document with the unicode
font can be viewed and everything is fine, but this part of the document is
not printed.

Just changing the font to something else works quite fine.

Nov 25, 2008

Get Data like pagesize from a linux system

Today I have the job to determine the memory footprint of an application.
/proc/statm
delivers the memory in pages ( see the man page of proc for an explanation of statm )

Now the question is, how do I get the pagesize on the linux system.
On Solaris I would use pagesize to get a list or pmap -s to get the used
size. To set a different size you can use ppgsz or mpss.so.1 which must be preloaded.

On Linux I've found the following approach using Python

>>>import resource
>>>resource.getpagesize()
4096
But the simpler version is to read the man pages of sysconf(3) and getconf(1)
By the help of getconf, a lot of information can be requested from the system.

#getconf PAGESIZE
4096

top can show a lot more details when using the "f" key and selecting additional fields to show corresponding to memory.

top - 10:26:25 up 18 days, 2:42, 3 users, load average: 0.00, 0.00, 0.00
Tasks: 81 total, 2 running, 79 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2060868k total, 1737284k used, 323584k free, 170648k buffers
Swap: 1518100k total, 48k used, 1518052k free, 693176k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP CODE DATA COMMAND
28764 progvs 16 0 52388 6760 5208 S 0 0.3 0:02.14 44m 408 1252 progvs_prog


Nov 23, 2008

Upgraded notebook to OpenSolaris Build 101b or OpenSolaris 11/08 RC2

Today I upgraded my notebook to OpenSolaris 11/08 RC2.

bash-3.2$ prtdiag
System Configuration: FUJITSU SIEMENS LIFEBOOK S6120
BIOS Configuration: Phoenix/FUJITSU Version 1.25 01/29/2004
Upgrade didn't have any problems. Firefox is 3.0.4 the actual release.
OpenOffice is also in the Version 3.0.

Some new Visual Panels for mysql, sysid start with the command vp


Nov 20, 2008

Python EA Cluster Module and Netbeans 6.5

After installing netbeans 6.5 I also wanted to try the Python Early Access for editing Python sources in Netbeans.

There are zip-Modules available from here.
I downloaed the Cluster-Module for Python and unzipped directly in the
Netbeans directory ( /tools/netbeans/6.5 ).

The folder python1 is created there.
To get the Module into Netbeans itself you have to add it to
netbeans.cluster in the etc-Directory of the Netbeans-Installation.

Just add the folder name "python1" at the end of the file.
After restarting Netbeans, the Python module is available.

Can not insert [ or { into Netbeans 6.5 with ISO8859-15 locale

After downloading the fresh Netbeans 6.5 and installing the python module.

I attempted the featuer of "__all__" which is recognized in the completion popub.

But there was the problem, that I could not insert a bracket ( "[" ).
In a shell or any other application it works, but in jedit it does also not work.

So it seems to be combined with a Java Application.

After changing the locale to de_AT.UTF-8 I could insert brackets again.

so my workaround is to have the system running in de_AT.ISO8859-15 and also gnome as describe here and just change the locale in the start scripts.
The default editor locale is set to de_AT.ISO8859-15, because otherwise
the whole development will be destroyed, when changing the locale.
It also didn't help to use different JDK's.

final Netbeans 6.5 is available

The final version of netbeans for Solaris x86, SPARC is downloaded and runs
on OpenSolarix Build 101 x86 and Solaris 10 8/07.

Here is the announcement.

Nov 18, 2008

Getting Gnome to use the new de_AT.ISO8859-15 locale

Yesterday in the my blog, I described how to get the missing locale de_AT.ISO8859-15 back in OpenSolaris Build 101.
But after the boot today, Gnome still had the UTF-8 locale in use.

So I had to add the new locale in /etc/X11/gdm/locale.alias
German(Austria) de_AT.UTF-8,de_AT
German(AustriaISO8859-15) de_AT.ISO8859-15,de_AT
After logout, changing the Language in the GDM-Login screen and login, the
locale is now the de_AT.ISO8859-15.

Nov 17, 2008

missing ISO8859-15 locale in OpenSolaris Build 101a

Last Friday, I recognized, that the de_AT.ISO8859-15 locale is missing.
There were only UTF-8 locales in the system available

bash-3.2$ locale -a
C
POSIX
ar_EG.UTF-8
ar_SA.UTF-8
bg_BG.UTF-8
ca_ES.UTF-8
cs_CZ.UTF-8
da_DK.UTF-8
de.UTF-8
de_AT.UTF-8
de_CH.UTF-8
de_DE.UTF-8
de_LU.UTF-8
el.UTF-8
el_CY.UTF-8
el_GR.UTF-8
en_AU.UTF-8
en_CA.UTF-8
en_GB.UTF-8
en_IE.UTF-8
en_MT.UTF-8
en_NZ.UTF-8
en_US.UTF-8
es.UTF-8
es_AR.UTF-8
es_BO.UTF-8
es_CL.UTF-8
es_CO.UTF-8
es_CR.UTF-8
es_EC.UTF-8
es_ES.UTF-8
So I could not edit with vi/vim some source-files, because they were all in
ISO8859-15 encoded.

After searching and searching, I didn't find any hint about this.
Today I searched again and after starting the packagemanager, I found
a package named "SUNWlang-de-extra". This package lists the ISO8859-1 and
ISO8859-15 for de_AT and de_DE.

After the installation:

bash-3.2$ locale -a
C
POSIX
ar_EG.UTF-8
ar_SA.UTF-8
bg_BG.UTF-8
ca_ES.UTF-8
cs_CZ.UTF-8
da_DK.UTF-8
de
de.ISO8859-15
de.UTF-8
de_AT
de_AT.ISO8859-1
de_AT.ISO8859-15
de_AT.ISO8859-15@euro
de_AT.UTF-8
de_CH
de_CH.ISO8859-1
de_CH.UTF-8
de_DE
de_DE.ISO8859-1
de_DE.ISO8859-15
de_DE.ISO8859-15@euro
de_DE.UTF-8
de_DE.UTF-8@euro
de_LU.UTF-8
Now I can set the default-locale in /etc/default/init again to the de_AT.ISO8859-15 locale, to do not damage my source files.

Nov 16, 2008

Glassfish White Paper from Sun about High Availability and Solaris 10 Zones

Sun published a White Paper about the High Availability of Glassfish in Solaris 10
with Zones.

Nov 13, 2008

Terminal with many shells running inside on terminal

Since Build 100 is the package pkg:/SUNWterminator@0.5.11-0.100 in the
IPS repository available.
It allows to start multiple shells in one terminal which are visible at the
same time.
gnome-terminal allows also multiple shells, but in different tabs:



To set the title of each one you see the function in the .bashrc in my case
The title is dynamically updated.
This code is from here and here are some shortcuts described.

Ctrl-Shift-E: will split the view vertically.

Ctrl-Shift-O: will split the view horizontally.

Ctrl-Shift-P: will focus be active on the previous view.

Ctrl-Shift-N: will focus be active on the next view.

Ctrl-Shift-W: will close the view where the focus is on.

Ctrl-Shift-Q: will exit terminator.

F11: will make terminator go fullscreen.


The code for the bash-functions:
# set the window title
setWindowTitle() {
echo -ne "\e]2;$*\a"
}

updateWindowTitle() {
setWindowTitle "${USER%%.*}@${HOSTNAME%%.*}:/${PWD}"
}
PROMPT_COMMAND=updateWindowTitle

Nov 10, 2008

Upgraded notebook to OpenSolaris Build 101a

After some troubles to update the notebook to Build 100a and a reinstall
with build 99, I tried the next upgrade to build 101a because of an
successful update which Jim Grizano blogged.

It took about 2 hours without any intervention and I could successfully boot
the notebook again.
The Xserver is up and running and I can work.

The one thing were a lot of messages about zfs-autosnapshot where the
user zfssnap is not allowed to execute cron-jobs. ( see this msg-Thread )

Nov 8, 2008

Cakes


knight's castle



Soccer

Nov 7, 2008

OpenSolaris dual monitor usage

In this blog I described already the switching to an external monitor/beamer
in OpenSolaris.

Today I created an xorg.conf by the help of Xorg --configure:
First I disabled the graphical login manager:

svcadm disable gdm:default


After this I logged in via SSH and started
Xorg --configure


This created an xorg.conf.new in /root.
In the Display-Section I set the Virtual Size
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 2048 2048
EndSubSection


and started the dual head operation with
pfexec xrandr --output VGA --right-of LVDS


After this, the mouse can go out of screen on the Laptop and enters the external screen.
Also a running Windows can be moved to the other screen.

Sound Theme doesnot work after fresh Installation of Opensolaris Build 99

After the crashed Update to Build 100a, I reinstalled Build 99. Some adjustments
had to be done, but the login-Sound was not audible anymore.
I tried to activate the ESD, but some messages told me, that ESD is not used
after some Build of Gnome it isn't used anymore.

So what I found was the autostart-things of gnome are in
/usr/share/gnome/autostart
There is also a file for the login which shows the command which plays the sound:
libcanberra-login-sound.desktop:

/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"
OnlyShowIn=GNOME;
Executing the command in the terminal responded that it didn't found any
sound file to play.

After some searching I had to install the package with the sound files:
# pkg install pkg:/SUNWxdg-sound-theme@0.5.11-0.99
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 40/40 0.65/0.65

PHASE ACTIONS
Install Phase 48/48
PHASE ITEMS
Reading Existing Index 9/9
Indexing Packages 1/1
After installing the commandline execution gave the login-Sound to the speakers.

Nov 3, 2008

Downgraded to Build 99 again

After I downloaded the Build 99 of OpenSolaris and installed it on the laptop
everything worked fine. Before continuing to configure, I tried another upgrade
with a fresh installed Build99 of OpenSolaris and it failed also to start the
Xserver ( also login on the command line was not possible ).
Starting in Single-User-Mode is possible.

So I reinstalled to Build 99 installed andconfigured and now I'm waiting for the
next version, perhaps this one will work.

Oct 31, 2008

Upgrade to Build 100a continued ....

After downloading the CD, booting from it, it fails also to start the Xorg-Server.

Now I booted to single user mode, because booting Build 99 fails because of some ZFS errors
showing shortly and a reboot afterwards.

In Single-User-Mode on Build 100a, I tried to start the Xorg Server on the Fujitsu Lifebook
S-Series with an i855 Graphics card.
The Xorg-Server could not start, because it tries to load an amd64-libpcidata.so and this
is the wron ELF-Class ( 64Bit Class and the Laptop has a 32Bit Processor ).

Now I try to copy ma data back to an external USB disk and the tar command issues some
warnings on files having dates in the future ( 2038-01-01 1:00:00 ) or implausibly old time stamp ( 1970-01-01 01:00:00 )

After this I try to install Build 98 and live till the next build.

OpenSolaris Upgrade to 100a damages the whole system

Today I upgraded to the Build 100a of OpenSolaris with the IPS system. After reboot the system boots
up, but no GUI or command line login appear's.
After power off and reboot to Build 99 the system starts booting but reboots immediatly so the old
version is also not bootable.

The CD with Build 98 boots, but can not import the ZFS pool, because it was opened with an other system.

For now I download the CD of Build 100a and wil lthan try to boot from this CD.

Oct 30, 2008

overview tool for CPU/Memory usage in OpenSolaris/Solaris

In my blog-entry from August about the Sun Benchmark Center CD I wrote already
about the tools supplied by the Benchmark Center in Langen/Germany from Sun.
Today I grabbed the CD and did a short look into the contents ( a little late ) and
a found some useful tools here is the Snapshot of cpubar on one of our T1000
server:

You can see each thread on the 6 cores, the process queues, paging, scanrate, memory usage, virtual memory.

On this T1000 the tool runs with about 0.1% CPU usage.

The CD contains tools for SPARC and i386 architecture.
The x86 tools also run on my OpenSolaris (Build 99 ) Laptop.

Oct 27, 2008

Installed OpenOffice 3.0 on a Solaris 10 8/07 on SPARC

I have installed OpenOffice 3.0 ( which works fine on my OpenSolaris Laptop ) on
our SunRay-Installation on 2 T1000 servers. Install was fine, but starting OpenOffice lets the process hang:
[ewer@sunray1:/users/trinomic/ewer]>pstack 13677
13677: /opt/openoffice.org3/program/soffice.bin
----------------- lwp# 1 / thread# 1 --------------------
ff345898 lwp_park (0, 0, 0)
fcdc64d4 _XLockDisplay (31008, 31008, fcdc64cc, 2ccc8, 3c550, 31588) + 8
fe553af0 XGetExtensionVersion (31008, fe556e50, 3c550, fe554858, ff36e32c, ff3776f0) + 20
fe556224 _XiCheckExtInit (31008, 1, 3c550, 11e60, fcbe1b30, fe568000) + 8c
fe554858 XListInputDevices (31008, ffbfdfdc, f, ffbfdfe0, fcdc66c0, 0) + 2c
fcbe1b30 _gdk_input_common_init (3c848, 0, 11cc, 1d760, fcb95230, 1000) + 5c
fcbb8fc4 gdk_display_open (0, 3c848, fcc04234, 0, 1, fcbff244) + 2ec
fcb95230 gdk_display_open_default_libgtk_only (0, 6a0a4, fcc96bf0, 0, fcbff244, 3c) + 9c
f9a2a21c gtk_init_check (ffbfe1f4, ffbfe1e4, ff373580, ff272000, 1, 40000000) + 24
fcc96bf0 ???????? (26298, fee061c8, fccf4a5c, 7, 0, 160000)
fcc976c8 ???????? (21c88, 0, fc80bfb8, fcc96998, 26298, fccfb714)
fcc97cf0 create_SalInstance (21c60, fdcb45bc, fccfb6dc, fc816f4c, ffbfe2d8, ffbfe2dc) + 178
fdc09530 ???????? (ffbfe3d8, feda1420, fdca8f70, ffbfe368, 0, fe6f0008)
fdc0a744 ???????? (fdcd0264, 0, fdccf85c, fdc9730d, 1, 1800)
fd9a9ca8 __1cHInitVCL6FrknDcomDsunEstarDunoJReference4n0CElangUXMultiServiceFactory____C_ (ffbfe4d4, 0, fdca8f70, fdcb49fc, 1b68, 1800) + 114
fd9a9800 ???????? (0, ffbfe5a8, fdcb45a8, 0, fdca8f70, fdcb45bc)
fd9a9a00 __1cGSVMain6F_C_ (0, 24310, fdcb45a8, fdca8f70, 2380, fdcb45bc) + 20
fed58138 soffice_main (800, ffbfe5a8, 84c, 800, 848, 800) + c4
00010ab0 ???????? (1, ffbfe704, 0, 0, 0, 0)
00010a94 main (1, ffbfe704, ffbfe70c, 21000, ff2700c0, ff270100) + 10
00010a6c _start (0, 0, 0, 0, 0, 0) + 108
----------------- lwp# 2 / thread# 2 --------------------
ff345898 lwp_park (0, fef7be08, 0)
ff33f850 cond_wait_queue (ff1d8608, ff1d84a0, fef7be08, 0, 0, 0) + 28
ff33fcc8 cond_wait_common (ff1d8608, ff1d84a0, fef7be08, 0, 0, 0) + 298
ff33fe60 _cond_timedwait (ff1d8608, ff1d84a0, fef7bf30, ff06a490, ff3457f8, 0) + 34
ff33ff54 cond_timedwait (ff1d8608, ff1d84a0, fef7bf30, b280e0, 4905688b, 49056881) + 14
ff33ff94 pthread_cond_timedwait (ff1d8608, ff1d84a0, fef7bf30, ff06a490, ff3457f8, fef7bf38) + c
ff02d810 ???????? (a, 59407, ff06a490, b280e0, 4905688b, 49056881)
ff02d994 ???????? (a, 0, ff1d84b8, ff06a490, 5f4, ff1d84b8)
ff3457f8 _lwp_start (0, 0, 0, 0, 0, 0)
It does not matter if I use the German localization or the en-US version.

Installed VirtualBox 2.0.4 on OpenSolaris Build 99

I've installed VirtualBox 2.0.4 on my OpenSolaris Laptop. The installed
OpenSuSE 11.0 worked out of the box.
Sound is still available, but the installed skype does not find a suitable sound device.

Oct 26, 2008

activate external monitor connection in OpenSolaris on Lifebook laptop

Some day's ago I did a presentation of SubVersion and Mercurial on my laptop
ewer@solewer:~$ prtdiag | more
System Configuration: FUJITSU SIEMENS LIFEBOOK S6120
BIOS Configuration: Phoenix/FUJITSU Version 1.25 01/29/2004


but didn't get an output signal on the external monitor connector.

So I rebooted to windows, activated the external connector and rebooted
again to OpenSolaris.
The presentation did go on.

This weekend I searched for a solution without the windows reboot cycle.

The first link guided to download a lot of drivers with an install script I installed and uninstalled without testing the drivers.

Today using the hotkey - from the tool before and it worked :-o
So I searched why it worked and found two links 1,2.

The next step would be to used different resolutions and different
dualhead display's, because now I have the same display on both screens.

The tool would be xrandr.

Some help would be found here. For dualhead an xorg.conf is needed, which sets the virtual size to get a dualhead display

Oct 24, 2008

Terminal Server Client - applet in OpenSolaris Build 99 for remote GUI access

There is an applet in the GNOME environment which allows to connect to
different systems using the following protocols:

  • VNC
  • RDP
  • RDP5
  • XDMCP
  • ICA
It allows to store connections and connect via differente protocols.
I just used VNC and RDP for remote connects to different Windows systems.

Oct 22, 2008

Firefox 3.0.3 on OpenSolaris Build 99 dumps core during printing with automatic printer discovery

After getting the printers back with the automatic printer discovery in the
service
svc:/network/device-discovery/printers:snmp

They are also listed in the print-Menu of firefox 3.0.3. But Firefox hangs and
a pstack on the process shows a SIGSEGV.

I found a printing solution in the following mailing thread.

For solving the problem it suggests to LD_PRELOAD the libc.so library.

So I inserted into the firefox-Script at the beginning:

LD_PRELOAD=/usr/lib/libc.so
export LD_PRELOAD


After restarting firefox printing worked again.

New Feature of nautilus in OpenSolaris Build SNV_99

Yesterday I red in the Linux User 11/08 ( a German magazine ) about the new
Gnome Version 2.24.

There was written about the enhancements of nautilus, the GNOME file manager.
The "new" Eject-Symbol for removeabel media and that tabs are now supported.
You can open more tabs in one nautilus windows and copy between these tabs.

This is much more an enhancement, because therefore I used the gnome-commander, I posted recently.


Oct 20, 2008

Update to automatic printer discovery with printers:snmp

Today I checked the feature of the automatic printer discover with the
service
svc:/network/device-discovery/printers:snmp

which I described in this blog-entry.


The discovery works fine. Get a lot of printers into the panel. The only disadvantage I have currently is, that I have not found a simple GUI way for renaming of the printer names


Found a new filebrowser beside nautilus => Gnome commander

After the last update to Nevada Build 99 of my OpenSolaris system, I found also
the new package
SUNWgnome-commander

It is a filebrowser like the former well known norton commander during the times of DOS.

Oct 18, 2008

Replacement of the Heat Sink of CPU0 in a SunFire V240

Last Friday the Service Processor of one of the SunFire V240 mailed a message,
that one of the fan of CPU0 is not running.



System Event Recorded By SC:

HostID: "83549059"

Event: "00040066"

Time: "SAT OCT 18 17:00:58 2008"

Customer Info: "No Entry"

Hostname: "name"

SC IP Address: "xx.xx.xx.xx"

Message: "MAJOR: CPU_FAN @ MB.P0.F1.RS has FAILED."


Logging into LOM also showed that the fan is not running.
After shutting down the server an dismounting the heat sink to for cleaning,
even the processor was pulled out of the socket.

After mounting the heat sink with the processor and power on, the system powered off after some seconds and the LOM issued the message, that there
is no processor in socket 0. So I searched in
the Internet and found the following guide for Sun Fire V240 for replacing the
heat sink.
After a little searching there was also a message asking what to do, when the
processor is on the heat sink, as was the case here.

The only possible thing was to get the processor off from the heat sink with
some force. I took a screw driver and with some caution the processor was
separated from the heat sink.

After putting in the processor into the socket and mounting the heat sink,
the system was running again.

Oct 17, 2008

automatic printer discovery in OpenSolaris with printers:snmp failed in Build 98/99

The automatic printer discovery with the SMF service svc:/network/device-discovery/printers:snmp seemed to work, because the service is online.
But when restarting the service again it failed into maintenance.

Here is the error in the log:

[ Okt 16 19:23:20 Executing stop method ("/lib/svc/method/svc-network-discovery stop snmp"). ]
/usr/bin/dbus-send --system --print-reply --dest=org.freedesktop.Hal --type=method_call /org/freedesktop/Hal/devices/network_attached org.freedesktop.Hal.Device.NetworkDiscovery.DisablePrinterScanningViaSNMP
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

After some search in the internet, a mailing list thread in opensolaris gave
the hint.

The hal daemon was running in debug-mode and showed, that the SNMP MIP's
were not found and therefore the hal daemon didn't respond. When I remember correct, this is since Build 93.

pfexec pkg install SUNWsmmgr


After installing the package SUNWsmmgr and restarting hal and printer-discovery the service work again.

pfexec svcadm restart svc:/system/hal:default
pfexec svcadm restart svc:/network/device-discovery/printers:snmp

Hope to find the printer's, when I'm back online in the company network.

Oct 16, 2008

Updated OpenSolaris - Laptop to SNV_99

Yesterday I upgraded the laptop to the Build SNV_99 with the help of the
IPS package system pkg.

The first problem was, that I had to go over a squid proxy. My fault was the wrong
setting of the HTTP_PROXY environment variable.

The right format is HTTP_PROYX=http://:.
The other thing was to open the port's for the pkg-systems on blastwave ( http://blastwave.network.com:10000/, sunfreeware ( http://pkg.sunfreeware.com:9000/ ) and Life With Solaris ( http://pkg.lifewithsolaris.jp:10000/ - supports a lot of packages for multimedia )

The upgrade was nearly straight forward.
The only problem was, that I installed JDK 1.6.0_07 in /usr/jdk/jdk1.6.0_07.
Pkg tried to install the same version and broke the installation.

Here I had to unmount the new installation and destroy the newly created
boot environment.

beadm umount opensolaris-8
beadm destroy opensolaris-8


After this the next image-update created a new boot environment, but didn't
download all packages newly again.

Now I'm writing from the new installed version.
ewer@solewer:~$ uname -a
SunOS solewer 5.11 snv_99 i86pc i386 i86pc Solaris

Oct 11, 2008

Soccer Cake

zpool upgrade in OpenSolaris SNV_98 blusted laptop => grub failed to load stage2

Yesterday, during the day I did a

pfexec zpool upgrade


This showed, that the rpool was on Version 10 and 13 is available.
So I issued

pfexec zpool upgrade rpool


Succeeded without error and I continued to work.
In the evening I shut down the system ( suspend does not work because of
a display@2 which can not suspend ).

At home I started the laptop again and it failed to load stage2 in grub and
I got the grub -shell displayed.

After looking for help in the internet, I found the following discussion on the
OpenSolaris mailinglist.

So I searched for an image of opensolaris with build 98 ( this is the one I'm running ) and found it in the download area of OpenSolaris in the chapter
OpenSolaris 2008.11 Development Builds.
Here is a link to http://genunix.org/ which lists the iso-Images.

I downloaded osol-0811-98.iso, which just supports the primary language,
but the image was 747 MB large and did not fit on the CD, even with overburning.
So I downloaded osol-0811-98-global.iso , which supports all languages
and it was only about 660MB large and fit on the CD.
After downloading I burned the CD.

Today I booted the laptop from the CD.

The first action was

pfexec zpool import


which showed the pool after a
pfexec zpool import -f


got the pool back and than I reinstalled grub
cd /boot/grub
pfexec installgrub stage1 stage2 /dev/rdsk/c3d0s0

The final reboot brought back the boot menu and Windows XP and all the
Solaris Images were available again.

Thank's again, that all is back now. I already thought to have to reinstall
the whole laptop.

Oct 9, 2008

automatic backups of a ZFS filesystem

Today I removed accidentally a file on my laptop on a ZFS filesystem. I had a backup on an external disk, but to not trap into that again, I installed now
the ZFS autosnapshot tool from Tim Foster.

I used this valuable tool already on some servers running Solaris 10 on SPARC
hardware.

After downloading you have to extract the archive and call "make"

This generates in the proto subdirectory the package TIMFaut-snapshot.

ewer@solewer:/tmp/zfs-auto-snapshot-0.10/proto$ pfexec pkgadd -d .

The following packages are available:
1 TIMFauto-snapshot ZFS Automatic Snapshot Service
(all) 0.10

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1

Now you can use a graphical gui and set the backup interval:

/usr/bin/zfs-auto-snapshot-admin.sh simple

















You can view your setting also direct in the properties of the ZFS filesystem:

ewer@solewer:/tmp$ zfs get all rpool/export/home
...
rpool/export/home com.sun:auto-snapshot:frequent true local
rpool/export/home com.sun:auto-snapshot:daily false local

Parametrization of the Snapshot ( how many snapshots, how often, .... ) can be
done with svccfg:

ewer@solewer:/tmp$ svccfg
svc:> select auto-snapshot:daily
svc:/system/filesystem/zfs/auto-snapshot:daily> listprop
start method
start/exec astring "/lib/svc/method/zfs-auto-snapshot start"
start/timeout_seconds count 0
start/type astring method
stop method
stop/exec astring "/lib/svc/method/zfs-auto-snapshot stop"
stop/timeout_seconds count 0
stop/type astring method
startd framework
startd/duration astring transient
zfs application
zfs/backup astring none
zfs/backup-lock astring unlocked
zfs/backup-save-cmd astring "not set"
zfs/fs-name astring //
zfs/interval astring days
zfs/label astring daily
zfs/offset astring 0
zfs/period astring 1
zfs/snapshot-children boolean false
zfs/verbose boolean false
zfs/keep astring 14
general framework
general/enabled boolean true
restarter framework NONPERSISTENT
restarter/logfile astring /var/svc/log/system-filesystem-zfs-auto-snapshot:daily.log
restarter/start_pid count 18063
restarter/start_method_timestamp time 1223549190.558374000
restarter/start_method_waitstatus integer 0
restarter/transient_contract count
restarter/auxiliary_state astring none
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1223549190.566421000
restarter_actions framework NONPERSISTENT
restarter_actions/refresh integer
svc:/system/filesystem/zfs/auto-snapshot:daily>
Here for example I have modified zfs/keep to 14 days instead of the default of 31 days.

Many Thanks to Tim Foster for this superb tool.

convert CVS to Mercurial : abort: decoding near

In my last post I wrote already about the conversion with the version from
the crew-repository and the builtin cvsps usage to convert a CVS
repository to a Mercurial repository:

hg convert --config convert.cvsps=builtin --datesort -A ~/hgUserNames ./gvs ./REPOS/GVS-hg
.....
275 Anpassungen im WFL Bereich für das Thema Abgeltungssteuer
transaction abort!
rollback completed
abort: decoding near 'hristoph K�rner ( ch': 'utf8' codec can't decode bytes in position 11-12: invalid data!
Now on a very large repository I got some aborts about out of memory and
problems in the native cvs executable, but the restart seems to continue.
But the last error as seen above was a conversion problem. Here in Austria
we have some Umlaute which caused problems.

Looking into the mercurial source I found the problem location in
mercurial/util.py in the function "fromlocal" where the UnicodeError is
logged.
The comment above also states the solution to solve the problem:

We attempt to decode strings using the encoding mode set by
HGENCODINGMODE, which defaults to 'strict'. In this mode, unknown
characters will cause an error message. Other modes include
'replace', which replaces unknown characters with a special
Unicode character, and 'ignore', which drops the character.
After I set HGENCODINGMODE the conversion finished.

Oct 7, 2008

convert a CVS repository to a Mercurial repostiroy

For evaluation purpose I converted one of our CVS repository to mercurial.

For this purpose I used my OpenSolaris installation which has mercurial
already as package available.

Mercurial is a distributed version control system with no central repository,
which must be available to work with version control.

The conversion of the stable 1.0.2 release of Mercurial needs cvsps in the
path to convert CVS-repositories.

To start, you need the CVSROOT environment variable set to your CVS repository
and a checked out version of the source.

When in .hgrc the convert extension is activated you can start.

hg convert


This will generate a default mercurial repository with the "-hg" appended to
the path.

Here I got a python stack trace with a KeyError: "bad" in cvs.py.
After some looking around, I found a message which says, to use the crew-
version
of mercurial ( not the stable one as I found out ), where the external
cvsps is not necessary anymore.

The convert call

Downloads/crew-582dac23ebac/hg -v convert --config convert.cvsps=builtin ./

This converted my CVS repositories without problems.

Oct 3, 2008

Start Glassfish as a SMF Service in Solaris 10

I was surprised how easy it was to register Glassfish as a SMF(5) service in
Solaris 10.

The asadmin command already has a target command

bin/asadmin create-service --passwordfile ./passfile domains/domain1
The passfile contains the passwords for the instance:

AS_ADMIN_USER=admin
AS_ADMIN_PASSWORD=
AS_ADMIN_MASTERPASSWORD=

After this, there is a SMF-Service with the name of the domain created.
The service can be started/stopped with svcadm.

Moving Glassfish ressource configuration to a different installation

For a project I configured in the Web-Console ( http://:4848 ) of Glassfish
the JMS and JDBC-Resources necessary for an EJB application.

On a new installation I had to move the Resources.

I installed Glassfish as described on the download site.
Copied the domain.xml in the domain1/config/ directory to the new site.

Here you may have to delete the applications MEjbApp, __ejb_contianer_timer_app and __JWSappclients and the application reference further down in the file.
Just lookup the entries in domain.xml and delete them. These applications
are created dynamically.

You have also to change the the JMS host in the XML-Tag jms-host

After this the new Glassfish has the necessary resources.

standalone Glassfish is slow without netbeans

I used the installed glassfish from the netbeans ide. It worked quite well, but
after some week's I used the asadmin script to start the glassfish without the
netbeans IDE.

The Admin-Console http://:4848 was very slow.
The server log file showed a lot of entries about the Netbeans HTTP-Mointor which is not available.

In <.../domain1>/config/default-web.xml was a filter and mapping configuration for the Netbeans listener.
After deleting the entries and restart of glassfish, the old speed was back
again.

Sep 23, 2008

Updated OpenSolaris - Laptop to SNV_98

Now I upgraded to SNV_98 on my OpenSolaris-Laptop.

During the upgrade I got an error because the ROOT-ZFS was not the last one,
I booted. Seem's as if there was a problem during the last update.
So I booted the system witht the last boot-environment which was the source
( used the most space on the filesystem ) and deleted the later created
environments with
beadm destroy


After this a refresh was executed and the SUNWipkg package was updated.

pfexec pkg refresh
pfexec pkg install SUNWipkg@0.5.11-0.97
pfexec pkg image-update

and the system worked again:

ewer@solewer:~/Desktop$ beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
opensolaris - - 73.32M static 2008-08-05 21:14
opensolaris-1 - - 74.15M static 2008-08-05 23:03
opensolaris-2 - - 76.98M static 2008-08-23 19:28
opensolaris-3 - - 184.72M static 2008-09-05 19:36
opensolaris-4 - - 118.5K static 2008-09-07 18:36
opensolaris-5 - - 22.34M static 2008-09-12 18:58
opensolaris-6 - - 1.10M static 2008-09-22 09:40
opensolaris-7 NR / 13.60G static 2008-09-22 12:17
This is a greate advantage compared to the live upgrade system available
in former solaris releases. The live upgrade worked also like a charme, but it
really needed another installation of the system with the whole disk space.
Here you can see that 8 different systems are installed.

Sep 12, 2008

Audio on OpenSolaris SNV_97 and VirtualBox is working !!!

Suprisingly found out, that the audio is working on my OpenSuSE installation in Virtualbox 2.0
under OpenSolaris SNV_97 with
SolarisAudio
ICH AC97 as AudioController.


Didn't work until now.

Upgraded to OpenSolaris SNV_97

Today I upgraded the OpenSolaris Installation to SNV_97.

Here is the log:

pfexec pkg image-updateewer@solewer:~/Desktop$ pfexec pkg image-update
Checking that SUNWipkg (in '/') is up to date...
WARNING: pkg(5) appears to be out of date, and should be updated before
running image-update.

Please update pkg(5) using 'pfexec pkg install SUNWipkg' and then retry
the image-update.
ewer@solewer:~/Desktop$ pfexec pkg install SUNWipkg@0.5.11-0.96
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 88/88 0.31/0.31

PHASE ACTIONS
Removal Phase 4/4
Install Phase 5/5
Update Phase 150/150
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 1/1
ewer@solewer:~/Desktop$ pfexec pkg image-update
Checking that SUNWipkg (in '/') is up to date...
DOWNLOAD PKGS FILES XFER (MB)
Completed 612/612 9458/9458 225.05/225.05

PHASE ACTIONS
Removal Phase 2942/2942
Install Phase 3558/3558
Update Phase 16797/16797
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 1225/1225
A clone of opensolaris-3 exists and has been updated and activated. On next boot the Boot Environment opensolaris-5 will be mounted on '/'. Reboot when ready to switch to this updated BE.

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:
http://opensolaris.org/os/project/indiana/resources/rn3/
---------------------------------------------------------------------------

ewer@solewer:~/Desktop$
And here is the screenshot of the running system:


Here you can see the running skype on a CentOS 5 installation in a branded zone.
Also the OpenSuSE 11 running in VirtualBox 2.0 is available.

Sep 11, 2008

moving laptop with OpenSolaris and NFS mounts

On my laptop I have some directories, e.g sdk mount via NFS from a central NFS server
still based on Linux ( will be replaced with a Solaris 10 x86 installation sometime later, when I find time).

I have defined a direct map ( see the man page for automount ).

For the server you mount from, you can supply a weight which server will win for the
mount request. They weigth is supplied in parenthesis, where 0 is highest priority.
When no weight is supplied, 0 is default.

Here's an example from the man page for an indirect map:
man -ro alpha:/usr/man bravo,charlie(1):/usr/share/man
delta(3):/export/man



The mount order is from alpha, bravo, charlie or delta.

For my situation I have a local copy of the parts in sdk I need for compiling,
which are mounted, when the local NFS server is not available.
So there is not need to change directorys for compiling regardless if I have the
NFS drives available or not.

Sep 10, 2008

binding RPC communication socket to a specific interface

I faced the problem, that a background daemon process needed to communication with an
external tool via RPC-calls.

The problem at the customer site is, that the daemon executes on a server which runs
in a cluster and gets a dynamic interface. So the outgoing traffic must be from the dynamic interface. This is necessary for the firewall, to have all packets on the network the
same origin adress.

The clnttcp_create() allows to supply a filedescriptor.
Now it is possible to create a socket and bind it to a specific interface.

After starting and tracing with truss, it shows, that the portmap-Call to port 111
is done via the default interface and not the binding interface.

After searching for the librcpsoc-Source on opensolaris for clnttcp_create, it is
known that without a target port the lib creates an own connection to the portmapper
to request the port number on the remote system.

The open point is now, that the RPC-server should be bound to a fixed port, which I have to
verify now.

Sep 7, 2008

Sanyo Xacti Digital Camera recognized by OpenSolaris

Today I took photos of the rabbits of our children with our digital camera Sanyo Xacti VPC-J1EX.

Now to upload the images I started OpenSolaris SNV_96.
Plugged in the USB cable of the camera and it worked.

Sep 7 18:15:06 solewer usba: [ID 912658 kern.info] USB 1.10 device (usb474,213) operating at full speed (USB 1.x) on USB 1.10 root hub: storage@1, scsa2usb2 at bus address 2
Sep 7 18:15:06 solewer usba: [ID 349649 kern.info] SANYO Digital Camera 000066952653
Sep 7 18:15:06 solewer genunix: [ID 936769 kern.info] scsa2usb2 is /pci@0,0/pci10cf,11ab@1d/storage@1
Sep 7 18:15:06 solewer genunix: [ID 408114 kern.info] /pci@0,0/pci10cf,11ab@1d/storage@1 (scsa2usb2) online
Sep 7 18:15:06 solewer scsi: [ID 193665 kern.info] sd3 at scsa2usb2: target 0 lun 0
Sep 7 18:15:06 solewer genunix: [ID 936769 kern.info] sd3 is /pci@0,0/pci10cf,11ab@1d/storage@1/disk@0,0
Sep 7 18:15:06 solewer genunix: [ID 408114 kern.info] /pci@0,0/pci10cf,11ab@1d/storage@1/disk@0,0 (sd3) online
Sep 7 18:15:06 solewer genunix: [ID 314293 kern.info] device pciclass,030000@2(display#0) keeps up device sd@0,0(disk#3), but the latter is not power managed
The file browser put a icon on the desktop and the images could be
copied from the digital camera

Today the rabbits for our children arrived.

Today my children got their rabbits.

Sep 6, 2008

installed new VirtualBox 2.0 on OpenSolaris SNV_96

After upgrading the OpenSolaris installation to SNV_96 yesterday, I read about the new versio 2.0
of VirtualBox.

I downloaded the new Version from here,
Removed the old version

pkgrm SUNWvboxkern
pkgrm SUNWvbox

and installed the new one after uncompressing und untaring
with

pkgadd -d ./


After installation, I configured to use nearly 1 GB main memory instead of the 600MB I used before.

Now the VirtualMachine with OpenSuse 11.0 boots smoothly.

During booting I checked with prstat the usage of my single core CPU laptop and it was around 50 to 60%

It is also no problem to use it, because this blog entry was writting with firefox in the virtualbox.

Sep 5, 2008

Upgraded notebook to OpenSolaris Build SNV_96 via ips-package system

This evening I upgraded my notebook to the next development release
SNV_96 of OpenSolaris.

ewer@solewer:/var/adm$ BUILD=`uname -v | sed s/snv_//`
ewer@solewer:/var/adm$ pfexec pkg refresh
ewer@solewer:/var/adm$ pfexec pkg install SUNWipkg@0.5.11-0.${BUILD}

pfexec pkg install entire@0.5.11-0.${BUILD}

DOWNLOAD PKGS FILES XFER (MB)
Completed 2/2 122/122 1.32/1.32

PHASE ACTIONS
Removal Phase 3/3
Update Phase 165/165
Install Phase 31/31
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 2/2
ewer@solewer:/var/adm$
ewer@solewer:/var/adm$ pfexec pkg install entire@0.5.11-0.${BUILD}
echo ${BUILD}
Nothing to install in this image (is this package already installed?)
ewer@solewer:/var/adm$
ewer@solewer:/var/adm$ echo ${BUILD}
95
"update.log" 55 lines, 2621 characters
ewer@solewer:/var/adm$ pfexec pkg image-update
Checking that SUNWipkg (in '/') is up to date...
DOWNLOAD PKGS FILES XFER (MB)
Completed 597/597 5154/5154 158.70/158.70

PHASE ACTIONS
Removal Phase 3007/3007
Install Phase 2954/2954
Update Phase 90085/90085
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 597/597
A clone of opensolaris-2 exists and has been updated and activated. On next boot the Boot Environment opensolaris-3 will be mounted on '/'. Reboot when ready to switch to this updated BE.

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:
http://opensolaris.org/os/project/indiana/resources/rn3/
---------------------------------------------------------------------------


ewer@solewer:/var/adm$ beadm list

BE Active Active on Mountpoint Space
Name reboot Used
---- ------ --------- ---------- -----
opensolaris no no - 73.32M
opensolaris-1 no no - 74.07M
opensolaris-2 yes no / 20.90M
opensolaris-3 no yes - 8.79G
And after the reboot you see:





The system has rebooted to the new version without any
problems.

editing files in jEdit from remote servers

Here we are working on a SunRay and a Laptop beside. So the screen on the SunRay is a
19" LCD monitor.

Because of the usage of WebSphere on the Laptop running on Windows XP, also the log
files were on the laptop.
One way would be to copy the logfile and edit, but when using jEdit, you have the FTP-Plugin
which supports editing via FTP/SFTP, also the file system browsing via the SFTP connection
is supported.

On the windows platform I'm using freesshd to get access via the FTP-Plugin.

We are using jEdit, because it has a simple model to extend syntax highlighting and with the
Outline/SideKick-Plugins you can also build a syntax tree to simplify navigation.

Sep 4, 2008

Tennis racket cake


Eine Geburtstagstorte,
A Birthday cake.

Sep 1, 2008

Solaris Application Programming

I have finished reading Solaris Application Programming.

The content goes very deeply into the area of performance optimization of C/C++ and
Fortran programs using the Solaris onboard tools and compiler. This book is definitely not for
beginners, because this will be disappointing for programming starters.
But it is a valuable book, which experienced programms should have beside their desk.

Aug 30, 2008

Information from the Solaris Kernel via kstat ( kernel statistics )

To get information about the running kernel of a Solaris system you can use
kstat(1M)
.

There are a lot of fields which you have to interprete. On the OpenSolaris site there
is a project named OpenSolaris Project: JKstat - a java binding for libkstat.

This is a java programming with a binding to the kstat information. JKstat uses the data
to display the data in graphics.

See the screenshots on OpenSolaris and on Peter Tribble's site.

Aug 29, 2008

using a new JDBC-Database in Glassfish

During the deployment of our application from Websphere to Glassfish, I had to
deploy a MySQL driver to use the database.

  • Providing the JDBC Driver in the Glassfish-environment

For the access to a MySQL-database you have to deploy the JDBC-driver.

You have to copy the jar archive of the JDBC driver into the directory

/domains/domain1/lib/ext
and restart the app server with:

/bin/asadmin stop-domain domain1
/bin/asadmin start-domain domain1


  • creating a JDBC Connection Pool

to access the database a connection pool must be created first.
go to the administration page of Glassfish : ''http://:4848'' .
Use the menue "Resources - JDBC - Connection Pools" with the following data:

Name PoolName
Resource Type javax.sql.DataSource
Database Vendor MySQL

AsDatasource Classname use the default com.mysql.jdbc.jdbc2.optional.MysqlDataSource.

The properties:

databaseName
user
password
portNumber 3306
servername localhost

In the General tab you can use the button "Ping" for testing the database access.

  • Configure the JDBC Resource for an application

Menue Resource - JDBC - JDBC Resource to create a new resource:

JNDI-Name
PoolName created poolname
Description usage of this resource
Status is the resouce available?


Now you can access the connection via a JNDI Lookup

Aug 27, 2008

Deployment on Glassfish => ordering of xml elements is important

We got the J2EE Application runnable on the WebSphere 6.1 with manually created
deployment descriptors ( by the help of Netbeans ).

Now I created the descriptors for Glassfish. Deployment issued a lot of warnings about
wrong child elements for "ejb" in the sun-ejb-jar.xml.

Checking file:/users/trinomic/ewer/entw/J2EE-JKASSA/jkassa/trunk/config/server/customers/drb/test/deployment/glassfish/ejb-jar/META-INF/sun-ejb-jar.xml...
The content of element type "ejb" must match "(ejb-name,jndi-name?,ejb-ref*,resource-ref*,resource-env-ref*,service-ref*,message-destination-ref*,pass-by-reference?,cmp?,principal?,mdb-connection-factory?,jms-durable-subscription-name?,jms-max-messages-load?,ior-security-config?,is-read-only-bean?,refresh-period-in-seconds?,commit-option?,cmt-timeout-in-seconds?,use-thread-pool-id?,gen-classes?,bean-pool?,bean-cache?,mdb-resource-adapter?,webservice-endpoint*,flush-at-end-of-method?,checkpointed-methods?,checkpoint-at-end-of-method?)". [149]
XML validation finished.

After looking and trying to validate in NetBeans I didn't find anything wrong, but there
was the
element before the 's.
This caused the error.
When moving after the 's, deployment could
continue ...

Aug 26, 2008

Introduction about comparing Solaris / OpenSolaris

Comparison Webcast of Solaris OpenSolaris from Sun Partner Advantage can be
viewed under this link.

Sun Hardware museum in the Sun Benchmark Center Langen/Germany

On YouTube is a video on the Sun Vision TV a section about
Welcome to the Machine.
Here is the link to the last entry
Sunopsis - Sun museum about old hardware.

It is a german video containing the history about Sun Hardware. The
Benchmark Center in Langen/Germany has all Hardware in operational state.

I started using the Sun Hardware at Siemens AG in Austria with the SPARCStation2 and
the IPX.

Aug 24, 2008

installed openSuse 11.0 on my laptop in a VirtualBox image

Finally I installed OpenSuSE 11.0 on my laptop in a VirtualBox environment.

First problem was to start VirtualBox on a SNV_95 OpenSolaris installation.

See Bug on Virtualbox with a Workaround, which allows starting VirtualBox
on OpenSolaris Build : SNV_95

Installation went on via a directly mounted ISO-Image as DVD.

But the Laptop is not powerfull enough to run the virtualized environment
without any problem.

But it works!!!

packagemanager didn't start in OpenSolaris SNV_95 installation

When starting packagemanger, the graphical interface to the IPS ( Image packaging system ) , it didn't simple come up with an interface.

After looking into
/usr/bin/packagemanger
I saw that it is a python script with the following starting lines:

import getopt
import os
import sys
import time
import pango
import locale
import socket
import gettext
from threading import Thread
try:
import pygtk
pygtk.require("2.0")
except:
sys.exit(1)
try:
import gobject
gobject.threads_init()
import gtk
import gtk.glade
except:
sys.exit(1)
As a result, I tried to start python in the commandline and import the packages to see which one was failing:

And it was the gtk package which cause the following error message

import gtk Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/__init__.py", line 48, in ? from gtk import _gtk ImportError: ld.so.1: python2.4: fatal: /usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/_gtk.so: open failed: No such file or directory
But
ls -l /usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/_gtk.so
showed, that the file is available?
LD_DEBUG=help python
shows some help about debugging the dynamic linker.

I think I've used
LD_DEBUG=libs python
>>>import gtk
this showed some elf-errors in the _gtk.so object.

The following command verified the package content

ewer@solewer:~$ pkg verify pkg:/SUNWgnome-python-libs@0.5.11-0.95
PACKAGE STATUS
pkg:/SUNWgnome-python-libs ERROR
file: usr/share/pygobject/xsl/fixxref.py
Timestamp: 20080427T015835Z should be 20080714T184238Z
......
file: usr/lib/python2.4/vendor-packages/gtk-2.0/gobject/propertyhelper.pyc
Group: 'root' should be 'bin'
Size: 8796 bytes should be 8855
Hash: c0f287bd871a9ff20c9c7068b519373f0f394508 should be 08adfdf2d71874ae8a47084e6179c655552c59e8
file: usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/__init__.py
Timestamp: 20080427T015837Z should be 20080714T184241Z
file: usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/__init__.pyc
Group: 'root' should be 'bin'
Hash: ef9e8567d8b44307017931cc2dd5edc9e8e6fa6e should be 7b90e692d6bdb5802753535831691b56e04b2a20
file: usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/_gtk.so
Elfhash: failed to load dynamic section
Hash: 5562800958cfff2f761e9a74889b709ceeffedd8 should be c9766dd3ea4e9a748e8b36180fde345208ba33fa
file: usr/lib/python2.4/vendor-packages/pygtk.pyc
Group: 'root' should be 'bin'
Size: 2018 bytes should be 2077
Hash: cc71bea7bcc7d844d5a7f2ff968f1373cc8b232e should be cd1d57b34276287e1b658058961693687ef1ca63

Which showed, that _gtk.so is invalid !!!!!


After this I updated again the python-package

pfexec pkg uninstall -r pkg:/SUNWgnome-python-libs@0.5.11-0.95
The -r is necessary for depending packages.
pfexec pkg install pkg:/SUNWgnome-python-libs@0.5.11-0.95
After his the packagemanager could be started by
gksu packagemanager



transfere of openSuSE 11.0 DVD image from windows to Solaris

Because of the failed image on the DVD-RW for installing openSuSE 11.0
in a VirtualBox-Image over a FAT32 partition ( limited filesize of 4 GB ) over an external USB drive, I transfered yesterday the image.

The Router was running and I transfered via sftp using the WLAN network.
Therefore on the windows server I installed a SSH-Daemon, configured the
User and transfered to a local ZFS filesystem.

Hope to have a change for trying the VirtualBox-Installation again.

Updated OpenSolaris - Laptop to SNV_95

During the last night I upgraded my OpenSolaris -Installation on the notebook form build snv_94 to the build snv_95.

snv_94 registered in the grub-menu as "OpenSolaris 2008.11"

How did the upgrade work:

pfexec pkg refresh
pfexec pkg image-update

This loaded about 800 mb of packages and created a new boot environment.

ewer@solewer:~/Desktop$ beadm list

BE Active Active on Mountpoint Space
Name reboot Used
---- ------ --------- ---------- -----
opensolaris no no - 73.32M
opensolaris-1 no no - 74.07M
opensolaris-2 yes yes / 7.53G


( Installation and Update Hints )
This show the current installation of bootable environments on the
root ZFS pool.

Now the boot was successful and everything seems to work.
On the Desktop there is also a registration link starting a JavaWebstart
application to register the installation. It also scans for other products
which can be registerted.

There's also a new Icon about the packagemanager, which I currently can
still not start.

The first thing is the missing gksu.

Aug 23, 2008

WebSphere 6.1 - JMS - ListnerPortNames

During the creation of our prototype of a J2EE solution on Websphere,
we used JMS on a local Websphere installation.

Because of the lack of tools, we created the deployment descriptor by hand.
For the JMS-Communication we defined an activationSpecification in the
Binding-Descriptor.

All worked fine, but during the deployment at the customer site, they wanted
a listenerPort to be used instead of an activationSpec. So we redesigned
the deployment descriptor. A test of a small demo was successfully at the
customer site.
But after creating the listenerPorts on the local Windows version the application could not start.
There was a problem in the errorlogs, that the listeners could not be started.

The difference is that the customer used MQ-Series as JMS and we used the
delivered JMS-Implementation in the Websphere.
So perhaps the listeners could only be used on external JMS sources,
because the error message mentioned that listeners can not be created on
the default JMS provider.

Aug 21, 2008

Introduction to Crossbow - network virtualization

In the last newletter from bigadmin I refound the PDF document about the introduction to
Crossbow - network virtualization.

This is very interesting about how the new network interface will be designed in OpenSolaris and
later on in Solaris I think.

You define virtual interfaces in software on real interfaces.
You can assign the interfaces to zones, so all the IP features like QoS, firewall, .. can be used in the
zone.
Also routers between zones can be established and tracing is also available.

Can only suggest to read it.

A very good introduction to the hidden featuer cachefs in Solaris

This week a red about very interesting feature in Solaris ( available since a long time ).

CACHEFS

I found it on the blog of Jörg Moellenkamp.

Here is the link to the cachefs entry.

It allows to localy cache the content of a NFSv3 remote filesystem on the local machine.
There is an automatic check of the metadata, if the file changed on the remote systems.
This automatic check can also be controlled to issue it just when needed.

Aug 18, 2008

Online via mobile internet

Today I got the package from my provider which let switch the online connection
between the ADSL connection and a mobile connection via an USB-modem.

Now I've installed this on Windows XP, but do not know how to do it in OpenSolaris.
Will see if this will work.

Aug 17, 2008

VirtualBox installation of OpenSuse 11

Tried to install OpenSuSE 11 on a VirutalBox in OpenSolaris Build 94.

After the download a had to burn a DVD, because the FAT32 can not share the whole image.
After installing, the "Install media check" returned with a checksum error.
So the next thing is to transfer the image via network and reattempt the install.
But my single cpu on the laptop must work hard for this. I will see if it will work.

Kathy Reichs - Break No Bones

This weekend I finished reading the "Break No Bones" from Kathy Reichs about here
figure Temperance Brannon.

It is a story about a forensic anthropologist. First 2 rd's were a build up of the whole story
and therefore took long for me to read it in English, because my mother tounge is German.

But it was worth reading it.

Saw one of my favorite movie since a long time

This weekend was the "Der Club der Toten Dichter" ( Dead Poets Society ) on TV again.
I think it is a very good movie. More than 10 year's ago I owned the book "Dead Poet Society"
but borrowed it and didn't get it back.

Aug 13, 2008

Netbeans 6.5 Beta is out

It is available. The Netbeans 6.5 Beta is out with a whole bunch of new features.

I've already downloaded and will try it.

There is also the milestone 6 for nbPython available.

CD with a bunch of tools for Performance monitoring/checking

Here is the link to the Performance CD 3.0 , I've also documented some time ago in
Facebook.

I even did not have time to check, but It was recommended by the crew to one of my
collegue during a test in ther Performance Center in Langen/Germany.
This is also one thing I like to check in the future.

German free Sun Forum

Under the link Sonnenblen.de you find a free sun forum discussed in German.

Aug 12, 2008

Failed to transfere the OpenSuSE 11.0 iso-DVD-Image

For my next test of OpenSuSE 11.0 in a virtualbox session on opensolaris I downloaded the
DVD ISO image. I started on my PC and tried to move the downloaded ISO image to the
USB drive. The partition on the USB Drive is FAT32 to transfere data between Windows and
OpenSolaris.

After the download I tried to move, but got always the error message, that there is not enough
space available, although the partition had 6 gb and the other 25 gb free ??????

After burning it onto a RW-DVD, I looked up the probelm and found a hint in wikipedia.
For FAT32 this is 4gb -1 Byte !!!. So this is the problem and not enough space on the harddrive.

Aug 8, 2008

installing packages in OpenSolaris

There are a lot more packages available, but when using
pfexec pkg list

there are only the local one shown.

Use

pfexec pkg list -a


to see also the packages remotely available.
There you can install openoffice, SunStudio and also the express version, but you
need a flat rate to download the whole stuff.

This week we got our terrace roof

The last summers we could not use our terrace at home, because the sun was to hot and
the wind was nearly always to strong for a sunshade.

So this year we decided to get a terrace roof.















We got it from Brüder Feldhofer Ges.m.b.H, a company in Schachen/Vorau.
We are really satisfied with them. They work fast, on time and clean.

Andreas and Karin married today at the civil registry office in Tobaj

Today my friend Andreas married his wife Karin at the civil registry office in
Tobaj.

Wish them all the best things for their live.

Aug 7, 2008

upgraded notebook to opensolaris

I've used the SXCE ( Solaris Express Community Edition ) on my laptop.

There were 2 partitions available, where both were managed by live upgrade.

To upgrade, I downloaded the iso-Image on an external USB drive and mounted
the isoimage via

lodfiadm -a /path/to/image
mount -F hsfs /mnt
luupgrade ....


After a short test on the PC with the OpenSolaris 2008.05 I got on a CD during the conference JavaDeus08 in St. Pölten/Austria

The installation was straight forward, although I missed the parametrization of multiple slices, but this is not a such problem, because of using ZFS on the root filesystem.

The update is also simple via
pfexec pkg refresh
pfexec pkg image-update

But for the OpenSolaris 2008.05 there must be paid attention because of changes of grub.

For more information see this thread.
It is necessary to update the SUNWipkg.

Now I've als installed OpenSolaris on my laptop migrating both slices to one
big pool.
The boot manager recognized the installed Windows XP and everything works
fine, because I'm writing this entry from the installed OpenSolaris version.

Jul 29, 2008

Using / Migrating Libraries defined in Netbeans on different computers

I have the problem to use some Netbeans Projects on differnt Computers/Platforms ( Solaris/Windows ).
So the defined Libraries are not available on all.
Here ( Migrating Libraries between different Installations of Netbeans ) is described how to migrate.

The only thing is to change the path in the xml descriptions if the mounts are available on Solaris and
Windows with different pathes.

Jul 28, 2008

Netbeans 6.1 Java Editor RefCard

On refcardz.com or http://refcardz.dzone.com/ is a free reference card for the Java Editor in
Netbeans 6.1

Jul 27, 2008

Adding a JMS Ressources to a WebSphere 6.1 Intance.

It was a troublesome way to add JMS resources to a the running websphere application server trial.

The first thing was the usage of netbeans with the Websphere on a Windows XP platform.
First installation was with security. This is a problem in netbeans, because there is no access control allowed.

Before creating JMS resources,a bus must be created.
The newly created bus needs a member - the current server and a file based message store and the message-engine must be started ( may need a restart of the app server ).
Add a destination which provides a message store, which provides a storage area.

After this in the Resources/JMS/ActivationSpec, an activation spec was defined, which references the bus, type, and destination and the JNDI-Name for referencing this activation spec.
Then ConnectionFactories and Queues or Topics can be defined.

My larger problem was the missing definition of the bus including a bus member and destinations. The Activationspec is referenced form the deployment descriptor.

Jul 25, 2008

Informative document about Project Crossbow for Network virtualization in solaris

Found yesterday a link in BigAdmin about an informative document with examples for the
project Crossbow developed in OpenSolaris , which virtualizes the network interface ( NIC ), with software routers and so on.
It contains a lot of command line examples how to use it.
Flowcontrol about Ressource and bandwith control is also a little bit covered.

It contains also an example about connecting multiple networks in a T2000 system via zones.
Here is the link for the PDF document.

Jul 24, 2008

Cake "Schwarzwälder Kirsch" with turtle




the turtle on the "Schwarzwälder Kirsch" cake