Re: [gentoo-user] Re: The hopeless futility of printing.

2024-01-29 Thread Michael
On Monday, 29 January 2024 22:42:12 GMT Grant Edwards wrote:
> On 2024-01-29, Michael  wrote:
> > On Monday, 29 January 2024 18:19:19 GMT Alan Grimes wrote:
> >> It's a LaserJet Pro M453-4.
> > 
> > You shouldn't need hplip drivers and what not, IPP Everywhere ought to
> > allow driverless CUPS to allow you to print:
> > 
> > https://www.pwg.org/printers/
> 
> Does anybody have any experience with using IPP everywhere for
> driverless printing with a USB attached printer?  (e.g. LasterJet
> 1320)?
> 
> Yea, I know, it works as is with the PCL driver, so don't futz with it...
> 
> --
> Grant

Quite right, if it ain't broken ...  ;-)

The Internet Printing Protocol (IPP) is a network protocol, so it won't work 
over USB.  If you have a driver which works then your printing needs are 
addressed, but in case you want to try something different this link may be 
useful:

https://www2.alfter.us/2015/03/23/gentoo-linux-hplip-and-the-hp-laserjet-1320-dont-mix/


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: The hopeless futility of printing.

2024-01-29 Thread Dale
Grant Edwards wrote:
> On 2024-01-29, Michael  wrote:
>> On Monday, 29 January 2024 18:19:19 GMT Alan Grimes wrote:
>>
>>> It's a LaserJet Pro M453-4.
>> You shouldn't need hplip drivers and what not, IPP Everywhere ought to allow 
>> driverless CUPS to allow you to print:
>>
>> https://www.pwg.org/printers/
> Does anybody have any experience with using IPP everywhere for
> driverless printing with a USB attached printer?  (e.g. LasterJet
> 1320)?
>
> Yea, I know, it works as is with the PCL driver, so don't futz with it...
>
> --
> Grant

Some may recall me buying a Lexmark C2325DW laser printer a few years
ago.  I use the IPP to setup my printer, over wireless I might add, and
it works fine.  I've printed text, images and combinations of both just
fine.  It always looks great.  I do this within CUPS.  This is what it
shows when when I pull up the printer info.


Description:    Lexmark-2325
Driver:    Lexmark C2300 Series (color, 2-sided printing)
Connection:    ipp://10.0.0.3/
Defaults:    job-sheets=none, none media=na_letter_8.5x11in
sides=two-sided-long-edge


I set this up ages ago.  I went online and found the .ppd file.  During
the setup, I just pointed it to the file.  So far, this has worked
well.  On occasion, when CUPS updates, I have to set it up again. 
Usually, I delete the thing and just start over if it fails to print. 
After that, it works for a good long while, even tho I don't print as
much as I used to.  Those toner cartridges that claim 3,000 pages are
just wishing.  Most stuff I print are regular text.  Sometimes a black
and white circuit diagram.  Still, if I get 1,000 pages or more, I'm
doing good.  I don't think I've ever got 2,000 pages from one.  All that
said, the printer is a OK printer. 

I might add, using IPP was the only way I could get it to work.  None of
the other options worked.  Could be me tho.  Y'all know how I am.  :/  ROFL

Hope that helps. 

Dale

:-)  :-) 



[gentoo-user] Re: The hopeless futility of printing.

2024-01-29 Thread Grant Edwards
On 2024-01-29, Michael  wrote:
> On Monday, 29 January 2024 18:19:19 GMT Alan Grimes wrote:
>
>> It's a LaserJet Pro M453-4.
>
> You shouldn't need hplip drivers and what not, IPP Everywhere ought to allow 
> driverless CUPS to allow you to print:
>
> https://www.pwg.org/printers/

Does anybody have any experience with using IPP everywhere for
driverless printing with a USB attached printer?  (e.g. LasterJet
1320)?

Yea, I know, it works as is with the PCL driver, so don't futz with it...

--
Grant




Re: [gentoo-user] The hopeless futility of printing.

2024-01-29 Thread Wols Lists

On 29/01/2024 18:19, Alan Grimes wrote:

k...@aspodata.se wrote:

>> Absolutely suprimo HP laser jet network printer.
You didn't write what model, hard to help you then.


It's a LaserJet Pro M453-4.


I have absolutely no trouble with HP. But I always used hplip. I notice 
though it's not installed on my current server/workstation ??? That 
prints fine.


My printer's an M477 - with scanner and everything - but that's 
configured as "scan to network" so it just opens a samba share and dumps 
the scan there.


Under "make and model", cups says "HP Color LaserJet Series PCL 6 CUPS".

Cheers,
Wol



Re: [gentoo-user] The hopeless futility of printing.

2024-01-29 Thread Michael
On Monday, 29 January 2024 18:19:19 GMT Alan Grimes wrote:

> It's a LaserJet Pro M453-4.

You shouldn't need hplip drivers and what not, IPP Everywhere ought to allow 
driverless CUPS to allow you to print:

https://www.pwg.org/printers/


> When I was shopping for it, there was a $350 model with wireless, and a
> $450 model without wireless, I was like OMG, i DON'T HAVE TO WORRY ABOUT
> WIRELESS??? SHUT UP AND TAKE MY MONEY!!!

Aw, the drama of it all!  o_O


> Apparently there is a stack of about twenty baroque, fiddly, obscure,
> and broken demons and libraries that all must work together perfectly to
> get the darn thing to work. Each of those packages are advertised as
> being the epitome of convenience and plug-and-play perfection except
> they don't work, at all...  It's well past the point of being pointful
> to mess with it. Even if I got it working today, It would be broken
> tomorrow in such a way that I'd have no hope of diagnosing or fixing it. =|

Read these pages to get to grips with the basics for CUPS:

https://wiki.gentoo.org/wiki/Printing

(No need for USE="zeroconf" if you prefer static IP addresses in your LAN)

Then check this page to try out the IPP everywhere driver:

https://wiki.gentoo.org/wiki/Driverless_printing

Finally, if IPP Everywhere fails to connect and print, try the old hplip 
driver:

https://wiki.gentoo.org/wiki/HPLIP

HTH.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] The hopeless futility of printing.

2024-01-29 Thread Alan Grimes

k...@aspodata.se wrote:

>> Absolutely suprimo HP laser jet network printer.
You didn't write what model, hard to help you then.


It's a LaserJet Pro M453-4.

When I was shopping for it, there was a $350 model with wireless, and a 
$450 model without wireless, I was like OMG, i DON'T HAVE TO WORRY ABOUT 
WIRELESS??? SHUT UP AND TAKE MY MONEY!!!


Hopefully that $100 will send the message that I REALLY don't want 
wireless in my printer.


Apparently there is a stack of about twenty baroque, fiddly, obscure, 
and broken demons and libraries that all must work together perfectly to 
get the darn thing to work. Each of those packages are advertised as 
being the epitome of convenience and plug-and-play perfection except 
they don't work, at all...  It's well past the point of being pointful 
to mess with it. Even if I got it working today, It would be broken 
tomorrow in such a way that I'd have no hope of diagnosing or fixing it. =|


--
You can't out-crazy a Democrat.
#EggCrisis  #BlackWinter
White is the new Kulak.
Powers are not rights.




Re: [gentoo-user] Unable to locate printer

2024-01-29 Thread Thelma

On 1/29/24 04:23, Michael wrote:

On Sunday, 28 January 2024 19:17:06 GMT Thelma wrote:

On 1/28/24 11:46, Michael wrote:

On Sunday, 28 January 2024 17:43:22 GMT Thelma wrote:

Systems show Avahi-daemon status: started.
but it I don't know how it helps me find a local printer.

I'm puzzled as printers were working last week without any problems.
I did not do any update or modification to the system but all of a sudden
they stop working "Unable to locate printer"

The solution was to change printer setting:

lpd://BRN30055C898DF9/BINARY_P1
lpd://brother-5370/BINARY_P1

with:
lpd://printer-IP-address/BINARY_P1
lpd://printer-IP-address/BINARY_P1

How to set  Avahi-daemon to start automatically deleted printer?


I don't think avahi is needed unless you are printing from different
temporary clients and you want the printers to be automatically
discovered on the network.  If this is not your use case, you could try
something like this:

lpadmin -p 3170-color -E -v ipp:///BINARY_P1 -m
everywhere

Which will use the CUPS driverless method:

https://wiki.gentoo.org/wiki/Driverless_printing


These instruction on Gengoo Driveless printing are not clear.
I tried to follow this example and run:

lpadmin -p foobar -E -v ipp://10.0.0.106/ipp -m everywhere

did not create file: foobar.ppd in /etc/cups/ppd/

ls -al /etc/cups/ppd/
-rw-r- 1 root lp   26945 Nov 30  2020 3170-color.ppd
-rw-r- 1 root lp   26929 Nov 30  2020 3170-color.ppd.O
-rw-r- 1 root lp   16460 Jan 27 13:48 5370.ppd
-rw-r- 1 root lp   25537 Jan 27 13:46 5370.ppd.O
-rw-r--r-- 1 root root 0 Dec 13 17:47 .keep_net-print_cups-0
-rw-r- 1 root lp   16476 Apr  7  2022 L6200.ppd
-rw-r- 1 root lp   16476 Apr  7  2022 L6200.ppd.O


Did you run the lpadmin command as root?



But it did create foobar local raw printer name foobar, and when I tried to
print to it, it spit out strange characters.


Where did you find this local raw printer?


locahost:631

When I select printer it show what driver it using.



What does 'lpstat -t' run as your plain user show?


as user:  $ lpstat -t
scheduler is running
no system default destination
device for 3170-color: lpd://10.0.0.105/BINARY_P1
device for 3170-color2: ipp://10.0.0.105/BINARY_P1
device for 5370: lpd://10.0.0.106/BINARY_P1
device for 5370-bw: ipp://10.0.0.106/ipp/print
3170-color accepting requests since Sat 27 Jan 2024 06:12:01 PM MST
3170-color2 accepting requests since Sun 28 Jan 2024 12:07:59 PM MST
5370 accepting requests since Mon 29 Jan 2024 08:55:47 AM MST
5370-bw accepting requests since Mon 29 Jan 2024 10:40:51 AM MST
L6200 accepting requests since Thu 07 Apr 2022 12:24:10 PM MDT
printer 3170-color is idle.  enabled since Sat 27 Jan 2024 06:12:01 PM MST
printer 3170-color2 is idle.  enabled since Sun 28 Jan 2024 12:07:59 PM MST
printer 5370 is idle.  enabled since Mon 29 Jan 2024 08:55:47 AM MST
printer 5370-bw disabled since Mon 29 Jan 2024 10:40:51 AM MST -
The printer configuration is incorrect or the printer no longer exists.





I noticed you substitute after /ipp with
/BINARY_P1 This is not very clear in Gentoo Documentation

Trying it:
lpadmin -p 3170-color2 -E -v ipp://10.0.0.105/BINARY_P1 -m everywhere

It did not create any file name: 3170-color2.ppd ; but it did create entry
in printer entry  3170-color2 - local raw printer and printing to it works
OK.  Thank you!


You can try moving temporarily all .ppd files from /etc/cups/ppd/ and try
running the lpadmin command again.  Perhaps if it finds some ppd file already
in there with the same settings it won't create a new file.



Can you explain the  /ipp vs. /BINARY_P1


If you login into the printer's admin GUI with your browser and navigate to
Network, Services, you will see a list of service names.  You can try
configuring CUPS with each one at a time to see what works for you.


I'm using XFCE it doesn't have GUI setting for printers.  But I can login via 
http://localhost:631 to see the printers



Re: [gentoo-user] AMD microcode error?

2024-01-29 Thread Michael
On Monday, 29 January 2024 16:18:22 GMT Peter Humphrey wrote:
> On Sunday, 28 January 2024 17:39:56 GMT Michael wrote:
> > I'm not sure a microcode update has been released yet by AMD as a blob,
> > outside what they make available to MoBo OEMs within 'BIOS firmware'
> > updates. To find what's in the box use:
> > 
> > dmesg | grep -i 'family:'
> > 
> > Then check what CPU family and model microcodes the linux-firmware
> 
> contains:
> > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.gi
> > t/ tree/amd-ucode/README
> 
> No luck with those.

OK, this means there is no microcode to load via the linux-firmware releases 
(yet).


> > If you can't find your family and model in the above, then you could check
> > what firmware updates are available by the MoBo's OEM.  These would
> > include
> > microcode made directly available by AMD to the OEM.
> 
> That's ASRock X570 Taichi. Their pages suggest that they only acknowledge
> Windows 10 & 11.

Check the BIOS version in dmesg and compare it with the with the ASRock's AMD 
chipset image on the asrock.com website.  If the versions/dates are the same 
you have nothing more to do.  If the version on the website is more recent 
then you may want to flash the MoBo with it.

Download the zip archive on offer and unzip it, then store the new image on a 
USB stick which has been formatted with FAT32.  Some OEMs require you rename 
the firmware image file, it will say so on the website, or in a README within 
the zip archive.  Reboot and press [F2] during POST to get into the BIOS setup 
menu, then go to the Tools tab to flash it from the USB.

You may have to re-apply in the BIOS menu any changes you had previously made 
after the PC reboots, because restoring the settings from a backup file 
doesn't always work.


> I'll keep my eyes open for another glitch. Maybe the microcode isn't to
> blame at all, in which case I'd better not sleep on the job.

Well, updating the BIOS firmware with the latest version often contains 
patches for bugs and microcode patches for CPU vulnerabilities.  However, this 
does not mean it will address the MCE errors you were experiencing.



signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] downloading from cell phone to Gentoo : solved

2024-01-29 Thread Philip Webb
Thanks for all the advice offered recently.

The simple method which works is

  (1) enable 'fuse-fs' in kernel ;
  (2) re-merge Kio-extras with USE="mtp" ;
  (3) wake phone, plug in USB connection at both ends ;
  (4) on phone, tap 'allow' to access data ;
  (5) on Gentoo, Dolphin shows 'SAMSUNG_Android' under 'Devices' ;
  (6) goto 'Internal storage/DCIM/Camera' ;
  (7) view w Gwenview, which offers to save the photo as your choice.

This relies on KDE's internal use of Fuse, which simplifies actions.
The device appears as /dev/libmtp...
which is a symlink to /dev/bus/003/009 (or similar),
which is not a block device & can't be mounted via 'mount'.
KDE uses some version of Fuse to access it & offer its contents.

HTH others.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatcadotinterdotnet




Re: [gentoo-user] AMD microcode error?

2024-01-29 Thread Peter Humphrey
On Sunday, 28 January 2024 17:39:56 GMT Michael wrote:

> I'm not sure a microcode update has been released yet by AMD as a blob,
> outside what they make available to MoBo OEMs within 'BIOS firmware'
> updates. To find what's in the box use:
> 
> dmesg | grep -i 'family:'
> 
> Then check what CPU family and model microcodes the linux-firmware 
contains:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/
> tree/amd-ucode/README

No luck with those.

> If you can't find your family and model in the above, then you could check
> what firmware updates are available by the MoBo's OEM.  These would include
> microcode made directly available by AMD to the OEM.

That's ASRock X570 Taichi. Their pages suggest that they only acknowledge 
Windows 10 & 11.

I'll keep my eyes open for another glitch. Maybe the microcode isn't to blame 
at all, in which case I'd better not sleep on the job.

Thanks for the pointers.

-- 
Regards,
Peter.






Re: [gentoo-user] Unable to locate printer

2024-01-29 Thread Thelma

On 1/29/24 08:31, Michael wrote:

On Monday, 29 January 2024 14:43:07 GMT Thelma wrote:

On 1/29/24 05:16, Michael wrote:



I tried Without '-E' and still no ppd file in: /etc/cups/ppd/


OK, let's try a different syntax[1] to see if those pesky .ppd files will be
created:

lpadmin -p 3170-color2 -E -v ipp://10.0.0.105/ipp/print -m everywhere
lpadmin -p 5370-bw -E -v ipp://10.0.0.106/ipp/print -m everywhere

If they still fail to work with IPP-Everywhere, then I'm afraid you have to
use specific Brother drivers for these printers[2].

[1] https://www.cups.org/doc/network.html
[2] https://wiki.gentoo.org/wiki/Brother_networked_printer


Hm.., it didn't do anything. (and yes, I run them as root)

# lpadmin -p 5370-bw -E -v ipp://10.0.0.106/ipp/print -m everywhere
# ls -al /etc/cups/ppd/

-rw-r- 1 root lp   26945 Nov 30  2020 3170-color.ppd
-rw-r- 1 root lp   26929 Nov 30  2020 3170-color.ppd.O
-rw-r- 1 root lp   16460 Jan 27 13:48 5370.ppd
-rw-r- 1 root lp   25537 Jan 27 13:46 5370.ppd.O
-rw-r--r-- 1 root root 0 Jan 27 17:10 .keep_net-print_cups-0

The driver I'm using brother driver 5370.ppd
Driver: Brother BrGenML1 for CUPS (grayscale, 2-sided printing)
Connection: lpd://10.0.0.106/BINARY_P1

This one is working.



Re: [gentoo-user] Unable to locate printer

2024-01-29 Thread Michael
On Monday, 29 January 2024 14:43:07 GMT Thelma wrote:
> On 1/29/24 05:16, Michael wrote:

> I tried Without '-E' and still no ppd file in: /etc/cups/ppd/

OK, let's try a different syntax[1] to see if those pesky .ppd files will be 
created:

lpadmin -p 3170-color2 -E -v ipp://10.0.0.105/ipp/print -m everywhere
lpadmin -p 5370-bw -E -v ipp://10.0.0.106/ipp/print -m everywhere

If they still fail to work with IPP-Everywhere, then I'm afraid you have to 
use specific Brother drivers for these printers[2].

[1] https://www.cups.org/doc/network.html
[2] https://wiki.gentoo.org/wiki/Brother_networked_printer


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Unable to locate printer

2024-01-29 Thread Thelma

On 1/29/24 05:16, Michael wrote:

On Monday, 29 January 2024 02:53:27 GMT Thelma wrote:

On 1/28/24 12:17, Thelma wrote:

Trying it:
lpadmin -p 3170-color2 -E -v ipp://10.0.0.105/BINARY_P1 -m everywhere


As you suggested I tried:
lpadmin -p 5370-bw -E -v ipp://10.0.0.106/BINARY_P1 -m everywhere

It crated printer entry, but not ppd file in: /etc/cups/ppd/


Try to remove the option '-E' above to see if it creates a ppd file this time.
If it refuses to work, consider emerging a corresponding driver from brother-
overlay, instead of the CUPS driverless configuration.


I tried Without '-E' and still no ppd file in: /etc/cups/ppd/


Trying to print to this printer prints gibberish.


I am confused.  In your previous message you wrote it did not create an entry
in ppd, but it printed fine.  :-/


So am I, I was under impression it printed OK as I created two entries and try 
printing one page, it printed OK
but now it prints strange characters only.

lpadmin -p 3170-color2 -E -v ipp://10.0.0.105/BINARY_P1 -m everywhere
lpadmin -p 5370-bw -E -v ipp://10.0.0.106/BINARY_P1 -m everywhere

Both are identified as;
Driver: Local Raw Printer (grayscale, 2-sided printing)
Connection: ipp://10.0.0.106/BINARY_P1
Connection: ipp://10.0.0.105/BINARY_P1

 

The gibberish you see being printed may be a result of the driver.  The 'IPP
Everywhere' driver should not present itself as a raw printer in the localhost
CUPS webgui (https://127.0.0.1:631), but as:

Description: 5370-bw
Location:
Driver:  series - IPP Everywhere (mono)
Connection: ipp://10.0.0.106/BINARY_P1




Re: [gentoo-user] The hopeless futility of printing.

2024-01-29 Thread Michael
On Monday, 29 January 2024 11:11:41 GMT k...@aspodata.se wrote:
> Alan Grimes:
> > I spent $450 for the most beautifulest printer ever made.
> 
> That is not true, because I own the most beautiful printer:)
> 
> > Absolutely suprimo HP laser jet network printer.
> 
> You didn't write what model, hard to help you then.
> 
> ///
> 
> What I do is, well it is just me I guess:
> 
> 0, print out a test page from the printers menu
> 1, check the printers network config and ping the printer
> 2, put the printer in postscript mode/emulation and send something
>simple as to it using lpr:
> 
> %A4: 210 297mm
> %72 per tum, 72/25.4 per mm
> /a 72 25.4 div def
> a a scale
> 0.1 setlinewidth
> 
>  0 3 297 { 0 exch moveto 210 0 rlineto stroke } for
> 
>  0 3 210 { 0 moveto 0 297 rlineto stroke } for
> 
> showpage
> 
> 3, if it can print postscript via lpr, then keep doing that and ignore
>cups.
> 
> ///
> 
>  What messes things up is people pressing the wifi-button (if there is
>  one) while on cable, which messes up the network config.
> 
>  If it works with MS-Windows, it can be autodetect (udns, avahi) is
>  missing on your linux box. I usually set printers to fixed ip-address
>  and add it to the local dns for easy access, so I shut down any udns
>  thing; I like a quiet network.
> 
> Regards,
> /Karl Hammar

I've had a couple of printers over the years, including a HP InkJet.  Once I 
spent some time to configure them I didn't have to touch anything again.  
Occasionally, after many years, some change in CUPS might require particular 
attention/reconfiguration.  By all accounts this is a rare event.

The OP can check the protocol/port used by the MSWindows machine and use the 
same to configure CUPS on Linux.  As long as the correct driver (or IPP 
Everywhere) is installed/selected the printer should just work.  The CUPS 
webgui help pages and the interwebs usually contain enough information to get 
most printers working on Apple/Linux.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Unable to locate printer

2024-01-29 Thread Michael
On Monday, 29 January 2024 02:53:27 GMT Thelma wrote:
> On 1/28/24 12:17, Thelma wrote:
> > Trying it:
> > lpadmin -p 3170-color2 -E -v ipp://10.0.0.105/BINARY_P1 -m everywhere
> 
> As you suggested I tried:
> lpadmin -p 5370-bw -E -v ipp://10.0.0.106/BINARY_P1 -m everywhere
> 
> It crated printer entry, but not ppd file in: /etc/cups/ppd/

Try to remove the option '-E' above to see if it creates a ppd file this time.  
If it refuses to work, consider emerging a corresponding driver from brother-
overlay, instead of the CUPS driverless configuration.


> Trying to print to this printer prints gibberish.

I am confused.  In your previous message you wrote it did not create an entry 
in ppd, but it printed fine.  :-/

The gibberish you see being printed may be a result of the driver.  The 'IPP 
Everywhere' driver should not present itself as a raw printer in the localhost 
CUPS webgui (https://127.0.0.1:631), but as:

Description: 5370-bw
Location:
Driver:  series - IPP Everywhere (mono)
Connection: ipp://10.0.0.106/BINARY_P1


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Unable to locate printer

2024-01-29 Thread Michael
On Sunday, 28 January 2024 19:17:06 GMT Thelma wrote:
> On 1/28/24 11:46, Michael wrote:
> > On Sunday, 28 January 2024 17:43:22 GMT Thelma wrote:
> >> Systems show Avahi-daemon status: started.
> >> but it I don't know how it helps me find a local printer.
> >> 
> >> I'm puzzled as printers were working last week without any problems.
> >> I did not do any update or modification to the system but all of a sudden
> >> they stop working "Unable to locate printer"
> >> 
> >> The solution was to change printer setting:
> >> 
> >> lpd://BRN30055C898DF9/BINARY_P1
> >> lpd://brother-5370/BINARY_P1
> >> 
> >> with:
> >> lpd://printer-IP-address/BINARY_P1
> >> lpd://printer-IP-address/BINARY_P1
> >> 
> >> How to set  Avahi-daemon to start automatically deleted printer?
> > 
> > I don't think avahi is needed unless you are printing from different
> > temporary clients and you want the printers to be automatically
> > discovered on the network.  If this is not your use case, you could try
> > something like this:
> > 
> > lpadmin -p 3170-color -E -v ipp:///BINARY_P1 -m
> > everywhere
> > 
> > Which will use the CUPS driverless method:
> > 
> > https://wiki.gentoo.org/wiki/Driverless_printing
> 
> These instruction on Gengoo Driveless printing are not clear.
> I tried to follow this example and run:
> 
> lpadmin -p foobar -E -v ipp://10.0.0.106/ipp -m everywhere
> 
> did not create file: foobar.ppd in /etc/cups/ppd/
> 
> ls -al /etc/cups/ppd/
> -rw-r- 1 root lp   26945 Nov 30  2020 3170-color.ppd
> -rw-r- 1 root lp   26929 Nov 30  2020 3170-color.ppd.O
> -rw-r- 1 root lp   16460 Jan 27 13:48 5370.ppd
> -rw-r- 1 root lp   25537 Jan 27 13:46 5370.ppd.O
> -rw-r--r-- 1 root root 0 Dec 13 17:47 .keep_net-print_cups-0
> -rw-r- 1 root lp   16476 Apr  7  2022 L6200.ppd
> -rw-r- 1 root lp   16476 Apr  7  2022 L6200.ppd.O

Did you run the lpadmin command as root?


> But it did create foobar local raw printer name foobar, and when I tried to
> print to it, it spit out strange characters.

Where did you find this local raw printer?

What does 'lpstat -t' run as your plain user show?


> I noticed you substitute after /ipp with
> /BINARY_P1 This is not very clear in Gentoo Documentation
> 
> Trying it:
> lpadmin -p 3170-color2 -E -v ipp://10.0.0.105/BINARY_P1 -m everywhere
> 
> It did not create any file name: 3170-color2.ppd ; but it did create entry
> in printer entry  3170-color2 - local raw printer and printing to it works
> OK.  Thank you!

You can try moving temporarily all .ppd files from /etc/cups/ppd/ and try 
running the lpadmin command again.  Perhaps if it finds some ppd file already 
in there with the same settings it won't create a new file.


> Can you explain the  /ipp vs. /BINARY_P1

If you login into the printer's admin GUI with your browser and navigate to 
Network, Services, you will see a list of service names.  You can try 
configuring CUPS with each one at a time to see what works for you.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] The hopeless futility of printing.

2024-01-29 Thread karl
Alan Grimes:
> I spent $450 for the most beautifulest printer ever made.

That is not true, because I own the most beautiful printer:)

> Absolutely suprimo HP laser jet network printer.

You didn't write what model, hard to help you then.

///

What I do is, well it is just me I guess:

0, print out a test page from the printers menu
1, check the printers network config and ping the printer
2, put the printer in postscript mode/emulation and send something
   simple as to it using lpr:

%A4: 210 297mm
%72 per tum, 72/25.4 per mm
/a 72 25.4 div def
a a scale
0.1 setlinewidth

 0 3 297 { 0 exch moveto 210 0 rlineto stroke } for

 0 3 210 { 0 moveto 0 297 rlineto stroke } for

showpage

3, if it can print postscript via lpr, then keep doing that and ignore 
   cups.

///

 What messes things up is people pressing the wifi-button (if there is 
 one) while on cable, which messes up the network config.

 If it works with MS-Windows, it can be autodetect (udns, avahi) is 
 missing on your linux box. I usually set printers to fixed ip-address
 and add it to the local dns for easy access, so I shut down any udns 
 thing; I like a quiet network.

Regards,
/Karl Hammar