On 25/02/2020 08:16, jdd@dodin.org wrote:
lpr is a *command line* that allows printing. Can be used to send a basic document to the printer and hopefully get a log
first make your printer default with cups, then create some basic taxt file. I used vi to create a printertest.txt file with "does it print?" in it.
then
lpr printertest.txt
or if not default:
lpr -P DCP7055W printertest.txt
(change the name for the cups name of your printer)
for me it prints the file
then, eventually, as root, "journalctl" gives you the full stack of commands sent to the printer (very long logs, hundred of lines)
Tried to print a simple text file this way. Still nothing. In the journalctl from that moment I see only success stories: (suse paste has suddenly decided to throw a tantrum so I cannot post it on there) Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Printer-Attributes last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 4 "DCPJ572DW" Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: "Printer \"DCPJ572DW\" state changed to processing." "ipp://linuxbox/> Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Jobs last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 1 Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Jobs last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 1 Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Printer-Attributes last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 4 "DCPJ572DW" Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: "Printer \"DCPJ572DW\" state changed." "ipp://linuxbox/printers/DCPJ5> Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Printer-Attributes last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 4 "DCPJ572DW" Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Printer-Attributes last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 4 "DCPJ572DW" Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: "Printer \"DCPJ572DW\" state changed to idle." "ipp://linuxbox/printe> Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Printer-Attributes last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 3 "DCPJ572DW" Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Jobs last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 0 Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Jobs last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 0 Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: Get-Printer-Attributes last error: 0 successful-ok Feb 26 06:07:33 linuxbox plasmashell[1938]: libkcups: 3 "DCPJ572DW" However, I decided to try the install on another PC on the network running AVLinux (Debian-based). I downloaded the install script into the user Downloads directory and stuck to all defaults. It downloaded all the .deb files automatically and showed a license prompt for each one which I didn't get on openSUSE. When it prompted me for the location it produced some entries not seen on the openSUSE install, including a rather complex dnssd:// listing that was the 'Auto' choice, so I chose that. The test print succeeded. It all works fine. Here's the output: https://paste.opensuse.org/48e74854 (from when suse paste was still working two minutes earlier) So at least I know it works, and at the very worst can copy documents to and fro my other machine. Now to find out why the openSUSE install didn't work. I downloaded all the rpms and placed them in the respective subdirectories in /usr/src/packages/RPMs, but I also copied them all to a Brother subfolder in /opt along with the script. Looking in YaST Software Management, it's from this latter location that the RPMs were installed. Why didn't the script download them direct from the Brother website like with the .deb install? I might have to try uninstalling them all first before trying the script again. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org