####################################################################### Getting this up and running was not a simple task. Using the rpm or rpm-src is much easier but still alot of work Things to check first: Make sure the DESTDIR in the top level make file is set to an apropreiate place(the default is /usr/local/atalk) DESDIR vs DESTDIR Comment out the*** DESDIR*** in the top level make file. If you don't this will bomb at the end of the compile. This is for locating Data Encryption directories Make sure gcc or cc compiler is some where on the system Compiling: (on Solaris systems you need to do a "make kinstall" 1st) At the top of the netalk directory type "make". Watch for any potential errors. If all goes well type make install You will probably have copy the items from the services.atalk file to /etc/services file. Configuring: Copy the contents of config directory to DESTDIR/etc directory Using the default settings in the afpd.conf is OK. Move the atalkd.conf to atalkd.conf.orig. A new atalkd.conf will be created when atalkd is started. On Solaris systems uncomment out the le0 line in atalkd.conf but for most others atalkd is able to sense the interface(s). I didn't configure a printer so I moved papd.conf to papd.conf.orig. I left AppleVolumes.default and AppleVolumes.system alone and created a "AppleVolumes file in my home directory. It looks like this.... examples: netatalk running under Sparclinux on a IPC: [gkeen@rachel gkeen]$ more AppleVolumes # # volumes ~ Home #/music "Some Tunes" # just in case I want to use this later # # type / creator mappings .txt TEXT MSWD NOTE: Obviously you have to share out(export via /etc/exports and exportfs) the directory(ies) that will be connected to via a Mac [root@rachel root]$vi /etc/exports # I'm exporting my home directory for netatalk /home/gkeen (rw) [root@rachel root]$ exportfs [gkeen@rachel gkeen]$ showmount -e Export list for rachel.physio-control.com: /home/gkeen Netatalk printing with papd This the daemon that reads the printcap file and postscript printer discription(ppd) and communicates with the printer. #---Currently, netatalk papd only works with laserwriter printer drivers ----# So if you have a different printer you will have to make it look like a laserwriter. This where the ppd files tranlate the file into a postscript file that is sent to your printer. This is a printcap and papd.conf file that resides on a linux box that that has a locally attached HP810c printer. Notice that the .ppd file is for a HP laserjet 4mv. The printcap file was generated by printtool and edited by hand to add the raw psf filter entries at the bottom. The psf entry didn't work but the PRAXAN_HP810 entry did when I referenced it in the papd.conf file. The ifpap and the ofpap are simple links to psf(postscript file filter). It's suppose to print directly to port 515 sending a postscript file to the printer from the Mac. I may still experiment with this. #---------------- /etc/printcap -------------------------# # # Please don't edit this file directly unless you know what you are doing! # Be warned that the control-panel printtool requires a very strict format! # Look at the printcap(5) man page for more info. # # This file can be edited with the printtool in the control-panel. # The DeskJet 550 dirver in Linux is suppose to work with the HP810 # and others. ##PRINTTOOL3## LOCAL cdj550 300x300 letter {} DeskJet550 3 1 PRAXAN_HP810:\ :sd=/var/spool/lpd/lp:\ :mx#0:\ :sh:\ :lp=/dev/lp0:\ :if=/var/spool/lpd/lp/filter: ##PRINTTOOL3## LOCAL laserjet 300x300 letter {} LaserJet Default 1 praxan_jet:\ :sd=/var/spool/lpd/lp0:\ :mx#0:\ :sh:\ :lp=/dev/null:\ :if=/usr/lib/atalk/filters/ifpap:\ :of=/usr/lib/atalk/filters/ofpap: #-----------------/etc/atalk/papd.conf --------------# # Attributes are: # # Name Type Default Description # pd str ".ppd" Pathname to ppd file. # pr str "lp" LPD printer name. # op str "operator" Operator name, for LPD spooling. # # Some examples: # # On many systems (notably not Solaris), no papd.conf is required, # since papd shares the same defaults as lpd. # # A simple example: # # terminator:\ # :pr=lp:op=wes:\ # :pd=/usr/share/lib/ppd/HPLJ_4M.PPD: # # Note also that papd.conf can list several printers. # # A HP 810c printer attched to a linux box # # Note .ppd entry PRAXAN_HP810 | lp:\ :pr=PRAXAN_HP810:\ :pd=/etc/atalk/ppd/hplj4mv1.ppd: # # A HP 810c printer attched to a linux box # This is psf referenced entry that didn't work. #praxan_jet:\ # :pr=lp: netatalk running under Solaris 2.6 on a SS20 I also created a AppleVolumes file in my home directory to access both my Unix home that exist on systolic(a sparc 20 that holds most peoples unix home accounts) and a second disk in my Sparc 20 on my desk. Share out the second disk and directory.... emu# more /etc/dfs/dfstab # Place share(1M) commands here for automatic execution # on entering init state 3. # # Issue the command '/etc/init.d/nfs.server start' to run the NFS # daemon processes and the share commands, after adding the very # first entry to this file. # # share [-F fstype] [ -o options] [-d ""] [resource] # .e.g, # share -F nfs -o rw=engineering -d "home dirs" /export/home2 share -F nfs -o root=gkeen -d "shared 2nd disk" /data/losiceses /data is the second disk on my SS20 and losiceses is the directory that netatalk will see. create the AppleVolumes file..... home/gkeen-emu- more AppleVolumes # This is a file to reach the shared volume on emu /data/losiceses losiceses <---This allows me to view the second disk on a SS20 ~ GKunix_home <---This allows me to view my unix home acct # type / creator mappings .txt TEXT MSWD files and scripts: /etc/atalk When viewed from the chooser on a Mac I see losiceses and GKunix_home for volumes that I have access to. Questions: How does netatalk see my unix home account on systolic? That involves NIS? Do I need to be signed onto the SS20 for my unix account on systolic to be visible? Because I am logged into emu that would mean that my home accouont was automounted which would make it available if shared out. The auto.home would point to systolic so when netatalk read this it would display content. EVERYBODY GOT THAT ! ! ! TROUBLE SHOOTING: ################################################################ atalkd won't start. You keep getting messages in var/log/messages like..... atalkd: socket: Invalid argument Jul 24 12:08:40 yamin atalkd: atalkd: can't get interfaces, exiting. Jul 24 12:08:40 yamin atalk: atalkd startup failed With this message you won't be able to see your netatalk volume in the chooser. Two things fixed this on my intel_linux RH 6.2 install 1) vi /etc/atalk/atalkd.conf which should look like this... eth0 -phase 2 -net 0-65534 -addr 65280.73 edit this line to say ONLY the eth0 2) vi /etc/conf.modules and add.... alias net-pf-5 appletalk I'm not sure wether this reloads the appletalk module or not because I load that module at boot up 3) /etc/rc.d/init.d/atalk start tail -f /var/log/messages to see that atalkd came up OK You should now see your netatalk volume in the chooser Loading the appletalk modules in rc scripts For some reason I can't seem to remember I had to load appletalk from the /etc/rc.d/init.d directory. I called the load script from /etc/rc.d/rc3.d directory. the script looked something like this....... % more /etc/rc.d/init.d/loappletalk # I have to load the appletalk module from here # for now. insmod /lib/modules/2.2.14-5.0/misc/appletalk.o The above step 2) of adding "alias net-pf-5 appletalk" to a /etc/conf.modules CAN replace loading appletalk through a rc script ####################################################################