H J | 13 Oct 18:12 2011
Picon

AppleTalk-only printing

Hi all,

I would like to use Netatalk's atalk functionality to drive an old Apple LaserWriter 4/600 PS. This is a
PostScript printer that speaks AppleTalk exclusively (so neither LPD nor TCP/IP printing is an option).

I am currently using an AsanteTalk LocalTalk/Ethernet bridge to physically connect the printer to a
MacBook Pro running OSX 10.5.8. This setup works fine using Leopard's built-in driver for the 4/600, and I
am able to print without any problems.

The problem is that AppleTalk support was permanently removed as of OSX 10.6. Since the physical
connections still work, I am hoping to use (the relevant parts of) Netatalk as a starting point for a workaround.

I am quite comfortable building from source (and have gcc and related tools installed and working), but I am
not nearly knowledgeable enough to be fiddling with drivers or kernel extensions. Does anyone know if
what I'm attempting to do is even possible? (If not, I would really appreciate finding out before I spend
lots of time building bdb and netatalk and trying to get it all to work.)

Thanks very much in advance!

--Hank

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
David Riley | 13 Oct 18:33 2011
Picon

Re: AppleTalk-only printing

I could be wrong, but I think netatalk's appletalk printing functionality is primarily limited to acting
as an Appletalk print server for locally-supported (e.g. CUPS-compatible) printers, not printing to
Appletalk-only devices.  I could be totally and completely wrong.  I've only ever set it up as a print server
for older Appletalk-only machines.

>From a practical standpoint, it probably makes more sense to get a $200 laser printer from HP that does
Bonjour and AirPrint right out of the box; it'll print faster (often full duplex) and take less power, the
toner is easier to find, and it's supported by modern operating systems.  And if you need to serve older
Appletalk-only machines, you can use netatalk as a bridge!  But those old LaserWriters were built like
tanks, and I understand completely the allure of running older machines.

- Dave

On Oct 13, 2011, at 12:12 PM, H J wrote:

> Hi all,
> 
> I would like to use Netatalk's atalk functionality to drive an old Apple LaserWriter 4/600 PS. This is a
PostScript printer that speaks AppleTalk exclusively (so neither LPD nor TCP/IP printing is an option).
> 
> I am currently using an AsanteTalk LocalTalk/Ethernet bridge to physically connect the printer to a
MacBook Pro running OSX 10.5.8. This setup works fine using Leopard's built-in driver for the 4/600, and I
am able to print without any problems.
> 
> The problem is that AppleTalk support was permanently removed as of OSX 10.6. Since the physical
connections still work, I am hoping to use (the relevant parts of) Netatalk as a starting point for a workaround.
> 
> I am quite comfortable building from source (and have gcc and related tools installed and working), but I
am not nearly knowledgeable enough to be fiddling with drivers or kernel extensions. Does anyone know if
what I'm attempting to do is even possible? (If not, I would really appreciate finding out before I spend
(Continue reading)

HAT | 13 Oct 18:35 2011
Picon

Re: AppleTalk-only printing

From: H J <heywoodj123 <at> yahoo.com>, 13 Oct 2011 09:12:12 -0700 (PDT)

> Hi all,
> 
> I would like to use Netatalk's atalk functionality to drive an old Apple LaserWriter 4/600 PS. This is a
PostScript printer that speaks AppleTalk exclusively (so neither LPD nor TCP/IP printing is an option).
> 
> I am currently using an AsanteTalk LocalTalk/Ethernet bridge to physically connect the printer to a
MacBook Pro running OSX 10.5.8. This setup works fine using Leopard's built-in driver for the 4/600, and I
am able to print without any problems.
> 
> The problem is that AppleTalk support was permanently removed as of OSX 10.6. Since the physical
connections still work, I am hoping to use (the relevant parts of) Netatalk as a starting point for a workaround.
> 
> I am quite comfortable building from source (and have gcc and related tools installed and working), but I
am not nearly knowledgeable enough to be fiddling with drivers or kernel extensions. Does anyone know if
what I'm attempting to do is even possible? (If not, I would really appreciate finding out before I spend
lots of time building bdb and netatalk and trying to get it all to work.)
> 
> Thanks very much in advance!

Did you try "pap" command?

--

-- 
HAT

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
(Continue reading)

Hauke Fath | 13 Oct 21:11 2011
Picon

Re: AppleTalk-only printing

At 9:12 Uhr -0700 13.10.2011, H J wrote:
>I would like to use Netatalk's atalk functionality to drive an old Apple
>LaserWriter 4/600 PS. This is a PostScript printer that speaks AppleTalk
>exclusively (so neither LPD nor TCP/IP printing is an option).

[Your mail client creates endless lines that have to be wrapped manually
when replying. Just saying.]

Take a look at pap(1)

PAP(1)                          Netatalk 2.0.4                          PAP(1)

NAME
       pap - client interface to remote printers using Printer Access Protocol

SYNOPSIS
       pap [-A address] [-c] [-d] [-e] [-E] [-p nbpname] [-s statusfile] [-w]
           [-W] [FILES]

DESCRIPTION
       pap is used to connect and send files to an AppleTalk connected printer
       using the Apple Printer Access Protocol (PAP). When pap starts
       execution, it tries to open a session with the printer using PAP, and
       then downloads the files to the printer.
[...]

-- I used to have the same setup with a Brother HL-4PS many moons ago, so
it can be done. My /etc/printcap still has

# Brother HL-4PS via LocalTalk bridge
(Continue reading)

David Riley | 13 Oct 22:15 2011
Picon

Re: AppleTalk-only printing

I should also point out that Appletalk support is broken in NetBSD as-is (I'm not sure my patch to fix it ever
got pulled into -current, but then I haven't checked in a while).  If you're looking to do this with NetBSD
(e.g. if you're looking to use an OldWorld PPC Mac, which isn't supported very well by modern Linux
distros), I can set you up with a patch.

- Dave

On Oct 13, 2011, at 3:11 PM, Hauke Fath wrote:

> At 9:12 Uhr -0700 13.10.2011, H J wrote:
>> I would like to use Netatalk's atalk functionality to drive an old Apple
>> LaserWriter 4/600 PS. This is a PostScript printer that speaks AppleTalk
>> exclusively (so neither LPD nor TCP/IP printing is an option).
> 
> [Your mail client creates endless lines that have to be wrapped manually
> when replying. Just saying.]
> 
> 
> Take a look at pap(1)
> 
> PAP(1)                          Netatalk 2.0.4                          PAP(1)
> 
> NAME
>       pap - client interface to remote printers using Printer Access Protocol
> 
> SYNOPSIS
>       pap [-A address] [-c] [-d] [-e] [-E] [-p nbpname] [-s statusfile] [-w]
>           [-W] [FILES]
> 
> DESCRIPTION
(Continue reading)

Philipp Leusmann | 17 Oct 16:16 2011
Picon

Problem (cross-)compiling netatalk with zeroconf

Hi,

as I already have posted on the admin-mailing list, I am having problems cross-compiling netatalk with
zeroconf-support. I am trying to build netatalk for my OpenWRT-Router.

I am configuring netatalk with --enable-zeroconf=/var/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr

In config.log, there is the following:

configure:16064: checking avahi-client/client.h usability
configure:16064: mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2
-fno-caller-saves -fhonour-copts -msoft-float
-I/var/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include -std=gnu99
-DNO_DEBUG   conftest.c >&5
configure:16064: $? = 0
configure:16064: result: yes
configure:16064: checking avahi-client/client.h presence
configure:16064: mips-openwrt-linux-uclibc-gcc -E  conftest.c
conftest.c:135:33: fatal error: avahi-client/client.h: No such file or directory
compilation terminated.

The problem is the call to "gcc -E conftest.c", which does not receive the include path. 

Probably some error with the autoconf.

Needless to say, client.h exists in /var/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/avahi-client

Any hints?

Thanks,
(Continue reading)

Philipp Leusmann | 17 Oct 16:45 2011
Picon

Re: Problem (cross-)compiling netatalk with zeroconf

Found the error:

in macros/iconv.m4 , the line

CPPFLAGS="$saved_CPPFLAGS"

needs to be deleted, as it clears the CPPFLAGS ($saved_CPPFLAGS is never assigned a value)

Regards,
 Philipp

Am 17.10.2011 um 16:16 schrieb Philipp Leusmann:

> Hi,
> 
> as I already have posted on the admin-mailing list, I am having problems cross-compiling netatalk with
zeroconf-support. I am trying to build netatalk for my OpenWRT-Router.
> 
> I am configuring netatalk with --enable-zeroconf=/var/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr
> 
> In config.log, there is the following:
> 
> configure:16064: checking avahi-client/client.h usability
> configure:16064: mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2
-fno-caller-saves -fhonour-copts -msoft-float
-I/var/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include -std=gnu99
-DNO_DEBUG   conftest.c >&5
> configure:16064: $? = 0
> configure:16064: result: yes
> configure:16064: checking avahi-client/client.h presence
(Continue reading)

Frank Lahm | 17 Oct 16:52 2011

Re: Problem (cross-)compiling netatalk with zeroconf

2011/10/17 Philipp Leusmann <ml <at> byteshift.eu>:
> Found the error:
>
> in macros/iconv.m4 , the line
>
> CPPFLAGS="$saved_CPPFLAGS"
>
> needs to be deleted, as it clears the CPPFLAGS ($saved_CPPFLAGS is never assigned a value)

good catch, thanks! Fixed.

-f

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
C. R. Oldham | 17 Oct 22:48 2011

Office 2011 issues, cannot open files in home directory

Greetings,

I have an Ubuntu 11.04 server running 2.2.1 (that I compiled) that is driving me crazy.  I am unable to open any Microsoft Office 2011 document that is located in a user's home directory, even my own.  Word tells me

Word cannot open this document.  The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters (for example,\/). (testdoc.doc)

Excel says something a little more interesting:

'HOME:CRO:MY DOCUMENTS:CALCSV97.XLS' could not be found.  Check the spelling of the file name, and verify that the file location is correct.  If you are trying to open the file from your list of most recently used files on the File menu, make sure the file has not be renamed, moved, or deleted.

I've tried shutting down afpd removing the CNID database and removing the .AppleDouble files, then regenerating them with 'dbd -r'.  I've also tried removing those same files, but not regenerating with 'dbd -r' and just letting the afpd server recreate them.

I also tried upgrading to the latest bleeding edge from git (2.2.2dev).

Here is my AppleVolumes.default file:

:DEFAULT: cnidscheme:dbd ea:ad options:usedots,upriv,searchdb dperm:0770 fperm:0660 
/home cnidscheme:dbd ea:ad options:usedots,upriv,searchdb dperm:0770 fperm:0660 
/share cnidscheme:dbd ea:ad options:usedots,upriv,searchdb dperm:0770 fperm:0660 
/video cnidscheme:dbd ea:ad options:usedots,upriv,searchdb dperm:0770 fperm:0660 
/backup cnidscheme:dbd ea:ad options:usedots,upriv,searchdb dperm:0770 fperm:0660 

And my afpd.conf:

- -tcp -noddp -uamlist uams_dhx2.so -nosavepassword -setuplog "default log_maxdebug /var/log/netatalk-afp.log"

Note that my other shares seem to be fine.  It's only the /home directory that behaves like this.

Permissions:

drwxr-xr-x 19 root root 4096 2011-10-17 14:37 /home
drwxr-xr-x 77 cro cro 77824 2011-10-17 14:08 /home/cro
drwxr-xr-x 25 cro cro 4096 2011-10-17 14:37 /home/cro/My Documents/
drwxr-xr-x 2 cro cro 4096 2011-10-17 14:37 /home/cro/My Documents/.AppleDouble/
-rw-rw---- 1 cro cro 68608 2005-11-11 02:52 /home/cro/My Documents/calcsv97.xls
-rw-rw---- 1 cro cro 24576 2005-11-11 02:52 /home/cro/My Documents/testdoc.doc

Any ideas?



--cro

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Netatalk-devel mailing list
Netatalk-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netatalk-devel

Gmane