Problem in setting up printers


 
Thread Tools Search this Thread
Operating Systems Solaris Problem in setting up printers
# 1  
Old 07-26-2012
Problem in setting up printers

Hi,

We are facing an issue while setting up printers in solaris 5.10 . We have Oracle EBS installed over it. We have configured the printer and when we try printing a page from EBS it is printing fine. But the problem arises when we print two copies of the page. The first page is printing fine and the next page instead of starting from the next paper, it starts from the left over line of the first paper.

We have the same printing setups as of solaris 5.9 where we do not face any issues.

Printer setup in Solaris 5.9

Code:
# lpstat -lp purchasing
printer purchasing is idle. enabled since Mon Oct 16 09:22:32 2006. not available.
        Form mounted:
        Content types: simple, postscript
        Printer types: epson2500
        Description:
        Connection: direct
        Interface: /usr/lib/lp/model/netstandard
        PPD: none
        On fault: write to root once
        After fault: continue
        Users allowed:
                (none)
        Forms allowed:
                (none)
        Banner page never printed
        Character sets:
                character_set_1
                character_set_2
                usa
                french
                german
                uk
                danish1
                swedish
                italian
                spanish1
                japanese
                norwegian
                danish2
                spanish2
                latin_american
        Default pitch: 10 CPI 6 LPI
        Default page size: 136 wide 66 long
        Default port settings:
        Options: dest=15.1.1.7:9900, protocol=tcp, protocol=tcp

 
Printer setup in Solaris 5.10
# lpstat -lp purchasing
printer purchasing is idle. enabled since Mon Jul 23 14:52:59 2012. available.
        Form mounted:
        Content types: text/plain, application/postscript
        Description:
        Printer types: epson2500
        Connection: direct
        Interface: /usr/lib/lp/model/netstandard
        On fault: write to root once
        After fault: wait
        Users allowed:
                (all)
        Forms allowed:
                (none)
        Media supported:
                (none)
        Banner page never printed
        Character sets:
                (none)
        Default pitch:
        Default page size:
        Default port setting:
        Options: PageSize=A4, dest=15.1.1.3:9900, protocol=tcp


Can you help me whether is there any other configuration setups to be done other than this.

Code:
# lpadmin -p purchasing -v /dev/null
# lpadmin -p purchasing -m netstandard
# lpadmin -p purchasing -o dest=15.1.1.7:9900 -o protocol=tcp
# lpadmin -p purchasing -I simple,postscript -T epson2500
# accept purchasing
Destination "purchasing" now accepting requests
# enable purchasing
printer "purchasing" now enabled
# lpstat -p purchasing
printer purchasing is idle. enabled since Fri Jul 13 16:31:29 2012. available.
#

---------- Post updated at 03:53 AM ---------- Previous update was at 03:47 AM ----------

I also tried netstandard__foomatic instead of netstandard , in that case the page alignment is perfect (ie) is automatically goes to the next paper to print the second copy but the font and the page alignment varies as a result we are missing some data on the right side of the page.

Thanks,
Srinath
Moderator's Comments:
Mod Comment Code tags for code, please.

Last edited by Corona688; 07-26-2012 at 12:03 PM..
# 2  
Old 07-26-2012
Hi Srinath,

It sounds like there is a form feed directive missing from the interface files. I have seen this before a long time ago.

I think from memory the files will be in;

Code:
/usr/lib/lp/model

Regards

Dave
# 3  
Old 07-26-2012
Hi Dave,

Thanks for your reply...

This is the diectory where all the interface files are present. The list is

Code:
netstandard                ppd                        
standard_foomatic
tsol_netstandard_foomatic  
tsol_standard_foomatic
netstandard_foomatic       
standard                   
tsol_netstandard           
tsol_standard              
uri

What do you mean by form feed directive? Do i need to make any changes in the interface files.

Last edited by Scott; 07-27-2012 at 11:00 AM.. Reason: Code tags
# 4  
Old 07-27-2012
Hi,

Sorry about the delay in responding, if you check in the directory;

Code:
/etc/lp/printers/printername

There should be a file called configuration I think, in the file there should be the name of the interface file. This will tell you which interface is being used and the model.

You should then be able to modify the "terminfo" database, to do this you have to use "infocmp" and "tic" to put the correct information for your interface file and model file in place.

If you check the Oracle site you will find the information that you need, it will be in the systems administration guides.

Regards

Dave

Last edited by gull04; 07-27-2012 at 10:57 AM.. Reason: More information.
# 5  
Old 07-30-2012
Hi Dave,

No problem. Yes I have the config file in that specified location and it got created by me. I added the printer using the lpadmin command as i said earlier and you can see the output of that from the earlier post.

My doubt is how do I set the default page size and pitch. And is it beacuse of this that I am not able to get the proper page break in reports.

Thanks,
Srinath
# 6  
Old 07-30-2012
Hi,

All your page lenght and pitch commands can be changed when you amend the terminfo file for the printer. If you look at the file below you will see the information is pretty easy to read, although you should be carefull what you change.

Code:
su01sa001> cd /usr/share/lib/terminfo
su01sa001> ls
1  2  3  4  5  6  7  8  9  A  B  G  H  M  P  S  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z
su01sa001> cd e
su01sa001> ls
emots           ep2500+basic    ep2500+low      ep4080          epson2500-80    ergo4000        ex3000
env230          ep2500+color    ep40            ep48            epson2500-hi    esprit          exidy
envision230     ep2500+high     ep4000          epson2500       epson2500-hi80  ethernet        exidy2500
su01sa001> infocmp ep2500+basic
#       Reconstructed via infocmp from file: /usr/share/lib/terminfo/e/ep2500+basic
ep2500+basic,
        cpix,
        cols#136, it#8, lines#66, orc#6, orhi#60, orl#30,
        orvi#180,
        bold=\EG,
        cpi=%?%p1%{10}%=%t^R\EP%e%p1%{12}%=%t^R\EM%e%p1%{20}%=%t^O\EM%e%p1%{17}%=%t^O\EP%;,
        cr=\r,
        csnm=%?%p1%{0}%=%tcharacter_set_1%e%p1%{1}%=%tcharacter_set_2%e%p1%{2}%=%tusa%e%p1%{3}%=%tfrench%e%p1%{4}%=%tgerman%e%p1%{5}%=%tuk%e%p1%{6}%=%tdanish1%e%p1%{7}%=%tswedish%e%p1%{8}%=%titalian%e%p1%{9}%=%tspanish1%e%p1%{10}%=%tjapanese%e%p1%{11}%=%tnorwegian%e%p1%{12}%=%tdanish2%e%p1%{13}%=%tspanish2%e%p1%{14}%=%tlatin_american%;,
        cub1=\b, cud1=\n, cuf1=\s,
        cvr=%?%p1%{0}%>%p1%{256}%<%&%t\E3%p1%c%;, ff=\f,
        ht=\t, is1=^Q^X, is2=\E@\E%0\EO, ritm=\E5, rmso=\EF,
        rmul=\E-0, rshm=\EF, rsubm=\ET, rsupm=\ET, rwidm=\EW0,
        scs=%?%p1%{0}%=%t\E7%e%p1%{1}%=%t\E6%e%p1%{1}%>%p1%{15}%<%&%t\ER%p1%{126}%+%c%;smso=\EE,
        sgr=%?%p1%t\EE%e\EF%;%?%p2%t\E-1%e\E-0%;%?%p6%t\EG%e\EH%;,
        sgr0=\EF\E-0\EH\ET\EW0\E5, sitm=\E4,
        slines=%?%p1%{0}%>%p1%{128}%<%&%t\EC%p1%c%;,
        smglp=%?%p1%{256}%<%t\El%p1%{1}%+%c%;,
        smgrp=%?%p1%{256}%<%t\EQ%p1%{2}%+%c%;, smul=\E-1,
        snlq=\Ex1, snrmq=\Ex0, sshm=\EE, ssubm=\ES1,
        ssupm=\ES0, swidm=\EW1,
        u9=%?%p1%{0}%>%p1%{128}%<%&%t\EC%p1%c%;,
su01sa001>

The sequence of commands would be as follows, please remember to make a backup of the files before you edit them.

Code:
# infocmp ep2500+basic > new_file.txt
# vi new_file.txt
# tic new_file.txt > ep2500+basic

You will have to decide on the changes that you need such as pitch etc, it may well be that the file being used is the colour file or one of the other ep2500 files.

So you will have to be specific and edit the correct file with the correct values.

Regards

Dave

---------- Post updated at 12:57 PM ---------- Previous update was at 12:22 PM ----------

Hi,

For the values that you will be changing, you can look here this should give you a good start.

Regards

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Backup setting problem

the way that i use to backup my server is using the script below in ssh. mysqldump --opt -Q -u username -p password > /var/www/squiro/sql/database.sql but i want to set the server backup everyday at 1pm in same folder. is that set it in crontab-e? how to set it? (3 Replies)
Discussion started by: mampwamp
3 Replies

2. UNIX for Dummies Questions & Answers

Picking problem with printers

Hello to everybody i have problem the picking process falls and falls. I dont now what the picking process do i believe that is a print server on a data base i dont know where to look. Is a solaris 10 with korn sheell the process show this ps -ef | grep picking batch 18466 1 0... (5 Replies)
Discussion started by: enkei17
5 Replies

3. UNIX for Advanced & Expert Users

Setting Ulimit problem

I changed the standard Ulimit sometime back. But when I change it back, the setting does not get updated. How do I make the change permanent Waitstejo (7 Replies)
Discussion started by: Waitstejo
7 Replies

4. Shell Programming and Scripting

Problem setting environment...

Hi All I'm attempting to automate the process of setting the DISPLAY environment variable when logging on (sourcing the .cshrc). I have a mixture of linux and solaris servers and this comnand: who -m | awk '{ print $6}' | tr -d '()' seems to work on all the servers. I want... (2 Replies)
Discussion started by: huskie69
2 Replies

5. Web Development

Problem setting up apache

Hello there, I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use : http://localhost:8022/ in my browser. The problem is that I wanted to be able to acces it from somewere else through the internet. I read some instruction and help sites related to this problem, like :... (2 Replies)
Discussion started by: spiriad
2 Replies

6. Solaris

Problem defining remote printers on solaris 10

Good morning, I have a server with solaris 10 that I want to intall remote printers. I started lpsched deamon without problems with command: svcadm enable application/print/server I want to install printers that are defined locally on print server, so: lpadmin -p <device> -s <print... (2 Replies)
Discussion started by: bonovox
2 Replies

7. Programming

problem while setting putenv

Hi, I m trying to change the env variable from the c program which inturn calls another c executable. i m using the putenv function but it does not set the value as required , it overwrites the values with some other values... i m using following cmd's to set the env variable FULL_PATH : ... (3 Replies)
Discussion started by: pgarg
3 Replies

8. Solaris

Problem Setting $PATH

I am trying to install the pkg-get package to a fresh install of Solaris 10. I am able to download and install correctly using the default directory for both pkg-get and wget as found on blastwave.org. When I issue the command "which wget and which pkg-get" it returns no wget or pkg-get found in... (1 Reply)
Discussion started by: greengrass
1 Replies

9. Shell Programming and Scripting

Is this a shell setting problem?

I have a question regarding shell settings. I have one Sun server with Solaris 9 and Oracle 10g R2 on it. DB is up running well. I created a script to start DB automatically when server reboot. It didn't work. I manually run dbstart under $ORACLE_HOME/bin, the server return message like:" dbstart:... (7 Replies)
Discussion started by: duke0001
7 Replies

10. Solaris

ulimit setting problem on Solaris

How do you make the ulimit values permanent for a user? by default, the root login has the following ulimits: # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 8192 coredump(blocks) unlimited nofiles(descriptors) 1024 memory(kbytes)... (2 Replies)
Discussion started by: kiem
2 Replies
Login or Register to Ask a Question