From owner-freebsd-questions@freebsd.org Fri Jul 2 19:40:13 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3401767197F for ; Fri, 2 Jul 2021 19:40:13 +0000 (UTC) (envelope-from hans@beastielabs.net) Received: from lb3-smtp-cloud8.xs4all.net (lb3-smtp-cloud8.xs4all.net [194.109.24.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.xs4all.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GGlmD0xbZz3jgv for ; Fri, 2 Jul 2021 19:40:11 +0000 (UTC) (envelope-from hans@beastielabs.net) Received: from cust-b45927b3 ([IPv6:fc0c:c11f:1a16:eab0:99de:cb24:256:b84d]) by smtp-cloud8.xs4all.net with ESMTPSA id zP1DlCH3g48ZvzP1FlN2CR; Fri, 02 Jul 2021 21:40:09 +0200 Subject: Re: LPD with issue To: Jacques Foucry References: Cc: FreeBSD Questions Mailing List From: Hans Ottevanger Message-ID: Date: Fri, 2 Jul 2021 21:40:07 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfNVwW1wN7HEvUG/z/T8HnqwAl1lHT6eNqWvYIGzBJ6hgJibQh3Q86R3QrSzR4kDU2ZcTRFLE2TSjvfsf1LHAliUk+S0LwJRReEbhdHzx/wDgOyOJ3U4E WdqR5iTn3DcddNQFKQA/0HYNZ8NeeK474kAUFWrBgPR5JhWqgexnPqLP+zTDNQmpENWMjSdZ4I4A859wB2aHTHnuoyNEbqM0n4PIhaHXAtHGrK1vafwhqCKl qaCocOebgA4jOtJ8eolu9lCthd9FV0KXHS7r5eLXmBk= X-Rspamd-Queue-Id: 4GGlmD0xbZz3jgv X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of hans@beastielabs.net has no SPF policy when checking 194.109.24.29) smtp.mailfrom=hans@beastielabs.net X-Spamd-Result: default: False [-2.18 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[194.109.24.29:from]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.980]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[194.109.24.29:from]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[194.109.24.29:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[192.168.1.176:email]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[beastielabs.net]; AUTH_NA(1.00)[]; SPAMHAUS_ZRD(0.00)[194.109.24.29:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DBL_PROHIBIT(0.00)[192.168.1.176:email]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; R_DKIM_NA(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2021 19:40:13 -0000 On 7/2/21 11:13 AM, Jacques Foucry wrote: > Hello folks, > > Last yesr or may be before I ask you about LPD configuration. > > Since a time I can't remember Ƣ have an issue. Before printing the document I > wat there is a page with garbage "jjj aaaa cccc qqq q u u eeee sss". > > This is annoying to use a page for nothing. > > My /etc/printcap: > > > lp:\ > :lp=9100@192.168.1.176:\ > :sh=false:\ > :sb=false:\ > :mx#0:\ > :sd=/var/spool/output/lpd:\ > :if=/usr/local/libexec/psif:\ > :lf=/var/log/lpd-errs: > > lpc status all  ✔ > lp: > queuing is enabled > printing is enabled > no entries in spool area > printer idle > > > The printer is a Lexmarks MB2236 > > I made a blog post about how I installed the printer (look at the `lpr` part). > With those instructions the printer worked perfectlly. > I think I have the same configuration, but some thing goes wrong. > > If somebody can https://docs.freebsd.org/en/books/handbook/printing/#printing-lpdsee where the issue is, I will be happy to discuss with. > > Thanks for reading me. > sb ("short header") and sh ("suppress header") are both booleans that are false by default. They need to be specified without an assignment if you want them to be true. In your case I would skip the sb flag altogether and specify the sh flag as true, like this: :sh: \ See also section 9.5 of the handbook: https://docs.freebsd.org/en/books/handbook/printing/#printing-lpd Kind regards, Hans Ottevanger hans@beastielabs.net www.beastielabs.net