Netatalk under RedHat 7

  1. Install netatalk:
    1. rpmfind netatalk-devel
    2. rpmfind netatalk
  2. Now what? There was nothing in /etc/init.d/atalk ??? Broken RPMS? I got the RPM via ftp, using the latest beta version

    /var/spool/lpd/lw was my spool directory. The name of the laserwriter (in the chooser) is:


  3. cat >.paprc IIf [root@show lpd]# papstatus status: idle [root@show lpd]# pwd /var/spool/lpd nbplkup :LaserWriter Printed out: lyonLinuxPrinter:LaserWriter 6528 0.70:128 IIf:LaserWriter 25122.153:191



Netatalk under RedHat 6.2

by Doug Lyon


1. Problem:

[root@eserver neta]# atalkd
socket: Invalid argument
socket: Invalid argument
atalkd: can't get interfaces, exiting.
[root@eserver neta]#
This is due to the module not being loaded into the
kernal at boot time.
Test by trying:
dmesg | grep Apple 
To get:
[root@eserver /etc]# dmesg | grep Apple
NET4: AppleTalk 0.18 for Linux NET4.0
[root@eserver /etc]#
Module                  Size  Used by
appletalk              17600  11  (autoclean)
3c509                   5748   1  (autoclean)
aha1542                10792   6
If these don't work, then alter /etc/conf.modules
with an additional line:
alias net-pf-5 appletalk
So that:
[root@eserver /etc]# more conf.modules
alias parport_lowlevel parport_pc
alias eth0 3c503
alias net-pf-5 appletalk
Then ReBoot!!
After you get the module installed, check the filters in:
If the links are broken, then you must fix them.
You can tell if the links are broken if the filters
look like this:
lrwxrwxrwx    1 root     root           35 Aug  9 20:54 tfmpaprev -> /var/tmp/ne
lrwxrwxrwx    1 root     root           35 Aug  9 20:54 tfpap -> /var/tmp/netata
lrwxrwxrwx    1 root     root           35 Aug  9 20:54 tfpaprev -> /var/tmp/net
lrwxrwxrwx    1 root     root           35 Aug  9 20:54 tfwmpap -> /var/tmp/neta
lrwxrwxrwx    1 root     root           35 Aug  9 20:54 tfwmpaprev -> /var/tmp/n
lrwxrwxrwx    1 root     root           35 Aug  9 20:54 tfwpap -> /var/tmp/netat
lrwxrwxrwx    1 root     root           35 Aug  9 20:54 tfwpaprev -> /var/tmp/ne
To fix the filters, run the following commands:
ln -sf /usr/sbin/psf  ifmpap
ln -sf /usr/sbin/psf  ifmpaprev
ln -sf /usr/sbin/psf  ifpap
ln -sf /usr/sbin/psf  ifpaprev
ln -sf /usr/sbin/psf  ifwmpap
ln -sf /usr/sbin/psf  ifwmpaprev
ln -sf /usr/sbin/psf  ifwpap
ln -sf /usr/sbin/psf  ifwpaprev
ln -sf /usr/sbin/psf  ofmpap
ln -sf /usr/sbin/psf  ofpap
ln -sf /usr/sbin/psf  ofwmpap
ln -sf /usr/sbin/psf  ofwpap
ln -sf /usr/sbin/psf  tfmpap
ln -sf /usr/sbin/psf  tfmpaprev
ln -sf /usr/sbin/psf  tfpap
ln -sf /usr/sbin/psf  tfpaprev
ln -sf /usr/sbin/psf  tfwmpap
ln -sf /usr/sbin/psf  tfwmpaprev
ln -sf /usr/sbin/psf  tfwpap
ln -sf /usr/sbin/psf  tfwpaprev
Now add the following to the printcap file in /etc/printcap:   ##PRINTTOOL3## DIRECT POSTSCRIPT 300x300 letter {} PostScript Default {} lw|laserwriter|AppleLaswerWriter:\ :mx#0:\ :sf:\ :sh:\ :sd=/var/spool/lpd/lw:\ :lp=/dev/null:\ :lf=/var/spool/lpd/lw/log:pw#80\ :of=/usr/lib/atalk/filters/ofpap:\ :if=/usr/lib/atalk/filters/ifpap:
  make sure that the directory: /var/spool/lpd/lw exists. Change to the directory and do: pwd /var/spool/lpd/lw [root@eserver lw]# mknod null c 1 3
  Then type: lpc up lw   You should get: lw: printing enabled daemon started
  Into a file called .paprc, in the same directory, put the printer name. [root@eserver lw]# cat >.paprc <appletalkprintername> ##I will give you more about this later... [root@eserver lw]#    
Checking your work: nbplkup Should show: eserver:AFPServer 65280.226:128 eserver:netatalk 65280.226:4 eserver:Workstation 65280.226:4 etc... If you get: [root@eserver lw]# pap -plw lw:LaserWriter@*: NBP Lookup failed [root@eserver lw]# papstatus lw:LaserWriter@*: NBP Lookup failed [root@eserver lw]#   Then you have a problem communicating with the printer. Make sure that the macs on the network can see the printer in the chooser. If not, cycle power to the Ethernet bridge.
Suppose you get: [root@eserver lw]# nbplkup :LaserWriter IIf:LaserWriter 25122.246:191 [root@eserver lw]#   Then the name of the printer is: IIf   and write: root@eserver lw]# cat >.paprc IIf [root@eserver lw]#   Now papstatus reads: [root@eserver lw]# papstatus status: idle [root@eserver lw]#   Which is correct!
Try it!!! [root@eserver lyon]# cat >test this is a test [root@eserver lyon]# lpr -Plw test   It should work (no really!!!). If not, and you can figure out why, send me an e-mail and I will update the web page.   - Doug