Operating System - HP-UX
1833776 Members
2345 Online
110063 Solutions
New Discussion

How to add a local printer

 
ITSD-ACCS
Frequent Advisor

How to add a local printer

Hi,

I have a PC with a printer connected to it. I configure the printer by "Adding a remote printer" and add the IP address in the /etc/hosts. I can successfully print a text file from UNIX to this printer. However when I came to print a report with control character or landscape, it just ignore it. The printer model is HP LaserJet 6L. How can I link the model to a remote printer that I just added ?

Thanks a lot
5 REPLIES 5
Sean OB_1
Honored Contributor

Re: How to add a local printer

I always use JetAdmin (hppi) which builds the interface files for you.

Otherwise you'll need to make an interface file for the printer.

Look in /etc/lp/interface and /etc/lp/interface/model.orig

This is there the "drivers" for the printers are located. You should be able to copy/edit a similar printer and name it your new printer.
Kellogg Unix Team
Trusted Contributor

Re: How to add a local printer

I would also recommend JetDirect software to make use of, to add local printer. Once you install the software, you can configure the printer through SAM.

...Manjeet
work is fun ! (my manager is standing behind me!!)
Jean-Louis Phelix
Honored Contributor

Re: How to add a local printer

Hi,

If your printer is connected to a NT you have to declare it as connected to a BSD system.

Problem Description

I have Line Printer Daemon (LPD) installed on Windows NT workstations and HP LaserJet II printers connected to the NT Workstations.

When printing from the UNIX box, plain text files print fine, but if the document contains control codes, the control codes are printed.
The printer is configured as a remote printer through SAM with BSD enabled.

Solution

The fix is to use the -oBSDl option when printing from the UNIX side.


It works for me (© Bill McNAMARA ...)
ITSD-ACCS
Frequent Advisor

Re: How to add a local printer

This was exactly what I have done based on Phelix mentioned. I have added a remote printer as BSD, the different is that my PC is windows 2000 and I use LAN Workplace pro as my client's printer server. Actually I have tried a couples of option using -oBSDlps...etc, but neither fonts nor the format came up the way I expected. What I can do now ? Please note that I don't have jetdirect for that Printer.

Many thanks.
Kellogg Unix Team
Trusted Contributor

Re: How to add a local printer

If you don't have jet-direct card, here is another way to access that printer; Use samba on your hp-ux server and share the PC printer. The link is -
http://de.samba.org/samba/ftp/docs/htmldocs/using_samba/ch07_02.html

I haven't done it this way (I have defined printers in unix under samba to be used by PC clients) so can't say if it preserves control-characters or not but it might be worth a try.

Let us know if it helps.

...Manjeet
work is fun ! (my manager is standing behind me!!)