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.
sos
White ninja
White ninja
Posts: 7
Joined: 07 Jul 2022, 19:37
Distribution: x86_64 XFCE

Printing and scanning for Porteus

Post#91 by sos » 15 Apr 2024, 22:36

I also finally tried printing for the first time with 5.01 XFCE using 07-printing-x86_64-2023-09-23.xzm and 07-printing-lxde-lxqt-openbox-xfce-x86_64-2023-09-23.xzm and was pleasantly surprised- no problems whatsoever scanning and printing on a Canon MX-392!

I activated the modules, connected the printer, found Print Settings, Added the printer from the list, and it worked. Couldn't be simpler.
Kudos to Blaze-- very much appreciated!

I would also like to run in RAM on an older machine (short on RAM), and therefore am wondering if it would be possible to reduce the size of 07-printing-x86_64-2023-09-23.xzm in any significant way for specific usage? The activated/uncompressed module would take a pretty big chunk of the available RAM on that machine.

From your other notes I suspect I could eliminate opt/pantum and brscan* since I have a Canon. I have simple-scan in another module already (since I scan more often than I print), so could remove the redundancy there. Of course I can try to remove other files in the module by "trial and error", but if you have time to provide a few notes on what users might eliminate in their specific cases for their printers it could be very useful.

For example, can anything substantial be removed from usr/share for specific usage? Any info or notes on the subdirectories ppd (~85 MB), cups (~67 MB), caepcm (~65 MB), and hplip (~23 MB) would obviously be helpful. And of course any extra libraries in usr/lib64. If you already have a README on this that I missed, please point me to it (and I apologize)! Thanks again--

burdi01
Shogun
Shogun
Posts: 206
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

Printing and scanning for Porteus

Post#92 by burdi01 » 17 Apr 2024, 10:05

Why people keep on using hplip and its counterparts from other manufacturers puzzles me: driverless printing and scanning is the way to go.

Code: Select all

Driverless.printing
===================
(c) DLCB 17/3-2024

When avahi is active
   CUPS can "see" the driverless printer
   Add that printer via localhost:631 and select the "IPP Everywhere" model
   See below for details.

Otherwise
   One could start avahi via "/etc/rc.d/rc.avahi start"
   goto above

Otherwise
   To find the printer's IPaddress run as root:
   >>> nmap --script=broadcast-dns-service-discovery |& tee log.log
   Edit/view the log.log file, search for "ipps" and see the "Address" entry some 18 lines below

   To create the spool entry run as root:
   >>> lpadmin -p "MyPrinter" -v ipps://XXX.XXX.XXX.XXX/ipp/print -E -m everywhere

-----

Start CUPS: /etc/rc.d/rc.cups start
In your browser connect to "localhost:631"
Administration > Add Printer
Discovered Network Printers > driverless
Model > IPP Everywhere
Administration > Set As Server Default
Maintenance > Print Test Page
Fafaik Porteus does not have avahi as of yet and Slackware Current added avahi only recently. But before that addition I used method 3 successfully.
For driverless scanning use the simple-scan program.
:D

User avatar
Ed_P
Contributor
Contributor
Posts: 8397
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Printing and scanning for Porteus

Post#93 by Ed_P » 17 Apr 2024, 19:04

burdi01 wrote:
17 Apr 2024, 10:05
driverless printing and scanning is the way to go.
Do you have an avahi .xzm module you would like to share?
Ed

burdi01
Shogun
Shogun
Posts: 206
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

Printing and scanning for Porteus

Post#94 by burdi01 » 18 Apr 2024, 09:47

Do you have an avahi .xzm module you would like to share?
No, I do not. But based on Slackware Current making one should not be difficult.
I am just a lurker over here doing a recommendation.
:D

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

Printing and scanning for Porteus

Post#95 by Blaze » 18 Apr 2024, 12:08

Hi sos.
At this week I am was busy.
For remove unuseful packages you can unpack 07-printing-x86_64-2023-09-23.xzm module (as root user) to /tmp and run these commands in terminal

Code: Select all

su
toor
ROOT=/tmp/07-printing-x86_64-2023-09-23 removepkg brscan brscan2 brscan3 brscan4 brscan5 brscan-skey epson-inkjet-printer-escpr epson-inkjet-printer-escpr2 hplip hplip-plugin pantum-1.1.106-x86_64
cd /tmp
dir2xzm 07-printing-x86_64-2023-09-23 07-printing-x86_64-2023-09-23-lite.xzm
UPDATE
Download: 07-printing-x86_64-2024-04-18.tar (plus all deps for all DE's) for Porteus 5.1-current x86_64

Code: Select all

# md5sum
c026908610907eb5a0a8f1c012bd2507  07-printing-x86_64-2024-04-18.tar
Changelog

Code: Select all

[*] all packages updated to Slackware-current 2024-04-18
[*] added ipp-usb and sane-airscan
https://github.com/OpenPrinting/ipp-usb
https://github.com/alexpevzner/sane-airscan
# Note. In a future release I will remove these packages because they require a lot of dependencies.
[*] simple-scan updated to 46.0 version.
#  Note. In the next release I will replace it with old version of simple-scan coz a new version is required GTK4
Packages:

Code: Select all

brscan-0.2.4-0.amd64
brscan-skey-0.3.2-0.amd64
brscan2-0.2.5-1.amd64
brscan3-0.2.13-1.amd64
brscan4-0.4.11-1.amd64
brscan5-1.3.1-0.amd64
cnrdrvcups-ufr2-uk-5.90-1.03.x86_64
cnrdrvcups-ufr2lt-uk-5.00-1.x86_64
cups-2.4.7-x86_64-2
cups-bjnp-2.0.3-x86_64-1_SBo
cups-filters-1.28.17-x86_64-5
cups-pdf-3.0.1-x86_64-1_SBo
dbus-python-1.3.2-x86_64-2
epson-inkjet-printer-escpr-1.8.5-x86_64-2_SBo
epson-inkjet-printer-escpr2-1.2.9-x86_64-1_SBo
foomatic-db-engine-4.0.13-x86_64-1_SBo
gegl-0.4.48-x86_64-1
gexiv2-0.14.2-x86_64-3
ghostscript-10.03.0-x86_64-1
gimp-2.10.36-x86_64-3
gutenprint-5.3.4-x86_64-3
hplip-3.23.12-x86_64-4
hplip-plugin-3.23.12-x86_64-1_SBo
ipp-usb-0.9.25-x86_64-1bl
jbigkit-2.1-x86_64-2_SBo
libhandy-1.8.3-x86_64-1
libieee1284-0.2.11-x86_64-8
libjpeg8-3.0.2-alt1.x86_64
libpackagekit-glib-1.2.5.0.0.30-alt1.x86_64
pantum-106-1.1.106-alt1.x86_64
pycups-2.0.1-x86_64-7
pycurl-7.45.3-x86_64-2
pysmbc-1.0.25.1-x86_64-1bl
python-notify2-0.3.1-x86_64-11
python3-reportlab-4.2.0-x86_64-1_SBo
qpdf-11.9.0-x86_64-1
sane-1.3.0-x86_64-1
sane-airscan-0.99.29-x86_64-1_SBo
simple-scan-46.0-alt1.x86_64
system-config-printer-1.5.18-x86_64-2
Additional dependencies for these DEs:
Отправлено спустя 9 минут 16 секунд:
Ed_P, avahi-20240306_709e60f-x86_64-2.txz
not shure about stable work with my current printing module in Porteus 5.01 (stable) but if you want you can test it with avahi:

Code: Select all

su
toor
chmod +x /etc/rc.d/rc.avahidaemon
chmod +x /etc/rc.d/rc.avahidnsconfd
/etc/rc.d/rc.avahidaemon start
/etc/rc.d/rc.avahidnsconfd start
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

burdi01
Shogun
Shogun
Posts: 206
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

Printing and scanning for Porteus

Post#96 by burdi01 » 19 Apr 2024, 15:55

As a contributor to PartedMagic I keep an eye on Porteu{s,x}: both belong to the Slackware "family" and I know that often modules are compatible (but for the name: .sqfm <-> .xzm).
Having an hour to spend I loaded the 07-printing tar -> xzm as well as the avahi package into a running Porteus XFCE v5.01: alas GLIBC-2,38 not found ...
I then loaded these 2 things into a running Pmagic Current64: avahi ok but the browser could not find localhost:631 ...
Then I loaded only the avahi thing into a running Pmagic Current64 *): localhost:631 indeed found my driverless Brother DCP-L2660DW and I could print. :Yahoo!:
:D

Edit Apr 20,2024: *) For a better understanding: Blaze's avahi, Slackware Current64's cups and no vendor stuff such as hplip, brother drivers, etc.
Last edited by burdi01 on 20 Apr 2024, 10:24, edited 3 times in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 8397
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Printing and scanning for Porteus

Post#97 by Ed_P » 19 Apr 2024, 23:26

Blaze wrote:
18 Apr 2024, 15:36
Ed_P, avahi-20240306_709e60f-x86_64-2.txz
Thank you Blaze. :happy62:

Code: Select all

guest@porteus:/etc/rc.d$ ls -thong rc.a*
-rwxr-xr-x 1 1.6K Mar 29 00:53 rc.avahidaemon*
-rwxr-xr-x 1 1.6K Mar 29 00:53 rc.avahidnsconfd*
-rwxr-xr-x 1  552 Sep 20  2021 rc.acpid*
-rw-r--r-- 1 2.5K Jun 14  2021 rc.alsa
-rw-r--r-- 1  999 Jun 14  2021 rc.alsa-oss
guest@porteus:/etc/rc.d$ 
guest@porteus:/etc/rc.d$ chmod +x /etc/rc.d/rc.avahidaemon
chmod: changing permissions of '/etc/rc.d/rc.avahidaemon': Operation not permitted
guest@porteus:/etc/rc.d$ su
Password: 
root@porteus:/etc/rc.d# chmod +x /etc/rc.d/rc.avahidaemon
root@porteus:/etc/rc.d# chmod +x /etc/rc.d/rc.avahidnsconfd
root@porteus:/etc/rc.d# /etc/rc.d/rc.avahidaemon start
/usr/sbin/avahi-daemon: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by /usr/sbin/avahi-daemon)
/usr/sbin/avahi-daemon: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib64/libavahi-common.so.3)
Starting Avahi mDNS/DNS-SD Daemon:  /usr/sbin/avahi-daemon -D
/usr/sbin/avahi-daemon: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by /usr/sbin/avahi-daemon)
/usr/sbin/avahi-daemon: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib64/libavahi-common.so.3)
root@porteus:/etc/rc.d# /etc/rc.d/rc.avahidnsconfd start
/usr/sbin/avahi-dnsconfd: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by /usr/sbin/avahi-dnsconfd)
/usr/sbin/avahi-dnsconfd: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib64/libavahi-common.so.3)
Starting Avahi mDNS/DNS-SD DNS Server Configuration Daemon:  /usr/sbin/avahi-dnsconfd -D
/usr/sbin/avahi-dnsconfd: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by /usr/sbin/avahi-dnsconfd)
/usr/sbin/avahi-dnsconfd: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib64/libavahi-common.so.3)
root@porteus:/etc/rc.d#
Unfortunately :(
Firefox http://localhost:631/admin/ wrote:Unable to connect

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

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

Printing and scanning for Porteus

Post#98 by beny » 20 Apr 2024, 09:50

the glibc version is for current if you use the porteus based on slackware 15 don't match,Ed_P take a look at glibc version that blaze use for the kernel build when he share the packages

User avatar
Ed_P
Contributor
Contributor
Posts: 8397
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Printing and scanning for Porteus

Post#99 by Ed_P » 20 Apr 2024, 16:25

beny wrote:
20 Apr 2024, 09:50
the glibc version is for current if you use the porteus based on slackware 15 don't match
Thank you Beny. The ISO I'm running:

Code: Select all

ISO: /ISOs/Porteus/Porteus-CINNAMON-v5.01-x86_64.iso

~#  uname -a
Linux porteus.example.net 6.6.20-porteus #1 SMP PREEMPT_DYNAMIC Tue Mar  5 20:06:09 MSK 2024 x86_64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz GenuineIntel GNU/Linux

~#  ls -l /mnt/live/memory/images
000-kernel.xzm : Mar 5 12:26
001-core.xzm : Mar 1 06:24
002-xorg.xzm : Mar 1 06:29
002-xtra.xzm : Mar 1 06:34
003-cinnamon.xzm : Dec 29 00:05
07-printing-x86_64-2023-02-04.xzm : Feb 4 2023
is not that old.

My /lib64/libc.so.6 is a link to libc-2.35.so which is 2.5 MB and has a date of 22 Feb 2022.

So, when will the Porteus ISOs support the current libc-2.38 module or when will there be a libc-2.38 module? :hmmm:
Ed

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

Printing and scanning for Porteus

Post#100 by beny » 20 Apr 2024, 17:12

hi Ed_P, now the avahi package is on slackware current,maybe you have to use this link to choose the one for your system that is slackware 15
https://slackware.nl/slakfinder/index.p ... e=#results
and the blaze package have the python3.11 directory inside so is for current ,the slackware stock have the python3.9, Ed_P

User avatar
Ed_P
Contributor
Contributor
Posts: 8397
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Printing and scanning for Porteus

Post#101 by Ed_P » 22 Apr 2024, 02:02

Thanks Beny.

The bottom download link doesn't work for me. It displays rather than downloads. The other download link works but I don't have a tgz2xzm command.
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3955
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Printing and scanning for Porteus

Post#102 by ncmprhnsbl » 22 Apr 2024, 02:40

Ed_P wrote:
22 Apr 2024, 02:02
but I don't have a tgz2xzm command.
fun fact: txz2xzm handles both .txz and .tgz ..in fact there's a /opt/porteus-scripts/tgz2xzm that is a link to txz2xzm, seems we missed linking from /usr/bin ..
just doing it from your filemanager rightclick menu is even easier :)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

donald
Full of knowledge
Full of knowledge
Posts: 2076
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Printing and scanning for Porteus

Post#103 by donald » 22 Apr 2024, 02:52

Ed_P wrote:
22 Apr 2024, 02:02
.... I don't have a tgz2xzm command.

...02 Apr 2019..
@ Ed
Command is txz2xzm (Work with txz/tgz packages).
tar2xzm (Post by donald #70610)
:)

User avatar
Ed_P
Contributor
Contributor
Posts: 8397
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Printing and scanning for Porteus

Post#104 by Ed_P » 22 Apr 2024, 05:23

ncmprhnsbl wrote:
22 Apr 2024, 02:40
fun fact: txz2xzm handles both .txz and .tgz ..
donald wrote:
22 Apr 2024, 02:52
...02 Apr 2019..
@ Ed
Command is txz2xzm (Work with txz/tgz packages)
.tar2xzm (Post by donald #70610)

:lol: You guys are the best. :friends: Thank you. :hi:

Added in 11 minutes 40 seconds:
ncmprhnsbl wrote:
22 Apr 2024, 02:40
just doing it from your filemanager rightclick menu is even easier :)
When I right click on the .tgz file in Nemo I don't see an option to convert the file to xzm but selecting the Open With option and entering txz2xzm works. :good:


Added in 19 minutes 26 seconds:
Firefox: http://localhost:631/admin wrote: Unable to connect

Firefox can't establish a connection to the server at localhost:631

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# /etc/rc.d/rc.avahidaemon start
Starting Avahi mDNS/DNS-SD Daemon:  /usr/sbin/avahi-daemon -D

Timeout reached while wating for return value
Could not receive return value from daemon process.
root@porteus:/home/guest# 
root@porteus:/home/guest# /etc/rc.d/rc.avahidnsconfd start
Starting Avahi mDNS/DNS-SD DNS Server Configuration Daemon:  /usr/sbin/avahi-dnsconfd -D
root@porteus:/home/guest# firefox http://localhost:631/admin/
Running Firefox as root in a regular user's session is not supported.  ($XDG_RUNTIME_DIR is /run/user/1000 which is owned by guest.)
root@porteus:/home/guest# exit
exit
guest@porteus:~$ firefox http://localhost:631/admin/
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

Code: Select all

~#  uname -a
Linux porteus.example.net 6.6.20-porteus #1 SMP PREEMPT_DYNAMIC Tue Mar  5 20:06:09 MSK 2024 x86_64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz GenuineIntel GNU/Linux

~#  cat /etc/porteus/*
001-core.xzm:20240301
002-xorg.xzm:20240301
002-xtra.xzm:20240301
003-cinnamon.xzm:20231229
initrd.xz:20230923

~#  ls -l /mnt/live/memory/images
000-kernel.xzm : Mar 5 12:26
001-core.xzm : Mar 1 06:24
002-xorg.xzm : Mar 1 06:29
002-xtra.xzm : Mar 1 06:34
003-cinnamon.xzm : Dec 29 00:05
Dell6.4.10-wifi.xzm : Aug 18 2023
Dellautonet.xzm : Dec 19 16:00
Dellsound.xzm : May 14 2022
avahi-0.8-x86_64-7_dce.xzm : Apr 22 01:35
firefox-122.0-x86_64-en-US.xzm : Jan 27 23:51
mychanges.xzm : Apr 21 15:21
wmctrl-1.07-x86_64-2salix15.0.xzm : Feb 6 11:54
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3955
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Printing and scanning for Porteus

Post#105 by ncmprhnsbl » 22 Apr 2024, 07:18

Ed_P wrote:
22 Apr 2024, 05:54
When I right click on the .tgz file in Nemo I don't see an option to convert the file to xzm
odd, you don't see this:?
Image
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply