Sharing files between OSX and Fedora 1X

Following this tutorial will enable you to see your shared files (hosted on Fedora) in the left pane of the Finder on your OSX machine.

<WARNING>

This guide is not complete and I intend to work on it a little more. Hope it is usefull to you! P.S. If you break your PC or drop your coffee on your keyboard, im not responsible.

<WARNING/>

This tutorial assumes you know how to install software from command line using Yellowdog Update Manager (YUM)

First, we need to install netatalk onto our Fedora system.
sudo yum -y install netatalk

Then, edit the AppleTalk Filing Protocol Daemon file.

sudo nano -w /etc/atalk/afpd.conf

Scroll to the bottom of the file and add the following:

– -noddp -tcp -uamlist uams_randnum.so,uams_dhx.so,uams_dhx2.so -nosavepassword -advertise_ssh

The default enables AppleTalk and TCP and does not advertise over SSH.  The above lines enable only TCP and do advertise over SSH.

Now we need to edit /etc/atalk/netatalk.conf to disable the unwated old technologies.

sudo nano -w /etc/atalk/netatalk.conf

ATALKD_RUN=no
PAPD_RUN=no
CNID_METAD_RUN=yes
AFPD_RUN=yes
TIMELORD_RUN=no
A2BOOT_RUN=no

We’re almost at the wanted result! Just a few more edits and we’re done.

We now have to add the folders we wish to share by editing the AppleVolumes.default in /etc/atalk.

~/ “$u” allow:USERNAME rwlist:USERNAME,@users cnidscheme:cdb

Of cource, change USERNAME to your username. This will share your homefolder.

Now if you want the service to start at book enter the following

sudo chkconfig atalk on

Start the service

service atalk start

Now it’s time to configure Avahi.

Add afpd.service to /etc/avahi/services

sudo nano -w /etc/avahi/services/afpd.service

Copy the following lines in the afpd.service file.

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
</service-group>

-minor edit-

firewall rules, screens, sources, thank you notes.

Leave a comment