I have a SAMBA server with some shares on a Raspberry Pi on my local network. I’ve found a program called smbfs on aminet.net as well as SMBMounter but I need advice on how to configure either/both of them so I can see and browse my shares.
Samba shares work really well on 3.0 and I’m sure any other version of AmigaOS that the above two applications you linked to run on.
The next version of SMBMounter will handle more of the subtleties of smbfs but you do need to set up smbfs manually for the time being anyway. Here’s how I set up smbfs to mount my shares from a raspberry pi and an Ubuntu machine:
Download, extract and install smbfs from the location you’ve linked to. It should end up in SYSTEM:C/
Because smbfs does not work with IP addresses, you need to set up the host name of your servers. Edit SYSTEM:Devs/Internet/hosts and add a line with the IP of the server and the hostname, seperated by a space. Mine looks like this and you can add additional entries each on new line of their own:
3.Create a mount script
The sequence to mount a share is best captured in a script. Save the following to a file – I saved mine called ‘mountpi’ to SYSTEM:S/ and it contains the following:
stack 65536 smbfs workgroup=workgroup service=//osmc/raspberrypi user=osmc password=osmc device=raspberrypi: volume=pi: >NIL:
Go to Icons -> Information… and make sure Script, Readable, Writable, Executable and Deletable are ticked. Save.
You could just leave it at that and run your script whenever you want to mount but I like to have everything show up after I turn my machine on so see the next step for that.
4.Mount at startup
To run the script at startup, edit your startup script (SYSTEM:S/user-startup in most cases) and add:
If EXISTS S:mountpi run >NIL: s:mountpi >NIL: EndIf
Save, quit and reboot and you should see the device/share mounted on the workbench screen.
To add to TenLeftFingers’ answer, SMBMounter can be used for mounting hosts easily, though it also requires steps 1 and 2 from above to be carried out. Once they’re carried out, create a new entry in SMBMounter, fill in the details and click Ok. The minimum details you need to fill in are the host name (osmc) in the example above and service name (raspberrypi), both without the slashes. Username and password can be filled in to save them, or can be requested when you try to connect. Name (to identify the mount) and Volume name (the name given to the volume mounted in Workbench) will be filled in automatically if you don’t specify them yourself.
A new entry with the given details will be shown in the left column. Double-click the entry to mount it. When it’s successfully mounted, it will show up in the column on the right, and will also show up on the Workbench. It can then be used as a regular drive. To save the left-hand list of entries, choose the Save all mounts menu item.
Optional browse functionality can be enabled by installing two commands from the Samba package. Note that Samba itself doesn’t need to be installed or configured for it to work. Those commands are:
- nmblookup, for finding filesharing hosts
- smbclient, for finding out what services a host provides
If these are installed without the rest of Samba, you should set the path to them (Samba bin path) in the Preferences window so that SMBMounter knows where to find them. With these in place, the “?” button beside the Hostname text gadget will open a new window listing all the hosts found on your network. Selecting one of these will fill in the Hostname gadget with the relevant name.
Clicking the “?” button beside the Service text gadget opens a similar list, only this time it lists all the shares offered by the host entered in the Hostname text gadget. Selecting the share will enter the relevant name in the Service text gadget. This makes sure that the hostname and service are both entered correctly.
In the main window, the “?” button performs a similar function for the Quickmount feature. A list of hosts will be shown, followed by a list of shares offered by the host selected in the previous list. The complete service name will be automatically constructed for you, ready to connect as a once-off connection.
Unmounting shares will try to disconnect from the service, however this will fail if the share is in use by another program, for example, if the share has a window open on the Workbench. If successfully unmounted, the entry will be removed from the list on the right, and all resources involved will be freed up.
Be carefull with SAMBA, I had trouble copying large files, over several MB. They were incomplete or corrupted. BTW, I was transferring from Win7 system.
- I’ve had problems with even small files. Some are fine, others are corrupt. Haven’t figured out why yet (Miami & X-Surf). Win10 here.
- You must login to post comments
Please login first to submit.