Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Greg Pringle

Pages: [1] 2
1
Storage / JFS file corruption
« on: October 27, 2019, 07:18:55 pm »
I use JFS for large volumes and need back ups. When doing this in the past I used XCOPY /S /E which worked well. Then when the disks became too big I use cp -r which worked with larger data sets. Then both started failing.
Then I wrote some Java to do the same thing.
First it creates a text file listing of every file and directory with full paths.
On a 2T drive this could be about a 150MB file.
Then I read the listing and create smaller files limited by the number of files and the data size.
This created 110 smaller listings.
These listings could be used to copy the files to any drive or subdirectory.
However when I went to copy the files I had a JFS sytem crash about 8 listings in.
After some review I determined the file being copied  was currupt on the disk but had passed chkdsk.
It turned out I had to remove the file from the listing and about 20 more after it.
This was done by ediiting the listing file and then restaring the copy.
This approach copied the files but not the extended attributes.

Then I took the copy on the new SSD drive and put it in a fast machine which had an SSD boot drive.
The copy failed again. The speed was too fast between the SSD volumes for JFS to sync up.
It turned out to be two reasons. First, there needed to be some throttling when writing 400MB files and second there was a java problem. The java RandomAccessFile does not actually write in real time like standard ioctl disk access. Most people rely on a simple close() to end the file write. This failes on very speedy systems. Instead a RandomAccessFile.getFD().sync() is required before the close().

To make my life harder the SSD had a fault at about half way where a write would cause a kernal panic. If I wrote past this part of the disk it worked fine. The disk was a brand new SanDisk 3D 1T drive.


2
Web applications / How to make php active in Apache
« on: October 03, 2019, 04:50:21 pm »
Using Apache 2.2.34 and PHP 5.4.45 is not working as expected.
When php is run by hand it will return "Hello World" from:

set BEGINLIBPATH=D:\php5;D:\php5\modules
php -r "echo 'Hello World';"

When using a web page no results can be obtained.
<?php echo 'Hello World' ?>

Other lines have been tried with no results.

There is a C:\mptn\etc\php.ini
and httpd.conf has:
LoadModule php5_module d:/php5/apache2/modphp5.dll

Any thoughts?

3
Hardware / Canon TS 9000 printers
« on: July 20, 2018, 03:47:30 pm »
So far I am  unable to print with a Canon TS9120

I see the latest Gutenprint 5.2.14 lists Canon TS 9000 series printing as experimental.

Has anyone had this working for OS/2 ?

4
Applications / OpenSSH configuration problem
« on: June 03, 2018, 01:48:46 pm »
Using Alex Taylors build 5.3p1 and the latest from ArcaOS the OpenSSH will work for clients but has problems with SFtp.

Here is the log from sshd:
=====
debug1: Server will not fork when running in debugging mode.
Connection from 71.246.225.60 port 50909
debug1: Client protocol version 2.0; client software version JSCH-0.1.53
debug1: no match: JSCH-0.1.53
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
debug1: File /etc/ssh/moduli -> C:/etc/ssh/moduli == /etc/ == UNIXROOT == ETC

debug1: File /etc/ssh/primes -> C:/etc/ssh/primes == /etc/ == UNIXROOT == ETC

WARNING: /etc/ssh/moduli does not exist, using fixed modulus
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
Received disconnect from 71.246.225.60: 3: java.security.InvalidAlgorithmParamet
erException: Prime size must be multiple of 64, and can only range from 512 to 1
024 (inclusive)
debug1: do_cleanup
=====

Here is the log from an SFtp client:
=====
SFTP getList begin
getSession: root 71.246.225.60 22
good session
before connect
getList exc:com.jcraft.jsch.JSchException: Session.connect: java.security.Invali
dAlgorithmParameterException: Prime size must be multiple of 64, and can only ra
nge from 512 to 1024 (inclusive)
com.jcraft.jsch.JSchException: Session.connect: java.security.InvalidAlgorithmPa
rameterException: Prime size must be multiple of 64, and can only range from 512
 to 1024 (inclusive)
        at com.jcraft.jsch.Session.connect(Session.java:558)
        at com.jcraft.jsch.Session.connect(Session.java:183)
        at eforward.util.bin.SFtpClient.getList(SFtpClient.java)
        at eforward.util.bin.SFtpClient.main(SFtpClient.java)
SFTP getList done
=====

Note there is a problem with the prime size.

Does anyone have any insight?


5
Setup & Installation / ArcaOS installer iso
« on: May 14, 2018, 05:57:28 pm »
Does anyone know if the ArcaOS installer is up to date with the patches when a new ISO is generated?

I have an ISO from 5.0.2 Commercial which is dated 2-11-18 and and ISO for a new seat dated 5-14-18 and they are different sizes. The first was 949,945,027 and the second is 949,962,625
Both are "5.0.2"

6
Events / Meltdown
« on: January 06, 2018, 02:46:01 pm »
You should have heard about the CPU flaws which are being called security risks.

1. They are real.

2. Not new news.

3. Only a problem if you use the internet.

Well, that said, mostly only a problem if you use software from bad sources or use a web browser or email package.

Yes, just using a web browser or email package is sufficient to be attacked. It does not matter what you actually do.

This is like the old Windows 3.1 days where viruses were everywhere and all you could really do was not share floppies.

Now, what to do?

1. Use Arcaos.

2. ???

Ok, so Arcaos has email and web browsers.
But, it is not a target OS for hackers. It would require OS/2 specific code to do the hacks and the code is not easy.

One more thing to not do. Don't use cloud computing. That is hard to do if you do much on your phone.

Another note is that the hacks take advantage of peeking into programs other than the one doing the peeking.
So, a person who does many programs at once, especially sensitive ones, is most at risk.

7
Hardware / PCIE Wide Screen video
« on: January 05, 2018, 04:10:00 pm »
Are there any video PCIe video cards that  can do 1920 x 1200 resolution?

8
Utilities / Arcaos version info
« on: December 02, 2017, 03:41:11 pm »
Does anyone know how to display version info for Arcaos?
The OS/2 version can be displayed and eComstation had a file containing the installed version but where is the Arcaos version info.


9
Applications / IFX is examining and cleaning your INI files...
« on: October 16, 2017, 03:03:05 pm »
After ArcaOS was installed on a fresh drive and running I had an archive of the desktop which had no problems.
Then I used the hard disk heavily and tried to reboot. There was an error about not being able to find the desktop.
On reboot it asked for a good desktop so I chose the archive. All seemed well. The next day IFX ran and all seemed well.
Then the trouble began. On subsequent boots I frequently have IFX run and then hang. Only a hard boot can get the system back.
It has to run a CHKDSK on reboot and there are no reported errors. After that the system might or might not shutdown correctly.
The IFX might run OK but has the hang very often.

What is going on?

10
A new problem has arisen since I installed ArcaOS

I used to start programs from the Starup folder using a CMD file with the following contents.

/* sleep30.cmd */
LOG = "c:\boot.log"
main:
   rc = RxFuncAdd( "SysSleep","RexxUtil","SysSleep" )
   t = "Boot:"  DATE("E") TIME("L")
   rc = lineout( LOG, t )
   rc = lineout( LOG)
   call SysSleep 15
   "start /MIN c:\bin\start1.cmd"
exit

The start1.cmd would then simply run some more "start /MIN batch.cmd" type of commands.
This allowed delayed starting of programs based on the SysSleep time

Since using ArcaOS there is a problem with doing this.
If I start a CMD with a java program then I cannot start the web browser afterwards.
If I start the same CMD by hand after the system is booted then I can start the web browser.
Thunderbird will start but Firefox will not. I tried Firefox 12 and 38 with not difference.
I tried java 1.6 and 1.3 with no difference.
I tried LIBPATHSTRICT=T in the CMD calling java without success.
The java starts but then Firefox will not start until the java is killed and manually restarted.

Any thoughts?

Here is an example of start1.cmd started from the above.
START /MIN D:\efwslim\java\efwslim.cmd
exit

Here is the efwslim.cmd
@REM ===
SET CLASSPATH=
SET JAVA_HOME=C:\JAVA131\JRE
SET SWING_HOME=C:\JAVA131\JRE
SET PATH=c:\JAVA131\JRE\BIN;c:\JAVA131\BIN;%PATH%
SET LIBPATHSTRICT=T
SET BEGINLIBPATH=c:\JAVA131\JRE\BIN;c:\JAVA131\JRE\DLL
SET LIBC_HOOK_DLLS=C:\JAVA131\LIB;%LIBC_HOOK_DLLS%
SET INCLUDE=C:\JAVA131\INCLUDE;
SET LIB=C:\JAVA131\LIB;
@REM ===

d:
cd \efwslim\java
java -cp seim_srv.jar eforward.server.EdiRecv -v -t2188 -l\efwslim\logs\efwslim.log -q\efwslim\queue\ -pefwslimcl.properties -rstop.efwslim
SET LIBPATHSTRICT=F



11
The software is "free" but a donation is required to get a copy.
Sounds like a church having a concert where the concert is free but
a donation is required to get at ticket.

This practice does not violate the rules because it can be considered
the price of distribution but it is not clear  up front.

I have donated money the past but was not listed as a contributor by bitwiseworks
so they had an issue letting me have the latest Open Office. Reluctantly they
agreed without a donation so after they let me have it I sent another donation.

It looks like bitwiseworks.com is not getting enough money to pay for the
work they are doing.

12
Programming / Java Thread Memory
« on: July 21, 2016, 07:24:27 pm »
Has anyone else noticed that every time a thread under java 1.6 for os/2 is run and ends the memory goes down by 4 k ?

I use Theseus4 to check memory usage by process and after a new thread ends there is 4 k more memory
used by the java vm. This is true when the thread is started directly or as a runnable class or an inner class.
It seems to be true for both low and high memory. Garbage collection seems to have no effect.

When using java 1.3 for os/2 the memory stabilizes after a few starts and stops.

13
Hardware / Using various web cameras.
« on: June 06, 2016, 12:31:53 am »
There is a way to use most of the generic stand alone cameras. Almost all use the same internal software no matter who the "manufacturer" is.
There has been only 3 passwords for all the devices I have checked over the last 12 years. I hacked the cameras to find out how to use them.

Here is the a current setup which works for the current bunch. It has image and sound.
A batch file starts the process and calls a local "web page" to make it work.
The "DeviceSerialNo" is the password in this one.
Once the camera is setup (I use the other OS for that) it can be viewed with OS/2
The "RemotePort" number is what ever port has been configured in the camera.

@REM ===
SET CLASSPATH=
SET JAVA_HOME=D:\java16\jre
SET SWING_HOME=D:\java16\jre
SET PATH=D:\java16\jre\bin;D:\java16\bin;%PATH%
set BEGINLIBPATH=D:\java16\jre\bin;D:\java16\lib\dt.jar;D:\java16\lib\jconsole.jar;D:\java16\lib\tools.jar;%BEGINLIBPATH%
SET LIBC_HOOK_DLLS=D:\java16\LIB;%LIBC_HOOK_DLLS%
SET INCLUDE=D:\JAVA16\INCLUDE;
SET LIB=D:\JAVA16\LIB;
@REM ===
D:
cd camera
D:\java16\bin\appletviewer camera.html
exit


<HTML>
<!-- Document fd3.html created on Thu Jul 29 15:36:03 2004 -->
<HEAD>
<META NAME="generator" CONTENT="HTML Studio 1.50 for OS/2">
<TITLE>fdoor</TITLE>
</HEAD>
<!-- Body of the HTML document begins -->
<BODY>
        <APPLET name="cvcs" CODEBASE="http://111.11.111.11:49220/" archive="aplug.jar" CODE="aplug.class" WIDTH=640 HEIGHT=480>
        <!-- APPLET name="cvcs" CODEBASE="http://111.11.111.11:49220/" archive="aplug.jar" CODE="aplug.class" WIDTH=320 HEIGHT=240 -->
          <param name="RemotePort" value=49220>
          <param name="Timeout" value=5000>
          <param name="RotateAngle" value=0>
          <param name="PreviewFrameRate" value=2>
          <param name="Algorithm" value="1">
          <param name="DeviceSerialNo" value="YWRtaW46">
        </APPLET>
</BODY>
</HTML>

14
Programming / Memory issues in Java
« on: January 08, 2016, 02:24:32 pm »
I have been a java programmer since 1997 and used IBM Java 1.3 for OS/2 with good success. It is hard to crash. On the other hand the current Java 1.6 is easy to crash and even bring down the whole system. All you need to do is fill up memory with a series of threads holding vectors. There is no warning to the doom. I found this because I had some bad code which would store arrays in vectors with cross pointers to the arrays so the vectors would not actually leave memory after closing the thread holding the vector. (a nasty memory leak) On other systems (not OS/2) the results were an eventual hang of java. On OS/2 the results were a crash of Java and sometimes a crash of the system. At least now I have a test bed for leaks.

15
General Discussion / Yum issue
« on: April 14, 2015, 05:12:29 pm »
Why would yum return:
Error: no such table: packages

It does this no matter what is entered. It has worked in the past.

It will do it with any command like:
yum update *

thanks

Pages: [1] 2