Re: [DNG] lpr command not working

2021-11-15 Thread Ralph Ronnquist via Dng
On Mon, 15 Nov 2021 19:21:15 -0500
Haines Brown  wrote:
> These problems I'll pursue, but my pont is that none of the ways to
> get access to the lpr command are workig.


use: $ lpstat -d -v -p
to list which the default printer is and which pringters there are

use: # lpadmin -d "$queue"
to set $queue as the default for cups and lpr

(using cups-lpr)

Ralph.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr command not working

2021-11-15 Thread Steve Litt
Haines Brown said on Mon, 15 Nov 2021 19:21:15 -0500


>My printer lost its status as default, but I can't get to the CUPS
>web page to restore it

Let me ask you a few probably dumb questions...

* Was cupsd running?
* Did you go to http://127.0.0.1:631/  ?
* When CUPS asked for user and password, did you type root and your
  machine's root password?
* Did you go to Administration=>Set as default server for the printer
  you want to be default?


SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan with usr merge?

2021-11-15 Thread Florian Zieboll via Dng
On Mon, 15 Nov 2021 21:19:08 +0100
Antoine via Dng  wrote:
> 
> For what it's worth, I can confirm this : I ran a BeagleBoneBlack
> build of Devuan for a while and was rather surprised one day to
> discover that it had no kernel package installed at all. The kernel
> and initramfs where packed into a u-boot file and once loaded, the OS
> didn't care.

As I use to do a minimal *.bian install on my SoC hardware, which I afterwards 
move to the Devuan repositories, while keeping the related original "firmware" 
repository, I must confess that the whole "embedded"-thing is still somewhat 
unclear to me, at least regarding kernel and firmware updates. I'd be more than 
happy to get a hint towards an honest introduction to this topic.

Libre Grüße,
Florian

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr command not working

2021-11-15 Thread Haines Brown
On Tue, Nov 16, 2021 at 07:35:05AM +1100, Ralph Ronnquist via Dng wrote:
> On Mon, 15 Nov 2021 15:11:22 -0500
> Haines Brown  wrote:
> 
> > On Mon, Nov 15, 2021 at 06:18:06PM +0100, Dr. Nikolaus Klepp via Dng
> > wrote:
> > > Anno domini 2021 Mon, 15 Nov 10:52:06 -0500
> > >  Haines Brown scripsit:  
> > > > On Sun, Nov 14, 2021 at 12:55:59PM -0500, Haines Brown wrote:  
> > > > > I reinstalled a printer on a Chimaera box. The CUPS test file
> > > > > prints just fine. The lpr  > > > > send data to the printer. Status: Processing - "Sending data to
> > > > > printer." Some 15 min (?) later the job does print.
> > > > > ...
> 
> According to
> https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=file&q=bin%2Flpr&x=submit
> there are three packages providing "bin/lpr":
> cups-bsd
> lpr
> lprng
> 
> Which one do you have? Are they all the same?
> I think they are somewhat different and from memory I think the cups-bsd
> variant is best integrated with cups.

I started with cubs-bsd and then used lpr. I now also try lprng. I reinstalled 
cups-bsd and and end up in bad shape

a lpr test.txt
  lpr: Error - No default destination.

My printer lost its status as default, but I can't get to the CUPS
web page to restore it

b) Firefox can’t establish a connection to the server at localhost:631.

I do have access to internet. 

c) $ lpr -PHP_LaserJet_1320_series test.txt
   lpr: Error - The printer or class does not exist.

These problems I'll pursue, but my pont is that none of the ways to get 
access to the lpr command are workig.


-- 
Haines Brown  
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr command not working

2021-11-15 Thread Ralph Ronnquist via Dng
On Mon, 15 Nov 2021 15:11:22 -0500
Haines Brown  wrote:

> On Mon, Nov 15, 2021 at 06:18:06PM +0100, Dr. Nikolaus Klepp via Dng
> wrote:
> > Anno domini 2021 Mon, 15 Nov 10:52:06 -0500
> >  Haines Brown scripsit:  
> > > On Sun, Nov 14, 2021 at 12:55:59PM -0500, Haines Brown wrote:  
> > > > I reinstalled a printer on a Chimaera box. The CUPS test file
> > > > prints just fine. The lpr  > > > send data to the printer. Status: Processing - "Sending data to
> > > > printer." Some 15 min (?) later the job does print.
> > > > ...

According to
https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=file&q=bin%2Flpr&x=submit
there are three packages providing "bin/lpr":
cups-bsd
lpr
lprng

Which one do you have? Are they all the same?
I think they are somewhat different and from memory I think the cups-bsd
variant is best integrated with cups.

Ralph.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan with usr merge?

2021-11-15 Thread Antoine via Dng

On Saturday, 13 November at 22:31, Didier Kryn wrote:

Le 13/11/2021 à 20:46, Steve Litt a écrit :



(snip)

Hi Karl,

I think it's more than just a little time. Every time the kernel
updates, you need to get the new kernel's source, recompile, and
replace the new kernel.

It *is* an interesting idea though.


    AFAIR you can install a Debian/Devuan system without installing a
kernel package. I did it still a decade ago on Powerpc-based SBCs: I
compiled my own kernel and built my own initramfs and it prepared the
system in a way that mimicked what Debian was expecting to find after
the pivot-root. I did it with a custom initramfs because the boards were
diskless but you can always do all this initial preparation from a
dedicated partition if you prefer. The thing is after that you must
switch to Debian proper by a pivot-root or switch-root.

(snip)

For what it's worth, I can confirm this : I ran a BeagleBoneBlack build of 
Devuan for a while and was rather surprised one day to discover that it had 
no kernel package installed at all. The kernel and initramfs where packed 
into a u-boot file and once loaded, the OS didn't care.


- Antoine

--
The great thing about standards is that there are so many to choose from.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr command not working

2021-11-15 Thread Haines Brown
On Mon, Nov 15, 2021 at 06:18:06PM +0100, Dr. Nikolaus Klepp via Dng wrote:
> Anno domini 2021 Mon, 15 Nov 10:52:06 -0500
>  Haines Brown scripsit:
> > On Sun, Nov 14, 2021 at 12:55:59PM -0500, Haines Brown wrote:
> > > I reinstalled a printer on a Chimaera box. The CUPS test file prints
> > > just fine. The lpr  > > to the printer. Status: Processing - "Sending data to printer." Some 15 
> > > min (?) later the job does print.
> > > 
> > > A possible problem is that I cannot delete the old printer definition 
> > > from CUPS. When I go to Administration -> Printers, the status of the 
> > > old printer Idle, Accepting Jobs, Not Shared. 
> > > 
> > > Under its Administration I select Delete Printer and verify that I want
> > > it deleted. This  returns the message that it has been successfully 
> > > deleted. Yet it is still listed in Administration.
> > > 
> > > A problem might be that the printer can't be deleted because it is
> > > shared by other systems despite its status. Where can I uncheck 
> > > printer-is-shared for remote queues. Its status is Idle, Accepting 
> > > Jobs, Not Shared. The best I can do is change its status to Rejecting 
> > > Jobs. Restartintg CUPS sever did not help.  The status of the printer 
> > > I'm trying to delete is Not shared. But I can't deetete it.
> > 
> > I finally managed to delete the unwanted printer by deleting CUPS
> > from the machine running it. However, lpr still does not work. The
> > problem is that no default printer is defined.
> > 
> > $ lpstat -d
> > no system default destination
> > 
> > I'm using a HP Laserjet1320 with USB printer under Chimaera.

I did manage the set the printer default by using the correct command.  

$ lpstat -d
system default destination: HP_LaserJet_1320_series

But it did not help. 

> I got "lpr" working by giving host and printer:
> 
> $ ls | lpr -H printserver -P MFC-J5320DW_EINSEITIG

Thanks, but I dont understand. Man lpr does not list an -H option.  

If I try to use the -P option, the printer is unknown:

$ lpr -PHP_LaserJet_1320_series
lpr: HP_LaserJet_1320_series: unknown printer

> It might be that you have to set the hostname explictly to localhost.

How does one tell lpr to use localhost as hosname?


-- 
Haines Brown  
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr command not working

2021-11-15 Thread Dr. Nikolaus Klepp via Dng
Anno domini 2021 Mon, 15 Nov 10:52:06 -0500
 Haines Brown scripsit:
> On Sun, Nov 14, 2021 at 12:55:59PM -0500, Haines Brown wrote:
> > I reinstalled a printer on a Chimaera box. The CUPS test file prints
> > just fine. The lpr  > to the printer. Status: Processing - "Sending data to printer." Some 15 
> > min (?) later the job does print.
> > 
> > A possible problem is that I cannot delete the old printer definition 
> > from CUPS. When I go to Administration -> Printers, the status of the 
> > old printer Idle, Accepting Jobs, Not Shared. 
> > 
> > Under its Administration I select Delete Printer and verify that I want
> > it deleted. This  returns the message that it has been successfully 
> > deleted. Yet it is still listed in Administration.
> > 
> > A problem might be that the printer can't be deleted because it is
> > shared by other systems despite its status. Where can I uncheck 
> > printer-is-shared for remote queues. Its status is Idle, Accepting 
> > Jobs, Not Shared. The best I can do is change its status to Rejecting 
> > Jobs. Restartintg CUPS sever did not help.  The status of the printer 
> > I'm trying to delete is Not shared. But I can't deetete it.
> 
> I finally managed to delete the unwanted printer by deleting CUPS
> from the machine running it. However, lpr still does not work. The
> problem is that no default printer is defined.
> 
> $ lpstat -d
> no system default destination
> 
> I'm using a HP Laserjet1320 with USB printer under Chimaera.
> 
> I try to set the default:
> 
> CUPS -> Printers lists my printer as:
> 
> HP_LaserJet_1320_series
> 
> So I set that printer as to be default:
> 
> $ sudo lpoptions -d HP_LaserJet_1320_series
> copies=1 
> device-uri=hp:/usb/hp_LaserJet_1320_series?serial=00CNL1F33212
>   finishings=3 job-cancel-after=10800 job-hold-until=no-hold
>   job-priority=50 job-sheets=none,none marker-change-time=0
>   media=na_letter_8.5x11in number-up=1 output-bin=face-down
>   print-color-mode=monochrome 
> printer-commands=AutoConfigure,Clean,PrintSel
>   fTestPage printer-info='HP LaserJet 1320 series'
>   printer-is-accepting-jobs=true printer-is-shared=true
>   printer-is-temporary=false printer-location='Local Printer'
>   printer-make-and-model='HP LaserJet 1320 series Postscriipt
>   (recommended)' printer-state=3 printer-state-change-time=1636985393
>   printer-state-reasons=none printer-type=8425556 printer-uri-suppo-
>   
> rted=ipp://localhost/printers/HP_LaserJet_1320_series_USB_00CNL1F332>
> _HPLIP sides=one-sided
> 
> But there is still no default value
> 
> $ lpstat -d
> no system default destination
> 
> When I specify the printer by providing lpr with -P option:
> 
> $ lpr -PHP_LaserJet_1320_series test.txt
> lpr: HP_LaserJet_1320_series: unknown printer
> 
> I do lsmod to make sure that ppdev, parport, parport_pc modules are loaded.
> 
> CUPS lists only one other driver for the LaserJet 1320 which is pcl3,hpcups 
> 3.21. 
> But when I use it I get error: Unsupported document-format 
> "application/vnd.cups-command".
> 
> $ a2ps testFiles/test.txt
> [testFiles/test.txt (plain): 1 page on 1 sheet]
> /usr/bin/lp: Error - No default destination.
> [Total: 1 page on 1 sheet] sent to the default printer
> 
> $ lpq
> no entries

Although the lpr manpage says it uses LPDEST and PRINTER environment variables 
"lpr" does not, nor does it look for any of cups other ways to define a default 
printer. IMO all other lp* from cups work as documented. 

I got "lpr" working by giving host and printer:

$ ls | lpr -H printserver -P MFC-J5320DW_EINSEITIG

It might be that you have to set the hostname explictly to localhost.

Nik



-- 
Please do not email me anything that you are not comfortable also sharing with 
the NSA, CIA ...
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr command not working

2021-11-15 Thread Haines Brown
On Sun, Nov 14, 2021 at 12:55:59PM -0500, Haines Brown wrote:
> I reinstalled a printer on a Chimaera box. The CUPS test file prints
> just fine. The lpr  to the printer. Status: Processing - "Sending data to printer." Some 15 
> min (?) later the job does print.
> 
> A possible problem is that I cannot delete the old printer definition 
> from CUPS. When I go to Administration -> Printers, the status of the 
> old printer Idle, Accepting Jobs, Not Shared. 
> 
> Under its Administration I select Delete Printer and verify that I want
> it deleted. This  returns the message that it has been successfully 
> deleted. Yet it is still listed in Administration.
> 
> A problem might be that the printer can't be deleted because it is
> shared by other systems despite its status. Where can I uncheck 
> printer-is-shared for remote queues. Its status is Idle, Accepting 
> Jobs, Not Shared. The best I can do is change its status to Rejecting 
> Jobs. Restartintg CUPS sever did not help.  The status of the printer 
> I'm trying to delete is Not shared. But I can't deetete it.

I finally managed to delete the unwanted printer by deleting CUPS
from the machine running it. However, lpr still does not work. The
problem is that no default printer is defined.

$ lpstat -d
no system default destination

I'm using a HP Laserjet1320 with USB printer under Chimaera.

I try to set the default:

CUPS -> Printers lists my printer as:

HP_LaserJet_1320_series

So I set that printer as to be default:

$ sudo lpoptions -d HP_LaserJet_1320_series
copies=1 device-uri=hp:/usb/hp_LaserJet_1320_series?serial=00CNL1F33212
  finishings=3 job-cancel-after=10800 job-hold-until=no-hold
  job-priority=50 job-sheets=none,none marker-change-time=0
  media=na_letter_8.5x11in number-up=1 output-bin=face-down
  print-color-mode=monochrome 
printer-commands=AutoConfigure,Clean,PrintSel
  fTestPage printer-info='HP LaserJet 1320 series'
  printer-is-accepting-jobs=true printer-is-shared=true
  printer-is-temporary=false printer-location='Local Printer'
  printer-make-and-model='HP LaserJet 1320 series Postscriipt
  (recommended)' printer-state=3 printer-state-change-time=1636985393
  printer-state-reasons=none printer-type=8425556 printer-uri-suppo-
  rted=ipp://localhost/printers/HP_LaserJet_1320_series_USB_00CNL1F332>
  _HPLIP sides=one-sided

But there is still no default value

$ lpstat -d
no system default destination

When I specify the printer by providing lpr with -P option:

$ lpr -PHP_LaserJet_1320_series test.txt
lpr: HP_LaserJet_1320_series: unknown printer

I do lsmod to make sure that ppdev, parport, parport_pc modules are loaded.

CUPS lists only one other driver for the LaserJet 1320 which is pcl3,hpcups 
3.21. 
But when I use it I get error: Unsupported document-format 
"application/vnd.cups-command".

$ a2ps testFiles/test.txt
[testFiles/test.txt (plain): 1 page on 1 sheet]
/usr/bin/lp: Error - No default destination.
[Total: 1 page on 1 sheet] sent to the default printer

$ lpq
no entries
-- 
Haines Brown  
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng