Has anyone got a similar setup working, and if so, what
are the correct settings (on both systems)?
I have not tested every distro of linux but I have tested the
13/05/2025 release of Raspberry Pi OS lite, found here.. https://www.raspberrypi.com/software/operating-systems/
To get that to play nicely the key is this...
Add the following 5 lines to the file /etc/samba/smb.conf
--------------------------------------
# Allow SMB1 connections for RISC OS.
server min protocol=NT1
# client min protocol=NT1
ntlm auth=yes
unix extensions = no
---------------------------------------
In that file you'll find a line workgroup = WORKGROUP
and just under that a heading of Networking.
I chose to add the lines as the first item in "Networking"
I found it easiest to do this with nano as in:
sudo nano /etc/samba/smb.conf
Add the lines and that's basically it!
I also wanted to share the root on my Pis and to do that...
Add the following, I chose just above [printers]
[root]
comment = root
path = /
writeable = yes
only guest = no
directory mask = 0777
create mask = 0777
force user = root
force group = root
public = no
follow symlinks = yes
wide links = yes
That will give you access to root.
Then you may find that other shares from the pi set by default can
annoy. To get rid ...
add the line
available = no
to the list under [homes] [print$]
To finish off, save with Cntrl-X, Y, <ret>
sudo systemctl restart smbd
You should now be good to go.
Bob.
In article <7fb3c1235c.BrianNews@brianhowlett.me.uk>, Brian
Howlett <news-spamtrap@brianhowlett.me.uk> wrote:
Has anyone got a similar setup working, and if so, what
are the correct settings (on both systems)?
I had a lot of help from Bob Latham who supplied
information on connecting to a Pi.
Thanks for the mention John.
In article <5c240a807ebob@sick-of-spam.invalid>, Bob Latham <bob@sick-of-spam.invalid> wrote:
Thanks for the mention John.
My pleasure, Bob.
At least, Brian now has it from the horse's mouth.
John
I recently acquired a Raspberry Pi 5, and am looking to connect to it from RISC OS using LanMan 98, so far with no success.
On 27/05/2025 22:08, Brian Howlett wrote:
I recently acquired a Raspberry Pi 5, and am looking to connect to it from RISC OS using LanMan 98, so far with no success.
Instead of compromising my Raspberry Pi 5 NAS by enabling the old
horribly insecure SMB1 just for LanmanFS/98,
I'm using the same NFS
shares from my RISC OS Pi 4 that the other Linux Pi's use.
Once !SunFish is configured using the crashy front end, the back
end filing system is rock solid and I've not had a single problem
with it in a decade.
Bob Latham <bob@sick-of-spam.invalid> wrote:
Sunfish, horrible to setup, you need to pour a good drink first, but
once setup gives much better results.
If I remember correctly, the Sunfish file (ie the thing in a Filer
window you double click on to open an NFS share) is just a text file with
the config options. Try dragging it to a text editor and seeing what's inside. If the frontend is problematic, it may be easier just to edit the config file directly.
Sunfish, horrible to setup, you need to pour a good drink first, but
once setup gives much better results.
In message <lKm*sRGdA@news.chiark.greenend.org.uk>
Theo <theom+news@chiark.greenend.org.uk> wrote:
Bob Latham <bob@sick-of-spam.invalid> wrote:
Sunfish, horrible to setup, you need to pour a good drink first,
but once setup gives much better results.
If I remember correctly, the Sunfish file (ie the thing in a
Filer window you double click on to open an NFS share) is just a
text file with the config options. Try dragging it to a text
editor and seeing what's inside. If the frontend is problematic,
it may be easier just to edit the config file directly.
It is a Text file with different icon, and I have edited that file
as needed to get it to work.
Ideally though the frontend really needs to be fixed properly as
for non-techy users it gives a bad impression of the software.
To be honest, that sounds exactly like LM98 to me. Nothing in normal
Sunfish use appears to be a drag-able file to me. However, I have
found a file that describes my NAS connection at:
SDFS::Minim.$.!Boot.Choices.Sunfish.mountsave.red/volume1/music
It contains this...
Protocol: NFS3
Server: RED
Export: /volume1/music
uid: 0
gid: 0
gids:
umask: 022
Transport: TCP
ShowHidden: 1
FollowSymlinks: 5
CaseSensitive: 1
UnixEx: 0
TranslateWin: 1
DefaultFiletype: FFF
AddExt: 1
unumask: 600
MaxDataBuffer: 0
Pipelining: 0
Timeout: 20
Logging: 0
It may use other wording but nothing about "no conversion".
I wish I understood uid, gid and gids but I don't, the more I read
about them the more confused I become. I realise I'm probably wrong
but this security system seems to be a confused, complex, dog's
breakfast to me compared to a username and password expected
everywhere else.
Bob Latham <bob@sick-of-spam.invalid> wrote:
It may use other wording but nothing about "no conversion".
Is it perhaps the 'TranslateWin: 1'?
I wish I understood uid, gid and gids.
Let me try...
Wow thanks Theo. I have read that twice already, It's going in,
slowly but it's going in. Another 6 or 7 reads and maybe just maybe...
Thanks a lot Theo good of you.
Today I managed to get an NFS share working from a pi. It was a hack
I'm sure but it worked.
For anyone interested what I did was...
install NFS package.
sudo apt-get install -y nfs-kernel-server
Some say it should be 3 packages ...
sudo apt-get install -y nfs-kernel-server portmap nfs-common
but I found the second two were already installed.
Edit the file: /etc/exports
add lines like this...
/testbob 192.168.1.0/24(rw,sync)
/home 192.168.1.0/24(rw,sync)
Then restart the server.
sudo /etc/init.d/nfs-kernel-server restart
Permissions then show their ugly head. I found that
chmod 707 pi (as in /home/pi)
fixed that problem for me.
Can I do that for the entire machine for full access?
The front end on sunfish is doing my head in! If you rename or
shorten the connection name you lose the ability to change any
settings, it locks down and I can't find a way back. Real pain.
On 27/05/2025 22:08, Brian Howlett wrote:
I recently acquired a Raspberry Pi 5, and am looking to connect to it
from RISC OS using LanMan 98, so far with no success.
Instead of compromising my Raspberry Pi 5 NAS by enabling the old
horribly insecure SMB1 just for LanmanFS/98, I'm using the same NFS
shares from my RISC OS Pi 4 that the other Linux Pi's use.
Once !SunFish is configured using the crashy front end, the back end
filing system is rock solid and I've not had a single problem with it in
a decade.
---druck
Bob Latham <bob@sick-of-spam.invalid> wrote:
So I think you have two options. If you add 'no_root_squash' as in "(rw,sync,no_root_squash)" then you can access any file as root.
Or you could set your uid/gid to match the ones on the Pi. To find
them out, run the 'id' command:
In article <lKm*B9HdA@news.chiark.greenend.org.uk>,
Theo <theom+news@chiark.greenend.org.uk> wrote:
Bob Latham <bob@sick-of-spam.invalid> wrote:
So I think you have two options. If you add 'no_root_squash' as in "(rw,sync,no_root_squash)" then you can access any file as root.
Or you could set your uid/gid to match the ones on the Pi. To find
them out, run the 'id' command:
I've tried the easier method of adding 'no_root_squash' and it
appears to work but not quite. It displays all of the directories in
/ the same as Lanman98 and I know some of those are virtual
directories but they display in both systems.
What doesn't work is /boot/firmware where important files like
config.txt should be but the whole directory is empty from sunfish.
I have 'follow symbolic links' switched on, any suggestions?>
Bob Latham <bob@sick-of-spam.invalid> wrote:
In article <lKm*B9HdA@news.chiark.greenend.org.uk>,
Theo <theom+news@chiark.greenend.org.uk> wrote:
Bob Latham <bob@sick-of-spam.invalid> wrote:
So I think you have two options. If you add 'no_root_squash'
as in "(rw,sync,no_root_squash)" then you can access any file
as root.
Or you could set your uid/gid to match the ones on the Pi. To
find them out, run the 'id' command:
I've tried the easier method of adding 'no_root_squash' and it
appears to work but not quite. It displays all of the directories
in / the same as Lanman98 and I know some of those are virtual
directories but they display in both systems.
What doesn't work is /boot/firmware where important files like
config.txt should be but the whole directory is empty from
sunfish.
I have 'follow symbolic links' switched on, any suggestions?>
/boot is a separate mounted partition (the FAT one on the SD card)
and NFS doesn't follow mount points by default. I think you need
the 'crossmnt' option in addition to 'no_root_squash' to allow NFS
to see into the mounted filesystem.
In the file /etc/exports I have:
/ 192.168.1.0/24(rw,sync,no_root_squash)
This works-ish It shows all the root directories the same as LM98
does. But it shows directories as empty, specifically /boot/firmware.
There are are others.
So I added crossmnt to the line ..
/ 192.168.1.0/24(rw,sync,no_root_squash,crossmnt)
I don't know if that's the correct way.
Now we get errors, strange errors.
Error when reading Sunfish::LinnPi/.$.boot.firmware - NFS call failed
(Stale NFS filehandle)
Hmm, I don't know. Maybe it doesn't like crossmnt for some reason.
You could try making a second export for /boot or /boot/firmware
and add a second mount for Sunfish?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 09:38:21 |
Calls: | 10,387 |
Calls today: | 2 |
Files: | 14,060 |
Messages: | 6,416,673 |