Linux Mint 18.3 to Mac OSX El Capitan Not Working (NFS & Samba)

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
drwinmac

Linux Mint 18.3 to Mac OSX El Capitan Not Working (NFS & Samba)

Post by drwinmac »

I am currently trying to setup a network from my Linux Mint Cinnamon 18.3 system to my Mac mini running El Capitan. I have a large harddrive in my Linux system and just want to access my movies and music files with an ethernet cable directly plugged in as that should be the fastest connection. I have tried every suggestion I can find and am ready to just kill Linux and go with a Windows PC as I've never had so many issues. I have updated everything on both sides. Reinstalled every nfs and samba file I have seen listed. Run thru hours of Youtube videos and forums following each step several times over. HHHEEELLLPP!!! I hate Windows and really don't want to give in but am unsure how to do this easier. I would be willing to change to a different Linux if it makes it easier..idk. Below are the tests I see asked for everywhere I turn.

The issue is my Mac sees the Linux network but times out over and over again when trying to connect. Most of the info out there seems to be for anything but Linux Mint (Umbutu, KDE?, Redhst) or it's 7yrs old and the files I'm trying to install don't work or exist. ***I am sharing my internet signal from my mac to my Linux desktop (as it has no wireless card in it) and that works great..

nikki@H61H2-MV ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Movies]"
Processing section "[Movies]"
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
workgroup = MEDIA
server string = Media Hard Drive
security = USER
name resolve order = bcast host
idmap config * : backend = tdb
include = /etc/samba/smbshared.conf


[Movies]
comment = Movies on Linux
path = /media/nikki/MEDIA/Media to Place
valid users = nikki


nikki@H61H2-MV ~ $ net usershare info --long
info_fn: file /var/lib/samba/usershares/mediatoplace is not a well formed usershare file.
info_fn: Error was Path is not a directory.
info_fn: file /var/lib/samba/usershares/movies is not a well formed usershare file.
info_fn: Error was Path is not a directory.
info_fn: file /var/lib/samba/usershares/media files is not a well formed usershare file.
info_fn: Error was Path is not a directory.



nikki@H61H2-MV ~ $ sudo apt-get install samba --install-recommends
[sudo] password for nikki:
Reading package lists... Done
Building dependency tree
Reading state information... Done
samba is already the newest version (2:4.3.11+dfsg-0ubuntu0.16.04.12).
The following packages were automatically installed and are no longer required:
libllvm4.0 libllvm4.0:i386
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



nikki@H61H2-MV ~ $ sudo apt-get install gvfs-backends
Reading package lists... Done
Building dependency tree
Reading state information... Done
gvfs-backends is already the newest version (1.28.2-1ubuntu1~16.04.2).
The following packages were automatically installed and are no longer required:
libllvm4.0 libllvm4.0:i386
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



gksu xed /etc/samba/smb.conf
[global]
server string = Media Hard Drive
workgroup = Media
netbios name = H61H2-MV
security = user
encrypt passwords = yes
guest account = nobody
name resolve order = bcast host
include = /etc/samba/smbshared.conf

nikki@H61H2-MV ~ $ sudo apt-get install nfs-kernel-server nfs-common portmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'rpcbind' instead of 'portmap'
rpcbind is already the newest version (0.2.3-0.2).
nfs-common is already the newest version (1:1.2.8-9ubuntu12.1).
nfs-kernel-server is already the newest version (1:1.2.8-9ubuntu12.1).
The following packages were automatically installed and are no longer required:
libllvm4.0 libllvm4.0:i386
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


H61H2-MV ~ # dpkg-reconfigure portmap
dpkg-query: package 'portmap' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: portmap is not installed
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
fabien85
Level 7
Level 7
Posts: 1877
Joined: Tue Mar 11, 2014 4:30 pm

Re: Linux Mint 18.3 to Mac OSX El Capitan Not Working (NFS & Samba)

Post by fabien85 »

I'm no expert on samba, some forumers will be much more, but I have set it up once on a friend's computer.
First I think you need to set workgroup = WORKGROUP
Second, the path is incorrect because of the spaces, it should be /media/nikki/MEDIA/Media\ to\ Place
(which is why it's a good idea not to put spaces in a directory name)
Third I'm not sure of the rest of the configuration. Personally I followed some instructions on the net for Ubuntu (Mint is based on Ubuntu, so most instructions for one work for the other), they were relatively simple, I didnt have to use testparm or "net usershare info", in fact I had never seen these commands before reading your post. I cant find back the instructions I used, but anyway these ones seem to be nearly identical to what I remember : https://www.linuxbabe.com/ubuntu/instal ... untu-16-04

One last thing : the folder you want to share most probably needs to have the good permissions. Since you have put it on an external drive, that drive needs either to be formatted with a linux filesystem (e.g. ext4) or you need to mount the drive with the good mount options.
altair4
Level 20
Level 20
Posts: 11425
Joined: Tue Feb 03, 2009 10:27 am

Re: Linux Mint 18.3 to Mac OSX El Capitan Not Working (NFS & Samba)

Post by altair4 »

I have a large harddrive in my Linux system and just want to access my movies and music files with an ethernet cable directly plugged in as that should be the fastest connection.

***I am sharing my internet signal from my mac to my Linux desktop (as it has no wireless card in it) and that works great..
I'm confused by your description. Are these two machines connected directly to each other or is a router involved.

*** Can the mac ping the mint machine:

Code: Select all

ping -c 3 H61H2-MV.local
Don't forget the .local at the end please.

*** Is the "valid user" in the samba password database:

Code: Select all

sudo smbpasswd -a nikki
***
The issue is my Mac sees the Linux network but times out over and over again when trying to connect.
Open Finder and use Connect to Server. Assuming it can be pinged the path to your machine is:

Code: Select all

smb://H61H2-MV.local
You should get prompted for a username and password. What happens.

Side note: your path path = /media/nikki/MEDIA/Media to Place is fine. Samba reads smb.conf from left to right and from operator to operator so spaces are acceptable.

EDIT: One more thing. Please post the output of this command:

Code: Select all

cat /etc/samba/smbshared.conf
testparm is processing two [Movies]. That shouldn't happen unless there is something funny in that file.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Locked

Return to “Networking”