Amiga.org
Amiga computer related discussion => General chat about Amiga topics => Topic started by: cehofer on January 19, 2018, 07:34:02 PM
-
I just thought I would do a little write up here on how I got network shares working on my Amigaone XE. There doesn't seem to be a lot of "troubleshooting" tips to get smb shares working and it is not smoke and mirrors. I have two Western Digital World Book NAS. I haven't tried to do Windows shares yet but I'm sure it is very easy since I have the NAS shares working.
I downloaded the following packages:
smbfs.lha
samba-2.2.5-bin2.3-os4.lha
sambamatic.lha
I installed them accordingly. Opening sambamatic, I could search and find the NAS and its shares but when I tried to log in, I would get a cryptic error code of Samba error 10. I couldn't find anything on this error. I even tried the command line for smbfs and got the same error:
Run >NIL: SMBFS Workgroup=WORKGROUP User="username" Password="password" Service=//192.168.15.110/download
I saw blogs talking about Roadshow and I finally figured out that was the TCP stack. Looking at the config in roadshow, the localhost ip is wrong with 127.1. It has to be 127.0.0.1. I was able to ping that after I corrected it. Even correcting the localhost config, it still gave me the "error 10".
Being a home network, I do not have local DNS or WINS. I think most of you know what DNS is but WINS is the same thing resolving IP addresses to netbios names which is what smb uses. I was unable to ping both names of my NASes. I then added host names in Roadshow config and it worked. I am now able to mount my NAS shares.
To unmount the shares from Workbench, go to CLI and type "status" and find the number of your share. Then you can use the command "break" followed by the number of your share.
9.System:> status
Process 2: Loaded as command: AppDir:Odyssey
Process 4: Loaded as command: smbfs '//CHARTECH4T/download'
Process 7: Loaded as command: smbfs '//CHARTECH4T/Public'
Process 9: Loaded as command: status
if I wanted to get rid of public, I would type
break 7
I would see the mounted public icon on WB disappear.
Sambamatic seemed to be the easiest to use to interface to Samba. i tried AmigaNetCenter but get the Grim Reaper everytime.
Conclusion:
If you don't have a local DNS server or WINS and I don't mean the DNS you use to get to the Internet, you need to add host entries in Roadshow. The easiest way is to ping the device name and if you cannot ping it, you need to add entries to your hosts. Also, correct the local loop back address from 127.1 to 127.0.0.1. IPV4 addresses are 4 octaves.
-
@cehofer
nice write up! how well is it working, e.g., performance, stability, etc.?
-- eliyahu
-
I use it to pull music and pix off the NAS and to backup the Amiga. I have not seen any issues yet. Performance seems to be pretty fast too. I think it is faster than when I access with Windoze 7 because MS does all this stupid throttling that it thinks it needs to do and cuts the bandwidth to a trickle.
I have not figured out how to make the shares permanent yet. After a reboot, i have to go into Sambamatic and re-establish the shares if I need them.
-
I use it to pull music and pix off the NAS and to backup the Amiga. I have not seen any issues yet. Performance seems to be pretty fast too. I think it is faster than when I access with Windoze 7 because MS does all this stupid throttling that it thinks it needs to do and cuts the bandwidth to a trickle.
I have not figured out how to make the shares permanent yet. After a reboot, i have to go into Sambamatic and re-establish the shares if I need them.
https://sambaforamigaos.wordpress.com/
I used that guide to setting up samba
-
I found that link too but there isn't any meat in it. Also, I looked in my startup and user-startup and found no “Run >NIL: samba:bin/nmbd-D”. So I don't know what they are talking about unless that was in 4.0 or 4.1x and not 4.1FE.
-
Q
I have not figured out how to make the shares permanent yet. After a reboot, i have to go into Sambamatic and re-establish the shares if I need them.
This is what I use on my A4000/OS3.9 setup, but might be useful for you anyways...
As I don't need to see my Amiga partitions on anything else than my Amiga, I have not installed Samba. A TCP/IP stack and smbfs is all I need. When my computer boots the TCP/IP stack is launched through user-startup. From user-startup I also mount 4 network shares using smbfs the same way you wrote earlier. When WB is opened, the 4 shares has been mounted. Every share has its own Disk.info, so they look like network shares and with their own name. Works a treat for me; might be useful for you!
PS. Try launching smbfs this way instead. Run >NIL: SMBFS Workgroup=WORKGROUP User="username" Password="password" Service=//192.168.15.110/download device="Download" volume="Download"
You can then access the share with download: instead of it being smbfs: allowing for multiple shares.
In my case I use Run >NIL: SMBFS Workgroup=WORKGROUP User="username" Password="password" Service=//192.168.15.110/download device=Download volume="Download @ server" resulting in a device called Download and a volumename "Download @ server"
-
I found that link too but there isn't any meat in it. Also, I looked in my startup and user-startup and found no “Run >NIL: samba:bin/nmbd-D”. So I don't know what they are talking about unless that was in 4.0 or 4.1x and not 4.1FE.
I have OS4.1FE, so it works perfectly with it.
In "Making changes part two" has a guide how to set up names, when there is no DNS server availlable on LAN.
"Making changes Part two" tells how to setup Samba services, with text editor and gui. Wich is correct way insted of this "Run >NIL: samba:bin/nmbd-D"
-
And remember that if you're just using SMBFS to mount remote shares, it's just waste of time and resources to install the whole bloated Samba package to your machine. Just use the SMBFS command alone.
To unmount the shares from Workbench, go to CLI and type "status" and find the number of your share. Then you can use the command "break" followed by the number of your share.
And if you want to automate this for scripts or menu items or such, you can do like this:
Status COM "smbfs '//CHARTECH4T/Public'" > T:smbfs_pid
Break ? < T:smbfs_pid >NIL:
Or more cleverly, combine the two commands into one line:
Break `Status COM "smbfs '//CHARTECH4T/Public'"`