# HINT: How to share Pi (or other Linux install) files on a Mac using Netatalk

**URL:** <https://discourse.nodered.org/t/hint-how-to-share-pi-or-other-linux-install-files-on-a-mac-using-netatalk/68764>\
**Category:** Share Your Projects\
**Tags:** netatalk\
**Created:** [9 October 2022 14:17 UTC](https://discourse.nodered.org/t/hint-how-to-share-pi-or-other-linux-install-files-on-a-mac-using-netatalk/68764 "2022-10-09T14:17:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 October 2022 14:17 UTC](https://discourse.nodered.org/t/hint-how-to-share-pi-or-other-linux-install-files-on-a-mac-using-netatalk/68764/1 "2022-10-09T14:17:18Z")

</div>

While not directly Node-RED related, I use it all the time and thought I'd share.

`Netatalk is a freely-available Open Source AFP fileserver. A UNIX, Linux or BSD system running Netatalk is capable of serving many Macintosh clients simultaneously as an AppleShare file server (AFP).`  
Here are my install notes:

To see the pi in the ‘shared devices’ on your Mac, you must install netatalk

`sudo apt install netatalk -y`

Note: as of ‘Buster’ you need to edit a file to make this work. First you backup the afp.conf file then create a new one:

```auto
sudo mv /etc/netatalk/afp.conf /etc/netatalk/afp.original
sudo nano /etc/netatalk/afp.conf

```

Next insert the following lines:

```auto
;
; Netatalk 3.x configuration file
;

[Global]
; Global server settings

; [Homes]
; basedir regex = /home

 [etc]
 path = /etc

; uncomment this if the directory exists
; [WWW_testPi]
' path = /var/www/html

 [nodered]
 path = /home/pi/.node-red

; [My AFP Volume]
; path = /path/to/volume

; [My Time Machine Volume]
; path = /path/to/backup
; time machine = yes

[$h]
path = /home/pi
home name = $h

```

save (ctrl-x and reply with 'y') and then restart the netatalk service with:

```auto
sudo systemctl restart netatalk

```

If you open a Finder window on your Mac, in the 'locations' section of the sidebar, Click on 'Networks' and you should see the Pi. Sign into it and you should see the home directory and node-red directory and you can add/delete/edit the Pi's files directly on your Mac.

I hope this proves as useful to others as it has for me.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [9 October 2022 16:14 UTC](https://discourse.nodered.org/t/hint-how-to-share-pi-or-other-linux-install-files-on-a-mac-using-netatalk/68764/2 "2022-10-09T16:14:43Z")

</div>

Doesn't MacOS support Windows shares natively? SAMBA on Linux is well supported. Indeed, I just set it up on my server for the first time in some years, I don't normally bother but needed it for something recently, took about 5 minutes to set up and secure.

MacOS also supports FUSE which lets you use SSH connections as a filing system too.

[How to mount remote folder over ssh on mac – Cooking&Coding Girl (susanqq.github.io)](https://susanqq.github.io/jekyll/pixyll/2017/09/05/remotefiles/)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 October 2022 17:19 UTC](https://discourse.nodered.org/t/hint-how-to-share-pi-or-other-linux-install-files-on-a-mac-using-netatalk/68764/3 "2022-10-09T17:19:44Z")

</div>

> [@TotallyInformation](#):
>
> Doesn't MacOS support Windows shares natively?

Beats me, I haven’t used a windows computer since before Y2K 😁

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [9 October 2022 23:05 UTC](https://discourse.nodered.org/t/hint-how-to-share-pi-or-other-linux-install-files-on-a-mac-using-netatalk/68764/4 "2022-10-09T23:05:47Z")

</div>

Yes, seems it does

[Connecting to SMB shares with Mac OS X - College of Agriculture IT | Montana State University](https://ag.montana.edu/it/support/smb-macs.html)

SAMBA on Linux is very easy to deploy and configure.
