theMusicMan
Posts: 114
Joined: Tue May 23, 2017 8:41 pm

Can RaspberryPi appear as external drive on Mac OSx when editing files

Sun Mar 03, 2019 2:20 pm

Hi All

Just curious. I've been using PyCharmCE as my Python IDE of choice on my Mac, and am wondering if there is a way that one could have the RaspberryPi appear as an external drive on the Mac such that I could open / edit / save files using PyCharm on the Mac that reside on the RaspberryPi.

Is there a way to accomplish this?

Ta

Andyroo

Re: Can RaspberryPi appear as external drive on Mac OSx when editing files

Sun Mar 03, 2019 7:51 pm

I use Atom in this way:

1) Setup SAMBA sharing the directories you want to access
2) In Finder the Pi will appear as an external drive
3) Click on the drive and provide your Pi user and password to connect to
4) Save these into Keychain for future use

Sometimes Finder will report it cannot find the Pi (not at this location) - you can either kill Finder from Terminal or restart the Mac. I’ve never got to the bottom of this but found the most reliable way to stop this from happening is to have one or more SSH sessions to the Pi Open first and given that my current work is not GUI this suits me fine :lol:

I also use FileZilla using SSH transfer mode to pull the programs back to the Mac so TimeMachine backs them up. I miss the auto backup I had set up in Nano and must look at setting this up in Atom :oops:

I do not run the Python scripts on my Mac as I need the GPIO etc. but had a virtual machine under Fusion running Raspbian Desktop with 2Gb and 1 core at one point and that worked fine for some Python work as well.


Andyroo

Re: Can RaspberryPi appear as external drive on Mac OSx when editing files

Sun Mar 03, 2019 9:02 pm

Couple of bits:

1) You can issue

Code: Select all

defaults write com.apple.desktopservices DSDontWriteNetworkStores true
on the Mac to stop creating the .DS_Store files on the Pi - not an issue if you are using Macs and Linux but can bug folk using Windows. I cannot remember if it’s a reboot or not to action this so it maybe safe to do this, reboot and then connect if you want it.
2) My Samba config file has the following share definitions:
create mask = 0644
directory mask = 0755
This gives the same security settings as the user that I log in as (normally Pi to be honest)

Sorry I forgot these in the first post :oops:

Return to “Advanced users”