Welcome, Guest. Please login or register.

Author Topic: OS4.1FE and Samba  (Read 1422 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 eliyahu

  • Lifetime Member
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jan 2011
  • Posts: 1220
  • Country: us
  • Thanked: 4 times
  • Gender: Male
    • Show only replies by eliyahu
    • eliyahu.org
Re: OS4.1FE and Samba
« Reply #1 on: January 19, 2018, 07:53:04 PM »
@cehofer

nice write up! how well is it working, e.g., performance, stability, etc.?

-- eliyahu
"How do you know I’m mad?" said Alice.
"You must be," said the Cat, "or you wouldn’t have come here."
 

Offline cehoferTopic starter

Re: OS4.1FE and Samba
« Reply #2 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 utri007

Re: OS4.1FE and Samba
« Reply #3 on: January 19, 2018, 08:20:53 PM »
Quote from: cehofer;835168
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
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline cehoferTopic starter

Re: OS4.1FE and Samba
« Reply #4 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.
 

Offline doctorq

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show only replies by doctorq
Re: OS4.1FE and Samba
« Reply #5 on: January 19, 2018, 09:58:22 PM »
Q
Quote from: cehofer;835168
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"
« Last Edit: January 19, 2018, 10:07:48 PM by doctorq »
 

Offline utri007

Re: OS4.1FE and Samba
« Reply #6 on: January 19, 2018, 10:35:32 PM »
Quote from: cehofer;835171
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"
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline pVC

Re: OS4.1FE and Samba
« Reply #7 on: January 20, 2018, 11:26:11 AM »
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.

Quote from: cehofer;835162
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:
Code: [Select]
Status COM "smbfs '//CHARTECH4T/Public'" > T:smbfs_pid
Break ? < T:smbfs_pid >NIL:


Or more cleverly, combine the two commands into one line:
Code: [Select]
Break `Status COM "smbfs '//CHARTECH4T/Public'"`
Daily MorphOS user and Amiga active.