NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
Printing from NeXT through Cups (to a Canon)

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> NeXT Work Logs
View previous topic :: View next topic  
Author Message
rooprob



Joined: 20 Sep 2016
Posts: 21
Location: Auckland, New Zealand

PostPosted: Tue Apr 03, 2018 10:40 pm    Post subject: Printing from NeXT through Cups (to a Canon) Reply with quote

Hi,

This was weird, but setting up jetdirect through xinetd (google it) should have "just worked".

That is to say, NeXT configured to print with any postscript printer - I think I chose a HP Laserjet 4 Postscript. My linux box has a Canon MP980 which isn't postscript, so I have to have cups fake a Jetdirect port and then it magically does the right thing rendering postscript through ghostscript.

Anyway, for me it didn't. Printing locally was fine. But NeXT, printing via Jetdirect 9100/tcp did nothing. On closer inspection of the cups spool, the failed postscript files had a ^D as the first character, like this,


Quote:
^D%!
%!PS-Adobe-2.0
%%Title: testpage.ps
%%Creator: Tailor
%%CreationDate: Mon Apr 18 16:38:16 1994
%%For: jyaksick
%%DocumentFonts: (atend)
%%Pages: 1 1
%%BoundingBox: 28 30 584 762
%%DocumentPaperSizes: Letter


So I modified the xinetd config and changed the "server" to a filter,

Code:
service jetdirect
{
        socket_type = stream
        protocol = tcp
        wait = no
        user = lp
        group = lp
        # server = /usr/lib/cups/daemon/cups-lpd
        # server_args = -o document-format=application/octet-stream
        server = /bin/nextjet
        # server_args = -o raw
        disable = no
}


where /bin/nextjet was

Code:
#!/bin/sh
sed 's,^D,,' | lp


And now I have a nice test postscript print out from 1994. Feels like I'm looking at something nobody else has seen for long time ....
_________________
:O2: r12 400 mapleleaf :Indigo2IMP: r10 195 IRIS :SlabMonoTurbo: NeXT
New Zealand
Back to top
View user's profile Send private message
nextchef



Joined: 17 Aug 2006
Posts: 1015
Location: Missouri, USA

PostPosted: Wed Apr 04, 2018 10:43 am    Post subject: Reply with quote

Nice hack (in the traditional definition) to get things working!

Will have to file this thread away for future reference.
_________________
Chef
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> NeXT Work Logs All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group