[Ubuntu Intrepid] How to Share Files With Mac OS X via Netatalk

Netatalk is a kernel level implementation of the AppleTalk Protocol Suite that allows any Unix/BSD system to run as a file, print and time server for any Mac machine.
While the Netatalk package is included in the Ubuntu Intrepid’s repository, the package is broken and does not work in the way it is intended to. The following instructions can help you to build, install and configure Netatalk to work in your Ubuntu Intrepid (It works in Ubuntu Hardy too).
In your terminal,
mkdir -p ~/src/netatalk
cd ~/src/netatalk
sudo apt-get install devscripts cracklib2-dev dpkg-dev libssl-dev build-essential
sudo apt-get build-dep netatalk
apt-get source netatalk
cd netatalk-2.0.3
DEB_BUILD_OPTIONS=ssl dpkg-buildpackage -us -uc
sudo debi
That’s it. Netatalk should now be installed and started.
You will have to start everytime you log in.
To start Netatalk,
sudo /etc/init.d/netatalk start
To restart Netatalk
sudo /etc/init.d/netatalk restart
To Connect to Ubuntu From Mac OS X
In your Mac OS X, open the Finder. On the menu, click Go -> Connect to server.

Enter the IP address of your Ubuntu machine and click Connect.

It should ask you for verification. Enter your login name and password.

You should now see your Ubuntu Home folder on the left pane of Finder.

Enjoy!
[Reference: Ubuntu Forum]
Tags: Intrepid, Linux, Mac, netatalk, Ubuntu
Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.





3 pingbacks/trackbacks (Click to open)
- BrotherSoft Editor's Blog » Blog Archive » Ubuntu Intrepid - How to Share Files With Mac OS X via Netatalk
- How to Share Files With Mac OS X via Netatalk | I-Tek
- jean philippe gousse » Blog Archive » Unlock Hidden Mac OS X Settings With Secrets
[Click to close]14 Responses
Doesn’t build properly as an amd64 deb. I’ll check the build log and see where it went wrong later…
Install error:
Starting Netatalk services (this will take a while): nbp_rgstr: Connection timed out
Can’t register localhost:Workstation@*
invoke-rc.d: initscript netatalk, action “start” failed.
dpkg: error processing netatalk (–install):
subprocess post-installation script returned error exit status 1
Processing triggers for man-db …
Errors were encountered while processing:
netatalk
debi: debpkg -i failed
Reply
cengek Reply:
December 3rd, 2008 at 6:58 am
I have tried and succeeded, but will be out in a folder that Mac OS is the home user.
what if I add a directory, for example, /mnt/data to share in the mac os.
thanks
Reply
@cybrsrce: Do you have VMware installed in your system? That could probably be the cause of the problem. If yes, go to /etc/netatalk/atalkd.conf and add the line eth0
Reply
cybrsrce Reply:
December 21st, 2008 at 6:42 pm
That was it, Thanks. It is a lot simpler and smoother than nfs from the osx side.
Reply
I have been trying to use to get the xo to use the usb drive attached to my Apple Airport Extreme with little success so far. I finallly got shared folders (gnome network tools) properly installed and running fom the sd card, only to find that the AAE apparently will onlly support CIFS, not the generic Samba support offered therein. Using the instructions detailed here, I’ve been trying to install netatalk to communicate w/the AAE disk using AFP, but can’t get it to install. When I ‘apt-get source netatalk’, here is what happens:
olpc@OLPC:~/src/netatalk$ apt-get source netatalk
Reading package lists… Done
Building dependency tree
Reading state information… Done
NOTICE: ‘netatalk’ packaging is maintained in the ‘Git’ version control system at:
git://git.debian.org/git/collab-maint/netatalk.git
Need to get 2021kB of source archives.
Err http://us.archive.ubuntu.com hardy/universe netatalk 2.0.3-9 (dsc)
Could not open file netatalk_2.0.3-9.dsc – open (13 Permission denied) [IP: xx.xxx.xx.xx xx]
Err http://us.archive.ubuntu.com hardy/universe netatalk 2.0.3-9 (tar)
Could not open file netatalk_2.0.3.orig.tar.gz – open (13 Permission denied) [IP: xx.xxx.xx.xx xx]
Err http://us.archive.ubuntu.com hardy/universe netatalk 2.0.3-9 (diff)
Could not open file netatalk_2.0.3-9.diff.gz – open (13 Permission denied) [IP: xx.xxx.xx.xx xx]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/n/netatalk/netatalk_2.0.3-9.dsc Could not open file netatalk_2.0.3-9.dsc – open (13 Permission denied) [IP: xx.xxx.xx.xx xx]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/n/netatalk/netatalk_2.0.3.orig.tar.gz Could not open file netatalk_2.0.3.orig.tar.gz – open (13 Permission denied) [IP: xx.xxx.xx.xx xx]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/n/netatalk/netatalk_2.0.3-9.diff.gz Could not open file netatalk_2.0.3-9.diff.gz – open (13 Permission denied) [IP: xx.xxx.xx.xx xx]
E: Failed to fetch some archives.
Can you tell why I am getting the Permission denied errors?
Reply
Hello.
I really need help with this: it goes all fine until the moment I try to connect from OSX to my ubuntu box: It prompts for a password, I write it in the corresponding text box, but It just won’t connect… there’s no way I can log in.
How should I configure the netatalk password?
I’m about to hit my head against the wall already.. please, help!!!
Reply
Damien Reply:
December 22nd, 2008 at 12:28 am
The netatalk password is the same password you used to login to your Ubuntu, not the OSX password. Restart netatalk and try again.
Reply
Is there any way to make netatalk start automatically every timeit boots?
Reply
melanopsis Reply:
January 4th, 2009 at 9:55 pm
For that, edit your sudoers list first. To do that;
sudo visudo
and add
%yourusername ALL=NOPASSWD:/etc/init.d/netatalk
save and quit
then in session preferences (system > preferences > sessions) create new startup program and add the following command
sudo /etc/init.d/netatalk start
that should do the trick
Reply
Hi,
I tried following your instructions but when I type sudo apt-get build-dep netatalk on my Ubuntu box I keep getting:
E: Unable to find a source package for netatalk.
I am using Ubuntu Hardy Heron and trying to share files with Mac OS X Leopard 10.5.6.
Thanks.
Reply
UBUNTU 9.04
MAC OS NOT YET KNOWN
Ran the commands with no errors mentioned in terminal [it did require install/choices with PostFix; I chose No Configuration. it created /etc/aliases that did not previously exist] Stuck at following:
sudo /etc/init.d/netatalk start
sudo: /etc/init.d/netatalk: command not found
—
Reply
Great article but…. in Jaunty Jackelope this is not required. The repo version of netatalk works correctly.
sudo apt-get install netatalk
Just thought I would drop an update….
Reply
Damien Reply:
August 29th, 2009 at 5:16 am
Thanks for the update.
Reply
I tried this and my user name and password is refused everytime. I can telnet into the Ubuntu box just fine, it accepts my name and password. Is there another location that I have to set up access control?
Reply