• Re: lpr prints landscape by default

    From Haines Brown@3:633/10 to All on Saturday, March 21, 2026 11:00:01
    On Fri, Mar 20, 2026 at 10:24:12AM -0500, David Wright wrote:
    On Wed 18 Mar 2026 at 16:50:24 (-0400), Haines Brown wrote:
    In a new installation, when printing with lpr the output is
    landscape when it should be portrait.

    When CUPS prints its test page, it is normal (portrait)
    ...
    I tried:

    $ lpoptions -p HP_LaserJet_Pro_M428f_M429f_8264A8 -o
    orientation-requested=portrait


    What effect does it have in the configuration file. Indeed, what are
    the contents?

    Rather long, but you asked. I leave out commented lines.

    # nano /etc/cu;s/cupsd.conf
    LogLevel warn
    PageLogFormat
    MaxLogSize 0
    ErrorPolicy retry-job
    Listen localhost:631
    Listen /run/cups/cups.sock
    Listen 0.0.0.0:631
    Browsing Yes
    BrowseLocalProtocols dnssd
    DefaultAuthType Basic
    WebInterface Yes
    IdleExitTimeout 60
    <Location />
    Order allow,deny
    Allow @ALL
    </Location>
    <Location /admin>
    Order allow,deny
    </Location>
    <Location /admin/conf>
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    </Location>
    <Location /admin/log>
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    </Location>
    <Policy default>
    JobPrivateAccess default
    JobPrivateValues default
    SubscriptionPrivateAccess default
    SubscriptionPrivateValues default
    <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
    </Limit>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Prin>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    <Policy authenticated
    JobPrivateAccess default
    JobPrivateValues default
    SubscriptionPrivateAccess default
    SubscriptionPrivateValues default
    <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
    </Limit>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Prin>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>

    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    <Policy kerberos>
    JobPrivateAccess default
    JobPrivateValues default
    SubscriptionPrivateAccess default
    SubscriptionPrivateValues default
    <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Negotiate
    Order deny,allow
    </Limit>

    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set>
    AuthType Negotiate
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Prin>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Negotiate
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>

    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>


    And do you have any systemwide configuration set?

    no, If I understand the question correctly.


    If nothing else works, perhaps read:


    https://wiki.debian.org/CUPSPdfToPdf

    I did so. Among other things. these commands on a simple file are
    both printed landscape.

    $ lpr -o landscape test.txt
    $ lpr -o portrait test.txt

    My ppp directory hold three directories:

    1) One of which, rwxrwsr-t 2 root lpadmin 4096 Sep 7 2025 custom, is empty,

    2) /hplip/HP/ holds

    HP-Fax2-hpcups.ppd.gz HP-Fax4-hpcups.ppd.gz
    HP-Fax3-hpcups.ppd.gz HP-Fax-hpcups.ppd.gz

    3) a cupsfilters directory that holds five ppd files. None specifically for my printer
    but thhre is a Generic-PDF_Printer-PDF.ppd and so I look at it.
    Every line is preceeded by an asterisk. It that a comment symbol?

    Stanzas sometimes start * ..." PickOne.
    Dos this mean remove the astserisk to make a line active?
    If do, then the file has no active lines.

    One line is: *LandscapeOrientation, : Plus90
    This this mean 90? from horizonaal? Does this line need its
    asterisk rmoved for portait orientation?

    --

    Haines Brown

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From CGS@3:633/10 to All on Saturday, March 21, 2026 16:00:01
    On 2026-03-20, Haines Brown <haines@histomat.net> wrote:
    On Fri, Mar 20, 2026 at 03:46:30PM -0000, CGS wrote:
    On 2026-03-20, Haines Brown <haines@histomat.net> wrote:
    On Thu, Mar 19, 2026 at 01:43:40PM -0000, CGS wrote:
    On 2026-03-18, Haines Brown <haines@histomat.net> wrote:
    In a new installation, when printing with lpr the output is
    landscape when it should be portrait.

    When CUPS prints its test page, it is normal (portrait)

    What about

    printf "Hello\n" | lpr

    The orientation might be informative.

    The orientation is landscape

    Is this driverless printing or is there a ppd file? You said '-o orientation-requested=3' is ignored? The thing is to verify whether or
    not that orientation request is being passed on to CUPS or not in order
    to narrow things down.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From nwe@3:633/10 to All on Sunday, March 22, 2026 01:20:01
    On 3/18/26 3:50 PM, Haines Brown wrote:

    In a new installation, when printing with lpr the output is
    landscape when it should be portrait.

    When CUPS prints its test page, it is normal (portrait)

    The -o option works

    $ lpr -o orientation-requested=3 <file> prints portrait
    $ lpr -o orientation-requested=4 <file> prints landscape

    When I print a file opened with emacs by means of Ctl-p, the
    result is landscape when it should be portrait.

    The operating system is a fresh install and so drivers˙are up to
    date.

    I do:

    $ lpoptions -p HP_LaserJet_Pro_M428f_M429f_8264A8 -o
    orientation-requested=portrait

    This has no effect on the operation of lpr


    This is interesting. I performed some quick testing:

    My printer is an HP_LaserJet_MFP_M426fdn. My Debian Trixie system is
    printing via CUPS, my print driver according to http://localhost:631/printers/HP_LaserJet_MFP_M426fdn_E35487 is "driverless"

    lpr myfile.pdf
    prints portrait as expected

    echo "Hi, there" | lpr
    prints landscape. why?

    echo "Hi" | lpr -o orientation-requested=4
    and
    echo "Hi" | lpr -o orientation-requested=5
    still print landscape

    echo "HI" | lpr -o orientation-requested=3
    prints portrait

    echo "HI" | lpr -o orientation-requested=6
    prints reverse portrait (rotated 180 degrees)

    -- nwe

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From nwe@3:633/10 to All on Sunday, March 22, 2026 01:40:01

    On 3/21/26 7:16 PM, nwe wrote:
    lpr myfile.pdf
    prints portrait as expected

    echo "Hi, there" | lpr
    prints landscape. why?

    So, now I see simply it is printing landscape by default. I thought I'd
    fix by trying to rotate 90 degrees. But apparently lpr -o orientation-requested=4 does not mean "whatever you've got, rotate it 90 degrees." instead it is saying: "print landscape". Which it is already
    doing. So no change.

    lpr -o orientation-requested=3 tells it to print portrait.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From didier gaumet@3:633/10 to All on Sunday, March 22, 2026 11:10:01
    Le 22/03/2026 … 01:16, nwe a ‚crit˙:

    This is interesting. I performed some quick testing:

    My printer is an HP_LaserJet_MFP_M426fdn. My Debian Trixie system is printing via CUPS, my print driver according to http://localhost:631/ printers/HP_LaserJet_MFP_M426fdn_E35487 is "driverless"

    lpr myfile.pdf
    prints portrait as expected

    echo "Hi, there" | lpr
    prints landscape. why?
    [...]

    One of the possible reasons is the use of the wrong printing subsystem:
    the lpr command is not CUPS native command for printing (that's the role
    of the lp command) but is provided by the cups-bsd package as a
    compatibility layer with the old Unix lpr printing susbsystem.

    if the lpr or lprng package is installed on a system instead of the
    cups-bsd package, the setup used for a printer is the one from the lpr
    or lprng printing subsystem, not the one from CUPS printing subsystem.

    If the lp command prints in portrait mode, that means either lpr or
    lprng package is installed and must be purged, and cups-bsd package is
    to be installed.

    And, yes, CUPS and lpr or lprng are not conflicting pacages. cups-bsd
    and lpr or lprng are conflicting packages.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Haines Brown@3:633/10 to All on Sunday, March 22, 2026 15:30:02
    On Sat, Mar 21, 2026 at 02:50:17PM -0000, CGS wrote:

    Is this driverless printing or is there a ppd file?

    Driverless

    You said '-o
    orientation-requested=3' is ignored? The thing is to verify whether or
    not that orientation request is being passed on to CUPS or not in order
    to narrow things down.

    How can that be verified? It is logged somewhere?


    --

    Haines Brown

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From CGS@3:633/10 to All on Sunday, March 22, 2026 15:50:02
    On 2026-03-22, Haines Brown <haines@histomat.net> wrote:
    On Sat, Mar 21, 2026 at 02:50:17PM -0000, CGS wrote:

    Is this driverless printing or is there a ppd file?

    Driverless

    You said '-o
    orientation-requested=3' is ignored? The thing is to verify whether or
    not that orientation request is being passed on to CUPS or not in order
    to narrow things down.

    How can that be verified? It is logged somewhere?


    lpr -o orientation-requested=3 file.txt
    lpstat -W all
    # grab job ID, then:
    sudo strings /var/spool/cups/cN | grep -i orient

    I think that should work.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Haines Brown@3:633/10 to All on Sunday, March 22, 2026 15:50:02
    On Sat, Mar 21, 2026 at 07:16:00PM -0500, nwe wrote:
    On 3/18/26 3:50 PM, Haines Brown wrote:

    In a new installation, when printing with lpr the output is
    landscape when it should be portrait.

    When CUPS prints its test page, it is normal (portrait)

    The -o option works

    $ lpr -o orientation-requested=3 <file> prints portrait
    $ lpr -o orientation-requested=4 <file> prints landscape

    When I print a file opened with emacs by means of Ctl-p, the
    result is landscape when it should be portrait.

    The operating system is a fresh install and so drivers?are up to
    date.

    I do:

    $ lpoptions -p HP_LaserJet_Pro_M428f_M429f_8264A8 -o
    orientation-requested=portrait

    This has no effect on the operation of lpr


    This is interesting. I performed some quick testing:

    My printer is an HP_LaserJet_MFP_M426fdn. My Debian Trixie system is
    printing via CUPS, my print driver according to http://localhost:631/printers/HP_LaserJet_MFP_M426fdn_E35487 is "driverless"

    lpr myfile.pdf
    prints portrait as expected

    Here as well

    echo "Hi, there" | lpr
    prints landscape. why?

    Prints landscape here as well.

    echo "Hi" | lpr -o orientation-requested=4
    and
    echo "Hi" | lpr -o orientation-requested=5
    still print landscape

    Both commands are landscape here as well.

    echo "HI" | lpr -o orientation-requested=3
    prints portrait

    Likewise.

    I also find that $ lpr -o orientation-requested=3 test.txt prints
    portrait. The value=3 not in man lpr

    echo "HI" | lpr -o orientation-requested=6
    prints reverse portrait (rotated 180 degrees)

    Someone wondered whether lpr commands get to CUPS. Since CUPS
    test page prints properly, that is a good quewtion. But your
    result suggest this not the problem.

    --

    Haines Brown

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From CGS@3:633/10 to All on Sunday, March 22, 2026 16:10:02
    On 2026-03-22, CGS <etphonehomefrance@gmail.com> wrote:
    On 2026-03-22, Haines Brown <haines@histomat.net> wrote:
    On Sat, Mar 21, 2026 at 02:50:17PM -0000, CGS wrote:

    Is this driverless printing or is there a ppd file?

    Driverless

    You said '-o
    orientation-requested=3' is ignored? The thing is to verify whether or
    not that orientation request is being passed on to CUPS or not in order
    to narrow things down.

    How can that be verified? It is logged somewhere?


    lpr -o orientation-requested=3 file.txt
    lpstat -W all
    # grab job ID, then:
    sudo strings /var/spool/cups/cN | grep -i orient

    I think that should work.


    Anyway, we now know that orientation-requested=3 works. So make it the permanent default.

    The flag is documented in the RFC.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Haines Brown@3:633/10 to All on Sunday, March 22, 2026 19:00:01
    On Sun, Mar 22, 2026 at 02:59:30PM -0000, CGS wrote:
    On 2026-03-22, CGS <etphonehomefrance@gmail.com> wrote:
    On 2026-03-22, Haines Brown <haines@histomat.net> wrote:
    On Sat, Mar 21, 2026 at 02:50:17PM -0000, CGS wrote:

    Is this driverless printing or is there a ppd file?

    Driverless

    You said '-o
    orientation-requested=3' is ignored? The thing is to verify whether or >>> not that orientation request is being passed on to CUPS or not in order >>> to narrow things down.

    How can that be verified? It is logged somewhere?


    lpr -o orientation-requested=3 file.txt
    lpstat -W all
    # grab job ID, then:
    sudo strings /var/spool/cups/cN | grep -i orient

    I think that should work.

    When I ran lpstat -W all I hot this:

    HP_LaserJet_Pro_M428f_M429f_8264A8-37 haines 1024 Sun 22 Mar 2026 06:22:14 AM EDT
    HP_LaserJet_Pro_M428f_M429f_8264A8-38 haines 46080 Sun 22 Mar 2026 08:01:04 AM EDT
    HP_LaserJet_Pro_M428f_M429f_8264A8-39 haines 395264 Sun 22 Mar 2026 10:26:01 AM EDT
    HP_LaserJet_Pro_M428f_M429f_8264A8-40 haines 1024 Sun 22 Mar 2026 10:27:59 AM EDT
    HP_LaserJet_Pro_M428f_M429f_8264A8-41 haines 1024 Sun 22 Mar 2026 10:29:35 AM EDT
    HP_LaserJet_Pro_M428f_M429f_8264A8-42 haines 1024 Sun 22 Mar 2026 10:30:07 AM EDT
    HP_LaserJet_Pro_M428f_M429f_8264A8-43 haines 1024 Sun 22 Mar 2026 10:31:26 AM EDT
    HP_LaserJet_Pro_M428f_M429f_8264A8-44 haines 0 Sun 22 Mar 2026 10:33:49 AM EDT
    HP_LaserJet_Pro_M428f_M429f_8264A8-45 haines 1024 Sun 22 Mar 2026 10:34:18 AM EDT
    HP_LaserJet_Pro_M428f_M429f_8264A8-46 haines 1024 Sun 22 Mar 2026 01:40:15 PM EDT

    I don't see any IDs here.

    # ls /var/spool/cups
    c00037 c00040 c00043 c00046 d00039-001 d00042-001 d00046-001
    c00038 c00041 c00044 d00037-001 d00040-001 d00043-001 tmp
    c00039 c00042 c00045 d00038-001 d00041-001 d00045-001

    Looks like c00046 was tbe last job sent to the printer.

    Anyway, we now know that orientation-requested=3 works. So make it the permanent default.

    The flag is documented in the RFC.

    Where is the RFC?


    --

    Haines Brown

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From CGS@3:633/10 to All on Sunday, March 22, 2026 19:40:01
    On 2026-03-22, Haines Brown <haines@histomat.net> wrote:

    Anyway, we now know that orientation-requested=3 works. So make it the
    permanent default.

    The flag is documented in the RFC.

    Where is the RFC?


    On the Internets.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From nwe@3:633/10 to All on Monday, March 23, 2026 04:50:01
    On 3/22/26 5:08 AM, didier gaumet wrote:

    Le 22/03/2026 … 01:16, nwe a ‚crit˙:

    This is interesting. I performed some quick testing:

    My printer is an HP_LaserJet_MFP_M426fdn. My Debian Trixie system is
    printing via CUPS, my print driver according to http://localhost:631/
    printers/HP_LaserJet_MFP_M426fdn_E35487 is "driverless"

    lpr myfile.pdf
    prints portrait as expected

    echo "Hi, there" | lpr
    prints landscape. why?
    [...]

    One of the possible reasons is the use of the wrong printing
    subsystem: the lpr command is not CUPS native command for printing
    (that's the role of the lp command) but is provided by the cups-bsd
    package as a compatibility layer with the old Unix lpr printing
    susbsystem.

    if the lpr or lprng package is installed on a system instead of the
    cups-bsd package, the setup used for a printer is the one from the lpr
    or lprng printing subsystem, not the one from CUPS printing subsystem.

    If the lp command prints in portrait mode, that means either lpr or
    lprng package is installed and must be purged, and cups-bsd package is
    to be installed.

    And, yes, CUPS and lpr or lprng are not conflicting pacages. cups-bsd
    and lpr or lprng are conflicting packages.

    Ah, I did not mention, I ran into all that while doing my testing.

    First I tested lp and got identical behavior as with lpr later. Next I
    noticed OP says lpr. I didn't have lpr so I apt install lpr.

    That did not print at all for me. With some diagnostics I learned I need cups-bsd instead of lpr package. So I
    # apt purge lpr
    # apt install cups-bsd
    After which I performed the tests I reported above.

    I did not yet investigate, but at this point I suspect I have some kind
    of auto-rotation going on if I do not specify which orientation to print.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Haines Brown@3:633/10 to All on Monday, March 23, 2026 12:20:01
    On Sun, Mar 22, 2026 at 10:57:55PM -0500, David Wright wrote:


    David, I misspoke. The first page of the mixed.pdf did print. I
    found it under my chair. In short, lpr on mixed.pdf printed just
    fine.

    --

    Haines Brown

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Haines Brown@3:633/10 to All on Monday, March 23, 2026 12:20:01
    On Sun, Mar 22, 2026 at 11:01:16PM -0500, David Wright wrote:

    I think the 1024 sizes above merely reflect the pipe's buffer size:
    the corresponding d file will be the true size.

    CUPS is based on a PDF workflow, so the first step with text is to
    convert it to a PDF. I think that's the filter which is producing
    landscape pages, and I think that the second filter, pdftopdf, is autorotating such pages before it gets sent to the printer by the
    final filter.

    I'm assuming that when you print an ordinary portrait PDF, you get
    a normal-looking portrait document.

    No, when I print a pdf, the output is lansscape.

    Where is the RFC?

    $ wget https://www.ietf.org/rfc/rfc8011.txt
    at page 122.

    All is does it to define the fuction.

    Before you make a portrait option permanent, I would find out what
    happens with documents that have mixed orientation from page to page. (There's a "mixed.pdf" document available on the wiki page referenced earlier.)

    Interesting, when I printed it, the first (portait) page simply
    not printed. The following landscape pages printed correctly
    (landscape)

    I could use lpoptions to make portrait default, but an uncertain
    of its consequences.


    --

    Haines Brown

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Haines Brown@3:633/10 to All on Monday, March 23, 2026 21:00:01
    On Mon, Mar 23, 2026 at 12:43:39PM -0500, David Wright wrote:

    I'm assuming that when you print an ordinary portrait PDF, you get
    a normal-looking portrait document.

    No, when I print a pdf, the output is lansscape.


    "Just fine" seems to contradict the statement made above:

    No, when I print a pdf, the output is lansscape.


    David, there is a contradition. Printing a PDF with lpr prints as
    itt should: portrait.

    --

    Haines Brown

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Haines Brown@3:633/10 to All on Thursday, March 26, 2026 15:50:01
    On Sun, Mar 22, 2026 at 10:40:30PM -0500, nwe wrote:
    On 3/22/26 5:08 AM, didier gaumet wrote:

    Le 22/03/2026 ? 01:16, nwe a ?crit?:

    This is interesting. I performed some quick testing:

    My printer is an HP_LaserJet_MFP_M426fdn. My Debian Trixie system is printing via CUPS, my print driver according to
    http://localhost:631/ printers/HP_LaserJet_MFP_M426fdn_E35487 is "driverless"

    lpr myfile.pdf
    prints portrait as expected

    echo "Hi, there" | lpr
    prints landscape. why?
    [...]

    One of the possible reasons is the use of the wrong printing subsystem:
    the lpr command is not CUPS native command for printing (that's the role
    of the lp command) but is provided by the cups-bsd package as a compatibility layer with the old Unix lpr printing susbsystem.

    if the lpr or lprng package is installed on a system instead of the cups-bsd package, the setup used for a printer is the one from the lpr
    or lprng printing subsystem, not the one from CUPS printing subsystem.

    If the lp command prints in portrait mode, that means either lpr or
    lprng package is installed and must be purged, and cups-bsd package is
    to be installed.

    And, yes, CUPS and lpr or lprng are not conflicting packages. cups-bsd
    and lpr or lprng are conflicting packages.

    Ah, I did not mention, I ran into all that while doing my testing.

    First I tested lp and got identical behavior as with lpr later. Next I noticed OP says lpr. I didn't have lpr so I apt install lpr.

    That did not print at all for me. With some diagnostics I learned I need cups-bsd instead of lpr package. So I
    # apt purge lpr
    # apt install cups-bsd
    After which I performed the tests I reported above.

    I did not yet investigate, but at this point I suspect I have some kind of auto-rotation going on if I do not specify which orientation to print.

    I just installed the operating system on two other disks. No
    problem printing with lpr on either of them. Purging and
    reinstalling cups-bsd did not help. For my convenience, I now use
    a2pr to print plaint text files, for it prints as it should



    --

    Haines Brown

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From CGS@3:633/10 to All on Thursday, March 26, 2026 16:00:01
    On 2026-03-26, Haines Brown <haines@histomat.net> wrote:

    I just installed the operating system on two other disks. No
    problem printing with lpr on either of them. Purging and
    reinstalling cups-bsd did not help. For my convenience, I now use
    a2pr to print plaint text files, for it prints as it should

    What is a2pr? Can't seem to find it.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Haines Brown@3:633/10 to All on Thursday, March 26, 2026 16:30:01
    On Thu, Mar 26, 2026 at 02:51:30PM -0000, CGS wrote:
    On 2026-03-26, Haines Brown <haines@histomat.net> wrote:

    I just installed the operating system on two other disks. No
    problem printing with lpr on either of them. Purging and
    reinstalling cups-bsd did not help. For my convenience, I now use
    a2pr to print plaint text files, for it prints as it should

    What is a2pr? Can't seem to find it.

    With my usual inepitude: a2ps

    --

    Haines Brown

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)