Re: LPRng: printer default
hi, you should turn the printer internal default to A4... regards ~christoph On Fri, 1 Feb 2002 [EMAIL PROTECTED] wrote: I have set up a server running lprng-3.7.4. I have samba-2.2.2 running for windows clients and netatalk for mac clients. Every thing is fine apart from printing from unix which always seems to default to letter size paper. I can set default for windows and mac clients, but have not been able to set defaults for unix. The printer is set up to print on a4 and duplex, but to do it from a unix client i have to use the -Z filter option to tell it to use a4. Does any one have any ideas if/how i can change this thanks - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. - - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: Re: 3.8.5 Set_hold_file: LOGIC ERROR- no HF_NAME injob information
Hi Patrick, many thanks, it seems to work just fine. Cheers, Helmut. On 3 Feb, Patrick Powell wrote: Version LPRng-3.8.6 - Sat Feb 2 16:58:17 PST 2002 HF_NAME not getting set when hold file read and it is not in file. This makes updates miserable. (Problem spotted by: Helmut Jarausch [EMAIL PROTECTED]) There was a revision in the information in the hold file, and I missed a case where it does not get set. Apply the following patch: *** common/getqueue.c 2002/01/23 01:01:16 1.2 --- common/getqueue.c 2002/02/03 23:38:03 *** *** 743,748 --- 743,751 Get_file_image_and_split( hf_name, 0, 0, job-info, Line_ends, 1, Value_sep,1,1,1,0); } + if( !Find_str_value(job-info,HF_NAME,Value_sep)) ){ + Set_str_value(job-info,HF_NAME,hf_name); + } } /* -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik Institute of Technology, RWTH Aachen D 52056 Aachen, Germany - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: Destination (output device) in printcap entry
Just guessing, but: Common sense says PASS is the printer queue at 192.122.1.123 Common sense says lp=192.1yy22.1.123%5001 means 5001 is the port for an lpd daemon on 192.etc. Joel On Mon, Feb 04, 2002 at 01:33:15PM +0200, cosminb wrote: Hi all, I'm new in the lprng list. Could some one explain me what means the PASS (from the lp=... line) in the following printcap entry: my_queue:\ :force_localhost@:\ :try_localhost@:\ :mx#0:\ :sh:\ :sd=/var/spool/lpd/my_queue:\ :lpr_bounce:\ :[EMAIL PROTECTED]:\ :if=/usr/bin/psfilter: Also, what is the diferrence between: - [EMAIL PROTECTED] and - lp=192.1yy22.1.123%5001 Thanks in advance. - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: Problems using enscript
On Sat, 2 Feb 2002, Patrick Powell wrote: From [EMAIL PROTECTED] Wed Jan 16 02:32:39 2002 Date: Wed, 16 Jan 2002 10:29:43 +0100 (MET) From: Johan Bengtsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: LPRng: Problems using enscript Hi, WORKS: enscript_options= -o- enscript_converter= /opt/pd/libexec/filters/wrapper /opt/gnu/bin/enscript \%s{enscript_options} text_converter= \%s{enscript_converter} DOESN'T WORK: enscript_options= --header='$n %W Page $% of $=' -o- enscript_converter= /opt/pd/libexec/filters/wrapper /opt/gnu/bin/enscript \%s{enscript_options} text_converter= \%s{enscript_converter} The 'enscript_options' are being run through a Printf-like conversion process. You need to escape them by using %%. Try: enscript_options= --header='$n %%W Page $%% of $=' -o- I gave up on enscript and tried a2ps instead. Same problems, but it finally worked when I enclosed the whole flag in ticks like below: a2ps_options= -q -B -1 -M \%M{papersize} '--left-footer=Jobsize: \%s{b}' Best regards, Johan Bengtsson -- http://www.dd.chalmers.se/~elijah/ - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: Destination (output device) in printcap entry
It probably stands for passthrough on that printer... something like RAW. The rest of it is probably a printer IP address. _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630 On Mon, 4 Feb 2002, cosminb wrote: Hi all, I'm new in the lprng list. Could some one explain me what means the PASS (from the lp=... line) in the following printcap entry: my_queue:\ :force_localhost@:\ :try_localhost@:\ :mx#0:\ :sh:\ :sd=/var/spool/lpd/my_queue:\ :lpr_bounce:\ :[EMAIL PROTECTED]:\ :if=/usr/bin/psfilter: Also, what is the diferrence between: - [EMAIL PROTECTED] and - lp=192.122.1.123%5001 Thanks in advance. Best regards, Cosmin Bonea - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. - - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: Re: lprng lpd remote command control operation
Answer: Run lpc -Dnetwork,1 release lp [jobnum] /tmp/log 21 You will see the command you need in the /tmp/log file in hte network debugging stuff. The command has the foramat: \006printer user command printer options So this would be: \006lp root release lp It is even documented in the HOWTO... Patrick From [EMAIL PROTECTED] Thu Jan 17 12:55:31 2002 From: Floyd Shackelford [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: lprng lpd remote command control operation Date: Thu, 17 Jan 2002 13:57:38 -0600 This is a multi-part message in MIME format. --=_NextPart_000_007F_01C19F5E.EC78B380 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit this is my first time communicating to you, so let me say thank you very much for your work on lprng. it's a great product. i need help getting the lpc requests documented in section 19.8 LPC Requests of the manual to work. if i make a non-modifying call (e.g. lpq or status), i get the expected results. if i use a modifying call (e.g. release), i get back the following response: Printer: lp@redhat lp@redhat: no Huh? it's telling me no! i admit i had to laugh at that reponse. i haven't had a computer tell me no in a very long time. My command string is as follows: \006lp@redhat root@redhat release lp 447 where: \006 is a single byte of value 6 lp is the printer spool name redhat is the host name 447 is the job number here's what lpq shows me: [root@redhat LPRng]# lpq Printer: lp@redhat (dest lp@kyocera) Queue: no printable jobs in queue Holding: 1 held jobs in queue Server: no server active Status: job 'cfA427redhat.cmsdiginet.com' error 'aborting operations' at 11:55:25.126 Filter_status: no sync response from printer at 09:12:06.403 Rank Owner/ID Class Job Files Size Time hold root@redhat+447 A 447 /etc/hosts 169 11:56:10 here's my printcap: lp: # :lpd_bounce :force_localhost :as=|/usr/local/LinuxGateKeeper/LinuxGateKeeperPrintJobFilter.sh :sd=/var/spool/lpd/%P :mx=0 :mc=0 :sh :lp=lp@kyocera :done_jobs=5 # :filter=/usr/local/libexec/filters/ifhp # :ifhp=model=hp4000 lp:server :lpd_port=515 :reuse_addr=1 :retry_econnrefused=1 :retry_nolink=1 :socket_linger=1 :remote_support=1 :originate_port=512 1023 here's my java code that makes the request: public String ReleaseJobOnHold(JobInfo jobInfo) throws IOException { Connect(); OutputStream outputStream = _socket.getOutputStream(); // the control operation has the following format: // \006printer user command [options] Write(outputStream,DO_CONTROL_OPERATION); // \006 Write(outputStream,jobInfo._printerName + ); Write(outputStream,jobInfo._submittedByUserID + @ + jobInfo._submittedByHost + ); // the release command has the following format: // release (printer[@host] | all) (name[@host] | job | all)* String commandLine = release + jobInfo._printerName + + String.valueOf(jobInfo._jobNumber); System.out.println(command=+commandLine); Write(outputStream,commandLine); Write(outputStream,LF); // read the result InputStream inputStream = _socket.getInputStream(); String inputLine = Read(inputStream); Done(); return inputLine; } how do i get LPRng to release the job? Regards, Floyd Shackelford 4 Peaks Technology Group, Inc. VOICE: 334.735.9428 FAX: 916.404.7125 EMAIL: [EMAIL PROTECTED] Acta non verba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.312 / Virus Database: 173 - Release Date: 12/31/2001 --=_NextPart_000_007F_01C19F5E.EC78B380 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=3DContent-Type content=3Dtext/html; = charset=3Diso-8859-1 META content=3DMSHTML 5.50.4912.300 name=3DGENERATOR/HEAD BODY DIVSPAN class=3D440263519-17012002FONT face=3DArialthis is my = first time=20 communicating to you, so let me say thank you very much for your work on = lprng.=20 it's a great product./FONT/SPAN/DIV DIVSPAN class=3D440263519-17012002FONT = face=3DArial/FONT/SPANnbsp;/DIV DIVSPAN class=3D440263519-17012002FONT face=3DAriali need help = getting the lpc=20 requests documented in section 19.8 LPC Requests of the manual to = work. if i=20 make a non-modifying call (e.g. lpq or status), i get the expected = results. if i=20 use a modifying call (e.g. release), i get back the following=20 response:/FONT/SPAN/DIV DIVSPAN class=3D440263519-17012002FONT = face=3DArial/FONT/SPANnbsp;/DIV DIVSPAN class=3D440263519-17012002FONT face=3DArialnbsp;nbsp; = Printer: A=20
Re: LPRng: lprng: lpq -a problem
Fixed. From [EMAIL PROTECTED] Fri Jan 18 02:37:52 2002 Date: Fri, 18 Jan 2002 20:40:19 +1100 To: [EMAIL PROTECTED] Subject: LPRng: lprng: lpq -a problem From: [EMAIL PROTECTED] (Craig Small) I get this myself, lpr -a is broken. - Forwarded message from [EMAIL PROTECTED] - Package: lprng Version: 3.8.4-2 Severity: normal -a option for lpq comming with 3.8.4 isn't usable : # lpq -as Printer: lp - cannot get status from device 'NULL' Printer: lp2 - cannot get status from device 'NULL' Printer: lp22 - cannot get status from device 'NULL' Printer: lps - cannot get status from device 'NULL' Printer: hp4 - cannot get status from device 'NULL' While lpq from 3.7.x (lpd is from 3.8.4) gets an answer: # /tmp/lpq -as lp@mirek 0 jobs lp2@mirek 0 jobs (dest lp@mirek) lp22@mirek 0 jobs (dest lp@mirek) lps@mirek 0 jobs (dest lp@mirek) hp4@mirek 0 jobs (dest hplj4@dionizos) Mirek -- System Information Debian Release: 3.0 Kernel Version: Linux mirek 2.4.8-ac4 #1 Tue Aug 14 15:39:09 CEST 2001 i586 unknown Versions of the packages lprng depends on: ii debconf1.0.25 Debian configuration management system ii libc6 2.2.4-7GNU C Library: Shared libraries and Timezone - End forwarded message - -- Craig Small VK2XLZ GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED] MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED] - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. - - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: PDF problem
From [EMAIL PROTECTED] Fri Jan 18 01:15:43 2002 Date: Fri, 18 Jan 2002 09:28:31 +0100 (NFT) From: Thies Meincke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: LPRng: PDF problem Hi, I got a problem printing PDF files on a Linux system using LPRNG 3.8.2 and IFHP 3.5.2. The PDF file is not printed, just a error message on a single sheet of paper: Conversion failed for type 'pdf_document,_version_1.2' Using '/usr/bin/pdf2ps' Error: 'Converter exited with status 'exit status 1'' This is most likely created by ifhp; this is also confirmed by the status file in the spool directory: using model 'DEFAULT' at 08:20:51.940 pagecount using 'pjl info pagecount' at 08:20:51.942 setting up printer at 08:20:51.942 pagecounter 51821 after 1 attempts at 08:20:52.040 pagecounter 51821 at 08:20:52.040 sending job file at 08:20:52.040 starting transfer at 08:20:52.041 file program = '/usr/bin/file -' at 08:20:52.041 started FILE_UTIL- 'file' at 08:20:52.041 file information = 'pdf_document,_version_1.2' at 08:20:52.052 initial job type 'pdf_document,_version_1.2' at 08:20:52.052 decoded job type 'POSTSCRIPT' at 08:20:52.052 job type 'POSTSCRIPT', converter '/usr/bin/pdf2ps - -' at 08:20:52.052 started CONVERTER- 'pdf2ps' at 08:20:52.053 'CONVERTER' error msg 'AFPL Ghostscript 7.03: Unrecoverable error, exit code 1' at 08:20:52.156 converter done, output 271 bytes at 08:20:52.158 initial job type 'POSTSCRIPT' at 08:20:52.158 decoded job type 'POSTSCRIPT' at 08:20:52.158 job type 'POSTSCRIPT' at 08:20:52.158 transferring 271 bytes at 08:20:52.159 100 percent done at 08:20:52.159 data sent at 08:20:52.159 sent job file at 08:20:52.159 getting end using 'pjl job/eoj' at 08:20:52.159 code = 10024, 'waiting' at 08:20:53.099 end of job detected at 08:20:53.169 pagecounter 51821 after 1 attempts at 08:20:53.183 pagecounter 51821, pages 0 at 08:20:53.183 done at 08:20:53.183 pdf2ps invoked manually works fine (for all PDF files I tried), so it should be ok. As I am using the new AFPL Ghostscript version 7.3 the problem may be in the call of pdf2ps in ifhp (may be a change in the pdf2ps options or gs options in pdf2ps?). Any suggestions? Thies Meincke ++---+ | Thies Meincke | Tel. : +49/(0)40/42838-6355 | | Universitaet Hamburg | Fax : +49/(0)40/42838-6270 | | Regionales Rechenzentrum | E-mail: [EMAIL PROTECTED]| | Schlueterstr. 70 | URL : http://www.rrz.uni-hamburg.de/| | 20146 Hamburg | RRZ/Personal/TMeincke.html| | Germany| | ++---+ 1. Set up a shell environment and then rip out ALL of the environment options. Set path to: /bin:/usr/bin:/usr/local/bin 2. get a PDF file and invoke it with EXACTLY the same options as you see in the command. 3. Curse and swear when you find out that it does not work. 4. Read the man page, find the right combination of stuff. 5. save the current /etc/ifhp.conf file as /etc/ifhp.conf.orig 6. Edit the /etc/ifhp.conf file, set the pdf_converter option to the right value. 7. Print a job and see if it works Patrick - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: The various releases
Hello Patrick, At least for me (because I have to package it for Debian) it would be great to know when a version of LPRng is released. I only knew 3.8.5 was released because I saw it on the website. A few days ago I saw you talking about 3.8.6 but that isn't on the website. All I need is a simple email, like echo Hello World | mailx -s 'LPRng 3.8.6 Released' [EMAIL PROTECTED] that would do it, then i know it is downloaidng and packaging time and that I haven't downloaded a test package. Ideally having the last changelog block is better because I can prioritise it better, but that will do. Thanks - Craig -- Craig Small VK2XLZ GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED] MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED] - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -