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

Questions about cabled networking
Forum rules
Before you post please read how to get help
Post Reply
drwinmac
Level 1
Level 1
Posts: 1
Joined: Sun Feb 25, 2018 2:59 pm

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

Post by drwinmac » Sun Feb 25, 2018 3:27 pm

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

fabien85
Level 6
Level 6
Posts: 1340
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 » Sun Feb 25, 2018 5:34 pm

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 19
Level 19
Posts: 9186
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 » Sun Feb 25, 2018 7:34 pm

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.

Post Reply

Return to “Ethernet”