{"id":14,"date":"2014-05-19T00:46:00","date_gmt":"2014-05-18T23:46:00","guid":{"rendered":""},"modified":"2023-09-26T20:20:35","modified_gmt":"2023-09-26T19:20:35","slug":"easy-file-sharing-with-mac-os-x-mavericks-and-linux","status":"publish","type":"post","link":"https:\/\/siyaz.tech\/index.php\/2014\/05\/19\/easy-file-sharing-with-mac-os-x-mavericks-and-linux\/","title":{"rendered":"Easy file sharing with Mac OS X Mavericks and Linux"},"content":{"rendered":"<p>Easy file sharing with Mac OS X Mavericks and Linux<\/p>\n<p>This whole dilemma started when I got a Macbook pro for as a gift. &nbsp;Being and open source enthusiast, my primary system and obvious OS of choice is a Linux laptop.<\/p>\n<p>After having some time fiddling around OS X, I needed to transfer couple of files every now and then from my Linux box to the OSX without having to need another storage device.<\/p>\n<p>Hello my friend google.<br \/>\nNot so good nor easy tutorial to follow. Most were related to afp.<\/p>\n<p>And then it hit me. MacOS is just unix underneath. Samba! If I could get windows shares working over Samba, it could work on OS X too.<\/p>\n<p><a name='more'><\/a><\/p>\n<p>After few tweaks, here is what I found.<\/p>\n<p>Linux Box.<\/p>\n<p>You need to install Samba server.<br \/>\nAnd one minor edit on the config file.<br \/>\nAdd Samba users.<\/p>\n<p>Lets start!<\/p>\n<p>We\u2019re going to be editing a few files later on. I like to use Linux\u2019s included gedit to edit files. Others may prefer, to use Nano, Vi, Vim, etc..<\/p>\n<p>Step 1: Installing Samba server<\/p>\n<p>Since I&#8217;m using Linuxmint as my linux distro which is based on Ubuntu I&#8217;m gonna install Samba like this.<\/p>\n<p><span style=\"white-space: pre;\"> <\/span>sudo apt-get install samba<\/p>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/Samba.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/Samba.png\" height=\"223\" width=\"320\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<p>Once that is done, we need to edit a minor change in \/etc\/samba\/smb.conf<\/p>\n<p>Step 2: Editing samba config file.<\/p>\n<p>Another command in the terminal shell.<\/p>\n<p><span style=\"white-space: pre;\"> <\/span>sudo gedit \/etc\/samba\/smb.conf<\/p>\n<p>Using gedit search for the line &#8220;security&#8221; till you land on this piece of code.<\/p>\n<p># &#8220;security = user&#8221; is always a good idea. This will require a Unix account<br \/>\n# in this server for every user accessing the server. See<br \/>\n# \/usr\/share\/doc\/samba-doc\/htmldocs\/Samba3-HOWTO\/ServerType.html<br \/>\n# in the samba-doc package for details.<br \/>\n# &nbsp;security = user<\/p>\n<p>See the last line there which says &#8220;#security = user&#8221;<br \/>\nUncomment it by removing the # in front of it.<\/p>\n<p>Save the file.<\/p>\n<p>Exit gedit.<\/p>\n<p>Moving along.<\/p>\n<p>Step 3: Adding Samba users.<\/p>\n<p>Next command in the terminal shell.<\/p>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/smbpasswd.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/smbpasswd.png\" height=\"79\" width=\"320\" \/><\/a><\/div>\n<p><span style=\"white-space: pre;\"> <\/span>sudo smbpassword -a username<\/p>\n<p>You&#8217;ll be asked to type in your password twice.<br \/>\nThe hard part is over now.<\/p>\n<p>Right click a folder click &#8220;Sharing options&#8221;<\/p>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/share.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/share.png\" height=\"264\" width=\"320\" \/><\/a><\/div>\n<p>And tick the options as shown in the screen shot.<br \/>\nAll done for the linux configuration.<\/p>\n<p>Lets move on to OS X.<\/p>\n<p>Step 1: Open finder. &nbsp;Click &#8220;Go&#8221; on the menu and click &#8220;Connect to Server&#8221; shortcut Command+K<\/p>\n<div><\/div>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/Connect.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/Connect.png\" height=\"192\" width=\"320\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\nStep 2: Type in SMB:\/\/ followed by the ip address of the linux system.<\/div>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/smbconnect.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/smbconnect.png\" height=\"191\" width=\"320\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\nStep 3: Give it a sec to find its way to the linux box.<\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/login.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/login.png\" height=\"221\" width=\"320\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\nStep 4: Login using he new user you created with &#8220;smbpasswd&#8221; in step 3.<\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/share-samba.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/share-samba.png\" height=\"219\" width=\"320\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\nStep 5: Click on the shared folder you shared.<\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/connected.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/connected.png\" height=\"61\" width=\"320\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\">\nAnd its done.<\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: left;\">\nNow that wasn&#8217;t too hard was it ?<\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\">\nHope this helps for any new MacOS X users.<\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\">\nIf you&#8217;re wondering wait a minute brah, what if I want to connect to a MacOS X share from my linux box ?<\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\">\nWell that&#8217;s simple. Open your file manager in my case it&#8217;s Nemo.<\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\">\nClick &#8220;Go&#8221; from the menu. And select &#8220;Networks&#8221;<\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/linux-network.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/linux-network.png\" height=\"142\" width=\"320\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\nDouble click on the Macbook on the network.<\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\n<a href=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/linux-login.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/linux-login.png\" height=\"313\" width=\"320\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\">\nAnd login with the credentials of OS X.<\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: left;\">\nAnd that&#8217;s about it.<\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\">\nHope this works.<\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Easy file sharing with Mac OS X Mavericks and Linux This whole dilemma started when I got a Macbook pro&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":121,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"jetpack_featured_media_url":"https:\/\/siyaz.tech\/wp-content\/uploads\/2014\/05\/siyuan-hu-xEK3FiK6H3o-unsplash-scaled.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":3,"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/posts\/14\/revisions\/122"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/media\/121"}],"wp:attachment":[{"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/siyaz.tech\/index.php\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}