Trying to install Netatalk on NethServer


#1

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:


First(s) installs, few observations and help still needed
Feature comparison OS X Server vs Nethserver: anything missing?
(Alessio Fattorini) #2

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


#3

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.


(Artem Fedai) #4

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


#5

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


#6

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…


(Artem Fedai) #7

Avahi is used for Print server CUPS :slight_smile:


(Artem Fedai) #8

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>

(Artem Fedai) #9

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


(Alessio Fattorini) #10

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


#11

@Nas

I will do with this stuff this week-end.

Thank you.


#12

@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?


(Artem Fedai) #13

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.


#14

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:


(Artem Fedai) #15

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


#16

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


(Alessio Fattorini) #17

That’s great!!!


#18

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

(Alessio Fattorini) #19

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