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.


Messages - Dariusz Piatkowski

Pages: 1 ... 39 40 [41] 42 43 ... 89
601
Programming / Re: Python 3.x?
« on: July 14, 2020, 05:49:10 pm »
Hi Paul,

Initial build:
http://smedley.id.au/tmp/python-3.8.3-os2-20200711.zip

Currently expects to be installed in /python38 - it should be possible to move it provided PYTHONPATH & PYTHONHOME are set appropriately...

Alright, so I set this up in a separate code\tools directory on my machine (to prevent any conflict with the RPM 2.7 stuff), here is what my environment config cmd file looks like:

Code: [Select]
@ECHO OFF
mode 80,60
SET MAIN=G:\code\tools\python38

rem *************************************************
rem Python 3.8 for OS/2 environment variable settings
rem *************************************************

REM change PATH below unless using default YUM/RPM install in \usr\bin
SET PATH=%MAIN%\bin;%PATH%

REM change LIBPATH to pull in the python3.8 specific DLLs
SET BEGINLIBPATH=%MAIN%\bin;

SET PYTHONHOME=%MAIN%
SET PYTHONPATH=%MAIN%\Lib\python3.8;%MAIN%\Lib\python3.8\plat-os2knix;%MAIN%\Lib\python3.8\lib-dynload;%MAIN%\Lib\python3.8\site-packages

if $%1$==$$ goto end
start python3 %1 %2 %3 %4 %5 %6 %7 %8 %9
exit
:end

So a couple of issues to report:

1) speedtest execution
Attempting to execute the speedtest script I get the following error msg:

Code: [Select]
  File "G:\code\tools\python38\Lib\python3.8/site.py", line 178
    file=sys.stderr)
        ^
SyntaxError: invalid syntax

So it feels like maybe the unix vs os2 path separator is getting in the way? I took a stab at this just by converting my python environment setup cmd to use '/' instead of '\', but that made no difference.

Since the cmd driven approach did not seem to work I took to just executing the speedtest dirctly by passing the script and the input params into python3.exe:

Code: [Select]
[G:\util\misc]\code\tools\python38\bin\python3 speedtest-cli --server 20916
Retrieving speedtest.net configuration...
Cannot retrieve speedtest configuration
ERROR: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
: unable to get local issuer certificate (_ssl.c:1108)>

In this case it would appear I hit some sort of certificate issue.

Any ideas Paul? I did not try anything else since this speed test is a pretty good excercise and if I could get it working with 3.8 that would be a pretty good test.

2) python3 invocation from CLI
The python3 environment seems to start up, but I absolutely can not type anything into the window itself. Can't even CTRL-C out of it, the only way is to kill it:

Code: [Select]
[G:\code\tools\python38\bin]python3
Python 3.8.3 (default, Jul 11 2020, 10:35:02)
[GCC 9.2.0] on os2knix
Type "help", "copyright", "credits" or "license" for more information.
>>>

Not sure what to make of that one.

Thanks,
-Dariusz

602
Hardware / Re: PCIe - SATA3 card choices?
« on: July 12, 2020, 04:04:46 pm »
Folks!

A quick follow-up on my part regarding this. So I took some time to spot a reasonably priced SATA3 PCI-E add-on card, less than $10. Took a while longer to actully receive it, yup all the way from China..lol.

Anyways, the point is it runs the HighPoint Rocket 620 firmware and it is a Marvell chipset (PCI ID 9125).

In order to get my OS/2 box to even boot I had to remove the following snoopers (nearly everything that was in the SNOOP.LST file):
ipsraid.snip
pcmci.snp
netdet2.snp
parallel.snp
mouse.snp
serial.snp
pcibus.snp

...but at least that got me to a booting OS/2 box where the main drive (boot drive only) was hooked up to that SATA3 card.

So what are the results????

Well, here is a quick BEFORE & AFTER:

1) BEFORE, this is the SATA2 controller on my motherboard
Code: [Select]
Hard disk 2: 255 sides, 30401 cylinders, 63 sectors per track = 238472 MB
Drive cache/bus transfer rate: 119363 k/sec
Data transfer rate on cylinder 0   : -208938 k/sec
Data transfer rate on cylinder 30399: 198222 k/sec
CPU usage by full speed disk transfers: 22%
Average data access time: Disk read error.
Multithreaded disk I/O (4 threads): 113654 k/sec, 28% CPU usage

2) AFTER, this is the SATA3 controller on the adapter card
Code: [Select]
Hard disk 4: 255 sides, 30401 cylinders, 63 sectors per track = 238472 MB
Drive cache/bus transfer rate: 117574 k/sec
Data transfer rate on cylinder 0   : 171576 k/sec
Data transfer rate on cylinder 30399: 167781 k/sec
CPU usage by full speed disk transfers: 3%
Average data access time: Disk read error.
Multithreaded disk I/O (4 threads): 107815 k/sec, 3% CPU usage

So certainly on this hardware alone the built-in stuff is better, even with the 28% CPU utilization on the Multithreaded test (plenty of CPU power here).

OK, that's all, just wanted to give everyone else some real concrete BEFORE & AFTER metrics.

Cheers al!

603
Networking / Re: Samba Server v4.11.9
« on: July 08, 2020, 07:47:44 pm »
Hey Paul,

...Sorry for the delayed response. For the Netdrive client, you need an updated smbcl411.dll - I'll try package one up soon...

No worries, but please take a look at the previous post of mine where I reported that the client EXEs are reporting as the prior version, that being: 4.11.5 instead of 4.11.9.

Thanks again,
-Dariusz

604
Utilities / Re: WifiState.exe
« on: July 06, 2020, 09:48:22 pm »
...You are probably right, my PC card is very old and it probably doesn't support WPA2. Looking at my wifi properties on my newer Windows laptop, the encryption is WPA2-Personal. Don't know but I guess I'm pretty much out of luck here. Might have to look into other options.

So far from being ideal, but on your router can you separate out a single SSID and give it a WEP configuration? If anything that would either confirm that tcpip config is fine and given the old-style security config you could actually connect.

If you want to stay connected that way, and perhaps hide the SSID on the router (so it does not auto-advertise) you could do that...but not worth the risk in my opinion, especially if you have others in yoru proximity that may want to hack the signal.

605
Hi Andi,

Wow, sounds awfully like an issue I have had on my machine when SMP is running (still have this issue with only a sub-set of apps, never figured out what causes it though)...but in my case I am not seeing this with AOO. In fact I went through your use-case, repeated with a NEW file first, followed by an existing file re-save with a different name. Both worked successfully.

Just on a chance, if you are running SMP, can you shut off all but a single core and repeat this?
-Dariusz

606
Networking / Re: Samba Server v4.11.9
« on: July 06, 2020, 09:41:05 pm »
Paul!

Hi Paul,

Hi All,

I'm now at a point in Samba Server development where i'm prepared to publicly share some binaries based on Samba v4.11.9

Client tools/DLLs:
http://smedley.id.au/tmp/smbcl411-4.11.9-20200621.zip...

Yikes, I'm badly behind on this...

OK, Q re: the Samba client...any chance you can release the NetDrive plug-in as well to match the upgraded client?

I am going to give just the client a try, I think it's safe to toss everything into the \usr\local\... path, that way no impact on the RPM official releases.

Thanks!

So I'm talking the Samba client only here, CLI test: the stuff works but it's reporting itself as a 4.11.5, so is this the right stuff you wanted tested?

I put all the EXEs into \usr\local\bin and DLLs into \usr\local\lib, both are present in the right places in CONFIG.SYS, and running specifically from the CLI with a FULL PATH to the EXE itself still produces a 4.11.5 output from '--version'.

For what it's worth, I have the following currently present:

1) samba-client-4.11.5-0.oc00.i686
Code: [Select]
Directory of G:\usr\bin

 1-25-20  6:46p        13,729    124 a---  smbcacls.exe
 1-25-20  6:46p     1,072,315    124 a---  smbclient.exe
 1-25-20  6:46p       153,715    124 a---  smbclient.map
 1-25-20  6:46p       138,390    124 a---  smbspool.exe
 1-25-20  6:46p         3,984    124 a---  smbtree.exe
        5 file(s)   1,382,133 bytes used

2) your test release
Code: [Select]
Directory of G:\usr\local\bin

 6-20-20  8:14p        18,971      0 a---  smbcacls.exe
 6-20-20  8:13p     1,087,293      0 a---  smbclient.exe
 6-20-20  8:13p       158,022      0 a---  smbclient.map
 6-20-20  8:13p       143,544      0 a---  smbspool.exe
 6-20-20  8:13p         9,022      0 a---  smbtree.exe
        5 file(s)   1,416,852 bytes used

607
Utilities / Re: WifiState.exe
« on: July 05, 2020, 10:32:29 pm »
Carl,

So I'm thinking along the lines (re: tcpip connectivity) that Doug is, connection to a router is a good thing.

What actually happens if you do a tracerte to a site, so for example, assuming I want to see what path is taken to get to www.google.com:

Code: [Select]
[G:\usr\local\lib]tracerte www.google.com
traceroute to www.google.com (172.217.5.4), 30 hops max, 38 byte packets
 1  20:E5:2A:5C:4A:CF         (192.168.1.1)  0 ms  0 ms  0 ms
 2  bas1.wndson17.mnsi.net    (216.8.136.77)  0 ms  0 ms  0 ms
 3  br1.wndson17.mnsi.net     (216.8.137.2)  0 ms  0 ms  0 ms
 4  74.125.48.178             (74.125.48.178)  10 ms  10 ms  10 ms
 5  108.170.243.193           (108.170.243.193)  10 ms 108.170.243.174
 (108.170.243.174)  0 ms 108.170.243.193           (108.170.243.193)  0 ms
 6  209.85.255.173            (209.85.255.173)  0 ms  10 ms 209.85.255.145
      (209.85.255.145)  10 ms
 7  lga15s49-in-f4.1e100.net  (172.217.5.4)  10 ms  10 ms  0 ms

This will actually tell us if you are getting out at all past your router in the first place, if not, could be a DNS resolution.

Do you have DHCP or static IP address?


608
Networking / Re: Samba Server v4.11.9
« on: July 05, 2020, 05:29:21 pm »
Hi Paul,

Hi All,

I'm now at a point in Samba Server development where i'm prepared to publicly share some binaries based on Samba v4.11.9

Client tools/DLLs:
http://smedley.id.au/tmp/smbcl411-4.11.9-20200621.zip...

Yikes, I'm badly behind on this...

OK, Q re: the Samba client...any chance you can release the NetDrive plug-in as well to match the upgraded client?

I am going to give just the client a try, I think it's safe to toss everything into the \usr\local\... path, that way no impact on the RPM official releases.

Thanks!

609
Programming / Re: Python 3.x?
« on: July 01, 2020, 05:30:12 am »
Far from being tested.... but....

{0}[u:\dev\python-3.8.3] python.exe PC\os2emx\script.py
Goodbye, World!

{0}[u:\dev\python-3.8.3] cat PC\os2emx\script.py
print("Goodbye, World!")

NICE!!!

Thank you for the rapid updates...I for one am following them closely Paul!

610
Programming / Re: Python 3.x?
« on: June 28, 2020, 12:06:27 am »
Hi Paul,

Indeed, Python has a tremendous amount of functionality these days, the ML stuff in particular being part of my interest.

I would love to see 3.x stuff on our platform, mostly b/c majority of ML libraries (the stuff being actively talked about, etc.) is at that level.

Thanks!

611
Internet / Re: Replacing the OS/2 URL object - DIY version...
« on: June 18, 2020, 06:57:55 pm »
Hi Andreas,

Without fully understanding your problem: You need to restore the .TYPE EA to UniformResourceLocator.

The core of my problem is that that NAS box does not support EAs...so the approach you suggest, as much as I would love to do so will not work. I do appreciate your response though!

Problem solved, the WPS URL object recognizes filenames ending in '.URL' extension as URL objects, as such, a file re-name works!

612
Internet / Re: Replacing the OS/2 URL object - DIY version...
« on: June 18, 2020, 03:13:11 pm »
Alright, so it turns out the default WPS URL object has a sort of a "hidden gem" (to me anyways as I did not know this).

Adding a '.URL' extension to a filename automatically causes WPS to convert the object to a URL object, even if the said file exists on a fs which does not support EAs.

From that perspective, problem solved, I simply added that '.URL' extension to all my filenames.

Now, in parallel to this (as this was my original approach) I crafted this little CMD file to pull the one-liner URL from the file itself and invoke FF:

Code: [Select]
/* Quick script to read in a URL from a text file and open Firefox */

/* parse the input argument, which should be a text file that contains the one-l
iner URL */
parse arg url_file

/* check if actual argument was passed, if not, end gracefully */
if url_file = '' then
   do
   say "No URL_FILE passed!"
   exit
   end

/* show the file we are processing */
say "Parsing file: " url_file

/* parse the input URL_FILE and get the actual URL from it */
url = Linein(url_file)

say "The URL to load is: " url

/* call the Firefox browser */
'@g:\apps\tcpip\firefox\firefox.exe' url

When a WPS program object points to this CMD script and the object Parameters field contains '%*' the fully qualified path of the URL text file is being passed to the script, which is exactly what I want.

613
Internet / Replacing the OS/2 URL object - DIY version...
« on: June 16, 2020, 02:39:11 pm »
Hi everyone,

I recently moved all of my DOCUMENTS (you know, the personal stuff that accumulates over the years, PDFs, text files, notes, etc...LOL) from my OS/2 box to the NAS. The NAS does not support EAs, and as expected all of my URL objects (the WPS object that you to double-click thus openning up your web browser) have now become simple text files on the NAS.

Alright, so I knew this was going to happen and now am trying to figure out a way to deal with it.

The NAS files that used to be the OS/2 URL objects are now a simply text file with the one-liner content being the URL itself. I figured that if I can read the contents of that file and pass that onto Firefox as a command line parameter that should in fact give me a "poor man's" replacement for the WPS UL object.

I need a little help in making that into a one-liner though. The alternative is of course to do up a small REXX script, but if I can parse the stuff as a one-lines, well, that's better since I can simply create the program object for it and convert that into my own DIY "OS/2 URL Object" solution.

So here is a scenario I'm looking at:

1) URL text file => 'CBC - URL'

2) content of the above text file
http://www.cbc.ca/news

3) current DIY URL object CLI
g:\apps\tcipip\firefox\firefox.exe &head "cbc - url"

4) sample execution

The CLI produces the following, but the firefox window pops up on it's own and the URL is not passed to it

Code: [Select]
[V:\PUBLIC\DOCUMENTS\Dariusz]g:\apps\tcpip\firefox\firefox.exe &head "cbc - url"

http://www.cbc.ca/news

The idea here being that I can use the HEAD utility to simply pull that single line from the text file (which is the actual URL) and pass that onto Firefox as a CLI argument.

My problem is that testing this out I clearly do not have the right CLI definition, simply put the "&head" must feed INTO firefox.exe and I don't know how to do this in our OS/2 world.

I spent a little time going through various OS/2 help files but didn't spot anything that worked for me.

So can anyone give me the proper syntax for the CLI structure to pass an output of the 2nd command as input to the first command?

Thanks!

614
Networking / Samba client - correct username / pass setups...
« on: June 11, 2020, 07:43:56 pm »
So I've got just the Samba client on my OS/2 box here, it connects to multiple shares on the LAN.

Ever since I had installed AOO way back when I have had 'SET USER=...' entry in my CONFIG.SYS. Didn't really pay much attention to it, but now that I'm spending a lot more time with the Samba stuff I'm realizing that this little environment variable has had an impact on the Samba functionality.

Specificially, the client will look for the USER variable and if it finds it (which it does here) it uses that as the default authentication username. Since my current value in the CONFIG.SYS does not match the ID I have defined on my multiple LAN devices, I now have a bit of a problem. Now of course I can spec a different name, and when my shares are configured through NetDrive (which is how most of them are) this USER variable has very little impact. However, when doing stuff at CLI the situation is quite different.

Further on, looking at the 'kLIBC - User Manager' I now of course have that current CONFIG.SYS value showing, but the correct username does not exist.

So, can anyone explain the impact (potential, maybe none?) of actually creating a 'NEW kLIBC - User Manager' account with the LAN username I want to use?

The bigger goal here is to configure the Samba client side of the house on my OS/2 box so that the true LAN ID/PASS combinations are stored locally on my OS/2 box (in the Samba pass file presumably) and by default that combination is used do that I do not have to enter it at the CLI level.

Thanks!

615
Doug,

...There is a script in: https://hobbes.nmsu.edu/download/pub/os2/util/wps/movingdesktopobjects100.zip, that can be run at shutdown....

This is the same script Andreas already posted the most recent (and therefore updated) version in this very thread.

For anyone that's looking for the backup info (INF) the package Doug pointed to certainly has that. But I would advise against using the CMD file that's included there as opposed to the updated one that's provided by Andreas here.

Pages: 1 ... 39 40 [41] 42 43 ... 89