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.