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
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Printing and scanning for Porteus

Post#31 by Blaze » 02 Sep 2019, 17:49

A new current version of 07-printing module Printing and scanning for Porteus (Пост Blaze #73426)

Code: Select all

Sun Sep  1 19:03:23 UTC 2019
ap/cups-2.3.0-x86_64-2.txz:  Rebuilt.
  Fixed manpages. Thanks to TurboBlaze.
  Quit renaming/symlinking binaries for LPRng compatibility.
ap/cups-filters-1.25.4-x86_64-1.txz:  Upgraded.
  Compiled against qpdf-9.0.0.
ap/qpdf-9.0.0-x86_64-1.txz:  Upgraded.
  Shared library .so-version bump.
Ed_P, it's includes a new qpdf-9.0.0 and you can try with this version.

I removed x (execute) bit for /etc/rc.d/rc.cups-browsed by the reason https://packages.debian.org/en/sid/cups-browsed
but the main reason is cups for Slackware builds with this options https://mirror.slackbuilds.org/slackwar ... SlackBuild

Code: Select all

  --disable-pam \
  --disable-avahi \
  --disable-dnssd \
Avahi is an implementation of the auto-discovery protocol and required for ipptool.
For automatic discovery, you need an extra component from CUPS called cups-browsed, which queries the Avahi daemon and then populates CUPS configuration based on what the Avahi daemon sees.
if run this command you will get

Code: Select all

# driverless list
DEBUG: Started ippfind (PID 4137)
DEBUG: Started post-processing (PID 4138)
ERROR: Unable to execute ippfind utility: No such file or directory
DEBUG: PID 4137 (ippfind) stopped with status 1!
DEBUG: PID 4138 (Post-processing) exited with no errors.
If look at cups-2.2.12-alt2.x86_64.from AltLinux

Code: Select all

# ldd /home/guest/Загрузки/cups-2.2.12-alt2.x86_64/usr/bin/ippfind | grep -i found
	libavahi-common.so.3 => not found
	libavahi-client.so.3 => not found
ippfind requires avahi.

More info is here: @all,
My plan is to drop system-config-printer with all his dependencies and stay with
Manage Printing = CUPS Web Interface (only)
Print Settings = system-config-printer
Because I do not see the point in it - a lot of dependencies, bugs, does not see network printers through samba since there is no support of avahi and dnssd in the cups package.
The same things we can to do in Manage Printing = CUPS Web Interface
and for scanning printers in the local network we can use this command

Code: Select all

smbtree
for get host name and name of network printer, for example

Code: Select all

smb://BEN-DESKTOP/HP Color LaserJet CP1510 series PCL6
just need to replace spaces with %20

Code: Select all

smb://BEN-DESKTOP/HP%20Color%20LaserJet%20CP1510%20series%20PCL6
and copy to Manage Printing = CUPS Web Interface > to the connection field via smb

Any suggestion are welcome (who are the pros and cons) :Search:
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
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Printing and scanning for Porteus

Post#32 by Ed_P » 03 Sep 2019, 01:01

09-02 working in rc1 AF mode with HP network printer. :good:
Ed

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

Printing and scanning for Porteus

Post#33 by Blaze » 03 Sep 2019, 05:57

Ed_P, what is protocol do you apply for HP network printer (socket or samba)? With socket all works fine, but with samba - no.
I have Windows print server (for e.g. PC called by OKSANA) and when I try to seach this printer from my Porteus-PC via Samba (not a socket) - this printer does not found for me automatically.

With samba is faile:
Image <<< Windows print server (PC called by OKSANA) - Printer not found at the specified address
Image <<< if press the 'Browse ...' button - it will show nothing to you.

but if I manually type the path that I got from smbtree with %20 all works fine (look at my previous post).

With socket all ok:
Image

Image

Image

UPDATE:
Seems it's bug of samba

Code: Select all

smbclient -N -L 10.3.0.141

	Sharename       Type      Comment
	---------       ----      -------
	Canon iR2422 UFRII LT Printer   Canon iR2422 UFRII LT
	D               Disk      
	IPC$            IPC       Удаленный IPC
	print$          Disk      Драйверы принтеров
	Users           Disk      
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to 10.3.0.141 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Unable to connect with SMB1 -- no workgroup available
For printer (Windows PC too) shared via samba is the same:

Code: Select all

"NT_STATUS_ACCESS_DENIED opening remote spool 1_txt"

Code: Select all

cat /etc/samba/smb.conf | grep 'client max protocol'
   client max protocol = NT1
is here.
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
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Printing and scanning for Porteus

Post#34 by Ed_P » 03 Sep 2019, 16:05

The printer is using Samba.

From my 4.0 system.

Code: Select all

guest@porteus:~$ smbtree
WORKGROUP
	\\LINKSYS08419   		Samba 3.0.28a
		\\LINKSYS08419\IPC$           	IPC Service (Samba 3.0.37-(Optimized by Tuxera Inc, 3015.11.5.2_1))
guest@porteus:~$ smbclient -N -L 192.168.200.190
Server does not support EXTENDED_SECURITY  but 'client use spnego = yes' and 'client ntlmv2 auth = yes' is set
Anonymous login successful

	Sharename       Type      Comment
	---------       ----      -------
	IPC$            IPC       
	MEMORY_CARD     Disk      FLASH MEMORY PHOTO
Reconnecting with SMB1 for workgroup listing.
Server does not support EXTENDED_SECURITY  but 'client use spnego = yes' and 'client ntlmv2 auth = yes' is set
Anonymous login successful

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------
guest@porteus:~$ 
Image
Ed

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

Printing and scanning for Porteus

Post#35 by Blaze » 03 Sep 2019, 16:51

Ed_P, seems Porteus 4.0 is use old version of samba - you can check this via command

Code: Select all

smbd -V
and SMBv1 in this version is not disabled.
For Linux is better to use IPP, then samba.

I have troubles with PC (ip 10.3.0.141).
He is works on Windows 10 + I activated SMB1 in control panel
Image
but it does not give a result.

I try to print from Porteus 5 RC1 to this PC with Windows 10 and as you can see I stuck on this :wall:
Interesting topic about this https://www.linuxquestions.org/question ... 175624745/
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
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Printing and scanning for Porteus

Post#36 by Ed_P » 03 Sep 2019, 22:42

From my 5.0rc1 system.

Code: Select all

guest@porteus:~$ smbtree
Unable to initialize messaging context
Enter WORKGROUP\guest's password: 
WORKGROUP
	\\LINKSYS08419   		Samba 3.0.28a
		\\LINKSYS08419\IPC$           	IPC Service (Samba 3.0.37-(Optimized by Tuxera Inc, 3015.11.5.2_1))
guest@porteus:~$ smbclient -N -L 192.168.200.190
Unable to initialize messaging context
Server does not support EXTENDED_SECURITY  but 'client use spnego = yes' and 'client ntlmv2 auth = yes' is set
Anonymous login successful

	Sharename       Type      Comment
	---------       ----      -------
	IPC$            IPC       
	MEMORY_CARD     Disk      FLASH MEMORY PHOTO
Reconnecting with SMB1 for workgroup listing.
Server does not support EXTENDED_SECURITY  but 'client use spnego = yes' and 'client ntlmv2 auth = yes' is set
Anonymous login successful

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------
guest@porteus:~$ smbd -V
bash: smbd: command not found
guest@porteus:~$ 
Looks like the same version of samba.

My 5.0rc1 system.

Code: Select all

System Memory: 3809M
Boot device:   /mnt/sda6
Boot device format: "ntfs" 
Boot folder:   /porteus5.0/
Boot mode:     ISO /ISOs/Porteus-CINNAMON-v5.0rc1-x86_64.iso
OS:       Porteus-v5.0
ARCH:     x86_64
Desktop:  Jinnamon  Cinnamon 4.2.3
Kernel:   Linux porteus 5.1.5-porteus
Cmdline:  quiet BOOT_IMAGE=(loop)/boot/syslinux/vmlinuz from=/ISOs/Porteus-CINNAMON-v5.0rc1-x86_64.iso volume=33 reboot=cold extramod=/porteus5.0/003Modules;/porteus5.0/Modules noload=cinnamon
Ed

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

Printing and scanning for Porteus

Post#37 by Blaze » 04 Sep 2019, 05:33

Ed_P, try like this:

Code: Select all

su
toor
chmod +x /etc/rc.d/rc.samba && /etc/rc.d/rc.samba start
smbd -V
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
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Printing and scanning for Porteus

Post#38 by Ed_P » 04 Sep 2019, 06:19

Thank you Blaze :friends: but actually I tried this. :)

Code: Select all

guest@porteus:~$ smbd -V
bash: smbd: command not found
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# smbd -V
Version 4.10.4
root@porteus:/home/guest# 
:showoff:
Ed

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

Printing and scanning for Porteus

Post#39 by Blaze » 17 Sep 2019, 17:02

A new version of printing module is available here >>> Printing and scanning for Porteus (Пост Blaze #73426)

Отправлено спустя 13 часов 17 минут 58 секунд:
Some news from samba

Code: Select all

SMB1 is disabled by default
---------------------------

The defaults of 'client min protocol' and 'server min protocol'
have been changed to SMB2_02.

This means clients without support for SMB2 or SMB3 are no longer
able to connect to smbd (by default).

It also means client tools like smbclient and other,
as well as applications making use of libsmbclient are no longer
able to connect to servers without SMB2 or SMB3 support (by default).

It's still possible to allow SMB1 dialects, e.g. NT1, LANMAN2
and LANMAN1 for client and server, as well as CORE and COREPLUS on
the client.

Note that most commandline tools e.g. smbclient, smbcacls and others
also support the '--option' argument to overwrite smb.conf options,
e.g. --option='client min protocol=NT1' might be useful.

As Microsoft no longer installs SMB1 support in recent releases
or uninstalls it after 30 days without usage, the Samba Team
tries to get remove the SMB1 usage as much as possible.

SMB1 is officially deprecated and might be removed step by step
in the following years. If you have a strong requirement for SMB1
(except for supporting old Linux Kernels), please file a bug
at https://bugzilla.samba.org and let us know about the details.
https://www.samba.org/samba/history/samba-4.11.0.html
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
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Printing and scanning for Porteus

Post#40 by Blaze » 09 Nov 2019, 18:01

Download 07-printing-x86_64-2019-11-12.xzm for Porteus 5rc1 x86_64

Code: Select all

# md5sum 07-printing-x86_64-2019-11-12.xzm
27b90e247d34a0701bdd9c2c9e957479
@all, please test simple-scan and scangearmp2 and report to this topic. Thanks.

Important information! Please look at this spoiler:
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

jano
White ninja
White ninja
Posts: 21
Joined: 04 Oct 2015, 11:33
Distribution: Porteus 5rc1 / Linux Mint
Location: Madrid - Spain

Printing and scanning for Porteus

Post#41 by jano » 13 May 2020, 19:36

In my Canon MF4140:

Porteus 4 x86-64 Mate (with the drivers from 21 April 2018)
* Simple Scan & XSane do work
* ScanGear MP & ImageScan don't work

Porteus 5rc1 x86-64 Mate (with the drivers from 09 Nov 2019
* Document Scanner & XSane do work
* ScanGear MP doesn't start (from the menu, at least), and
* ImageScan also doesn't work: when started from the menu, opens a windows with the message "Could not send command scanner. Check the scanner status.", while if started from the terminal gives the message (iscan:3124): Gtk-WARNING **: 19:30:03.248: Unable to locate theme engine in module_path: "murrine" several time and then the window.

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

Printing and scanning for Porteus

Post#42 by Blaze » 14 May 2020, 17:03

jano, thanks for the report.
ScanGear MP, ImageScan and XSane (no GTK3 support) is removed in current version.
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

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Printing and scanning for Porteus

Post#43 by Jack » 05 Oct 2021, 05:26

Which printers has the best support? And what brands or type?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

Printing and scanning for Porteus

Post#44 by Blaze » 05 Oct 2021, 13:36

HP or Canon is the best.
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
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Printing and scanning for Porteus

Post#45 by Blaze » 04 Feb 2023, 20:04

Download 07-printing-x86_64-2023-02-04.xzm for Porteus 5.0 x86_64

Code: Select all

# md5sum 07-printing-x86_64-2023-02-04.xzm
18697740d7acdedcc13bffccb467703d
Changelog

Code: Select all

[*] Slackware printing and scanning packages updated to Slackware 15.0 base 2023-02-04
[*] some packages compiled from source via SBo (dropped/replaced some packages from others distro, such as ALT Linux, Mageia, etc...)
[*] removed a couple of stuff =) and the size of 07-printing module now is some smaller. 
For example 07-printing-x86_64-2022-07-02.xzm vs 07-printing-x86_64-2023-02-04.xzm
# 92 Mb vs 87.6 Mb
List of all packages:

Code: Select all

cnrdrvcups-ufr2-uk-5.60-1.08-x86_64-1bl
cnrdrvcups-ufr2lt-uk-5.00-1.x86_64
cups-2.4.2-x86_64-3_slack15.0
cups-bjnp-2.0.3-x86_64-1_SBo
cups-filters-1.28.11-x86_64-1
cups-pdf-3.0.1-x86_64-1_SBo
dbus-python-1.2.18-x86_64-3
epson-inkjet-printer-escpr-1.7.22-x86_64-2_SBo
epson-inkjet-printer-escpr2-1.1.60-x86_64-1_SBo
foomatic-db-engine-4.0.13-x86_64-1_SBo
gegl-0.4.34-x86_64-2
gexiv2-0.14.0-x86_64-3
ghostscript-9.55.0-x86_64-1
gimp-2.10.30-x86_64-2
gutenprint-5.3.4-x86_64-3
hplip-3.20.5-x86_64-6
libhandy1-1.8.1-alt1.x86_64
libieee1284-0.2.11-x86_64-6
libpackagekit-glib-1.2.5-alt7.x86_64
net-snmp-5.9.3-x86_64-1_slack15.0
pycups-2.0.1-x86_64-6
pycurl-7.44.1-x86_64-3
pysmbc-1.0.25.1-x86_64-1bl
python-notify2-0.3.1-x86_64-10
python3-reportlab-3.6.12-x86_64-1_SBo
qpdf-10.5.0-x86_64-1
samsung-unified-driver-V1.00.39-x86_64-1bl
sane-1.0.32-x86_64-1
simple-scan-42.5-alt2.x86_64
system-config-printer-1.5.15-x86_64-5
Additional dependencies for these DEs:
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

Post Reply