Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print setup problems 1

Status
Not open for further replies.

bi

Technical User
Apr 13, 2001
1,552
US
I have (sort of) successfully set up a remote printer to my SPARC E450. I can send print jobs to the printer and they print...but...

Even if it is a multipage print job, only the first page prints out.

And even worse (or funnier), if I am printing something like a single column list, each line of words starts off where the previous line left off. Like this:

first line
second line
third line

I have tried to find help in the Solaris System Administrators Guide, and on Sun's web site, but it seems most of the information is about how to set up printers directly connected to the Sun, rather than problems with remote printing.

Can someone help?
 
Hi,
I also faced the same problem.
Does anyone have any idea how to correct this?
Thanks.....
 
When setting up an ascii printer such as a HP LaserJet or dot Matrix type, some printers need a carriage return at the end of each line. Unix, by default, only has a new line at the end of each line in an ascii file, the printer output will stairstep across the page, usually only three lines are printed, a possible solution to stairstepping is to set the printer type correctly using the lpadmin command, ie:
lpadmin -p printername -T hplaser -I simple
or: lpadmin -p printername -T ibmproprinter -I simple
or: lpadmin -p printername -T epson2500 -I simple
The printer types are listed in /usr/share/lib/terminfo/*. the * is the first letter of the printer name, for printers that stairstep when defined correctly, use this workaround
to add the carriage return at the end of each line:
vi /etc/lp/interfaces/printername
# we don't know the type, so just assume that the input and output are the same.
FILTER="${LPCAT} 0" # infinite delays
Add | unix2dos to line 516 above so it looks like:
FILTER="${LPCAT} 0 | unix2dos" # infinite delays

Hope this helps,

Regards,
Carlos Almeida,
 
Thanks.

I think something like this will help me, but I searched on LPCAT and didn't find it in my interfaces file.

I tried copying and pasting the two sections where FILTER is used, but I think it would turn out to be unreadable on the forum. I could email it to you (or is there some place to upload files on the forum?) so you could see what I have.



 
you don't have the LPCAT line ? which printer model file you are using ?

Regards,

Carlos Almeida.
(cfsalmeida@netcabo.pt)

 
Sorry for asking, but is a network printer ? if is a network printer are you using HP jetadmin for Solaris ?

Regards,

Carlos Almeida,
 
It is a printer on the network. I don't have HP jetadmin for Solaris installed.
 
Any reason for you don't use HP jetadmin for Solaris with the hp Laserjet ? (maybe you are using a axis or similar...)

So i supose that you are using something like:
lpadmin -p printer_name -v /dev/null -m netstandard -o dest=xxx:yyyy -o protocol=tcp

and your interface file is now the
/usr/lib/lp/model/netstandard ... right ? so you can modify the working copy of netstandard as follows:

#cd /etc/lp/interfaces
#vi <line_printer>

Locate the following section then modify it as shown.
Before
# We don''t know the type, so just assume that the
# input and output are the same. Use netpr.
#FILTER=/bin/cat
FILTER=
After
# We don't know the type, so just assume that the
# input and output are the same. Use netpr.
#FILTER=/bin/cat
FILTER='/usr/bin/unix2dos'

Make sure you have unix2dos file in /usr/bin.
Now it will print correctly :)

Hope it helps,
Regards,

Carlos Almeida.
 
Carlos:

THANK YOU!!!! It worked.

(By the way, there is no really good reason why we aren't using jetadmin except that I'm in an AS400 centric environment and getting something added for use by any of our Unix platforms is quite difficult.)

Again, many, many thanks.
 
I know this is an old thread but I am hoping someone will look at it.
I am having the exact same problem, (columar files are stepping out across the page)
/etc/lp/interfaces is empty. No printers in this directory.

ipadmin -p &quot;name&quot; -s prntserver!HP4 was the command used.
/etc/hosts has printer name and IP.

ipadmin -p &quot;name&quot; -v /dev/null -m netstandard -o dest=xxx:yyyy -o protocol=tcp

Can you explain this command in full?
xxx:yyyy?

I thought the -v /dev/null was only for printers directly attached to the host? Are YOU Sancho?....No you are not. Is Scott Baio, Sancho?....NO, he is not!....Only..&quot;I&quot;....am Sancho!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top