Printing and scanning for Porteus

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Printing and scanning for Porteus

Post#76 by Rava » 25 Oct 2023, 15:56

Finally have the time to work on getting my printer and scanner to run.
System 5.01 XFCE.

Activated 07-printing-lxde-lxqt-openbox-xfce-x86_64-2023-09-23.xzm and 07-printing-x86_64-2023-09-23.xzm
(confirmed the checksum of both)

Looked up https://wiki.ubuntuusers.de/CUPS/
Ran cupsctl

Code: Select all

root@rava:~# cupsctl
_debug_logging=0
_remote_admin=0
_remote_any=1
_share_printers=1
_user_cancel_any=0
BrowseLocalProtocols=dnssd cups
DefaultAuthType=Basic
ErrorPolicy=stop-printer
IdleExitTimeout=60
JobPrivateAccess=default
JobPrivateValues=default
MaxLogSize=1m
PageLogFormat=
SubscriptionPrivateAccess=default
SubscriptionPrivateValues=default
WebInterface=Yes
root@rava:~# 
Then opened in Palemoon http://localhost:631/ and http://127.0.0.1:631/ as written in the wiki article.
Both times all I get is:

Code: Select all

Not Found
This is the full html of that page:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
	<TITLE>Not Found - CUPS v2.4.7</TITLE>
	<LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups.css">
</HEAD>
<BODY>
<H1>Not Found</H1>
<P></P>
</BODY>
</HTML>
Is the info from https://wiki.ubuntuusers.de/CUPS/ not applicable for our Porteus CUPS / our 07-printing-*xzm modules?

Added in 11 minutes 35 seconds:
I have not plugged in the printer yet since I recall the CUPS system should be up and working prior plugging in the printer.
While the "Not Found" page is indeed created by the CUPS webserver - I do not get to the configuration web user interface, at least not how the wiki article tells me.

And looking up /var/log/packages/cups-2.4.7-x86_64-1_slack15.0 gives me a list of help files like these:
usr/doc/cups-2.4.7/de/index.html
or these

Code: Select all

usr/doc/cups-2.4.7/help/accounting.html
usr/doc/cups-2.4.7/help/admin.html
usr/doc/cups-2.4.7/help/api-admin.html
usr/doc/cups-2.4.7/help/api-filter.html
usr/doc/cups-2.4.7/help/api-ppd.html
usr/doc/cups-2.4.7/help/cgi.html
usr/doc/cups-2.4.7/help/cupspm.html
usr/doc/cups-2.4.7/help/encryption.html
usr/doc/cups-2.4.7/help/firewalls.html
usr/doc/cups-2.4.7/help/glossary.html
usr/doc/cups-2.4.7/help/kerberos.html
usr/doc/cups-2.4.7/help/license.html
usr/doc/cups-2.4.7/help/man-backend.html
usr/doc/cups-2.4.7/help/man-cancel.html
usr/doc/cups-2.4.7/help/man-classes.conf.html
usr/doc/cups-2.4.7/help/man-client.conf.html
usr/doc/cups-2.4.7/help/man-cups-config.html
usr/doc/cups-2.4.7/help/man-cups-files.conf.html
usr/doc/cups-2.4.7/help/man-cups-lpd.html
usr/doc/cups-2.4.7/help/man-cups-snmp.html
usr/doc/cups-2.4.7/help/man-cups.html
usr/doc/cups-2.4.7/help/man-cupsaccept.html
usr/doc/cups-2.4.7/help/man-cupsd-helper.html
usr/doc/cups-2.4.7/help/man-cupsd-logs.html
usr/doc/cups-2.4.7/help/man-cupsd.conf.html
usr/doc/cups-2.4.7/help/man-cupsd.html
usr/doc/cups-2.4.7/help/man-cupsenable.html
usr/doc/cups-2.4.7/help/man-cupstestppd.html
usr/doc/cups-2.4.7/help/man-filter.html
usr/doc/cups-2.4.7/help/man-ippevepcl.html
usr/doc/cups-2.4.7/help/man-ippeveprinter.html
usr/doc/cups-2.4.7/help/man-ipptool.html
usr/doc/cups-2.4.7/help/man-ipptoolfile.html
usr/doc/cups-2.4.7/help/man-lp.html
usr/doc/cups-2.4.7/help/man-lpadmin.html
usr/doc/cups-2.4.7/help/man-lpc.html
usr/doc/cups-2.4.7/help/man-lpinfo.html
usr/doc/cups-2.4.7/help/man-lpmove.html
usr/doc/cups-2.4.7/help/man-lpoptions.html
usr/doc/cups-2.4.7/help/man-lpq.html
usr/doc/cups-2.4.7/help/man-lpr.html
usr/doc/cups-2.4.7/help/man-lprm.html
usr/doc/cups-2.4.7/help/man-lpstat.html
usr/doc/cups-2.4.7/help/man-mime.convs.html
usr/doc/cups-2.4.7/help/man-mime.types.html
usr/doc/cups-2.4.7/help/man-notifier.html
and many more.

But none of these exist since usr/doc/cups-2.4.7/ is purged from the module.

Do I have to open a port in /etc/rc.d/rc.FireWall ?
If so, I presume I would have found the info in usr/doc/cups-2.4.7/help/firewalls.html ...
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2196
Joined: 02 Jan 2011, 11:33
Location: italy

Printing and scanning for Porteus

Post#77 by beny » 25 Oct 2023, 16:09

hi, and the printer ...is,cupsd start at boot or you have to load via /etc/rc.d,and i think you need avahi, blaze hate it, so better to see if it is inside the package

User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Printing and scanning for Porteus

Post#78 by Rava » 25 Oct 2023, 16:13

Code: Select all

root@rava:~# /etc/rc.d/rc.cups status
cups: scheduler is running.
The error page "Not Found" was created by CUPS, so the cupsd must be running.
beny wrote:
25 Oct 2023, 16:09
i think you need avahi, blaze hate it, so better to see if it is inside the package

Code: Select all

root@rava:/mnt/live/memory/images# find 07-printing-* -iname "*avahi*"
07-printing-x86_64-2023-09-23.xzm/usr/share/hplip/base/avahi.py
Is that all of avahi I need?

@beny:
Like I wrote above
in post #77 : Can it be an issue with my firewall aka /etc/rc.d/rc.FireWall ?
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2196
Joined: 02 Jan 2011, 11:33
Location: italy

Printing and scanning for Porteus

Post#79 by beny » 25 Oct 2023, 16:37

you have something like that with avahi but you have to start the daemon: sh '/etc/rc.d/rc.avahidaemon' start
Starting Avahi mDNS/DNS-SD Daemon: /usr/sbin/avahi-daemon -D
Service Type: _ipp._tcp
Service Name: Brother HL-1210W series
Domain Name: local
Interface: eth2 IPv4
Address: BRN5413795F76B5.local/192.168.1.38:631
TXT UUID = e3248000-80ce-11db-8000-5413795f76b5
TXT TBCP = F
TXT Transparent = T
TXT Binary = T
TXT PaperCustom = T
TXT Scan = F
TXT Fax = F
TXT Duplex = F
TXT Copies = T
TXT Color = F
TXT usb_CMD = PJL,HBP
TXT usb_MDL = HL-1210W series
TXT usb_MFG = Brother
TXT priority = 50
TXT adminurl = http://BRN5413795F76B5.local./
TXT product = (Brother HL-1210W series)
TXT ty = Brother HL-1210W series
TXT note =
TXT rp = ipp/print
TXT pdl =
TXT qtotal = 1
TXT txtvers = 1

User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Printing and scanning for Porteus

Post#80 by Rava » 25 Oct 2023, 16:51

beny wrote:
25 Oct 2023, 16:37
you have something like that with avahi but you have to start the daemon: sh '/etc/rc.d/rc.avahidaemon' start
Starting Avahi mDNS/DNS-SD Daemon: /usr/sbin/avahi-daemon -D
All of avahi (regardless of upper or lower case) is what I quoted above:

Code: Select all

root@rava:/mnt/live/memory/images# find 07-printing-* -iname "*avahi*"
07-printing-x86_64-2023-09-23.xzm/usr/share/hplip/base/avahi.py
Therefore I do not have any /etc/rc.d/rc.avahidaemon nor any /usr/sbin/avahi-daemon:

Code: Select all

root@rava:~# /etc/rc.d/rc.avahidaemon status
-su: /etc/rc.d/rc.avahidaemon: No such file or directory
root@rava:~# /usr/sbin/avahi-daemon
-su: /usr/sbin/avahi-daemon: No such file or directory
root@rava:~# 
Cheers!
Yours Rava

itrukrakso
Black ninja
Black ninja
Posts: 62
Joined: 23 Jul 2022, 07:42
Distribution: Porteus 5.01_x86_64 Xfce

Printing and scanning for Porteus

Post#81 by itrukrakso » 25 Oct 2023, 17:10

Hi,
Rava wrote:
25 Oct 2023, 16:08
Then opened in Palemoon http://localhost:631/ and http://127.0.0.1:631/ as written in the wiki article.
Both times all I get is:

Not Found

the correct command is

Code: Select all

http://localhost:631/admin

User avatar
Blaze
DEV Team
DEV Team
Posts: 3908
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Printing and scanning for Porteus

Post#82 by Blaze » 25 Oct 2023, 18:03

itrukrakso wrote:
25 Oct 2023, 17:10
the correct command is

Code: Select all

http://localhost:631/admin
Yep, and this page is set as default for cups web page.
beny wrote:
25 Oct 2023, 16:09
I think you need avahi, blaze hate it
avahi is need for network printing/scanning but he is have many issues and vulnerabilities, plus he is unlike Domain Name: local
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Printing and scanning for Porteus

Post#83 by Rava » 25 Oct 2023, 18:05

itrukrakso wrote:
25 Oct 2023, 17:10
the correct command is

Code: Select all

http://localhost:631/admin
Thanks itrukrakso
That results in this dialog

Code: Select all

http://localhost:631 is requesting your username and password. The site says: “CUPS”
I presume it wants the root credentials ?
Blaze wrote:
25 Oct 2023, 18:03
avahi is need for network printing/scanning but he is have many issues and vulnerabilities.
So local printing just via USB cable needs no avahi.
Cheers!
Yours Rava

User avatar
Blaze
DEV Team
DEV Team
Posts: 3908
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Printing and scanning for Porteus

Post#84 by Blaze » 25 Oct 2023, 18:09

Rava, 1st is yes and 2nd is yes too.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Printing and scanning for Porteus

Post#85 by Rava » 25 Oct 2023, 18:17

^
Thanks, now the printer admin page opens.
And it speaks German with me (I am okay with it speaking German)

I presume, now I have to connect the printer via USB in order to proceed with "Add printer"?
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2196
Joined: 02 Jan 2011, 11:33
Location: italy

Printing and scanning for Porteus

Post#86 by beny » 25 Oct 2023, 18:22

hi, is write on the line:Service Type: _ipp._tcp ,so wifi task.

User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Printing and scanning for Porteus

Post#87 by Rava » 25 Oct 2023, 18:27

beny wrote:
25 Oct 2023, 18:22
hi, is write on the line:Service Type: _ipp._tcp ,so wifi task.
It is a Canon Pixma iP 4300. All I see is one USB port. No network. And I presume no WIFI. But I do not want to use WIFI for printing anyway.

Added in 9 hours 8 minutes 54 seconds:
Argggghhhhh now that I finally made progress with CUPS and having the time to install my printer.
I plug in its USB cable, onto printer and PC.
I plug in its power supply cable. (Into printer and power supply plug socket)

And switch on the printer.
And nothing. No movement, no sound of it moving its print heads. The power switch should turn on, but keeps switched off.

Looks like the printer is dead. :wall:

Added in 6 minutes 10 seconds:
And in case you ask:
I tested the printer's power cable with the radio power cable and vice versa:

I every case the radio works.
In every case the printer stays dead.

Added in 1 minute 48 seconds:
I presume it cannot be something simple like a fuse in the printer that needs replacing?
Cheers!
Yours Rava

User avatar
Blaze
DEV Team
DEV Team
Posts: 3908
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Printing and scanning for Porteus

Post#88 by Blaze » 26 Oct 2023, 04:13

Is simply to use system-config-printer
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

itrukrakso
Black ninja
Black ninja
Posts: 62
Joined: 23 Jul 2022, 07:42
Distribution: Porteus 5.01_x86_64 Xfce

Printing and scanning for Porteus

Post#89 by itrukrakso » 26 Oct 2023, 06:49

Hi,
How about a self-test of the printer?
https://printer8787.blogspot.com/2015/0 ... p4300.html

User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Printing and scanning for Porteus

Post#90 by Rava » 26 Oct 2023, 06:52

itrukrakso wrote:
26 Oct 2023, 06:49
How about a self-test of the printer?
https://printer8787.blogspot.com/2015/0 ... p4300.html
Thanks, I will try that later. Much appreciated. (Locally saved the info as text, including the URL, but RL has me busy today.)
Cheers!
Yours Rava

Post Reply