Operating System - HP-UX
1837976 Members
2745 Online
110124 Solutions
New Discussion

Cannot print from Mozilla 1.7 on HP-UX 11.11

 
SOLVED
Go to solution
David Mores
Frequent Advisor

Cannot print from Mozilla 1.7 on HP-UX 11.11

Mozilla printing uses the Xprint or TPS of HP-UX. After patching TPS (PHSS_29279 - 11.11 TechPrintServ Periodic Patch) and configuring to print using display 33, mozilla prepares to print but fails with "There was a problem printing. The print driver is not properly configured". Patch Special Installation Instructions suggested problem fixes that have no affect on this problem.

This problem even happens when trying to save the print to a file. I think this may have something to do with the need for a Postscript driver - i.e. mozilla printing from Solaris is not a problem where postscript support comes with the O/S.

If this is the case for HP-UX, what is the solution?
21 REPLIES 21
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

Are you able to print through TPS from the text editor or mail?
David Mores
Frequent Advisor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

Don't know - I do not use HP-UX much nor have we ever enabled TPS before. I was just setting up mozilla for others to use it and Xprint/TPS is required.
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

First check to see whether TPS is running:
ps -ef | grep XpFile
You said you were using display 33, so you should see:
...... /usr/bin/X11/X :33 -deferglyphs 16 -XpFile /etc/X11/X33printers

If it is not running, run:
/sbin/init.d/tps.rc start

Once it is running, try testing it by printing from the CDE text editor. From a command line run dtpad. This will bring up the text editor. DTPAD uses Xprint/TPS to print. To print:
File --> Print [More Printers ...] (Select your printer) [Print]

If this doesn't work, your are having problems with TPS. Check the following logs:
/var/X11/Xserver/logs/Xstartup.33.log
/var/X11/Xserver/logs/X33.log
/var/dt/Xerrors
/var/dt/XPserver:33.err

There is also an online document to help with configuring TPS. You can view this document from the front panel by selecting the Help Icon [?]
[?]->Help Manager->Technical Print Service System Administrator's Guide.
David Mores
Frequent Advisor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

The X :33... process is running. The logs are
either empty or have just informational messages - no errors.

Printing from dtpad works, but then it works from systems where Xprint is NOT enabled at boot up. So this is rather confusing.

Mozilla print still fails as first described.
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

TPS is notoriously troublesome to configure and use. So, by having you try printing through dtpad, I was trying to isolate the problem to either TPS or Mozilla.

What is the variable DTPRTSVR in /etc/rc.config.d/desktop set to? If this variable is blank or TPS, dtpad and dtmail are using TPS to print. If it's set to LP, dtpad isn't using tps.




David Mores
Frequent Advisor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

There is no such variable defined in desktop.
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

Which "CDE Base Patch" do you have loaded:
show_patches | grep CDE
David Mores
Frequent Advisor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

This is the complete swlist:

# Contacting target "yhp616"...
#
# Target: yhp616:/
#

#
# Bundle(s):
#

B3394BA B.11.11.02 HP-UX Developer's Toolkit for 11.11
B6268AA B.11.00.03 Graphics and Technical Computing Software
B6848BA 1.4.gm.38 Ximian GNOME 1.4 GTK+ Libraries for HP-UX 11.00 and 11i
B6852BA 1.4.gm.38 Ximian GNOME 1.4 Desktop for HP-UX 11.00 and 11i
B7580AA B.11.11.11 HP-UX Visualize Conference Run Time Environment
BUNDLE11i B.11.11.0306.1 Required Patch Bundle for HP-UX 11i, June 2003
CDE-English B.11.11 English CDE Environment
FDDI-00 B.11.11.01 PCI FDDI;Supptd HW=A3739A/A3739B;SW=J3626AA
FibrChanl-00 B.11.11.03 PCI FibreChannel;Supptd HW=A5158A
GOLDAPPS11i B.11.11.0306.4 Gold Applications Patches for HP-UX 11i, June 2003
GOLDBASE11i B.11.11.0306.4 Gold Base Patches for HP-UX 11i, June 2003
GigEther-00 B.11.11.14 PCI/HSC GigEther;Supptd HW=A4926A/A4929A/A4924A/A4925A;SW=J1642AA
HPUXBase64 B.11.11 HP-UX 64-bit Base OS
HPUXBaseAux B.11.11 HP-UX Base OS Auxiliary
HWEnable11i B.11.11.0306.4 Hardware Enablement Patches for HP-UX 11i, June 2003
Ignite-UX-11-11 B.3.6.82 HP-UX Installation Utilities for Installing 11.11 Systems
OnlineDiag B.11.11.00.04 HPUX 11.11 Support Tools Bundle
RAID-00 B.11.11.00 PCI RAID; Supptd HW=A5856A
#
# Product(s) not contained in a Bundle:
#

Gdm 2.2.2.1.5 The GNOME Display Manager, a login manager
PHSS_23486 1.0 Mitsumi CD-ROM firmware update
PHSS_29279 1.0 TechPrintServ Periodic Patch
PHSS_30966 1.0 ld(1) and linker tools cumulative patch
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

I had assumed that you were using Common Desktop Environment (CDE), but it looks like you are using Gnome Desktop instead. So, my instructions about testing TPS are invalid.

I'm still leaning towards this being a problem with TPS instead of Mozilla. There is another log file I forgot to list earlier. By default, tps will also log messages to:
/var/dt/dtpdmd.{n}.log
Does this file have any messages?

How did you configure TPS? Through SAM?
David Mores
Frequent Advisor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

Yes - running GNOME desktop. Log file is totally empty.

Aside - mozilla uses XPSERVERLIST set to localhost:33 or yhp616:33 - same problem either way.

However, it I set it to ysw155:33, a Solaris 9 system running Xprt, mozilla running on HP-UX will successfully print.

Going home - catch your reply tomorrow.
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

I was looking over the Technical Print Service System Administrator's Guide. Under the Requirements Section, it lists the following:
HP-UX 10.30 operating system or later releases
Common Desktop Environment 1.0
X11 R6 Window System

I'm not sure TPS will work without CDE running. I think your best bet is to locate something similar TPS/Xprt that will run under gnome.
David Mores
Frequent Advisor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

I think it will. The desktop, GNOME or CDE, still depends of the underlying X windowing system. GNOME or CDE sessions can be selected from the GUI login screen.

As my last message indicated, I think Solaris has something that HP-UX does not, because when I point mozilla on HP-UX to use the Xprt on my Solaris system, printing from mozilla works.

Something basic is missing or not configured correctly on HP-UX.
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

I think your right. Something is working on Solaris that is working on HP-UX. On Solaris, your Xprint server (Xprt) is working, but I don't think your Xprint server (TPS) is working on HP-UX.

Can you copy your /etc/X11/X33devices, /etc/X11/X33pointerkeys, /etc/X11/X33pointerscreens to a text file, and post them.

Also, check your /etc/dt/config/C/sys.resources file and make sure you see the line:
*XpServerList: your-HP-server:33
If you don't have this file, create one and put this line in it.

I need to think about this some more. I just tried doing some testing with TPS servers. They work fine when I print to the printer, but when I tried to print to a file I get junk.
David Mores
Frequent Advisor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

X33devices

###############################################################################
#
# SAM generated configuration. Anything placed below this comment block will
# be deleted next time you change this configuration within SAM.
#
###############################################################################

first NULL keyboard
first NULL pointer


X33printers:
########################################################################
#
# $XConsortium: Xprinters /main/hp-cvl/1 1996/08/23 14:04:37 tomg $
#
# X*printers sample configuration file
#
#
# This template file is used to build the files /etc/X11/X*printers, where
# the "*" is the display number of the server. For example, if the server is
# invoked using the command X :40, then the X40printers file is used.
########################################################################

########################################################################
# Use lpstat to augment the list of printers managed by the
# server. (This is the default behavior if an "Augment_Printer_List" line
# is not specified.)
########################################################################
#Augment_Printer_List %default%

########################################################################
# Use the specified command pipeline to augment the list of printers
# managed by the server.
########################################################################
#Augment_Printer_List lpstat -a | cut -d " " -f 1 # equivalent to default

########################################################################
# Do not augment the list of printers managed by the server.
########################################################################
#Augment_Printer_List %none%

########################################################################
# Add individual printers to the list of printers managed by the
# server. These are aliases, determined by driver name.
########################################################################


# EXAMPLES
#
# Printer xppspr
# Printer xppclpr
# Printer xppclmonopr
# Printer xprasterpr

X33screens:

###############################################################################
#
# SAM generated configuration. Anything placed below this comment block will
# be deleted next time you change this configuration within SAM.
#
###############################################################################

ServerOptions
serverMode XPrint

--------------

I added the *XpServerList: your-HP-server:33 line to existing /etc/dt/config/C/sys.resources which now contains:
*0*ColorPalette: Default.dp
Dtwm*0*FrontPanel*geometry: -6-2
Dtwm*0*FrontPanel_conv*geometry: -1-4
Dtwm*0*ws4*title: Five
Dtwm*0*ws5*title: Six
Dtwm*0*helpResources: \n\

Dtwm*0*initialWorkspace: ws0
Dtwm*0*workspaceCount: 6
Dtwm*0*workspaceList: "ws0" "ws1" "ws2" "ws3" "ws4" "ws5"
Dtwm*focusAutoRaise: False
Dtwm.keyboardFocusPolicy: pointer
dtsession*displayResolution: 3750
dtsession*sessionLanguage: C
dtsession*ShutDownState: 1
dtsession*ShutDownMode: 3
*background: #C600B2D2A87E
*foreground: #000000000000
*XpServerList: localhost:33


I restarted TPS, but this made no difference to mozilla printing.
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

I still don't see anything obvious. I have K-Box that I use for testing. I'm in the process of loading Gnome and Mozilla on it. I'll let you know how it goes.
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

David,

I just stood up a server (see the sw config at the bottom), and installed Mozilla 1.7. I was able to print from mozilla without seting up and running a Technical Print Server.
I configured a single remote printer through SAM, and made it the default. I was able to print through Mozilla using the following print commands (Printer Properies...)

lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

.. and ...
lpr -dprintq

This test was done using CDE desktop. Tommorrow, I'll try loading and printing with gnome desktop running.

I'll let you know how things go tomorrow.


----------------------------------------
#
# Bundle(s):
#

B6848BA 1.4.gm.46.2 Ximian GNOME 1.4 GTK+ Libraries for HP-UX 11.00 and 11i
B8111AA 1.2.2.15.00 Java 2 RTE for HP-UX (700/800), PA1.1 + PA2.0 Add On
B8465BA A.01.05.08 HP WBEM Services for HP-UX
B9073BA B.06.00 HP-UX iCOD (Instant Capacity on Demand)
B9098AA 1.2.2.15.00 Java 2 Plugin for HP-UX (700/800)
B9789AA 1.3.1.09.08 Java2 1.3 RTE for HP-UX
BUNDLE11i B.11.11.0306.1 Required Patch Bundle for HP-UX 11i, June 2003
Base-VXVM B.03.50.5 Base VERITAS Volume Manager Bundle 3.5 for HP-UX
CDE-English B.11.11 English CDE Environment
FDDI-00 B.11.11.02 PCI FDDI;Supptd HW=A3739A/A3739B;SW=J3626AA
FEATURE11-11 B.11.11.0209.5 Feature Enablement Patches for HP-UX 11i, Sept 2002
FibrChanl-00 B.11.11.09 PCI/HSC FibreChannel;Supptd HW=A6684A,A6685A,A5158A,A6795A
GigEther-00 B.11.11.19 PCI/HSC GigEther;Supptd HW=A4926A/A4929A/A4924A/A4925A;SW=J1642AA
HPUX11i-OE B.11.11.0312 HP-UX 11i Operating Environment Component
HPUXBase32 B.11.11 HP-UX 32-bit Base OS
HPUXBaseAux B.11.11.0312 HP-UX Base OS Auxiliary
HWEnable11i B.11.11.0312.4 Hardware Enablement Patches for HP-UX 11i v1, December 2003
OnlineDiag B.11.11.13.14 HPUX 11.11 Support Tools Bundle, Dec 2003
T1455AA 1.3.1.09.08 Java2 1.3 Netscape Plugin for HP-UX
T1457AA 1.4.1.02.02 Java2 1.4 RTE for HP-UX
T1458AA 1.4.1.02.02 Java2 1.4 Netscape Plugin for HP-UX
perl B.5.6.1.F Perl Programming Language
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

I've have been able to duplicate your problem with CDE running. I'll look into this some more tomorrow.
john kingsley
Honored Contributor
Solution

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

David,

I finally got it working. By default TPS is aware of all your local printers using lpstat -a, but I'm starting to think that it is using the pcl drivers by default. So, you will need to configure the TPS printers by hand.

Step 1. Run the command
tpsshowmodel -all

This will give you a list of all the printers officially supported by TPS. Choose the one closest to your printer model. Any of the PS printers should work okay. I have a Xerox postcript printer, and was able to use the "HPLJ4ML-PS" driver.

Step 2. Setup your postscript printer(s) in TPS using tpsedit:
tpsedit /etc/X11/C/print/attributes/printer

Add the following lines for your printer(s):
.xp-model-identifier:
.descriptor:
.xp-spooler-printer-name:

Where:
is the name you give the printer in tps. This is the name that will show up in the TPS pick lists.

identifies the printer model. It needs to be one of the names listed by the tpsshowmodel command. Make sure you use the postscript model. I used HPLJ4L_4ML-PS for my system.

is a description to help the users identify the printer (example: Printer in Room 1100). This this text will be displayed in some chooser windows.

is the name by which the printer is known to the lpspooler. It is the print destination you use lp to print.

Step 3. Edit /etc/X11/X33printers
Uncomment the following line:
Augment_Printer_List %none%

For each of printers you configure, add the following line:
Printer

Step 4. Restart TPS
/sbin/init.d/tps.rc stop
/sbin/init.d/tps.rc start

To identify TPS servers HP uses the variable XpServerList, but mozilla (& Sun) use the variable XPSERVERLIST. So, before using mozilla, make sure this variable is set(echo $XPSERVERLIST).
David Mores
Frequent Advisor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

Looks like your suspicion was right (defaults to PCL drivers). Your directions for a custom config do produce output. Thanks very much for your efforts!

BTW - the XPSERVERLIST variable seems to work too. I did not define XpServerList, but got output anyway.

My Xerox printer is producing output from mozilla (only) on a quarter of the page though. I tried to set the *default-printer-resolution in the printer to a new value but nothing seems to work. Any suggestions on this?

Also, now that we have it working, is there any way to set the default drivers to be PS?
Maintaining custom configs in our environment would be next to impossible.
john kingsley
Honored Contributor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

Do you mean that your mozilla page is being mapped to 1/4th of an 8.5x11 page by the printer? Check your page setup in mozilla. There is a scaling option there. This is what could be happening. You may also want to play with other printer models. I discovered that the "HPLJ4L_4ML-PS" is limited to 300 dpi. The "HPLJ5000N" supports up to 1200 dpi. Take a look at the model_config files under /etc/X11/C/print/models/* . The model_config files basically just list options that are supported by the printer. You could even try customizing your own printer definition by copying one of these directories.

Regarding changing the default driver. I played with this some, and it looks like you can do it. Try the following:

Step 1. Edit Xprinter definitions
tpsedit /etc/X11/C/print/attributes/printer
--- remove your customized Xprinters
--- Add the following line:
*xp-model-identifier:

Step 2. Edit /etc/X11/X33printers.
-- Remove or comment out the Xprinters you added
-- Comment the line: Augment_Printer_list %none%

Step 3. Restart tps
/sbin/init.d/tps.rc stop
/sbin/init.d/tps.rc start

Now, TPS will automatically apply the model-config to all of the printers known to the local lpspooler.
David Mores
Frequent Advisor

Re: Cannot print from Mozilla 1.7 on HP-UX 11.11

The change to default PS drivers works. Thanks!

Yes - the output is coming out on 1/4 of the sheet. I have checked the mozilla page scaling setup. It was set to 100% and shrink_to_fix page. I removed shrink_to_fix and set scaling to 200%, but there is no change in scale of output.

I think this is printer dependent because I can print to an older model HP (LJ4) and it comes out using the full page - no matter what the page setup scale is. However, finding what parameter in Xprint or mozilla really affects this is goal.