Dec 23, 2009

Thunderbird 3.0 and Source code change e-mails -> colored diff

Thunderbird 2.x had an add-on, which displayed the e-mailed changes
of Subversion or mercurial in a graphical way.

This plugin is now not compatible with the release 3.0 version of thunderbird.

But the home of colored diff has a download of a newer version, 0.6, which can be downloaded and installed. Here is the view on Solaris 10 SPARC


Dec 12, 2009

Upgraded to OpenSolaris Build 129 from Build 128a

Today  I upgraded from OpenSolaris Dev-Build 128a to 129.

The announcement with the new packages is here.

Update went smooth. The restart issued a warning during the
SMF import, but the system came back up.

Timeslider starts again. The daemon dumped in Build 128a as described in
the announcement.

frkit updated also the system with acpi driver, powernow and battery applet.

The log from the update run:

[ewer@solewer:/tools/netbeans]$pfexec  pkg image-update --be-name OSOL_129
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1159/1159 21531/21531  647.4/647.4

PHASE                                        ACTIONS
Removal Phase                             5100/11980
Warning - directory usr/X11/lib/X11/fonts/vera not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/vera-20091212T111149Z
Removal Phase                             5142/11980
Warning - directory usr/X11/lib/X11/fonts/syriac not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/syriac-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/misc-ISO8859-9 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/misc-ISO8859-9-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/misc-ISO8859-4 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/misc-ISO8859-4-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/misc-ISO8859-3 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/misc-ISO8859-3-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/misc-ISO8859-2 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/misc-ISO8859-2-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/misc-ISO8859-16 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/misc-ISO8859-16-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/misc-ISO8859-14 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/misc-ISO8859-14-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/misc-ISO8859-13 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/misc-ISO8859-13-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/misc-ISO8859-10 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/misc-ISO8859-10-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/misc not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/misc-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/jiskan not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/jiskan-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/ethiopic not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/ethiopic-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/encodings/large not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/encodings/large-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/encodings not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/encodings-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/daewoo not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/daewoo-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/cyrillic not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/cyrillic-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/Type1 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/Type1-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/TrueType/google-droid not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/TrueType/google-droid-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/TTF not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/TTF-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/75dpi-ISO8859-9 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/75dpi-ISO8859-9-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/75dpi-ISO8859-4 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/75dpi-ISO8859-4-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/75dpi-ISO8859-3 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/75dpi-ISO8859-3-20091212T111149Z
Removal Phase                             5186/11980
Warning - directory usr/X11/lib/X11/fonts/75dpi-ISO8859-2 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/75dpi-ISO8859-2-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/75dpi-ISO8859-16 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/75dpi-ISO8859-16-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/75dpi-ISO8859-14 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/75dpi-ISO8859-14-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/75dpi-ISO8859-13 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/75dpi-ISO8859-13-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/75dpi-ISO8859-10 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/75dpi-ISO8859-10-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/75dpi not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/75dpi-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/100dpi-ISO8859-9 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/100dpi-ISO8859-9-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/100dpi-ISO8859-4 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/100dpi-ISO8859-4-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/100dpi-ISO8859-3 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/100dpi-ISO8859-3-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/100dpi-ISO8859-2 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/100dpi-ISO8859-2-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/100dpi-ISO8859-16 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/100dpi-ISO8859-16-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/100dpi-ISO8859-14 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/100dpi-ISO8859-14-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/100dpi-ISO8859-13 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/100dpi-ISO8859-13-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/100dpi-ISO8859-10 not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/100dpi-ISO8859-10-20091212T111149Z

Warning - directory usr/X11/lib/X11/fonts/100dpi not empty - contents preserved in /tmp/tmpzNWgkQ/var/pkg/lost+found/usr/X11/lib/X11/fonts/100dpi-20091212T111149Z
Removal Phase                            11980/11980
Install Phase                            13441/13441
Update Phase                             26370/26370
PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                          1159/1159
Optimizing Index...
PHASE                                          ITEMS
Indexing Packages                          1376/1376
pkg: unable to unmount /tmp/tmpzNWgkQ
Deleting content cache

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://opensolaris.org/os/project/indiana/resources/relnotes/200906/x86/
---------------------------------------------------------------------------




[ewer@solewer:~]$uname -a
SunOS solewer 5.11 snv_129 i86pc i386 i86pc Solaris

Installed Netbeans 6.8 on OpenSolaris Build 128a

Netbeans 6.8 is finally released.

Download on the netbeans site from here.

The Python packages are in the repository and seem to work.


Dec 10, 2009

Thunderbird 3.0 with Lightning on Solaris 10 SPARC and OpenSolaris Build 127

Thunderbird 3.0 is release. Download is possible from here.

On Solaris 10 SPARC I used the profile from the 2.0.0.23 version. It worked,
but the lightning ( Calendar ) plugin didn't work.

One OpenSolaris even the calendar with dav-Access worked out of the box with
the old profile.

On Solaris I created a new profile and imported/parametrized the settings and
even there the calendar works now.

You need to install the "Lightning Nightly Updater" to get the 1.0pre Release,
which works with Thunderbird 3.0

Dec 7, 2009

Installed Netbeans 6.8 RC2 on Opensolaris

Installed Release Candidate 2 of Netbeans 6.8.

The repository contains the Python-Plugins and a short usage was ok.

Dec 5, 2009

Upgraded to OpenSolaris Build 128a from Build 127

Upgraded to OpenSolaris Dev-Build 128a from Build 127.
root@solewer:~# PKG_CLIENT_TIMEOUT=900
root@solewer:~# export PKG_CLIENT_TIMEOUT

root@solewer:~# pkg image-update --be-name OSOL_128
Creating Plan /
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1112/1112 20852/20852  727.6/727.6
 
PHASE                                        ACTIONS
Removal Phase                            12404/12404
Install Phase                            11325/11325
Update Phase                             29711/29711
PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                          1112/1112
Optimizing Index...
PHASE                                          ITEMS
Indexing Packages                          1328/1328
pkg: unable to unmount /tmp/tmpgrXv-7
Deleting content cache
 
---------------------------------------------------------------------------
NOTE: Please review release notes posted at:
 
http://opensolaris.org/os/project/indiana/resources/relnotes/200906/x86/
---------------------------------------------------------------------------



Starting the new version brought warning hints during SMF import:
/var/svc/log/system-manifest-import:default.log
[ Dec  5 11:26:42 Timeout override by svc.startd.  Using infinite timeout. ]
Loaded 6 smf(5) service descriptions
svccfg warnings:
svccfg: Conflict upgrading svc:/system/filesystem/zfs/auto-snapshot (property "zfs/avoidscrub" has different values).
svccfg: Conflict upgrading svc:/system/filesystem/zfs/auto-snapshot (property "tm_description/C" has different values).                                        
/usr/sbin/svccfg delete system/filesystem/zfssnap-roleadd


The timeslider-Service failed into maintenance as described in the
announcement.

[ewer@solewer:~]$uname -a
SunOS solewer 5.11 snv_128a i86pc i386 i86pc Solaris

Dec 1, 2009

NetBeans 6.8 RC1 release - Python is available

Now the netbeans 6.8 Release Candidate 1 is available for download.

The Python-Plugins are available in the Repository for download.

Nov 19, 2009

Mercurial 1.4 local Installation

I've upgraded to mercurial 1.4. Mercurial is a distributed version control
system implemented mostly in python and some C modules.

You just have to extract the package downloaded.

To run the whole thing from where you extracted it, there is a special target
in the Makefile.

@echo '  local        - build for inplace usage'

If you go to the directory and make
gmake local 
All is built into the directroy. Just add the directory to your path so that
hg is found here first and the new version works.
This was no problem in OpenSolaris Build 127.

Nov 16, 2009

Mounting NFS drives from a Linux server on a AIX ( 5.3) NFS Client

In my post about AIX-NFS-LINUX, I wrote about setting the automounter to
mount NFS shares from a linux server, but I forgot one important fact to mention.

Per Default AIX can not mount the share because AIX is using very high ports,
the only solution is to change the Linux side.

In the epxorts you have to add the option
insecure
This option has to be added to /etc/exports on the linux side.

A
exportsf -ar 
reexports the file systems after adding the insecure option.

OpenSolaris Build 127 brought Presto back online.

Some time ago, the presto-Framework for autodetecting printers in the
network was broken.

When a network device became online, the process hald-addon-network-discovery ate all CPU ressources.

The solution do this was to
svcadm disable svc:/network/device-discovery/printers:snmp
disable the printer discovery service.

With Build 127, the service can be set active again:
svcadm enable svc:/network/device-discovery/printers:snmp
The Notification windows for printers appear again on the screen.

Nov 15, 2009

Upgraded to OpenSolaris Build 126 from Build 127

Last day I upgraded to OpenSolaris Build 127.
The announcement is here.


The install log from
pkg image-update --be-name OSOL_127

root@solewer:~# pkg image-update --be-name OSOL_127
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1098/1098 22101/22101  641.6/641.6

PHASE                                        ACTIONS
Removal Phase                            13458/13458
Install Phase                            14207/14207
Update Phase                             28016/28016
PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                          1098/1098
Optimizing Index...
PHASE                                          ITEMS
Indexing Packages                          1314/1314
pkg: unable to unmount /tmp/tmp_d6GAc
Deleting content cache

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://opensolaris.org/os/project/indiana/resources/relnotes/200906/x86/
---------------------------------------------------------------------------
 


Boot today showed a message  from the fault management system.
Inspecting the messages seems to be repaired.


[ewer@solewer:~]$fmdump
TIME                 UUID                                 SUNW-MSG-I
Nov 15 10:28:01.6033 e84428f9-89ec-c927-f848-ff38a7f43e66 FMD-8000-4M Repaired
Nov 15 10:28:01.9011 e84428f9-89ec-c927-f848-ff38a7f43e66 FMD-8000-6U Resolved
 

[ewer@solewer:~]$fmdump -v -u e84428f9-89ec-c927-f848-ff38a7f43e66
TIME                 UUID                                 SUNW-MSG-ID
May 12 2009 07:54:33 e84428f9-89ec-c927-f848-ff38a7f43e66 ZFS-8000-GH
  100%  fault.fs.zfs.vdev.checksum

        Problem in: zfs://pool=rpool/vdev=c05f8c6068c14723
           Affects: zfs://pool=rpool/vdev=c05f8c6068c14723
               FRU: -
          Location: -

Nov 15 10:28:01.6033 e84428f9-89ec-c927-f848-ff38a7f43e66 FMD-8000-4M Repaired
  100%  fault.fs.zfs.vdev.checksum    Repair Attempted

        Problem in: zfs://pool=rpool/vdev=c05f8c6068c14723
           Affects: zfs://pool=rpool/vdev=c05f8c6068c14723
               FRU: -
          Location: -

Nov 15 10:28:01.9011 e84428f9-89ec-c927-f848-ff38a7f43e66 FMD-8000-6U Resolved
  100%  fault.fs.zfs.vdev.checksum    Repair Attempted

        Problem in: zfs://pool=rpool/vdev=c05f8c6068c14723
           Affects: zfs://pool=rpool/vdev=c05f8c6068c14723
               FRU: -
          Location: -

Seems as the problem is resolved automatically.

Also a zpool status doesn't show the problems about missing files, which I
had a long time now.

Nov 13, 2009

Using nautilus in OpenSolaris to navigate on remote filesystems

Currently I'm working a lot on remote Solaris server.
So I have to copy files to them and so on.

Nautilus in OpenSolaris supports the navigation on remote systems with a lot of

protocols:
  • ssh
  • ftp ( with login )
  • ftp with login
  • windows share
  • web dav ( http )
  • secure web dav ( https )
Form my communication between OpenSolaris and Solaris systems, I use ssh
( which than uses the sftp extension to ssh ).

First you have to connect to the system via File->Connect to Server.


Just insert the data to connect and you have the remote file system in view:



In the address bar you can see the sftp- line.

The standard functions work. You can copy files between the systems like on a
local filesystem, or remove them and so on.

Nov 12, 2009

Creating SQL Data script from a table within SquirrelSQL.

To access a database, I'm using the SQuirreL-SQL-Tool. It's available on
sourceforge and supports all necessary functions I need.

The IDE supports a function to create Insert-Statements from the whole table.

To do this,
  • open the Object-Tree 
  • select the table you like
  • press the right mouse button to get the context menu
  • go to scripts
  • and select Create Data Script

So for my purpose, this is to much data, I will get, because I like to transfere
just one row of data.

This is also possible, but not as easy to find:

Go into the SQL Editor and write down your select statement.

Put the cursor on your statement and press -t.
This opens a correction window, where you use sql2ins. This
creates your insert-statement with the data from the rows returned by
your previously entered select statement.


This screenshot shows an already inserted insert-Statement from before and
the popup narrowed down to sql2ins which you get by pressing -t.

It is described in the HELP of SQuirreL in the section "SQL Scripts Plugin".

Nov 9, 2009

Deployment of Axis2 1.5.1 fails on a JBoss 5.1.0 GA on Solaris 10 with JDK 1.6.0

When trying to deploy the axis2.war archive of version 1.5.1 if fails with
errors. The admin-console shows NullPointerExceptions.

The log files shows an error that a SAX parser could not be created:

"Failed to create a new SAX parser".


Found the solution at:

https://jira.jboss.org/jira/browse/JBAPACHE-10.

You have to extract the war archive and remove from WEB-INF/lib:
xml-apis* and xercesImpl*
After this repackage with
jar -cf ../axis2.war .

This new archive is deployable via the /admin-console access of 
JBoss 5.1.0 GA.

I had troubles because of previous attempts. Restarting JBoss solved this.

Nov 6, 2009

Chime DTrace-GUI Tool has error for Zone CPU Usage

Chime is a java program which leverages DTrace  and presents the data
in a GUI.
I downloaded the OSOLChime-Package in Version 1.4.44

On my OpenSolaris Build 126-System. the "Zone CPU Usage" in the Categroy
"Zones" shows just an error:



Running the same version on a Solaris 10 system doesn't issue this error.

Nov 5, 2009

JBoss 5.1.0 GA failed to start on Solaris 10 with JDK 1.6.0_14

Today I installed a zone on a Solaris 10 system.
In this zone I have JDK 1.6.0_14 and JBoss 5.1.0 GA installed.
The first start of the jboss failed with the following message:

java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]

The solution can be found here
After processing the profile.xml  in server/[minimal|default]/conf/bootstrap
JBoss starts.

soapUI can also run on [Open]Solaris, despite there are only linux/Windows/Mac packages

soapUI is a nice Tool for WebServices in a free and Pro version and also as
WebStart Package available.

The WebStart Package installs on my OpenSolaris-Box, and runs. The Problem
I experience is with the change of the network environment, so it takes in same cases a long time to start.

Today I installed the linux-Package on my brandz-Zone and transfered the
installation back to the OpenSolaris  global Zone. Because of the
soapui.sh Script it is necessary to use a bash because of the coding.

The copied installation runs without problems, also there are some lib's which
are only for linux .

The same thing is also copied on a Sun Fire T1000 and also there the tool
runs.

Nov 3, 2009

OpenSolaris Visual-Panels and firewall-Panel in Build 126

In my current installation ( a lot of upgrades from previous dev-Builds ),
I couldn't start with
vp mysql
This  led to a screen which requested a login.

I found that I didn't have the service

svc:/application/management/common-agent-container-1:default
on my system.

I deleted the packages from the Visual Panels and the
SUNWcacaodtrace
SUNWcacaort
SUNWcacaowsvr

and reinstalled them. After a reboot, the common-agent-container-1 was back
again and I can start the mysql, apache, sysid panels, but the
firewall-Panel give's an error:


Oct 30, 2009

Upgraded to OpenSolaris Build 126 from Build 125

Just upgraded to OpenSolaris Dev-Build 126.


root@solewer:~# pkg image-update --be-name OSOL_Build126                       
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1091/1091 14925/14925  478.5/478.5

PHASE                                        ACTIONS
Removal Phase                              9490/9490
Install Phase                              8304/8304
Update Phase                             26249/26249
PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                          1091/1091
Optimizing Index...
PHASE                                          ITEMS
Indexing Packages                          1307/1307
pkg: unable to unmount /tmp/tmpXIlPBt
Deleting content cache

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://opensolaris.org/os/project/indiana/resources/relnotes/200906/x86/
---------------------------------------------------------------------------
The terminals terminator and gnome-terminal still dump on some occasions a core.

first successful Mercurial "hg push" back to a SubVersion Repository

On my site, I've cloned the hgsubversion from http://bitbucket.org/durin42/hgsubversion/.

hgsubversion allows to interface a SubVersion Repository directly with
the command's from Mercurial.

My ~.hgrc contains in the section [extensions]
svn=/export/home/ewer/hgExtensions/hgsubversion/hgsubversion

The other thing, was to install a subversion client with version >= 1.5.

I did a
hg clone svn+http://

After this you can work with mercurial. Clone commit and so on.

When something changes in the SubVersion-Repository, you just go
into the clone Mercurial Repository and issue

hg in 
hg pull 
hg update

When you have changes to propagate:

hg push
After this the changset is a version in SubVersion, which other SubVersion-users
can update from.


I did a simple change and it worked.

The really necessary thing is an uptodate subversion client. 

Oct 28, 2009

jedit can display Shell-Script functions with Sidekick and ctags

If you have the SideKick-Plugin and CtagsSideKick with ctags installed in jedit,
the editor can scan the shell script and display the functions in the script:



and jump to the functions by clicking into the SideKick-Window.

Oct 27, 2009

Netbeans 6.8Beta with Python in the Plugin-Repository available

Last Weekend NetBeans 6.8 Beta was released. I downloaded after the
release, but there was no Python-Plugins available. Yesterday the Python
Plugins were also available. 

Oct 23, 2009

terminator and screen causes terminator to dump a core on Build 125 of OpenSolaris

When I start the terminator shell on my OpenSolaris Build 125 and launch
screen in the terminal of terminator, it takes  some time and after this
terminator dumps a core.


[ewer@solewer:~]$mdb core
Loading modules: [ libuutil.so.1 ld.so.1 ]
> ::status
debugging core file of terminator (32-bit) from solewer
file: /usr/bin/i86/isapython2.4
initial argv: /usr/bin/python /usr/bin/terminator
threading model: native threads
status: process terminated by SIGSEGV (Segmentation Fault), addr=1e0
> ::stack
libvte.so.9.9.1`_vte_terminal_ring_append+0x1f(83d82f0, 0, 50, cc6af706)
libvte.so.9.9.1`vte_sequence_handler_cd+0x125(83d81e8, 0, 87ba02c, cc6b2112)
libvte.so.9.9.1`vte_sequence_handler_erase_in_display+0x74(83d81e8, 861f670, f,
cc6b376a)
libvte.so.9.9.1`_vte_terminal_handle_sequence+0x139(83d81e8, 865ff08, 637,
861f670)
libvte.so.9.9.1`vte_terminal_process_incoming+0x405(83d81e8, 0)
libvte.so.9.9.1`time_process_incoming+0x2c(83d81e8, 1, 83d81e8, cc6a48ae)
libvte.so.9.9.1`process_timeout+0x1ac(0, ce0cc460, 80475b8, ce026c71)
libglib-2.0.so.0.2200.0`g_timeout_dispatch+0x23(87b3490, cc6a48a0, 0, 8047630)
libglib-2.0.so.0.2200.0`g_main_context_dispatch+0x262(83abe20, 0, 85aa030, a)
libglib-2.0.so.0.2200.0`g_main_context_iterate+0x483(83abe20, 1, 1, 83b2a90)
libglib-2.0.so.0.2200.0`g_main_loop_run+0x1dd(85bb720, 85bb720, 8047728,
cd90e73a)
libgtk-x11-2.0.so.0.1800.0`gtk_main+0xb7(85a9fe0, 0, 8047768, ceac9f18, 8171dfc
, 0)
_gtk.so`_wrap_gtk_main+0x9c(0, 0, 80477a8, ceaceebc)
libpython2.4.so.1.0`call_function+0x315(804781c, 0, 4, 842f7d4)
libpython2.4.so.1.0`PyEval_EvalFrame+0x2b77(8113e0c, 80d6e60, 8079824, 8079824)
libpython2.4.so.1.0`PyEval_EvalCodeEx+0x903(80d6e60, 8079824, 8079824, 0, 0, 0)
libpython2.4.so.1.0`PyEval_EvalCode+0x22(80d6e60, 8079824, 8079824, 0)
libpython2.4.so.1.0`run_node+0x39(8061338, 8047b8c, 8079824, 8079824, 804798c, 1
)
libpython2.4.so.1.0`PyRun_SimpleFileExFlags+0x14d(ce9f47e0, 8047b8c, 1, 804798c
)
libpython2.4.so.1.0`Py_Main+0x86b(2, 8047a70, 8047a7c, 8047a2c)
_start+0x7d(2, 8047b7c, 8047b8c, 0, 8491b14, 8047be7)
>
Using the gnome-terminal and screen works.

Oct 22, 2009

Xorg freezes in Build 125

I'm running Build 125 now for some days and now I recognized, for multiple times now, that Xorg is freezing. I'm using LCD and external Montior in dual screen mode.

When I wait, I can see, that firefox panes are updating, I can use the mouse,
but nothing happens on the screen.

I can login from remote and kill the Xorg-Process. After this I can start the
Session again and work.

Here is a stack trace of the Xorg Server:


-bash-3.2$ pfexec pstack 1428
1428:   /usr/X11/bin/Xorg :0 -nolisten tcp -audit 0 -br -auth /var/lib/gdm/:0.
-----------------  lwp# 1 / thread# 1  --------------------
 ceaf3465 pollsys  (8047010, 25, 0, 0)
 cea9d291 pselect  (ff, 8409590, 0, 0, 0, 0) + 199
 cea9d666 select   (ff, 8409590, 0, 0, 0, 8409590) + 78
 080c2c86 WaitForSomething (8a61290, 8206000, 8047c08, 80954bb) + 4f2
 0809508b Dispatch (840a4f0, 840a4f4, 8409a10, 840a990, 840a9c4, 82099b4) + e3
 080b104c main     (9, 8047d54, 8047d7c, 808975f) + 684
 080897bd _start   (9, 8047e24, 8047e36, 8047e39, 8047e43, 8047e47) + 7d
-----------------  lwp# 2 / thread# 2  --------------------
 ceaf42cf door     (0, 0, 0, ce10ee00, f5f00, a)
 cead9f27 door_create_func (0, ceb81000, ce10efe8, ceaee45e) + 2f
 ceaee4b3 _thrp_setup (c5d40200) + 9b
 ceaee740 _lwp_start (c5d40200, 0, 0, 0, 0, 0)
-----------------  lwp# 3 / thread# 3  --------------------
 ceaee799 lwp_park (0, 0, 0)
 ceae7d9d cond_wait_queue (8a66350, 8a66360, 0, ceae82c6) + 60
 ceae833e __cond_wait (8a66350, 8a66360, c5d3ef88, ceae8383) + 86
 ceae8391 cond_wait (8a66350, 8a66360, 200, ce2337e2) + 24
 ce233822 subscriber_event_handler (8a66310, ceb81000, c5d3efe8, ceaee45e) + 4e
 ceaee4b3 _thrp_setup (c5d40a00) + 9b
 ceaee740 _lwp_start (c5d40a00, 0, 0, 0, 0, 0)

Oct 21, 2009

Exporting a netbeans project as archive

There is a Netbeans Plugin named "Export as Archive".

You get it via the PluginManager from the update site.

After the plugin is installed, you do not find any hint how to export a
project as archive.

You have to go to the Files-Panel and not to Projects. Select a directory
and you have the option to export as zip archive:


As you see, you can also set a keyboard short cut in
Tools->options->Keymaps for "Export as archive".

Oct 20, 2009

reading in multiple functions from the same file in Python using a for-loop and readline()

I had to read i multiple python functions from a file.

The deepest function used
for line in f:

In the outer loop I attempted to read further lines  with
f.readline()
But I didn't get any data.

A f.tell() showed, that I was already at the end of the file.


Now I've tested a little bit around:

The for loop uses the iterator protocol.

So the file is itself the iterator and does a readahead.

My question was now, what if the file is very large?. 

A test on my opensolaris box showed, that 8k are read ahead.
You can use the
f.next()
and Python reads any data in as necessary. If the end of the file
is reached, a StopIteration Exception is raised.

Login-Sound does not work on Build 125 for my installation

I had already a problem posted here.
Now looking into
/usr/share/gnome/autostart/libcanberra-login-sound.desktop

Here was /usr/bin/amd64/canberra-gtk-play inserted. For my system this
is wrong, because I've a 32-Bit system.

Changing this to /usr/bin/canberra-gtk-play was on the command line also
not successfully, because as truss showed, it opened the /dev/dsp device and
wrote the sound file there, but it stucks there.

Here's the truss excerpt:
open64("/usr/share//sounds/freedesktop/stereo/desktop-login.ogg", O_RDONLY) = 9

....
open64("/dev/dsp", O_WRONLY|O_NONBLOCK)     = 10
....
/2: write(10, "\0\006\001\003\001\0FDFF".., 2304)   = 2304                     
/2: pollsys(0xCD4FEFA0, 2, 0x00000000, 0x00000000)  = 1
/2: brk(0x08125ED0)                 = 0
/2: brk(0x08125ED0)                 = 0
/2: brk(0x08129ED0)                 = 0
/1: pollsys(0x080C4120, 2, 0x00000000, 0x00000000) (sleeping...)
/2: write(10, 0x0810B698, 4096) (sleeping...)

Oct 19, 2009

screensaver does not utilize the CPU to nearly 100% when dual screen-mode is active in OpenSolaris Buld 125

With the installation of the Dev-Build 125 of OpenSolaris, the screensaver can
be activated in dual-screen-mode.
The screensaver does not cause a 100% CPU utilization.

Code completion in Python and Netbeans 6.7.1 when the type is not known by netbeans.

If you code and NetBeans can not determine the type where you
want to complete you're code, it has an entry named:
Specify type of
This creates a comment above with a special syntax:

# @type
 The cursor stands after the " ". Here you can issue a 
code completion.
When the type is found, the code completion works for types defined somewhere outside.

To use this I had to import with the from statement like

from cfg import processData



synergy on OpenSolaris build 125 & ibus

Yesterday I installed the Build 125 and the synergy-Package
SUNWsynergy.

Today I started and the "special" Characters like "@" and "~" are now working
again when sharing the keyboard from the SunRay.
This comes from the synergy-Package from the OpenSolaris-Dev-Repository.
Starting with the blastwave-Package still has problems with "@" and "~".



ibus-Package ( setup ) can not start, because the ibus-Site-Package is installed
in the /usr/lib/python2.6/site-packages, but the command "python" is linked to python2.4

Oct 18, 2009

Upgraded to OpenSolaris Build 125 from Build 124

Upgrade was done without problems.

Here is the last log:

driver (clone) upgrade (removal of minor perm 'atu 0666 root sys') failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -d -m atu 0666 root sys clone
command output was:
------------------------------------------------------------
No entry found for driver (clone) in file (/tmp/tmpVU_Hfb/etc/minor_perm).
------------------------------------------------------------

driver (clone) upgrade (removal of minor perm 'ral 0666 root sys') failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -d -m ral 0666 root sys clone
command output was:
------------------------------------------------------------
No entry found for driver (clone) in file (/tmp/tmpVU_Hfb/etc/minor_perm).
------------------------------------------------------------

driver (clone) upgrade (removal of minor perm 'llc1 0666 root sys') failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -d -m llc1 0666 root sys clone
command output was:
------------------------------------------------------------
No entry found for driver (clone) in file (/tmp/tmpVU_Hfb/etc/minor_perm).
------------------------------------------------------------

driver (clone) upgrade (removal of minor perm 'ath 0666 root sys') failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -d -m ath 0666 root sys clone
command output was:
------------------------------------------------------------
No entry found for driver (clone) in file (/tmp/tmpVU_Hfb/etc/minor_perm).
------------------------------------------------------------

driver (clone) upgrade (removal of minor perm 'rtls 0666 root sys') failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -d -m rtls 0666 root sys clone
command output was:
------------------------------------------------------------
No entry found for driver (clone) in file (/tmp/tmpVU_Hfb/etc/minor_perm).
------------------------------------------------------------

driver (clone) upgrade (removal of minor perm 'ibd 0666 root sys') failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -d -m ibd 0666 root sys clone
command output was:
------------------------------------------------------------
No entry found for driver (clone) in file (/tmp/tmpVU_Hfb/etc/minor_perm).
------------------------------------------------------------

driver (clone) upgrade (removal of minor perm 'loop 0666 root sys') failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -d -m loop 0666 root sys clone
command output was:
------------------------------------------------------------
No entry found for driver (clone) in file (/tmp/tmpVU_Hfb/etc/minor_perm).
------------------------------------------------------------
Install Phase                            14831/14872
driver (md) upgrade (removal of minor perm 'admin 644 root sys') failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -d -m admin 644 root sys md
command output was:
------------------------------------------------------------
No entry found for driver (md) in file (/tmp/tmpVU_Hfb/etc/minor_perm).
------------------------------------------------------------
Install Phase                            14872/14872
Update Phase                             32717/34002
driver (e1000g) upgrade (removal of minor perm '* 0666 root root') failed with return code 252
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -d -m * 0666 root root e1000g
command output was:
------------------------------------------------------------
No entry found for driver (e1000g) in file (/tmp/tmpVU_Hfb/etc/minor_perm).
------------------------------------------------------------
Update Phase                             32720/34002
driver (asy) upgrade (addition of minor perm '*,cu 0600 uucp uucp') failed with return code 255
command run was: /usr/sbin/update_drv -b /tmp/tmpVU_Hfb -a -m *,cu 0600 uucp uucp asy
command output was:
------------------------------------------------------------
Option (-m) : missing token: (*)
------------------------------------------------------------
Update Phase                             34002/34002
PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                          1080/1080
Optimizing Index...
PHASE                                          ITEMS
Indexing Packages                          1296/1296
pkg: unable to unmount /tmp/tmpVU_Hfb
Deleting content cache

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://opensolaris.org/os/project/indiana/resources/relnotes/200906/x86/
---------------------------------------------------------------------------
There are a lot more messages about the drivers, but the system came back
online.


[ewer@solewer:~]$uname -a
SunOS solewer 5.11 snv_125 i86pc i386 i86pc Solaris
printers:snmp - Service still lets hald-addon-netw use nearly 100 % CPU, so
the automatic printer discover still doesn't work.

Now I install some of the new packages:

SUNWGParted   GNOME Partition Editor
SUNWsynergy   Synergy Mouse/Keyboard sharing
SUNWlatencytop   LatencyTOP tool
SUNWibus   Intelligent Input Bus
See the announcement message here for more information.

Oct 9, 2009

Oct 8, 2009

Soccer Cake


Soccer Cake ( Fußball Torte )

Oct 7, 2009

prstat/top like tool on AIX ( 5.3 )

As I'm still have to work on AIX  ( missing my (Open)Solaris ), I search for
something to show the processes on a system like prstat on (Open)Solaris.

The first hint was
smitty process


A nice attempt, but only a snapshot of the current situation.

Searching in the RedBook  "AIX Reference for Sun Solaris Administrators" ,
I found a tool on AIX.

topas

This tool has a lot of options and gives a big overview from the whole system,
when started without any options:


See the help for some hints. with the keys c,n,d,p you can switch on/off the
subsections of the display.

To start with a prstat similar display use topas -P


syntax highlighting in Netbeans for files,which are not automatically recognized because of naming

I have some makefiles with "unusual" extensions. So Netbeans does not
recognize this files as makefiles and opens in a simple text editor.
To get the syntax highlighting in Netbeans 6.7.1 use the context menu
and select "Open As".
A new dialog appears, where you select the type of file as which this should be
opened.

Now the before "unknown" file has also the syntax highlighting.

Under Tools/Options/Miscellaneous/Files you find the association between
the file extension and the Mime-Type. Here you can change it, if you do not
like it.

proc Commands on AIX

The ptools on Solaris like pfiles, pstack, pwdx, ... are also on AIX
available when the package bos.perf.proctools is installed.

The start in AIX with proc:
# proc
proccred     procldd      procsig      procstop     procwdx     
procfiles    procmap      procstack    proctree    
procflags    procrun      procstack64  procwait    

Debugging on AIX ( 5.3 ) system

Currently I'm porting software to AIX.

As the compiler I'm using GCC.
The linking stage on AIX  is a lot different to other UNIX systems.
AIX likes to resolve the symbols already at link time. So if you are generating
shared objects the should also resovle every symbol at link time. Using the
Option -Wl,-G during GCC linking, the resolving is postponed to runtime.

You can this also do during building of applications, but you do not recognize if
a symbol is not found.

During the runtime, I also haven't recognized that a symbol could not be resovled.

So I go back that everything must be resolved during linking.
The application has everything recored, where the libs should be found,
but this can be changed by setting the environment variable LIBPATH.

For debugging you should set -gxcoff, because AIX uses the COFF format.
Solaris uses ELF.

When you have installed the debugging package there is also a dbx tool .
# lslpp -w `which dbx`
  File                                   Fileset               Type
  -----------------------------------------------------------------------
  /usr/bin/dbx                           bos.adt.debug         Symlink

Install with smitty the bos.adt.debug.

dbx behaves as on Solaris with the SunStudio. It is a command line tool.
You can debug core files.

dbx
To see the source files, you have to set the path to the source:
use /path/to/source
use + /second/path/to/source
stop in works as in SunStudio dbx.

setting the NUM lock key in Solaris

On our SunRay-environment the NUM-Lock key is not set per default.
To get it set during the login insert

xset led 1
 into your .profile ( if in .dtprofile DTSOURCEPROFILE=true  is set ).


On my OpenSolaris Laptop the integer naming the LED ( KEY ) doesn't change
anything. It's always the CapsLock-Key which get set on or off, but it may be
because it's a laptop with no extra keypad.

Oct 4, 2009

skype on OpenSolaris without using a brandz Linux zone or skype directly

Today I read in a blog about using skype without having a native skype client.

see http://blogs.sun.com/migi/entry/skype_on_opensolaris_the_last.

It uses a website with flash inside. Flash must access your microphone and/or video device.

First impressions of Build 124

  • The start of Gnome seems to take a little bit longer than in Build 123. 
  • The shutdown displays now messages again, showing some errors and
    the time elapsed during shutdown. On my old laptop this ranged between
    40 and 26 seconds. 
  • The mouse cursor still jumps in some situations somewhere to the edge
    of the screen.

Oct 3, 2009

Upgraded to OpenSolaris Build 124 from Build 123

Upgrade went smooth.
Yesterday evening, the connection speed was to slow for an update. Today in the
morning, the speed was reasonable and the update was done without problems:

root@solewer:~# pkg image-update --be-name OSOL_Build124                       
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1068/1068 33097/33097  859.8/859.8

PHASE                                        ACTIONS
Removal Phase                            19890/19890
Install Phase                            18111/18111
Update Phase                             36527/36527
PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                          1068/1068
Optimizing Index...
PHASE                                          ITEMS
Indexing Packages                          1284/1284
pkg: unable to unmount /tmp/tmpsboOZ2

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://opensolaris.org/os/project/indiana/resources/relnotes/200906/x86/
---------------------------------------------------------------------------

The first start took some time. Some panels had problems.
The terminator -Shell could not start:
[ewer@solewer:~]$terminator
Traceback (most recent call last):
  File "/usr/bin/terminator", line 42, in ?
    from terminatorlib.terminator import Terminator
  File "/usr/lib/python2.4/vendor-packages/terminatorlib/terminator.py", line 42
    class TerminatorWindowTitle():
                                ^
SyntaxError: invalid syntax

To solve the problem with the terminator open /usr/lib/python2.4/vendor-packages/terminatorlib/terminator.py, go to line 42 and 
remove the brackets ( open and close ) between TerminatorWindowTitle and the
colon. After this terminator works again.

Gnome is in the version 2.27.91 installed.

Oct 2, 2009

Evince PDF Viewer and paging with the mouse scroll wheel

In the default configuration of the evince PDF viewer, the viewer represents
pages.
With the scroll wheel on the mouse you can move in the page. For paging
you have to use the arrow buttons in the toolbar.

In the menu View you can switch this behavior like in Acrobat Reader.
So that you can page even with the mouse scroll wheel.

Sep 30, 2009

AIX as NFS/NIS client against an linux server

This days I'm a deported Solaris User. :-(

We got a p520 with AIX 5.3.
The Installation with an IBM technician took a lot of time.
The Virtual IO Server was attempted to first install. This would be the base to
allow partitioning and using multiple systems.
The problem here was, that the Virtual IO Server could have a telnet connection
over the LAN interface, but ssh and https connections just stall.

  • NIS
The NIS integration was easy. Just use
smitty ypconfigure
  •  autonount
 The automounter is configured like on other systems with auto_master.
Therefore see the man page for
man automount

Here I've the mount maps distributed over NIS. But the names in NIS are
auto.master.

Therefore in the local files you need e.g  +auto.master in the /etc/auto_master.
My mistake was to  use an /etc/auto.master.

# cat auto_master
+auto.master
/-      /etc/auto.direct
root@aix:/etc
# cat auto_direct
+auto.direct
root@aix:/etc
#



But /etc/rc.nfs only starts the automounter if an /etc/auto_master exists.




  • remote login.
This took some time. I tested with my user account. Tried a lot of settings
in /etc/security but I could not login on.
Till I found a message that AIX does not support MD5 passwords.
A whole lot of users had "standard" passwords, but my user had a MD5 hash password.
After converting my password back, I even could login into the AIX box with
ssh/telnet.

Sep 23, 2009

Installingg Solaris 10 Update 7 x86 in a VMWare Machine with 64 bit.

Today I tried to install a Solaris 10 Update 7 x86 version in a VMWare environment.
The Host was a Windows 2003 Server running in 64Bit Mode on a QuadCore
Xeon System.
After installing an rebooting the Solaris-System, it still booted into 32-Bit mode.

The solution was found in the BIOS of the Hostsystem. There was the
virtualization support disabled.
After enabling the virtualization support in the BIOS, and booting the installed
Solaris 10 VMWare image, the installation booted into a 64bit mode without any
intervention. 

Printer Discovery in OpenSolaris 123 failes - hald-addon-network-discovery has high CPU usage

During the update from Build 118 the process hald-addon-network-discovery
produces a high CPU load when the network is activated.

The service
svc:/network/device-discovery/printers:snmp
fails into maintenance.

This services is for the Discovery of printers on the network via SNMP, but
it calls a function not available.

The log of printers:snmp-Service contains the following entry:

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.EnablePrinterScanningViaSNMP int32:60 string:public string:0.0.0.0
Error org.freedesktop.DBus.Error.UnknownMethod: Method "EnablePrinterScanningViaSNMP" with signature "iss" on interface "org.freedesktop.Hal.Device.NetworkDiscovery" doesn't exist


When disabling the service with
svcadm disable printers:snmp

the high load of the CPU does not occur.

A message thread on OpenSolaris is here and the Bug.

Sep 22, 2009

Getting Things Done - Thinking Rock

Some months ago, I read the book "Getting Things Done" from David Allen.
There is also a Software application build on the Netbeans Platform.
The Application is called "Thinking Rock"

A short description can be found on Wikipedia.

I'm using this application to collect my things, but I was missing to see
actions, which should happen some days in the future. I saw only
the actions for the current day.

When you view the Actions, there is a toolbar with a filter.
You can edit the filter.
Select the "Action date <= " and set the value to e.g "One week".
so you see all actions one week before the occur.


Sep 19, 2009

Upgraded to OpenSolaris Build 123 from Build 122

Today I upgraded to Build 123 on my Laptop.

Here's the screenshot of the upgrade:

















The upgrade was without any problems. Since th setting of PKG_CLIENT_TIMEOUT to 900, the update runs without interruption.
Before I knew about this environment variable it happened, that and upgrade
must be started several times.

The boot issued some error message in Build 123

Sep 19 14:13:52 solewer pseudo: [ID 233968 kern.notice] pseudo0: invalid op (6) from tpm0
Sep 19 14:13:52 solewer tpm: [ID 647609 kern.warning] WARNING: tpm_attach: tpm failed to attach
Sep 19 14:14:12 solewer pseudo: [ID 233968 kern.notice] pseudo0: invalid op (6) from tpm0
Sep 19 14:14:12 solewer tpm: [ID 647609 kern.warning] WARNING: tpm_attach: tpm failed to attach
Sep 19 14:14:24 solewer pseudo: [ID 233968 kern.notice] pseudo0: invalid op (6) from tpm0
Sep 19 14:14:24 solewer tpm: [ID 647609 kern.warning] WARNING: tpm_attach: tpm failed to attach

As stated in this message from Build 123, they can be ignored.

 hald-addon-network-discovery still uses a lot of CPU when the network is
activated with inetmenu.

Sep 17, 2009

screen to simulate multiple shells in one terminal

Screen is a multi terminal emulator.
The Package from the dev-Repository for OpenSolaris is here:
http://pkg.opensolaris.org/dev/p5i/0/SUNWscreen.p5i.

You start in a terminal the executeable "screen".


After starting, a welcome-screen is visible.


  • As you can see, every session can be named by the Sequence ---
  • An active screen-session can be detached with --

  • Listening screen sessions is done with screen -ls
  • and resumed with screen -r


As long as the server is not rebooted, the sessions are running. You can even
log out and login later on and the sessions are still active.

Kardinalschnitte

Coffee Cream Cake

Sep 11, 2009

beadm destroy worked for me in Build 122

After cleanup of the IPS Cache as described here, I still had the 11G used in a snapshot for
a previous build, so I had to destroy the previous boot environment.

beadm destroy Build_118

worked for me without a problem. There were no error messages about not
being able to delete a ZFS snapshot as described in the update to Build 121.

Now the 11G are back for usage.

Sep 10, 2009

IPS cache uses a lot of disk space in OpenSolaris

During the last time a struggled around to get disk space. There are about 6 GB free and
the automatic-snapshot ( TimeSlider ) feature complains about short disk space and
removes snapshots.

Today I read an interesting blog entry at The Observatory about an IPS cache.
IPS is the Image Packaging System of OpenSolaris.
The system downloads the packages and updates from the Repository and stores them locally
to apply them to the system.

As stated in the articel I looked today into the download -Section.

After hours of running:

bash-3.2$ du -hs .
11G .
bash-3.2$ pwd
/var/pkg/download
So I will try to disable the local caching as described with

bash-3.2$ pfexec pkg set-property flush-content-cache-on-success true
bash-3.2$ pkg property
PROPERTY VALUE
send-uuid False
preferred-publisher opensolaris.org
require-optional False
flush-content-cache-on-success true
display-copyrights True
pursue-latest True
During the next repository action, storage should come back. -- Attention for snapshots in
other bootenvironments.

see
beadm list -a

Sep 8, 2009

How to get the date, when an account expires, when you just know the days from the expire field?

"usermod -e" can set an expire date according to the format defined in /etc/datemsk.

In /etc/shadow this is expressed in the expire field:
see the extract from the man page:

expire An absolute date expressed as the number of days
since the Unix Epoch (January 1, 1970). When
this number is reached the login can no longer
be used. For example, an expire value of 13514


To know when this is you can use python:
>>> import datetime
>>> d0=datetime.datetime(1970,1,1)
>>> delta=datetime.timedelta( days=14481 )
>>> d0+delta
datetime.datetime(2009, 8, 25, 0, 0)
or to calculate the days:

>>> d=datetime.datetime.now()
>>> (d-d0).days
14495
Python is a wonderful thing for calculation with dates.

Sep 5, 2009

MPlayer from Multimedia Repository for OpenSolaris

Today I installed some apcakgess from the new Multimedia repository ips.homeunix.com:
The older one was LifeWithSolaris, they had to close the respository because of
license reasons.


ips.homeunix.com origin online http://ips.homeunix.com:10906/

Many thanks to the people behind that site. I installed some apps from there, to get more
multimedia apps on my desktop.

mplayer works fine.

Upgraded Laptop to OpenSolaris Build 122

During the last night, I upgraded to Dev-Build 122 of OpenSolaris. See the Announcement for more
information.

root@solewer:~# pkg image-update --be-name OpenSolaris_Build122
DOWNLOAD PKGS FILES XFER (MB)
Completed 1058/1058 15967/15967 587.0/587.0
After rebooting everything is works so far.

The Problem with the TK-Package is solved now. I can start secpanel without any
problems.

hg view ( by using hgk ) works now again.

Sound works in the global zone. In the brandz-Zone using CentOS 5 and skype 2.x, skype reports no available sound devices.

hald-addon-network-discovery still runs in a very high cpu usage, after network connection is established with inetmenu.

Sep 2, 2009

editing XML files in netbeans, which use XML Schema description

During the development I have to edit XML files, which are based on an xml schema description

There is a code like :


To get Code-Completion in Netbeans you have to add the reference to the
correct schema.

In the IDE-Menu go to Tools->DTDs and XML Schemas.
In the window go to "User Catalog" and press "Add Local DTD or Schema"





Now in the System-ID enter "http://xxx.xxx/a/b/" and for the
URI field select the xsd-Schema file.

After this you can hit the Code-Completion-Shortcut and
you get help.