Solved

Using NT-Printer from Unix

Posted on 2000-04-13
6
352 Views
Last Modified: 2013-12-06
Hy folks,
I have a Unix server (HP-UX) and a lot of NT-Clients which have install Exceed to work with the HP-system. On each NT-Client a local printer is installed. In the software, which the user is running via Exceed on the HP there is a "print"-button.
Is it possible (and if so, how) to send the print-output to the local NT-printer?

waiting the solution
olka
0
Comment
Question by:olka
6 Comments
 
LVL 1

Expert Comment

by:sbuehrle
ID: 2711792
Without knowing what application your talking about, or what action the
"print" button is supposed to take, its unlikely anone can give you an specific help. Here are some general suggestions.


In a unix graphical app, you usually define an action for the print button.
Its often defined to call the "lp" command. You may need to read the
documentation for your application to learn how to define what action the
print button takes.


Can you print from the unix command line using the lp command? You probably need to get that working first. First you need to install a print deamon on the NT box to accept print jobs. Then you configure a remote printer on the HP boxes using SAM or the lpadmin command.
0
 

Expert Comment

by:hpman
ID: 2711987
On NT, you need to turn on TCP/IP Print Server in the services.  Also, there is a registry entry that must be changed.  Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\LPDSC\Parameters, you need to add a value.  The name is SimulatePassThrough (case specific) and set it to DWORD.  The value should be set to 1.  Reboot and the NT system is ready.  On the UNIX side, like sbuehrle said, you set up a remote printer with the system name=to the name of the NT box and the remote printer name=the share name of the printer.  This will get you printing from the command line to the NT printer.  
0
 

Author Comment

by:olka
ID: 2712000
That I have to use the lp-command is rather clear. The problem is how to redirect the output (lp -d$PRINTER) to the right printer. How can I install this print daemon on the NT-client. And after that I can use this NT-printer on the unix-site?
Do I have to install samba on the unix-site?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Expert Comment

by:hpman
ID: 2712096
The print daemon on the NT client is the TCP/IP Print Server and the registry entry stated in my last comment.  If you follow those directions, you should be able to print from a command prompt on the HP system to the printer connected to NT. Type the command lp -dPrintername filename(where Printername is the name that you defined in SAM or lpadmin as the local(UNIX) printer and filename is a valid/printable file).  
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2714617
I believe that you'll have to set up a Unix print queue for each of the NT attached printers. You may have to do this with Samba as HP-UX uses a SYSV printing system that I know has problems talking to a Linux LPR/LPD print system and the NT service is an LPR/LPD type also. The next problem will be in the type of printers attached to the NT boxes. If they happen to be Postscript it should work fine, otherwise you may have problems finding print filters. And if they are "winprinters", aka Host Based Printers", you are certainly going to have problems as the jobs must be processed by the NT driver. One possible solution might be the "Redirection Port Monitor" (http://www.cs.wisc.edu/~ghost/redmon/redmon.html).
0
 
LVL 2

Accepted Solution

by:
ish earned 100 total points
ID: 2842172
Exceed should have nothing to do with this, unless you are printing screen captures of your Xwindows.

The UNIX box need the print queue (and drivers installed) pointing to the NT box in question.  The NT Box needs to be running SIMPLE TCP/IP PRint Services.

Once the queue is set, and the dirviers installed, if the NT box is RUNNING and the shared printer hasn't been restricted, you should be able to print to it.

My NT guys are allways restricting the NT boxes here to "AUTHENTICATED USERS"  and since I'm coming from the UNIX box I'm NOT an AUTHENTICATED user.

We had to connect the printer to the network directly so that we could spool thru to it from the UNIX side of the house.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now