Accessing smb v2 and v3 shares with ShareView
Chris Gransden (337) 1207 posts |
There’s a new application available (ShareView v0.01alpha) for viewing smb v2 and v3 shares on RISC OS available from here. It makes use of the libsmb2 library so supports everything that does apart from kerberos. Signing, Encryption etc. It’s now possible to connect to servers using smb v2.0 – 3.1.1 on RISC OS. e.g. Windows 11, Samba Server, and Mac OS incuding encryption. To get started merge the !Boot folder included in the zip file. Then edit the file !Boot.Choices.smb2.user/txt. It’s a first release so has quite a few limitions. Only single file downloads are currently supported. The hour glass To list available shares on a server run the smb-share-enum command included in the tools folder in the zip download. |
Paul Sprangers (346) 524 posts |
This is great news! Unfortunately, I don’t succeed in establishing a connection to any of my peripherals (Windows PC, NAS 1 and NAS 2), which is probably due to my infinite ignorance. I’m afraid that I’ll have to wait for version 0.02. |
djp (9726) 54 posts |
+=>1. Wow!! It’s working here in that Samba shares on both RaspberryPi OS and, more interestingly, on a Mac can be seen and files can be saved to the Titanium client. A bit later. And now also to Windows10 laptop. |
Dave Higton (1515) 3526 posts |
Works here too – thanks! I’m curious as to why a file can be saved to a directory but not to an application (I tried a JPEG to SwiftJPEG), because I thought the drag and drop protocol was the same in both cases. Where on your priorities list is transfer in the other direction, i.e. from directory to ShareView? |
Dave Higton (1515) 3526 posts |
One other thing: I needed to download TimerMod, from the ARM Club site of free software, and put it in System:Modules |
Steffen Huber (91) 1953 posts |
Speaking from experience with the “Disc Extractor” in CDVDBurn 3: you can do it the wrong way, and then it will only work with the filer but not with applications. Unfortunately I cannot remember the details of “how” it was wrong… |
Grahame Parish (436) 481 posts |
I thought it was down to Chris’ comment that it could only do single file transfers. An application implies more than one file. |
Stuart Swales (8827) 1357 posts |
Interestingly, PipeDream 4 can appear to accept a file dragged from ShareView to the PipeDream icon! If you do this, you’ll notice that a copy of the file has appeared in the CSD. [Edit: even though I can see that PipeDream has requested <Wimp$Scrap> transfer, but RISC_OSLib is no doubt screwing it up somehow as the DataLoad still has the existing leafname. Edit #2: if I use <Womp$Scrap> instead, the transfer works as expected.] Fireworkz happily imported an Excel file straight from ShareView, but I can see in this case that the file has arrived via !Scrap. [Edit: Fireworkz doesn’t use RISC_OSLib! And goes via the Wimp$ScrapDir directory, with the variable expanded.] |
Chris Gransden (337) 1207 posts |
The file handling is very basic at the moment. The ‘SaveAs’ is just used to set the file name. |
Chris Gransden (337) 1207 posts |
I left that in for debugging download times. |
Chris Gransden (337) 1207 posts |
The hooks are already there to upload files so shouldn’t be too much longer to add it. |
Paul Sprangers (346) 524 posts |
Okay, I finally managed to get a In the user/txt file I entered: |
djp (9726) 54 posts |
In case it helps the Path required is to a directory within the share, it can be left blank to see the top level of the share. HTH. |
Paul Sprangers (346) 524 posts |
Thank you for reacting, but leaving the path entry blank unfortunately doesn’t help: the ShareView window remains empty. |
Dave Higton (1515) 3526 posts |
I’m talking about dragging a file to an application (one that is on the icon bar), not dragging an application. |
Stuart Swales (8827) 1357 posts |
Something odd in the DataSave world, isn’t there? Fireworkz is happy to accept JPEGs dragged from ShareView to either its icon bar icon or into documents, done as scrap transfers via Wimp$ScrapDir. SwiftJPEG does seem to be special-casing <Wimp$Scrap> filename handling a lot, which may not help. |
Grahame Parish (436) 481 posts |
I’m having similar problems to Paul – I just get a blank window accessing a NAS on the local network. I am in a domain, rather than a workgroup, but the syntax is usually the same. I’m seeing errors when trying the smb-share-enum command against any of the NAS boxes here: Session setup failed with (0xc000006d) STATUS_LOGON_FAILURE, which presumably means that it doesn’t like the contents of user/txt. |
Stuart Swales (8827) 1357 posts |
They’re not SMBv1-only NAS are they? ;-) |
Chris Gransden (337) 1207 posts |
There’s not much error handling at moment. Hopefully the next version (>0.02) will have enough to see what the problem is. One thing to be aware of is there is no support for SMB v1. |
Chris Gransden (337) 1207 posts |
There’s a new version (ShareView 0.02) available here that has limited file upload support. Just drag a single file to the ShareView window. Be aware there’s no checking if the file already exists. |
Grahame Parish (436) 481 posts |
Definitely not using SMB1 here. I usually access the NAS boxes over NFS from RISC OS (5.28) as I stopped using SMB1 a couple of years ago – I also never got on with LanMan/LanMan98. |
Chris Gransden (337) 1207 posts |
I haven’t tested connecting to a domain. The user name in user/txt might need to be,
<DOMAIN Name>\<Username> |
Stuart Swales (8827) 1357 posts |
The leave-a-copy-in-CSD issue seems to affect !Draw and !Edit as well. |
Stuart Swales (8827) 1357 posts |
With v0.02, double-clicking on a file in the Filer seems to transfer it to the current ShareView directory rather than opening it! |
Paul Sprangers (346) 524 posts |
Only now I realise that I mixed up Share name and Path. And yes, I can now see the contents of my NAS. Dragging files from and to it works fine. HOWEVER, there’s a strange little bug: I dragged a JPEG file to the RAM disk, but when I double clicked on it – that is: on the JPEG file in the RAM disk – the filer window of the RAM disk jumps behind the ShareView window, while the JPEG isn’t loaded into any viewer. But of course, this is still version 0.02 and very much alpha. |