RISC OS / Mac shared drive
John Rickman (71) 645 posts |
@Steve
That is exactly what I want but unfortunately:
I believe it is only the front end which is causing the problem but I have not |
Steve Fryatt (216) 2103 posts |
I don’t really have the time to dig into this now, but with the Sunfish module loaded (
Obviously change the Server and Export entries to suit your specific mount points; also edit the UID and GID as required. Save this to disc, then set the type to ‘Sunfish’ – it should now behave as an image filing system, where double-clicking will open the mount. No front-end required. To edit the file further, change the filetype back to ‘Text’, so that it doesn’t behave as an ImageFS any more. There are a load of other options that you can add – I’ve not read back up the thread to see what your requirements are. If you can get this to work, hand-editing the mount into the front-end isn’t too hard: that way, you can have an icon on the iconbar, so long as you don’t try to click Menu over it! I can probably spend a bit longer on this after the new year – for now it’s only going to be snatches of time here and there, I’m afraid. |
Steffen Huber (91) 1949 posts |
I switched from a large, insecure (Linux-based, but software updates dried up some time ago), power-hungry (and with a proprietary PSU as I found out when it broke) and not-exactly-silent Netgear 4 drive NAS (3.5" WD Red when those were still reliable) to a Pi 4 (2 GiB variant) and a single USB3 SSD drive. OpenMediaVault as software, works flawlessly. Fast, silent, low power consumption, and OMV is much much better than the Netgear stuff. |
John Rickman (71) 645 posts |
@Steve thanks I now have Sunfish working with a mount file and have read write access to files created on the mac. I need to tidy up a bit but believe this is the solution I have been lookking for. |
David J. Ruck (33) 1629 posts |
Same hardware here, but I use vanilla Raspbian Samba and NFS servers with my own multi level and distributed backup systems. |
Dave Higton (1515) 3497 posts |
I have used OpenMediaVault successfully for some years now, on a RasPi3B+ with three 2.5" 1TB rotary drives. Be careful of power considerations. Other than that, it’s packaged, so it makes installation easy; and it does all its own updating – mine is set up to email me whenever an update has been downloaded, and merely waits for me to authorise installation. Only very rarely does it require a reboot after an update. SMB1 is not enabled by default, so you’d need to read the instructions to find out how to enable it. I didn’t find it too difficult. |
Steve Fryatt (216) 2103 posts |
That’s good – I’m glad it helped!
Now you’ve got this far, we just need to get the mount(s) on to the iconbar. There are a couple of other files to edit for that: I’ll need to be in front of a RISC OS box to be more specific, unfortunately, but will see what I can do tomorrow… |
Steve Fryatt (216) 2103 posts |
To get from an ImageFS mount to an icon on the iconbar, there’s a couple more things to do. If it doesn’t already exist, create yourself a You can now give the mount a friendly name to appear under it on the iconbar. To do this, create an
The first bit (“Name”) is the name that you want to appear, then the path to the mount, hash separated. I don’t know if it’s essential, but make sure there’s a newline at the end. You can add more aliases, each on their own line. Finally, you need to tell Sunfish Filer about the mount. You need one more file in the choices folder, called
The first line is the mount name (or alias) that we have above (“Name”, here), the second is blank. I’m not 100% sure what the third and fourth are; I think they’re UDP/TCP and NFS version, but I’d need to read the source code to check. Repeat these blocks of four lines for each mount that you want on the iconbar. This file is machine, not human, readable. Include no extra spaces, no extra blank lines – it’s just blocks of four lines, one after the other. With all of these saved, running Sunfish should put your mounts on the iconbar. Fingers crossed! |
adr (12133) 23 posts |
@Steve thanks I now have Sunfish working with a mount file and have read write access to files created on the mac. I need to tidy up a bit but believe this is the solution I have been lookking for. I’m glad you have it working, but I told you how to do this almost two weeks ago… Steve, is not simpler just to give a descriptive name to the sunfish file and use AddTinyDir? Using sunfish should be temporary. It’s not maintained, it crashes randomly (depends on the load), and it is Bye to all, and happy new year! |
Steve Fryatt (216) 2103 posts |
Personally, no, I don’t think it is. YMMV.
Um. All of my storage is on NFS, and I use Sunfish daily. It’s Open Source, and the Filer has been rebuilt at least once for hardware compatibility. I can’t say I’ve noticed the instability. As I say, I use it daily for all of my storage, and the Filer seems rock solid. The Desktop Filer has serious issues, but I’m not sure that I’d agree with “crashes randomly” or “depends on the load”. From what I can see, it crashes when you interact with the menus in certain ways – which suggests that it would be worth looking at what values the code is passing to Wimp_CreateMenu. There’s certainly a very similar set of symptoms arising from the mixing up of The key thing is that it isn’t necessary to interact with the Desktop Filer in a way that involves menus, except to configure the finer aspects of new mounts. Searching for mounts, and connecting to them on their default values, works fine.
I have looked at fixing Sunfish, and from memory hit a problem with the build environment that it needed: it’s a mix of a C Filer module and a C++ Desktop Filer front end, and used two different versions of GCC. IIRC, this looked as if it would be fun to disentangle, although it’s still on my to-do list. There was also a missing library, though I think Dave H solved that one. As I said above, building the Filer in isolation from source seems fine. It’s the Desktop Filer that’s the problem bit (and also the bit where the bugs are).
If someone wishes to fix this in Omni’s NFS client, along with the option to set custom UID and GID values, that would be great. However, there’s also the issue of hiding hidden files, and probably other things, too.
Happy New Year to you, too… |
adr (12133) 23 posts |
I’ve had problems copying big amount of data from a nfs server several times, recently and in the past (almost 10 years ago). I only use ImageFS, not the front-end for the reasons you noticed. Only when moving big amount of data, hundreds of Gb. And sometimes it crashes, sometimes not, so randomly. If you don’t have problems, just forget about it. Omni is maintained by ROOL, it’s shipped with the rpi img, it should be fixed. Just my opinion. If the last ellipsis is for the capitalization of “New Year”, I’m sorry, I’m used to old-school ASCII (now UTF-8) mailing lists, where one doesn’t waste time even on that. For me is extravagant having to use tags to this type Only the second paragraph was directed to you. The rest is for the people maintaining riscos. I have the impression |
Rick Murray (539) 13806 posts |
“New Year” should be capitalised, because it is referring to a specific holiday, which means it is a proper noun (rather than those improper ones lurking behind the bike sheds ☺). In British English, ellipses are used to denote two things:
It’s the latter case here, and unlike a dash that means the sentence has been abruptly stopped, the three dots imply that the ‘speaker’ has trailed off into silence, a sort of “to be continued”, if you will… |
Dave Higton (1515) 3497 posts |
I emailed Alex Waugh, who pointed me at the library he used. But at the time I was working on WireSalmon, not Sunfish/Moonfish, and in the end I decided to write a new front end for Wiresalmon using C and the Toolbox. That’s a rather easier project than for Sunfish/Moonfish. I did have a look at Sunfish/Moonfish a few years back. I can’t remember whether I got the modules to build (probably not), but I managed to overcome the use of a scripting language to create one of the compilable source files. The trouble is that I’ve forgotten what I did. I blame my advanced years, and trying to stuff my head with so much stuff. I do remember finding the source of a null pointer reference. But if anyone would like to have a cooperative go at bringing these extremely useful apps up to date, please count me in and I’ll do what I can. |
John Rickman (71) 645 posts |
The fingers crossed was not a strong enough magic. Here is what my choices directory contains:- |
David Pitt (9872) 362 posts |
The |
John Rickman (71) 645 posts |
(mis)understood this to mean just the Sunfish module.
Thanks – done that, it’s beginning to come together:-) All entries on the iconbar menu work except for “Dismount” which causes a crash with address 5E338. |
David Pitt (9872) 362 posts |
I see that too. |
John Rickman (71) 645 posts |
Sorry I did not react to this advice. With hindsight it may have been a better choice than the OmniClient route. Anyways, I’ m being dragged away from the ‘puters and told to dress for a New Year’s Eve Party or is that party? Until next year then, good wishes and thanks to everybody who has contributed to this thread. |
John Rickman (71) 645 posts |
On New Year’s Eve it appeared that Sunfish had won the NFS battle with Omni.
Typical RISC OS , One app to rule them all it isn’t. I need to run both apps to get what I want. |
David Pitt (9872) 362 posts |
OK, so Sunfish does not translate the . and / separators as required here but a TaskWindow does work with RISC OS commands and ls works with the Linux separator. iTrans is the Sunfish mount file. *dir SCSI::SSD120.$.Internet.NFS.iTrans *ls -l ls: cannot open directory '.': Not a directory *ls / '!Boot' Desktop Internet Printing Work _ROOL Boot Diversions Library Progm _Boot120 _Stored Compress Info Office Utilities _ROD704 __BU *ls -l /!Boot total 110 -r-xr-xr-x 1 riscos 1 561 26 05:29 '!Boot' -r-xr-xr-x 1 riscos 1 126 26 05:29 '!Help' -rwx------ 1 riscos 1 459 16 03:24 '!Run' ... *ex Dir. SCSI::SSD120.$.Internet.NFS.iTrans Option 00 (Off) CSD SCSI::SSD120.$.Internet.NFS.iTrans Lib. SCSI:"Unset" URD SCSI:"Unset" ... Mounts WR/WR Text 09:45:54 07-May-2022 452 bytes rr2/png WR/WR PNG 10:07:26 17-May-2022 155 kbytes PySSL/tx WR/WR Text 09:58:00 04-Apr-2022 385 bytes 512MB/zi DWR/WR Directory 11:26:26 31-Aug-2019 512 Mbytes sea15/tx WR/WR Text 18:11:02 29-Jul-2022 74 bytes pi/img/zip DWR/R Directory 18:21:22 29-Apr-2023 35 Mbytes ... |
Ralph Barrett (1603) 153 posts |
I’m not a MAC user, so apologies for adding this comment to a thread about connecting to MACs. LanMan98 is available on Pling Store for free. I just downloaded LanMan98 and connected to my Synology DS216DE NAS. Setting up was no more difficult than adding a shared drive in (say) Windows 7. Backed up my RISC OS RPi2 SD card contents to a folder on the Synology NAS without problem. Thanks to the “RISC OS Devs” for making LanMan98 free (it used to cost as much as a Raspberry Pi !). Ralph |
John Rickman (71) 645 posts |
@David – sorry I did not put it very clearly. It is not a problem with “ls” but with Sunfish.
Now mount any NFS directory via Omni and:
|
John Rickman (71) 645 posts |
No need to apologise it’s pretty close to topic and the thread is mostly about connecting via NFS.
Nothing against LanMan98 but I think you can get a similar result with OmniClient which comes as part of RISC OS.. |
Chris Gransden (337) 1202 posts |
Omni NFS != Sunfish NFS. Sunfish paths are e.g. SunFish::servername/Users/homedir.$ You can set an alias for the mount in Sunfish so the path above becomes, SunFish::alias.$ Some things can’t handle the forward slashes in the mount name. e.g ‘ls’. Omni NFS paths are NFS::mountname.$ |
John Rickman (71) 645 posts |
The Mac creates a Finder app customisation file .DS_Store for every directory it opens.
Which unfortunately means I need to use both. Everything is good except Omni and Sunfish have put icons on the icon bar. I don’t need the Omni one. |