Printing and scanning for Porteus
Printing and scanning for Porteus
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--
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--
-
- Shogun
- Posts: 213
- Joined: 18 Aug 2013, 12:09
- Distribution: Slackware PartedMagic Xubuntu
- Location: The Netherlands
Printing and scanning for Porteus
Why people keep on using hplip and its counterparts from other manufacturers puzzles me: driverless printing and scanning is the way to go.
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.
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
For driverless scanning use the simple-scan program.
-
- Shogun
- Posts: 213
- Joined: 18 Aug 2013, 12:09
- Distribution: Slackware PartedMagic Xubuntu
- Location: The Netherlands
Printing and scanning for Porteus
No, I do not. But based on Slackware Current making one should not be difficult.Do you have an avahi .xzm module you would like to share?
I am just a lurker over here doing a recommendation.
- Blaze
- DEV Team
- Posts: 3907
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Printing and scanning for Porteus
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
UPDATE
Download: 07-printing-x86_64-2024-04-18.tar (plus all deps for all DE's) for Porteus 5.1-current x86_64
Changelog
Packages:
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:
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
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
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
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
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
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
-
- Shogun
- Posts: 213
- Joined: 18 Aug 2013, 12:09
- Distribution: Slackware PartedMagic Xubuntu
- Location: The Netherlands
Printing and scanning for Porteus
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.
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.
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.
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.
- Ed_P
- Contributor
- Posts: 8572
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Printing and scanning for Porteus
Thank you Blaze.
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#
Firefox http://localhost:631/admin/ wrote:Unable to connect
Firefox can’t establish a connection to the server at localhost:631.
Printing and scanning for Porteus
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
- Ed_P
- Contributor
- Posts: 8572
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Printing and scanning for Porteus
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
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?
Printing and scanning for Porteus
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
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
- ncmprhnsbl
- DEV Team
- Posts: 4090
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Printing and scanning for Porteus
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
-
- Full of knowledge
- Posts: 2083
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Printing and scanning for Porteus
...02 Apr 2019..
tar2xzm (Post by donald #70610)@ Ed
Command is txz2xzm (Work with txz/tgz packages).
- Ed_P
- Contributor
- Posts: 8572
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Printing and scanning for Porteus
donald wrote: ↑22 Apr 2024, 02:52...02 Apr 2019..
.tar2xzm (Post by donald #70610)@ Ed
Command is txz2xzm (Work with txz/tgz packages)
You guys are the best. Thank you.
Added in 11 minutes 40 seconds:
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.ncmprhnsbl wrote: ↑22 Apr 2024, 02:40just doing it from your filemanager rightclick menu is even easier
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
- ncmprhnsbl
- DEV Team
- Posts: 4090
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Printing and scanning for Porteus
odd, you don't see this:?
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44