DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd May 2020
berni51's Avatar
berni51 berni51 is offline
Real Name: Bernhard Ernst
Fdisk Soldier
 
Join Date: Apr 2020
Location: Middle of Germany
Posts: 46
Default olvwm on NetBSD 9.0 not running

Hi folks,
I am Berni from the middle of Germany and I am new in this forum. Mostly I worked on OpenBSD boxes and I am quite happy with this OS.
But then I installed NetBSD 9.0, first on a Medion laptop and then onto a ThinkCentre box. Years before, in the 90ties, was the last time I got a NetBSD to run, this was on an Apple PowerPC. Now a long time without NetBSD came - until version 9. The system works great, is fast and stable - I love it.

But - there must always be a but - now I want to try the good old Open Look window manager olvwm. Binaries for the olvwm and the required XView are availabe so after some seconds everything was installed. Finally I wrote "exec olvwm" into the .xsession file and tried to log in via xdm.

But the olvwm does not run! After logging into the xdm the screen flickers for 2 seconds and then again the xdm login windows appears.

After a little bit of searching for my problem I read in this forum, that the packages font-sun-misc must be installed - I did this, but without any success. Further I added the corresponding fontpath via xset +fp - no success.

Sometimes I get an olvwm.core dump during my trials, but not at every time.
I did not find any hint in dmesg or /var/log/lastlogx. And the .xsession-errors info is not helpful for me:
xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server ":0"
X connection to :0 broken (explicit kill or server shutdown).
X connection to :0 broken (explicit kill or server shutdown).


What I am wondering about is that I have no openwindows directory on my box.

All other window managers I tried are working properly: openbox, fluxbox, mwm, twm, ctwm - but not olvwm and olwm.

My last hope is that this forum has a real NetBSD crack who may give me the final hint.
Thx in advance and sorry for the long post.

Regards
Berni
Reply With Quote
  #2   (View Single Post)  
Old 6th May 2020
Sehnsucht94's Avatar
Sehnsucht94 Sehnsucht94 is offline
Real Name: Paolo Vincenzo Olivo
Package Pilot
 
Join Date: Oct 2017
Location: Rome
Posts: 169
Default

Xview libraries were never ported to amd64, they run on x86 only. I've read somewhere that some of the libs do not compile on amd64 resulting in a broken toolkit. It must noticed I haven't bothered myself checking whether this statement is true or false, nor attempted to find a workaround for the runtime segfaults; my suggestion - if you really care to run olvwm - is to find a good i386 target (olvwm works for me on NetBSD9.0/i386). Alternatively, you may attempt setting up a multilib pkgsrc environment
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„
Reply With Quote
  #3   (View Single Post)  
Old 7th May 2020
berni51's Avatar
berni51 berni51 is offline
Real Name: Bernhard Ernst
Fdisk Soldier
 
Join Date: Apr 2020
Location: Middle of Germany
Posts: 46
Default

Thanks a lot for this information! I will figure out if it is true and look for a good old i386 machine in the deep of my cellar.

Regards
Berni
Reply With Quote
  #4   (View Single Post)  
Old 12th May 2020
berni51's Avatar
berni51 berni51 is offline
Real Name: Bernhard Ernst
Fdisk Soldier
 
Join Date: Apr 2020
Location: Middle of Germany
Posts: 46
Default

Indeed I found a nice old Asus eeePC 701 in the cellar and now this machine runs NetBSD 9.0 and the Open Look window manager olvwm. So now I have what I want. Thx for the hints, Paolo.

Nevertheless there a some problems! The most important is, that no programs will start out of my menu. I created an .openwin-menu file in the homedirectory with some entries like:
"Web Browser" exec dillo
But when I click on that entry, nothing ist started - no dillo. Typing dillo into an xterm, the browser starts properly. Dillo is only an example, have the same behaviour with all other applications. The message in .xsession-erros is "Can't open display .0"

Further the is no configuration file example and no OPENWIN seems to be part of the olvwm packages. I used binaries.
This problem is solved now by writing
export DISPLAY=":0.0" and xhost +machinename
into the .xsession file.

Berni

Last edited by berni51; 13th May 2020 at 08:06 AM.
Reply With Quote
  #5   (View Single Post)  
Old 13th May 2020
Sehnsucht94's Avatar
Sehnsucht94 Sehnsucht94 is offline
Real Name: Paolo Vincenzo Olivo
Package Pilot
 
Join Date: Oct 2017
Location: Rome
Posts: 169
Default

Yeah, OpenWindows has a really ancient design and doesn't take anything for granted. Declaring DISPLAY, and always specifying full paths in menu files is a common requirement.
For a cleaner design I symlinked everything Xview related to /usr/openwin and pointed OPENWINHOME to it, in a SunOS fashion, see the relevant Sun docs. I was also able to compile more Xview programs (a Makefile patch is required at least, and is often not enough), keeping that folder as prefix, so now I have everything stored happily there and playing nicely together.


Below follows my OL Xresources configuration, in case you were interested in it:
Code:
! ===== Xview =====
OpenWindows.BorderColor:            slategrey
OpenWindows.Background:                #a5b2c6
OpenWindows.ButtonFont:             -b&h-lucida-medium-r-normal-sans-11-*-*-*-p-*-iso10646-1
OpenWindows.IconFont:               -b&h-lucida-medium-r-normal-sans-11-*-*-*-p-*-iso10646-1
OpenWindows.TitleFont:              -b&h-lucida-bold-r-normal-sans-11-*-*-*-p-*-iso10646-1
OpenWindows.TextFont:                -b&h-lucida-medium-r-normal-sans-11-*-*-*-p-*-iso10646-1
OpenWindows.ScrollbarPlacement:        right
!OpenWindows.SetInput:                followmouse
OpenWindows.PopupJumpCursor:        True
OpenWindows.FocusLenience:            True
OpenWindows.WindowColor:            #a5b2c6 
OpenWindows.Beep:                    never
OpenWindows.EdgeMoveThreshold:        50
OpenWindows.WorkspaceColor:            #a5b2c6
OpenWindows.PaintWorkspace:            false
OpenWindows.GrabVirtualKeys:        false
OpenWindows.DragRightDistance:        20
OpenWindows.IconLocation:            top-rl
OpenWindows.MultiClickTimeout:        4
OpenWindows.SnapToGrid:                True
OpenWindows.SelectDisplaysMenu:        False
OpenWindows.AutoRaise:                False
OpenWindows.AutoRaiseDelay:            1000000
OpenWindows.AutoReReadMenuFile:        True
OpenWindows.DragWindow:                False
OpenWindows.ShowMoveGeometry:        True
OpenWindows.DefaultIconImage:        /usr/openwin/lib/pixmaps/sunlogo_large.xpm
OpenWindows.DefaultIconMask:         /usr/openwin/lib/pixmaps/sunlogo_mask.xbm
OpenWindows.KeyboardCommands:        Full
OpenWindows.MenuAccelerators:        True
OpenWindows.WindowMenuAccelerators:    True

olvwm.ShowMoveGeometry:                true
olvwm.ShowResizeGeometry:            true
olvwm.SnapToGrid:                    true
olvwm.Use3DResize:                    true
olvwm.Use3DFrames:                    false
olwm.InvertFocusHighlighting:        false
olvwm.UseImages:                    UseAll
olvwm.StickyIcons:                    true
olvwm.FreeIconSlots:                true
!olvwm.UniqueIconSlots:                true
olvwm.ResizeMoveGeometry:           -0+0
olvwm.CursorSpecialResize:            true
olvwm.AllowArrowInRoot:                true
olvwm.VirtualDesktop:                3x2 
olvwm.PannerScale:                    20
olvwm.ServerGrabs:                    false
olvwm.RaiseOnMove:                    true
olvwm.AutoShowRootMenu:                true
olvwm.AutoRootMenuX:                0
olvwm.AutoRootMenuY:                141 
olvwm.Client.workman.MenuAccelerators:    False
olvwm.VirtualBackgroundMap:        /usr/openwin/lib/pixmaps/Virtual \Desktops     
olvwm.VirtualSticky:                xclock xbiff perf xdaliclock xvmount toolbar disktool contool privtool xvmixer xvfilemgr
olvwm.MinimalDecor:                    xclock xbiff xmessage xload xman
olvwm.NoDecor:                        xosview
olvwm.FullSizeZoomX:                true
While inside ~/.xinitrc I have (pasting the relevant section):
Code:
# Display startup logo on OpenWindows
if [ -x $OPENWINHOME/bin/xcenter -a -f $OPENWINHOME/etc/xview.xbm ]; then
    $OPENWINHOME/bin/xcenter -bitcenter $OPENWINHOME/etc/xview.xbm && sleep 2
fi    


# Restore saved desktop settings on OpenWindows, if any
if [ -f $HOME/.openwin-init ]; then
    . $HOME/.openwin-init
fi

# set background
# xsetroot -solid steelblue
bggen darkcyan darkblue black | xv -8 -quic -root -quit -
# start wm exec /usr/pkg/bin/olvwm
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„

Last edited by Sehnsucht94; 13th May 2020 at 12:23 PM.
Reply With Quote
  #6   (View Single Post)  
Old 13th May 2020
berni51's Avatar
berni51 berni51 is offline
Real Name: Bernhard Ernst
Fdisk Soldier
 
Join Date: Apr 2020
Location: Middle of Germany
Posts: 46
Default

Yes, indeed I'm intersted in your configuration file. What is the location of your Xressources?

On my little machine there are only xview-related files in /usr/pkg/include/xview and Usr/pkg/lib/X11/config. Will it make any sense to sysmlink them to $OPENWINHOME?

Thx for your kind help so far.
Berni
Reply With Quote
Reply

Tags
netbsd, olvwm, open look, openwindows

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Apache morophla OpenBSD Packages and Ports 9 19th April 2015 03:51 PM
Getting OpenBSD up and running Larry OpenBSD Installation and Upgrading 10 14th May 2010 11:14 PM
Running as a WPA-RADIUS AP? Sunnz OpenBSD Security 7 23rd September 2009 02:09 AM
Problem getting php running badguy OpenBSD General 7 22nd July 2009 03:34 PM
Problems running jdk-1.7 incripshin OpenBSD Packages and Ports 10 10th August 2008 05:54 PM


All times are GMT. The time now is 03:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick