I would go on the Mac to the net info then to machines and search for Ubuntu PC's name, copy that name, and use it instead of the IP address. In Finder do: Go -> Connect To and then smb://name/user
or smb://` and type in your credentials.
Make sure the samba server (your Ubuntu server) is configured correctly:
Type the following:
sudo gedit /etc/samba/smb.conf
Rename MSHOME to WORKGROUP or whatever your workgroup's name is.
Then go to the line where the security is defined and add ; at the beginning of the line.
Scroll to the bottom of the file and add/edit your shared folders as follows:
[<folder_name>]
path = /home/<user_name>/<folder_name>
available = yes
valid users = <user_name>
read only = no
browseable = yes
public = yes
writable = yes
Save and restart samba with:
sudo /etc/init.d/samba restart
or
sudo service smbd restart
depending on the version of Linux you're using.
If you haven't already done so, create a user with:
sudo smbpasswd -a yourname
Now go to the network settings and give your Server IP, subnet mask and gateway. You can then connect on the Mac as previously stated (Go -> Connect To -> smb://)
On the Linux box, you need to right-click whatever folder you want to share and go to Network Share
or Properties
and then click Sharing
and click Share This Folder
.
To test that your share is working correctly, type
testparm
and you'll see output similar to the following:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[<folder_name>]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Lifted from instructions here and originally found here.
This worked on MacOS Sierra Version 10.12.
I'm not 100% positive, but a Mac that old probably has a 32-bit EFI, even if it's got a 64-bit CPU. (The first Intel-based Macs had 32-bit CPUs with 32-bit EFIs. When Apple updated to 64-bit CPUs, the EFIs lagged behind for a generation or so before the EFI was updated to 64-bit.) For a native EFI-mode boot, installing in EFI mode is most easily done with an OS that matches the EFI's bit depth -- in other words, a 32-bit OS on a 32-bit EFI, or a 64-bit OS on a 64-bit EFI. Unfortunately, Ubuntu provides no 32-bit EFI boot capability with its 32-bit version, so doing this with Ubuntu requires jumping through some significant hoops to add a 32-bit EFI boot loader to a bootable image. It can be done (I've done it), but I don't have a reference to a precise procedure. (I started to write such a document once, but covering all the possibilities proved to be a real challenge, so I set it aside and never returned to it.)
The EFI version of GRUB does have the ability to cross-boot a kernel of a mis-matched architecture -- that is, a 64-bit kernel on a system with a 32-bit EFI or vice-versa (provided your CPU is a 64-bit model, of course). Using this approach would require installing in BIOS/CSM/legacy mode and then installing the 32-bit GRUB after the installation is complete; or hacking the 64-bit installer to include a 32-bit GRUB. I don't know of any site that describes how to do this for a Mac, but this one covers the process for an ASUS tablet with a 64-bit CPU and 32-bit EFI. (That site's down as I type this; I hope that's temporary.)
All that said, particularly if this is a 64-bit computer, using EFI mode for a single-boot with Ubuntu is the hard way to do it. It will be MUCH easier to treat the computer as one with a traditional BIOS. Create MBR partitions and boot the installer in BIOS mode. You'll be able to install either 32-bit or 64-bit Ubuntu, as you see fit, with no significant deviations to the installation procedure. When the Mac's firmware sees an MBR partition table, it will activate its CSM, and when it fails to find any bootable EFI boot loader, it will launch the BIOS version of GRUB in the MBR. This should all work smoothly, as if the computer with a BIOS-based model. The main pitfalls are controlling the installer's boot mode (BIOS vs. EFI) and using MBR (if you use GPT, the Mac's firmware won't enable BIOS-mode booting).
The main drawback is that it will be harder to update your firmware, since the firmware-update process requires an EFI-mode boot. On such an old computer, though, how likely is it you'll be updating your firmware? Also, if you later decide to dual-boot with OS X, you'll have to convert from MBR to GPT and re-install a Linux boot loader in one way or another.
Best Answer
Had the exact same issue. Try the following:
it should prompt you to set a samba password, which is stored separately to your Ubuntu passwords. You can set it the same as your Home user password if you wish, although it is not recommended. Then do:
Scroll to the bottom of the file and add/edit your shared folders as follows:
Then restart samba with:
last but not least:
If all is well you should see a message like:
Lifted from instructions here.
This worked for me on Mac OS 10.10.1.