Notes
Setting up shared network between Ubuntu and Mac using Samba
sharing NAS folders from Ubuntu 16.04 to my Mac with Samba, the smb.conf shares, a Samba user, and connecting with Cmd+K
Linux
Ubuntu 16.04 LTS
Install Samba
1sudo apt install -y samba
Config
1# make a backup of original conf file
2sudo /etc/samba/smb.conf /etc/samba/smb_bak.conf
3# edit conf file and add share folders
4sudo nano /etc/samba/smb.conf
1# SHARED FOLDERS
2# Added by Aamnah on Fri 25 May 2018
3
4[Movies]
5 comment = Movies
6 path = /media/NAS/MOVIES/
7 browseable = yes
8 read only = no
9 guest ok = yes
10
11[TVShows]
12 comment = TV Show
13 path = "/media/NAS/TV Shows/"
14 browseable = yes
15 read only = no
16 guest ok = yes
1# restart Samba
2sudo /etc/init.d/samba restart
Create a user to use with Samba
1# create user
2sudo useradd bumblebee -m -G users
3# set password for the user you just created
4sudo passwd bumblebee
Set a password for your user in Samba
1sudo smbpasswd -a <username>
Share a folder
Right click on folder > Properties > Share this folder
Now on Mac, Cmd+K, enter smb://yourIPwhatever, enter your username and password, and mount any of the folders you shared. You can share whole partitions or drives if you want.
That’s it.