Wednesday, January 23, 2008

Ubuntu <⁄3 Mac OS X

After my last post, I was delighted to see this pop up today:



Connection Failed. Well, digging into the syslog on the Ubuntu machine shows this:

Jan 23 10:23:12 localhost afpd[6312]: server_child[1] 21034 exited 1
Jan 23 10:23:12 localhost afpd[21035]: ASIP session:548(5) from 192.168.1.111:53577(8)
Jan 23 10:23:12 localhost afpd[6312]: server_child[1] 21035 done
Jan 23 10:23:12 localhost afpd[6312]: server_child[1] 21036 exited 1
Jan 23 10:23:12 localhost afpd[21037]: ASIP session:548(5) from 192.168.1.111:53579(8)
Jan 23 10:23:12 localhost afpd[6312]: server_child[1] 21037 done
Jan 23 10:23:12 localhost afpd[6312]: server_child[1] 21038 exited 1
Jan 23 10:23:12 localhost afpd[21039]: ASIP session:548(5) from 192.168.1.111:53581(8)
Jan 23 10:23:12 localhost afpd[6312]: server_child[1] 21039 done
Jan 23 10:23:12 localhost afpd[6312]: server_child[1] 21040 exited 1
Jan 23 10:23:12 localhost afpd[21041]: ASIP session:548(5) from 192.168.1.111:53583(8)
Jan 23 10:23:12 localhost afpd[6312]: server_child[1] 21041 done

Hmm. No likey. So I did /etc/init.d/netatalk restart, and tried again. Connection Failed, again. Checking the syslog again, this is what I see:

Jan 23 10:26:45 localhost atalkd[21115]: restart (2.0.3)
Jan 23 10:26:46 localhost atalkd[21115]: zip_getnetinfo for eth2
Jan 23 10:27:06 localhost last message repeated 2 times
Jan 23 10:27:16 localhost atalkd[21115]: config for no router
Jan 23 10:27:17 localhost atalkd[21115]: ready 0/0/0
Jan 23 10:27:29 localhost afpd[21124]: Registering CNID module [last]
Jan 23 10:27:29 localhost afpd[21124]: Registering CNID module [cdb]
Jan 23 10:27:29 localhost afpd[21124]: Registering CNID module [dbd]
Jan 23 10:27:29 localhost afpd[21124]: Loading ConfigFile
Jan 23 10:27:29 localhost afpd[21124]: Finished parsing Config File
Jan 23 10:27:29 localhost papd[21126]: restart (2.0.3)
Jan 23 10:27:29 localhost papd[21126]: CUPS support enabled (1.3)
Jan 23 10:27:35 localhost afpd[21124]: localhost:AFPServer@* started on 65280.126:128 (2.0.3)
Jan 23 10:27:35 localhost afpd[21124]: dsi_tcp: hostname 'color' resolves to loopback address
Jan 23 10:27:35 localhost afpd[21124]: dsi_tcp: '192.168.1.53' on interface 'eth2' will be used instead.
Jan 23 10:27:35 localhost afpd[21124]: ASIP started on 192.168.1.53:548(5) (2.0.3)
Jan 23 10:27:35 localhost afpd[21124]: DSIConfigInit: Error registering afp://192.168.1.53/?NAME=localhost&ZONE= with SRVLOC
Jan 23 10:27:35 localhost afpd[21124]: uam: loading (/usr/lib/netatalk/uams_clrtxt.so)
Jan 23 10:27:35 localhost afpd[21124]: uam: uams_clrtxt.so loaded
Jan 23 10:27:35 localhost afpd[21124]: uam: loading (/usr/lib/netatalk/uams_randnum.so)
Jan 23 10:27:35 localhost afpd[21124]: uam: uam not found (status=-1)
Jan 23 10:27:35 localhost afpd[21124]: uam: "Cleartxt Passwrd" available
Jan 23 10:30:10 localhost afpd[21124]: server_child[1] 21140 exited 1
Jan 23 10:30:10 localhost afpd[21141]: ASIP session:548(5) from 192.168.1.111:53657(8)

Okay, daemon is starting back up... etc, etc... and then notice "uam: "Cleartext Passwrd" available." Hrm, interesting. I went to great lengths to compile against OpenSSL.

Then it hit me: I did a software update, and that probably updated netatalk to the Ubuntu precompiled version. No problem, I'll just re-do the compilation and installation steps from the last post.

Sure enough, after starting the new process and looking at syslog:

Jan 23 10:38:41 localhost afpd[21252]: uam: loading (/usr/lib/netatalk/uams_dhx.so)
Jan 23 10:38:41 localhost afpd[21252]: uam: uams_dhx.so loaded
Jan 23 10:38:41 localhost afpd[21252]: uam: loading (/usr/lib/netatalk/uams_clrtxt.so)
Jan 23 10:38:41 localhost afpd[21252]: uam: uams_clrtxt.so loaded
Jan 23 10:38:41 localhost afpd[21252]: uam: loading (/usr/lib/netatalk/uams_randnum.so)
Jan 23 10:38:41 localhost afpd[21252]: uam: uams_randnum.so loaded
Jan 23 10:38:41 localhost afpd[21252]: uam: "2-Way Randnum exchange" available
Jan 23 10:38:41 localhost afpd[21252]: uam: "Randnum exchange" available
Jan 23 10:38:41 localhost afpd[21252]: uam: "Cleartxt Passwrd" available
Jan 23 10:38:41 localhost afpd[21252]: uam: "DHCAST128" available
Well that certainly looks better than plain-text only. Et viola:



Of course, the real solution is to use dpkg-divert which will tell the package management system in Ubuntu not to overwrite my custom version of netatalk. Maybe I will do that once I am not running late for class.

No comments: