Author Topic: Re-organizaing OS/2-eCS Directories.  (Read 62963 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4712
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #30 on: July 24, 2014, 08:01:55 pm »
Martin already bumped into two problems one with MPTS and the other with UNICODE.SYS. My only point is how many other older applications this could simply break...
Apps  you might not have access to...

I understand that there is variety of legacy OS/2 application that people may be using, and even that we can not find and know all of them, but I think we can document at least the most common errors on the most common apps when you try to move directories.

It may be interesting to discuss in the future which components do the community think can be scrapped for OS/2. Which is does not mean to put a gun against someone to scrap them, only to discuss it. But I want to focus on finish this moving directories experiment first.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #31 on: July 24, 2014, 09:49:47 pm »
I need to understand more about INI editing. Which tools do you recommend for it ?
I use Initor: http://hobbes.nmsu.edu/download/pub/os2/apps/editors/initor25.zip
FM/2's ini editor works well, too, but I find Initor more comfortable.

The only thing one has to configure together with DragText is to add initor.exe to the DragText exceptions and activate the checkboxes for both drag and drop for lists. That re-activates initor's popup menu.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4712
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #32 on: July 24, 2014, 10:20:06 pm »
Ohh. I found that MUGLIB path was also on IBMLVL.INI.

I will check Initor, thanks.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #33 on: July 25, 2014, 03:47:05 am »
Martin could you delete the other thread.

Does eCS use the Home directory on startup ?

I've been playing around with rsync and AES, stunnel, others.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4712
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #34 on: July 25, 2014, 04:03:12 pm »
IBMCOM:

Excelent. I just modified IBMLVL.INI with IniEditor.
I changed:
IBMLVL.INI  -> IBM_LANX -> PATH to C:\OS2\SYSTEM\IBMCOM
IBMLVL.INI  -> IBM_LS -> PATH to C:\OS2\SYSTEM\IBMLAN
IBMLVL.INI  -> IBM_UPM->PATH to C:\OS2\SYSTEM\MUGLIB.

I think that with the first one was enought for the "Adapters and Networks" GUI to start working again, but I just updated the correct paths on the rest.

It is working.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4712
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #35 on: July 25, 2014, 04:20:28 pm »
Now, I tried PSFONTS.

To move the folder what I did was, I used the "System Setup-> Fonts" tool to first uninstall all the fonts from PSFONTS. I moved the folder to other location "C:\Resources\Fonts" on my case.  And after that I drag and drop them again on  "System Setup-> Fonts"  to install them again.

It seems to be working. But I'm not sure if that was the right way to do it.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4712
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #36 on: July 25, 2014, 06:52:33 pm »
ok, I save the fun part for the last:

MMOS2

So I moved it to C:\OS2\SYSTEM\MMOS2.

Config.SYS Changes
    DEVICE=C:\OS2\SYSTEM\MMOS2\ssmdd.sys /S:64 /P:64 /H:256 /Q:1024 /E:1024
    DEVICE=C:\OS2\SYSTEM\MMOS2\r0stub.sys
    DEVICE=C:\OS2\SYSTEM\MMOS2\MMPLAYER\midi.sys
    DEVICE=C:\OS2\SYSTEM\MMOS2\vcshdd.sys
    DEVICE=C:\OS2\SYSTEM\MMOS2\UNIAUD32.SYS
    DEVICE=C:\OS2\SYSTEM\MMOS2\UNIAUD16.SYS /C
    LIBPATH=C:\OS2\SYSTEM\MMOS2\DLL;C:\OS2\SYSTEM\MMOS2\FREEDB;
    PATH=C:\OS2\SYSTEM\MMOS2\FREEDB;C:\OS2\SYSTEM\MMOS2;C:\OS2\SYSTEM\MMOS2\MMPLAYER;
    DPATH=C:\OS2\SYSTEM\MMOS2;C:\OS2\SYSTEM\MMOS2\INSTALL;
    HELP=C:\OS2\SYSTEM\MMOS2\HELP;
    BOOKSHELF=C:\OS2\SYSTEM\MMOS2;
    SET DSPPATH=C:\OS2\SYSTEM\MMOS2\DSP;
    SET MMBASE=C:\OS2\SYSTEM\MMOS2;
    RUN=C:\OS2\SYSTEM\MMOS2\mmfix.exe
    RUN=C:\OS2\SYSTEM\MMOS2\mididmon.exe
    RUN=C:\OS2\SYSTEM\MMOS2\mmhelpdd.exe
    RUN=C:\OS2\SYSTEM\MMOS2\qrymmcd.exe

Changed in INI Files

OS2.INI
OS2.INI -> CWMM

MMPM.INI
MMPM.INI -> MMPM2_AlarmSounds  (It has like ten values with paths to change)

MMPM2.INI
MMPM2.INI -> systemvalued -> workpath

UNIMIXPM.INI
UNIMIXPM.INI -> Program -> Name

RESOUTS:
No boot error, drivers keep loading.
System sound keeps working.
MPPM.EXE, IB.EXE, VOLUME.EXE


RESULTS - Failure
- MediaFolder and CWMM still want to load from the original location C:\MMOS2.
- Unimix died with an error attached here.
- "Sound" still points to C:\MMOS2\SOUNDS to look for sounds.
« Last Edit: July 25, 2014, 06:54:16 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4712
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #37 on: July 25, 2014, 07:17:13 pm »
After moving the MMOS2 folder, (and copying the ones blocked), after changing the config.sys and the INIs.

On the next boot this files remain locked on the original location. So I need to find who/where are they being turned on:
- C:\MMOS2\MEDIAFLD\BIN\mediafld.dll
- C:\MMOS2\MMCLASS\cwmm.dll
- C:\MMOS2\MMCLASS\BIN\mmres_en.dll
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #38 on: July 25, 2014, 07:48:48 pm »
Now, I tried PSFONTS.

To move the folder what I did was, I used the "System Setup-> Fonts" tool to first uninstall all the fonts from PSFONTS.
The complete filenames of all registered fonts are stored in OS2.INI -> PM_Fonts. It looks to me as if reregistering them is not required.

dbanet

  • Guest
Re: Re-organizaing OS/2-eCS Directories.
« Reply #39 on: July 26, 2014, 02:16:15 am »
After moving the MMOS2 folder, (and copying the ones blocked), after changing the config.sys and the INIs.

On the next boot this files remain locked on the original location. So I need to find who/where are they being turned on:
- C:\MMOS2\MEDIAFLD\BIN\mediafld.dll
- C:\MMOS2\MMCLASS\cwmm.dll
- C:\MMOS2\MMCLASS\BIN\mmres_en.dll

These are clearly SOM classes and WPS locks them. Anyway I wouldn't complain if Wolgemuth's classes stopped working: they are abandoned, closed source software (just like OS/2), and while I like the idea of it, I think that multimedia features of WPS should be provided by a third-party, powerful and replaceable (which means easily updateable) component, i. e. libavicodec, the library that ffmpeg uses.
« Last Edit: July 26, 2014, 02:17:51 am by Boris »

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #40 on: July 26, 2014, 10:58:59 am »
Is this new structure going to be 8.3 safe?

dbanet

  • Guest
Re: Re-organizaing OS/2-eCS Directories.
« Reply #41 on: July 26, 2014, 11:40:51 am »
Is this new structure going to be 8.3 safe?

What structure? I think the subject of this topic is to determine if it is possible to move some directories from the root, but not to invent a new directory tree.

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #42 on: July 26, 2014, 03:55:52 pm »
Is this new structure going to be 8.3 safe?
Don't understand that question because the Windows 3.1 part is within the boot drive of OS/2 and within the directory of OS/2. As it uses all, the standard installation is 8.3, what is done here is just put another directory path/name between the full name and that doesn't exceed the 8 of 8.3. So no problems here. The only problem you can get is that you are sooner through the (environment)space where programs have the full path statement of a program and some other things. With older programs this space is limited.

What Martin is trying to do has pro's and con's.  Pro is that from the root you have a simple structure, in the structure is will become a little more complicated. Backing up in a different way could be made impossible because you're going over the limit of full pathname together with name and extension. But I don't think he is going to move the Windows directory, that's already in the OS/2 directory. Its the Windows part which makes the troubles and needs insane length of pathnames, still don't know the use off that. Just go the register and ask yourself what purpose it has to go that deep.

Alex Taylor

  • Sr. Member
  • ****
  • Posts: 387
  • Karma: +5/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #43 on: July 26, 2014, 06:08:36 pm »
Now, I tried PSFONTS.

To move the folder what I did was, I used the "System Setup-> Fonts" tool to first uninstall all the fonts from PSFONTS. I moved the folder to other location "C:\Resources\Fonts" on my case.  And after that I drag and drop them again on  "System Setup-> Fonts"  to install them again.

It seems to be working. But I'm not sure if that was the right way to do it.

OS/2 (i.e. Presentation Manager) doesn't care in the slightest what directory fonts are installed in, as the complete path to each font file is specificed in the PM_Fonts section of OS2.INI. You can install fonts to anywhere you like, even to multiple directories on multiple drives.

Now, some applications which want to do their own font lookups might default to looking in ?:\PSFONTS - for example I think Ghostscript and/or maybe gsview are by default configured to search for fonts in ?:\PSFONTS and a couple of other well-known paths, and don't use OS2.INI to search for fonts.

Some early and/or app-specific versions of fontconfig also defaulted to looking in ?:\PSFONTS, and I think one or two older versions of Java did as well. Fortunately, current fontconfig/mzfntcfgft versions are smart enough to check the INI file.

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #44 on: July 27, 2014, 04:55:50 am »
But I don't think he is going to move the Windows directory, that's already in the OS/2 directory...

Did I say one thing about Win ? Everything file in OS/2 has 8.3 naming.

And even Roderick tried this and said a no go. And the one thing about Os2 it hasn't changed, why change it now ?
« Last Edit: July 27, 2014, 05:00:21 am by Greggory Shaw »