Omni / Lanman98 setup? (oh, and IMAP)
Alan Adams (2486) 1149 posts |
An example on Windows and Unix clones is nslookup. Used on its own it runs the program instead of just executing single commands. Is is possible to “discover” the existence of gethost? Or do you have to know it exists in order to use it? It certainly doesn’t appear if you start from *help, then try *help commands. For the majority of RISC OS users, if it isn’t in *help, it doesn’t exist. (Mind you, it’s similar to my first experience of Unix – SunOS 1.4. It took me some time to discover that “man” meant “help”. “man man” is an unliklely but useful starting point.) |
Doug Webb (190) 1180 posts |
*gethost -t “Hostname” works and gives 192.168.1.239 but *gethost -t -x 192.168.1.239 doesn’t identify it in reverse and gives Failed to look up “192.168.1.239” Do I take it my router doesn’t like giving out that information? |
Colin (478) 2433 posts |
Meanwhile back at the coalface. The status of ports can be checked by: search for ‘firewall with advanced’ at the start menu click on "Windows defender firewall with advanced security’ expand Monitoring on the left and click on firewall. sort by ‘Local port’ column |
Colin (478) 2433 posts |
it would appear so
works for me. |
Doug Webb (190) 1180 posts |
Thought so as *gethost -x 127.0.0.1 gives: Hostname: 127.0.0.1 |
Rick Murray (539) 13851 posts |
*gethost -x 127.0.0.1 Hostname: localhost Alias: raspberrypi Alias: heyrick.ddns.net Alias: me Address: 127.0.0.1 type: 2 length: 4 * The first alias would appear to be from Inet$Hostname? Or does it know it is the “raspberrypi” part of “raspberrypi.home”? |
Alan Adams (2486) 1149 posts |
This now has me puzzled. If I type “gethost”, how does the OS know that it needs to run a particular program? A little digging found Run$Path. It seems to contain 3 elements. The first is !boot.library, which only has a few commands to do with FAT filesystems, and fonts. The third element points to !internet.bin, which contains gethost, along with a number of other commands, mostly apparently ported from Unix. I wonder why nslookup wasn’t ported, instead of creating gethost? The middle element of the path is “%.”. What does that do? I assume that the OS does two things – sends a message round the modules to see whether one can handle the command, and searches Run$Path for the command as a program name. If those are the only two things done, then maybe a useful addition to *help would be a scan along Run$Path listing the executables found as potential additional commands. This would mean that *help would be a starting point for all commands, not just those associated with modules. |
Jasmine (2350) 47 posts |
Update, some progress maybe?! PC is a windows 10 desktop, connected via ethernet. No wireless involved anywhere. Both the pi and desktop connected directly to main network modem-router, no intermediate switching. Lookng back through riscos usenet archives I did notice LanManager workstation the HKLM registry settings, to set passwords to plaintext. I tried this too but no joy. |
Steve Pampling (1551) 8172 posts |
No PTR in the DNS most likely :) A_RECORD – DNS name to IP
Better router, perhaps, or do you have a host file entry for your router? |
Alan Adams (2486) 1149 posts |
If using the IP address works, but the name doesn’t it means that the name lookup is failing. There are many possible reasons, depending on how your PC is configured. The risk of using the IP address, is that if you are using plain DHCP for the PC, the address may change at some random future time. The router however should provide the name resolution, which it apparently isn’t. If you have the PC set to a fixed address, then adding that address to the HOSTS file on the RISC OS system will allow the name to be looked up. The third possibility is to fix the address by using a DHCP reservation, which is set up on the router. This ensures that DHCP always sends the same address to the PC. In this case too, it can help to put the name in the HOSTS file.
I think this is what I got initially, when the Windows10 machine didn’t have SMB1 installed. Recent releases of Windows10 exclude it by default, and as said earlier in the thread it has to be added using “Windows features”, and then enabled. It could of course be something else in your case. |
Rick Murray (539) 13851 posts |
Let’s see… some sites (hello ARM!) ask for:
Clearly these sites think that “P@5∫ωóЯ₫” is more secure than “zombiellamasforthewin”. The difference is that one will be able to be remembered, while the other… The worst passwords are “secret”, “iamgod”, and so on. Pretty much all of the enforced-rules passwords are the latter category. Looking at the list in Firefox, I can spot a few sites that required those rules. And, you know what? I don’t remember most of them. Firefox does. Even if it is based upon a dictionary word – let’s say “skateboard” (I asked Google for a 10 letter word)… was the ‘a’ an ‘@’? Which one? Both would be too easy. The ‘o’ might have been ‘0’. The ‘t’ may have been ‘+’. The upper case would not have been the first or last (too obvious). So… possibly “sK@+eb0ard” or “sK@t3board” or… oh FFS… I’ll just write this down and leave it in a really visible place. :-/ |
Alan Adams (2486) 1149 posts |
Same here. Two snags with that – one is if you need to change browser for some reason. The other is if the Firefox saved password file gets lost, e.g. reinstalling Windows. (It can be backed up, once you’ve found it in the “maze of twisty little directories, all alike”) I use a file of account hints which allow me to home in on a password within one or two guesses. |
Stuart Painting (5389) 714 posts |
Actually, % is the current library, as set by (rushes off to check that I haven’t called % “CSD” anywhere important…) |
Alan Adams (2486) 1149 posts |
I assumed CSD based on experiment. Go to a directory with one of my programs in. Use “set directory ^W” |
Rick Murray (539) 13851 posts |
Exactly as you have surmised, it scans through the module commands and if not found, it will evaluate Run$Path to look for a file with the same name.
That’s difficult for two reasons. Firstly, what is “executable” at any given point depends upon the system setup. We all know Absolute, Basic, Exec, Obey, and Utility are executable. But, given the right things being ‘seen’ by the filer, I can imagine Perl and Lua scripts could also be? Secondly, here’s my Run$Path:
According to the Wiki page, nslookup was part of BIND and it was supposed to be deprecated in favour of host and dig, a decision which was reversed in 2004, with nslookup being fully supported since then. It’s therefore quite likely that nslookup had a big question mark over it at the time when the RISC OS networking system and utilities were created.
Check your Run path carefully – you might notice two commas before the %. ;-) |
Colin (478) 2433 posts |
It’s nothing to do with authentication it has to connect before it can authenticate. You don’t need any registry changes. I think the firewall is blocking the connection. Did you check the status of ports 137,139 in ’Windows defender firewall with advanced security’ see earlier post. |
Alan Adams (2486) 1149 posts |
Assuming there isn’t a third-party firewall instead. Mine came with McAfee, and that is just set to “allow local network”. Safe enough unless someone hacks the wireless router from a car parked outside. |
Rick Murray (539) 13851 posts |
By the way, the reason it specifies Library by path as well as by ‘%’ is because the latter generally isn’t used. *Lib is a hangover from the 6502 era, and is better handled by a list of paths, the Run$Path. *. Dir. SDFS::RISCOSpi.$.Coding.Projects.Manga.!Manga Option 02 (Run) CSD SDFS::RISCOSpi.$.Coding.Projects.Manga.!Manga Lib. SDFS:"Unset" URD SDFS:"Unset" !Boot WR/ !Help WR/WR !Run WR/ !RunImage WR/ !Sprites WR/ !Sprites11 WR/ !Sprites22 WR/ [etc etc] You’ll also note URD, another forgotten thing. ;-) |
Steve Pampling (1551) 8172 posts |
:) IkyotsSsIkIfysAsIraty (stage 1) All you need to know is a list of my favourite music, plus other items. For Jasmine, I suspect the answer is more a case of the Win10 install not running OLD SMB (and possibly having a password at all) |
Stuart Swales (1481) 351 posts |
Security, why would we want that??? ;-) |
Alan Adams (2486) 1149 posts |
What’s the significance of that? I wasn’t sure I saw that, as this is a big monitor with very small text in task windows. |
Colin (478) 2433 posts |
Nope. The rejected message means that it has connected but the first message sent was rejected. Thats me stumped. |
Rick Murray (539) 13851 posts |
I can’t speak for Windows 10, but I believe earlier versions needed extra stuff installed and a few registry hacks in order to coax the thing into talking “old insecure” SMB. |
Alan Adams (2486) 1149 posts |
Recent installs on Windows10 (like mine which was new in November 2019) do not have SMB1 installed. It has to be added. |
Rick Murray (539) 13851 posts |
Are you using WPS? ;-)
A path of "" means “the current”. That’s what is running the program in the currently selected directory.
At a guess, and I’ve not looked this up as I can’t be bothered typing that out… Sigur Rós? |