This guide is a how to compile netatalk (3.x series) from source so that you may access your files stored on a Solaris 11.1 machine.
This guide assumes you have at least a text install of Solaris 11.1 and 7GB+ of free space before starting. Sounds ridiculous, I know, but Solaris does make a backup copy of the boot environment.
First you’ll need to install various packages to build anything from source. While this command below can be trimmed down, this is the base I use for my source installs on Solaris 11.1.
$ pfexec pkg install developer-gnu gcc-dev base-libs mc gcc-3 stdcxx gdbm cmake pkg5 gettext autoconf automake-19 gnu-binutils gnu-gettext gnu-m4 gperf libtool autogen lua cvs git developer/gnu header-hotplug makedepend header-storage storage-nas storage-server auto-install auto-install-common libevent libnet patchutils system/header libtool
After everything installs you should see a screen similar to this:
Packages to install: 184 Mediators to change: 1 Create boot environment: No Create backup boot environment: Yes Services to change: 11 DOWNLOAD PKGS FILES XFER (MB) SPEED Completed 184/184 35905/35905 487.8/487.8 0B/s PHASE ITEMS Installing new actions 45462/45462 Updating package state database Done Updating image state Done Creating fast lookup database Done
There shouldn’t be any errors. I’ve done this twice, once on a fresh install and another on a dirtier install. Next you’ll need to download Netatalk 3.x.
Once you have the source, untar netatalk and change directory. Issue the commands as seen below, in order, and continue only if you don’t have errors.
$ ./configure --with-init-style=solaris $ gmake $ sudo gmake install
After a bit of waiting for those to compile and install you are ready to configure the server. With Netatalk 3.0 you only have to edit one file to get it running. Below is a sample
# nano /usr/local/etc/afpd.conf
Now that’s done, you’ll need to start the new netatalk service and enable a couple other services so your AFP server shows up on the network.
# svcadm enable multicast # svcadm enable svc:/system/avahi-bridge-dsd:default # svcadm enable netatalk
; ; Netatalk 3.x configuration file ; ; ; See here for more configuration options. ; http://netatalk.sourceforge.net/3.0/htmldocs/afp.conf.5.html ; [Global] hostname = EpiJunkie's Site mimic model = RackMac [ZFS] path = /ZFS login message = "This message will display once you log on." appledouble = ea valid users = gullibleAdmin @smartguys invalid users = badGuys [Homes] basedir regex = /home appledouble = ea [Media] path = /media
This is far easier than in previous versions of netatalk and Solaris. It actually seems pretty trivial to have written this guide but I hope it helps a few people. It seems there’s been an explosion of people doing ridiculous NAS build, myself included, some based on the less than popular Solaris platform.
Solaris 11.1 text only install
Mac OSX 10.8