Trying to install Netatalk on NethServer

Few news in my Nethserver learning…

I have already compiling and installing Netatalk 3.1.7
Configuring shorewall to open few ports (548, 5354 )
From my Mac, I 'am able to see the microserver but not able to connect to it yet.

I think that Netatalk must be more finely tuned.
I must look deeper in the AFP and ACL.
I see dbus message in logs too

It’s seem that there’s little divergencess between the Netatalk documentation and other information on the web like this one:

There’s diferences between ports number (5353 /5354)
And perhaps more service to install like nsswitch.

So there’s investiguations to do for me yet.

For now, it’s the hard way, but I hope win this battle and in the future, to be able to make a netserver module to do tis the soft way… A Nethserver OS X friendly module :smile:

Good Jim! Go ahead and keep us in touch… you’re not alone :smiley:

1 Like

To be more concise.

I exclusively use this doc:
http://netatalk.sourceforge.net/
and this one
http://netatalk.sourceforge.net/wiki/index.php/Netatalk_3.1.7_SRPM_for_Fedora_and_CentOS
And sure, this one:
http://netatalk.sourceforge.net/3.1/htmldocs/

Because other doc on the web can be outdated with the V 3.1.7.

Do you want to make TIme Mashine ? or AIR_Print? Do not forget about avahi daemon that should be configured

I want the Time Machine feature.

Thank you to remember me about Avahi daemon…
Is this one I`ve talked about when I said netatalk must be more fined tuned in one side.
To define what and how to anounce, on the network.

In the other side, there’s AFP, with the afpd.conf.
To define the resource to share, and how to access if I`m well understand

hey how did you know that he is not alone? how did you know that i’m testing the same thing? are you spying us? :stuck_out_tongue_closed_eyes:

@Jim i’ve made the same tests, but on a vm with a “relaxed” shorewall config (all open)
i’ve installed also avahi and dbus-python and it work to me
in addition to firewall’s change i’ve only configured /etc/netatalk/afp.conf
as explained on links you posted
hope to test your netatalk contrib soon :slight_smile:
ah… i’ve seen a nethserver-avahi package… it’s not installed by default, you could take a look to it…

Avahi is used for Print server CUPS :slight_smile:

The volumes netatalk will make available are defined in /etc/netatalk/AppleVolumes.default. Add the line below to /etc/netatalk/AppleVolumes.default to create the AFP time machine share, commenting out all other lines.

/mnt/TimeMachine TimeMachine volsizelimit:150000 allow:@timemachine rwlist:@timemachine cnidscheme:dbd options:searchdb,usedots,invisibledots,tm

The first parameter specifies the location of the shared volume, while the second specifies the name. The Time Machine uses a CNID database to reference files on the shared volume. By default, this database will be located in the root directory of the shared volume. The size of the shared volume reported to time machine is set using the volsizelimit parameter. The size is given in MiB. Set this parameter to less than the full size of the disk to reserve space for the database. (If the database can’t be written to or is corrupted, the entire Time Machine repository may be lost) The allow and rwlist parameters specify which users can access and write to the time machine. Either specify a user name directly, or just use @timemachine to allow access for users in the timemachine group. Reference the AppleVolumes.default man page for further information on options.

Configure netatalk by adding the line below to /etc/netatalk/afpd.conf.

"TimeMachine" -uampath /usr/lib/uams -uamlist uams_dhx2.so -nodebug -nouservol -icon -nosavepassword -mimicmodel RackMac 

Create the file /etc/avahi/services/afpd.service, with the following content:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">Time Capsule</name>
  <service>
    <type>_afpovertcp._tcp</type>
    <port>548</port>
  </service>
  <service>
    <type>_device-info._tcp</type>
    <port>0</port>
    <txt-record>model=TimeCapsule</txt-record>
  </service>
  <service>
    <type>_adisk._tcp</type>
    <port>9</port>
    <txt-record>sys=waMA=XX:XX:XX:XX:XX:XX,adVF=0x100</txt-record>
    <txt-record>dk1=adVF=0x83,adVN=TimeMachine</txt-record>
  </service>
</service-group>

Automatically generate AirPrint Avahi service files for CUPS printers


generate Service file for your printer and put it on :
/etc/avahi/services/
and run :
service avahi-daemon restart
1 Like

Don’t you see a new camera into your room? :smiley: :smiley:

@Nas

I will do with this stuff this week-end.

Thank you.

@Nas
I do all youy instructions… But It’s seems like the situation is worst.

Now, I can`t see anymore the Microserver in the Finder :weary:

What is your Netatalk version?

you should type your MAC addres for Service , and it is not a config from NS, dig the mans , I only give your examples. Only you need to know that avahi need services for translation.

1 Like

Today Champagne for everybody :smiley:
Look at this screenshot:

Netatalk is working !!!
I’m doing my first Time Machine backup…

You know what?.. I’m happy :laughing:

2 Likes

@Jim please make some short HOW-TO and maybe Dev Team could implement this usefull feature for Apple users.

I will do :wink:
When Ill go back at home.

That’s great!!!

Here the “How to”

@alefattorini
I accept a least :smiley:

  • A badge “the member of the year,” ( gold of course ).
  • A sticker to put near the logo HP on the Microserver
2 Likes

Just a normal handshake isn’t enough? :raised_hand:
Eeheh don’t worry, I have already in my mind the award for you :wink:

1 Like