code:work:lvisf:2017sharedmacdir:start
This is an old revision of the document!
Table of Contents
Sharing a Mac Folder
cifs
On the Mac machine:
- Share the target folder using the tips here: https://support.apple.com/kb/PH18707?locale=en_US
(These steps lifted directly from above link)
- Open Sharing preferences if it isn’t already open (choose Apple menu > System Preferences, then click Sharing).
- Select the File Sharing checkbox, then click Options.
- Select “Share files and folders using SMB.”
- Select the checkbox next to the user account that will be used to share files with Windows users, enter the password for that user, then click OK.
- Click Done.
- Open Network preferences, select your active connection, then click Advanced.
- Click the WINS tab, then enter the workgroup name used by the Windows computer.
- If you don’t know the workgroup name, on the Windows computer open Control Panel > System and Security > System. (Windows computers normally use either WORKGROUP or MSHOME.)
- Click OK, then click Apply.
- NOTE: Make sure the share is write-able by the user, I think it might be by default
On the Linux machine:
- CentOS Link CIFS Help: https://wiki.centos.org/TipsAndTricks/WindowsShares
- Make a directory to write mount the share
sudo mkdir /media/macshare
- Modify /etc/fstab and add as an example
//192.168.0.XX/new /media/macshare cifs user=USERNAME,pass=PASSWORD,uid=LOCALUSER 0 0
rsync
- Could just rsync the files every minute after creating them locally. I actually like this, except we're going to have to write the files locally… and I would rather just write them over the network to a shared drive and be done with it not taking up local drive space and not competing with the primary data files for the drive's attention.
sshfs
This looks really simple, maybe a bit slow… look at the weaker encryption maybe for speed. Or just use CIFS or something simple…
-o ssh_command="ssh -Cc arcfour256"
code/work/lvisf/2017sharedmacdir/start.1498414549.txt.gz · Last modified: 2017/06/25 18:15 by david