Welcome, Guest. Please login or register.

Author Topic: OS4.1FE and Samba  (Read 1408 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline cehoferTopic starter

OS4.1FE and Samba
« 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.
 

Offline cehoferTopic starter

Re: OS4.1FE and Samba
« Reply #1 on: January 19, 2018, 08:17:46 PM »
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.
 

Offline cehoferTopic starter

Re: OS4.1FE and Samba
« Reply #2 on: January 19, 2018, 08:39:36 PM »
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.