Discussion:
Xfree for OS/2 v 4.5.0 found on Netlabs
Keith Marjerison
2006-01-28 00:09:22 UTC
Permalink
Hello All;
I'm a newbie to the group, so go easy on me.
I had Xfree for OS/2 v3.3.1 installed and running and I am trying to upgrade to v 4.5.0 .
I installed all of the 4.5.0 packages to the \usr\X11R6\ directory structure and ran 'XF86CONFIG.CMD' to setup my
Xserver configuration. I saved the settings and copied the config file to the standard location. I added these statements to
'config.sys' :

REM *****Xfree86v450***** REM
DEVICE=E:\usr\X11R6\lib\xf86sup.sys /H2048
SET TERM=ansi
SET TERMCAP=E:/usr/X11R6/lib/X11/etc/emx.termcap.x11
SET TERMINFO=E:/usr/X11R6/share/terminfo
SET MANPATH=E:/usr/X11R6/man;E:/Xfree86/man;E:/Xfree86/usr/man
SET DISPLAY=BMAC:0.0
SET USER=DEFAULT
SET LOGNAME=DEFAULT
SET XSERVER=E:/usr/X11R6/bin/xfree86.exe
SET X11ROOT=E:
SET X11SHELL=E:/usr/X11R6/bin/ksh.exe
SET G_FILENAME_ENCODING=CP850
SET EMXOPT=-h256
SET UNIXROOT=E:\usr\X11R6

and I

Added : E:\usr\X11R6\dll;E:\usr\X11R6\lib; to LIBPATH statement and
Added : E:\usr\X11R6\bin;E:\usr\bin; to PATH statement.

Now, when I try to run 'startx.cmd' the Xserver opens up fullscreen and then immediatly closes.
I am able to run gimp-2.2 by starting 'xinit.exe' and running it from there, but I am told that this is not the correct way
to run the Xserver.
Any ideas what I am doing wrong?
Why has the directory structure in 4.5.0 changed from previous versions? Why the \usr\X11R6\?
Thanks in advance for any help you can give me.
||Keith Marjerison
||Marjerison Farms
||Central Butte, SK S0H-0T0
||E-Mail ***@sasktel.net
||Please remove the 'stopspam' from e-mail to reply
Christian Hennecke
2006-01-28 01:00:51 UTC
Permalink
Post by Keith Marjerison
SET X11SHELL=E:/usr/X11R6/bin/ksh.exe
This can lead to problems with some versions of ksh.exe. Try running
the server without setting this statement first.
Post by Keith Marjerison
SET EMXOPT=-h256
This should be set to a higher value. Try -h1024.
Post by Keith Marjerison
SET UNIXROOT=E:\usr\X11R6
I wouldn't do that. Try SET UNIXROOT=E:. You already have a /usr tree
anyway, so by setting this you will be able to install many ported
packages by simply unzipping them to the root.
Post by Keith Marjerison
Now, when I try to run 'startx.cmd' the Xserver opens up fullscreen and then immediatly closes.
Anything in e:/usr/adm/xf86error.log? If that directory does not exist,
you have to create it. Anything in POPUPLOG.OS2?
Post by Keith Marjerison
Any ideas what I am doing wrong?
There may be problems detecting your hardware correctly. Try the
configuration program in textmode. There is an in-depth description at
http://www.os2world.com/os2files/.
Post by Keith Marjerison
Why has the directory structure in 4.5.0 changed from previous versions? Why the \usr\X11R6\?
Because that is the standard on Unix systems. And it might make other
things easier.

Christian Hennecke
Dave Yeo
2006-01-28 01:36:15 UTC
Permalink
Post by Keith Marjerison
Hello All;
I'm a newbie to the group, so go easy on me.
I had Xfree for OS/2 v3.3.1 installed and running and I am trying to upgrade to v 4.5.0 .
I installed all of the 4.5.0 packages to the \usr\X11R6\ directory structure and ran 'XF86CONFIG.CMD' to setup my
Xserver configuration. I saved the settings and copied the config file to the standard location. I added these statements to
REM *****Xfree86v450***** REM
DEVICE=E:\usr\X11R6\lib\xf86sup.sys /H2048
SET TERM=ansi
SET TERMCAP=E:/usr/X11R6/lib/X11/etc/emx.termcap.x11
SET TERMINFO=E:/usr/X11R6/share/terminfo
SET MANPATH=E:/usr/X11R6/man;E:/Xfree86/man;E:/Xfree86/usr/man
SET DISPLAY=BMAC:0.0
SET USER=DEFAULT
SET LOGNAME=DEFAULT
SET XSERVER=E:/usr/X11R6/bin/xfree86.exe
SET X11SHELL=E:/usr/X11R6/bin/ksh.exe
SET G_FILENAME_ENCODING=CP850
SET EMXOPT=-h256
SET UNIXROOT=E:\usr\X11R6
and I
Added : E:\usr\X11R6\dll;E:\usr\X11R6\lib; to LIBPATH statement and
Added : E:\usr\X11R6\bin;E:\usr\bin; to PATH statement.
Now, when I try to run 'startx.cmd' the Xserver opens up fullscreen and then immediatly closes.
I am able to run gimp-2.2 by starting 'xinit.exe' and running it from there, but I am told that this is not the correct way
to run the Xserver.
Any ideas what I am doing wrong?
Why has the directory structure in 4.5.0 changed from previous versions? Why the \usr\X11R6\?
Thanks in advance for any help you can give me.
Your settings look good to me except for SET UNIXROOT (should be SET UNIXROOT=e: ).
Try startx 1>e:\tmp\x.log 2>e:\tmp\error.log and see if any thing gets written.
Also it might be easier to put all the settings into a cmd script rather then config.sys. Easier to change things without needing a reboot.
Dave
Keith Marjerison
2006-01-28 18:32:19 UTC
Permalink
Hello All;
Thanks for the pointers. It looks like the korn shell (ksh.exe) was causing my problems. The error.log said that it
couldn't find the file.
I changed SET UNIXROOT=E:\usr\X11R6 to SET UNIXROOT=E: and
I changed SET EMXOPT=-h256 to SET EMXOPT=-h1024 and
I REMed out the SET X11SHELL=E:/usr/X11R6/bin/ksh.exe statement
Now Xfree starts OK but I still get Gtk and Gdk errors when running gimp and the xsane plugin won't work, more
Gtk and Gdk errors about 'XPM' files not being supported.
Since I had one of my root statements wrong, I'll try reinstalling the Gtk and Gdk packages to see if this helps.
Thanks again for the help. Any pointers about the Gtk and Gdk packages would be greatly appreciated.
||Keith Marjerison
||Marjerison Farms
||Central Butte, SK S0H-0T0
||E-Mail ***@sasktel.net
||Please remove the 'stopspam' from e-mail to reply
Christian Hennecke
2006-01-29 20:27:47 UTC
Permalink
Post by Keith Marjerison
Hello All;
Thanks for the pointers. It looks like the korn shell (ksh.exe) was causing my problems. The error.log said that it
couldn't find the file.
I changed SET UNIXROOT=E:\usr\X11R6 to SET UNIXROOT=E: and
I changed SET EMXOPT=-h256 to SET EMXOPT=-h1024 and
I REMed out the SET X11SHELL=E:/usr/X11R6/bin/ksh.exe statement
Now Xfree starts OK but I still get Gtk and Gdk errors when running gimp and the xsane plugin won't work, more
Gtk and Gdk errors about 'XPM' files not being supported.
IIRC Frank Gießler said that the port of GIMP 2 and the related GTK
packages wasn't really complete. So *some* errors might result from
that. If you want to use the XSane plug-in, you have to follow the
included instructions very closely and make sure that you are using an
up-to-date libsane.dll. I had some strange problems with that myself
but using the latest two from Paul Smedley worked. Of course, you
really need to set up your scanner correctly first. That means correct
dll.conf and backend conf files.

Christian Hennecke
Frank Gießler
2006-01-30 09:11:26 UTC
Permalink
Post by Christian Hennecke
Post by Keith Marjerison
Hello All;
Thanks for the pointers. It looks like the korn shell (ksh.exe) was causing my problems. The error.log said that it
couldn't find the file.
I changed SET UNIXROOT=E:\usr\X11R6 to SET UNIXROOT=E: and
I changed SET EMXOPT=-h256 to SET EMXOPT=-h1024 and
I REMed out the SET X11SHELL=E:/usr/X11R6/bin/ksh.exe statement
Now Xfree starts OK but I still get Gtk and Gdk errors when running gimp and the xsane plugin won't work, more
Gtk and Gdk errors about 'XPM' files not being supported.
IIRC Frank Gießler said that the port of GIMP 2 and the related GTK
packages wasn't really complete. So *some* errors might result from
that.
But not these ones. According to the original mail it looks to me that
e:\usr\lib is missing from LIBPATH. But in that case I wouldn't expect
gimp to run at all.

Did you follow the installation instructions for gimp? Did you run the
commands:

pango-querymodules > %X11ROOT%\etc\pango\pango.modules
gdk-pixbuf-query-loaders > %X11ROOT%\etc\gtk-2.0\gdk-pixbuf.loaders
gtk-query-immodules-2.0 > %X11ROOT%\etc\gtk-2.0\gtk.immodules

? You probably did, since you followed XFree86 installation instructions
closely. Does the file %X11ROOT%\etc\gtk-2.0\gdk-pixbuf.loaders contain
a section for XPM?

Hope this helps,
Frank.
--
Frank Giessler
Klinikum der Universitaet Jena Tel.: +49-3641-9 32 57 80
Biomagnetisches Zentrum Fax : +49-3641-9 32 57 72
Dave Yeo
2006-01-29 04:20:48 UTC
Permalink
Post by Keith Marjerison
Hello All;
Thanks for the pointers. It looks like the korn shell (ksh.exe) was causing my problems. The error.log said that it
couldn't find the file.
I changed SET UNIXROOT=E:\usr\X11R6 to SET UNIXROOT=E: and
I changed SET EMXOPT=-h256 to SET EMXOPT=-h1024 and
I REMed out the SET X11SHELL=E:/usr/X11R6/bin/ksh.exe statement
Now Xfree starts OK but I still get Gtk and Gdk errors when running gimp and the xsane plugin won't work, more
Gtk and Gdk errors about 'XPM' files not being supported.
Since I had one of my root statements wrong, I'll try reinstalling the Gtk and Gdk packages to see if this helps.
Thanks again for the help. Any pointers about the Gtk and Gdk packages would be greatly appreciated.
If you still have your old /XFree86 install you can add it to the PATH and LIBPATH after /usr/X11R6. Might help if you have packages you installed earlier
Dave
Keith Marjerison
2006-01-30 19:13:33 UTC
Permalink
Hello Frank;
I was confused about the X11ROOT so I installed all packages into 'e:/usr/x11r6' and not 'e:/usr'. My only experience
of UNIX is from Linux and any package I installed there had to be installed in the HOME root, so I just assumed that the
packages had to be installed in the same root as the XFree port.
I went ahead and reinstalled the gimp additional packages, reran the setup apps and now I am assuming gimp is
working the way its supposed to. Before whenever I ran gimp it would start without title bars and the windows could not be
moved. There wasn't much color and the gimp startup splash screen didn't run either, and now it does.
I am quite impressed with gimp running on OS/2, its almost identical to the one I use on SuSe Linux.
Thank you all for the help. What other ports for XFree are out there? What sites should I be looking at for further
updates and news?
Thanks again.
Post by Frank Gießler
But not these ones. According to the original mail it looks to me that
e:\usr\lib is missing from LIBPATH. But in that case I wouldn't expect
gimp to run at all.
Did you follow the installation instructions for gimp? Did you run the
pango-querymodules > %X11ROOT%\etc\pango\pango.modules
gdk-pixbuf-query-loaders > %X11ROOT%\etc\gtk-2.0\gdk-pixbuf.loaders
gtk-query-immodules-2.0 > %X11ROOT%\etc\gtk-2.0\gtk.immodules
? You probably did, since you followed XFree86 installation instructions
closely. Does the file %X11ROOT%\etc\gtk-2.0\gdk-pixbuf.loaders contain
a section for XPM?
Hope this helps,
Frank.
--
Frank Giessler
Klinikum der Universitaet Jena Tel.: +49-3641-9 32 57 80
Biomagnetisches Zentrum Fax : +49-3641-9 32 57 72
--Boundary_(ID_+tonyw+J47I13aup2q/Vcg)--
||Keith Marjerison
||Marjerison Farms
||Central Butte, SK S0H-0T0
||E-Mail ***@sasktel.net
||Please remove the 'stopspam' from e-mail to reply
Dave Yeo
2006-01-30 21:50:54 UTC
Permalink
Post by Keith Marjerison
Thank you all for the help. What other ports for XFree are out there? What sites should I be looking at for further
updates and news?
Thanks again.
http://os2ports.com/downloads/index_html?dir=pub/os2/unix/xfree86/ports is most likely the most complete repositry of ports. A lot of them install into /XFree86 so really you should have %X11ROOT%\XFree86\bin and lib in your PATH and LIBPATH (as well as manpath etc). Make sure you put them in after \usr\X11R6.
This list is most likely the best source of news
Dave

Loading...