printing-3.2 for porteus 3.2

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.
Post Reply
User avatar
Blaze
DEV Team
DEV Team
Posts: 1555
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: printing-3.2 for porteus 3.2

Post#76 by Blaze » 17 Nov 2016, 15:53

brokenman wrote:any reason why cups was not added to the printing module?
Because cups is present in /var/log/packages/ or I'm wrong?

Code: Select all

root@porteus:/home/guest# find /var/log/packages/ -iname *cups*
/var/log/packages/cups-2.1.4-x86_64-1
root@porteus:~$ cups-config --version
2.1.4
root@porteus:~$ 
it seems hplip bug of Slackel distro...
https://pkgs.org/slackware-14.2/slackel ... j.txz.html
pauleus wrote:Hi - I try to use printing by download and activate module.

root@porteus:~# system-config-printer

Print Settings - localhost

Printing service not available...
Copy my printing module to the folder modules of Porteus. For example /mnt/sdb1/porteus/modules
Reboot Porteus and then run system-config-printer.
If you use 32 bit, and can't run system-config-printer
please, open terminal and run these commands for install cups-2.1.4

Code: Select all

su
toor
usm -u all
usm -g cups
chmod +x /etc/rc.d/rc.cups
reboot
Last edited by Blaze on 17 Nov 2016, 17:25, edited 5 times in total.
Linux porteus 4.13.3-porteus #1 SMP PREEMPT Sat Sep 23 18:22:13 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

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

Re: printing-3.2 for porteus 3.2

Post#77 by donald » 17 Nov 2016, 16:42

@ Blaze
not in 32bit

Code: Select all

root@porteus:/home/guest# uname -rm
4.8.7-porteus i686
root@porteus:/home/guest# find /var/log/packages/ -iname *cups*
root@porteus:/home/guest# 

User avatar
Blaze
DEV Team
DEV Team
Posts: 1555
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: printing-3.2 for porteus 3.2

Post#78 by Blaze » 17 Nov 2016, 16:54

donald, it's call to brokenman (about cups) Image

I replaced slackel-x86_64/hplip-3.16.9-x86_64-1dj.txz on the slackware64-current/slackware64/ap/hplip-3.16.9-x86_64-1.txz

07-printing-x86_64-17.11.2016.xzm 67.93 Mb (64 bit)

If all ok, I will do it for I586 (32 bit).
Linux porteus 4.13.3-porteus #1 SMP PREEMPT Sat Sep 23 18:22:13 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: printing-3.2 for porteus 3.2

Post#79 by Ed_P » 17 Nov 2016, 17:52

3.2 Cinnamon 64-bit
HP Officejet Pro 8600

New version seems to have worked but no test page printed. It was able to configure my network printer once I manually put the IP address in and manually selected the brand and model, the config window showed 3 drivers for it and I chose the top one.

Code: Select all

guest@porteus:~$ uname -rm
4.8.8-porteus x86_64

guest@porteus:~$ find /var/log/packages/ -iname *cups*
/var/log/packages/cups-bjnp-1.2-x86_64-1_slonly
/var/log/packages/cups-filters-1.9.0-x86_64-2
/var/log/packages/pycups-1.9.73-x86_64-1
/var/log/packages/cups-2.1.4-x86_64-1

guest@porteus:~$ system-config-printer
Caught non-fatal exception.  Traceback:
File "/usr/share/system-config-printer/probe_printer.py", line 253, in _do_find
    fn ()
File "/usr/share/system-config-printer/probe_printer.py", line 281, in _probe_snmp
    stderr=null)
File "/usr/lib64/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Continuing anyway..
PASSTHRU
'\x00'
ps
'\x00'
lp
'\x00'
PORT1
'\x00'

'\x00'
LPT0
'\x00'
LPT0_PASSTHRU
'\x00'
COM0
'\x00'
COM0_PASSTHRU
'\x00'
LPT1
'\x00'
LPT1_PASSTHRU
'\x00'
COM1
'\x00'
COM1_PASSTHRU
'\x00'
LPT2
'\x00'
LPT2_PASSTHRU
'\x00'
COM2
'\x00'
COM2_PASSTHRU
'\x00'
LPT3
'\x00'
LPT3_PASSTHRU
'\x00'
COM3
'\x00'
COM3_PASSTHRU
'\x00'
LPT4
'\x00'
LPT4_PASSTHRU
'\x00'
COM4
'\x00'
COM4_PASSTHRU
'\x00'
LPT5
'\x00'
LPT5_PASSTHRU
'\x00'
COM5
'\x00'
COM5_PASSTHRU
'\x00'
LPT6
'\x00'
LPT6_PASSTHRU
'\x00'
COM6
'\x00'
COM6_PASSTHRU
'\x00'
LPT7
'\x00'
LPT7_PASSTHRU
'\x00'
COM7
'\x00'
COM7_PASSTHRU
'\x00'
pr0
'\x00'
pr1
'\x00'
pr2
'\x00'
pr3
'\x00'
pr4
'\x00'
pr5
'\x00'
pr6
'\x00'
pr7
'\x00'
pr8
'\x00'
pr9
'\x00'
pr10
'\x00'
pr11
'\x00'
pr12
'\x00'
pr13
'\x00'
pr14
'\x00'
pr15
'\x00'
pr16
'\x00'
pr17
'\x00'
pr18
'\x00'
pr19
'\x00'
pr20
'\x00'
pr21
'\x00'
pr22
'\x00'
pr23
'\x00'
pr24
'\x00'
pr25
'\x00'
pr26
'\x00'
pr27
'\x00'
pr28
'\x00'
pr29
'\x00'
pr30
'\x00'
pr31
'\x00'
pr32
'\x00'
pr33
'\x00'
pr34
'\x00'
pr35
'\x00'
pr36
'\x00'
pr37
'\x00'
pr38
'\x00'
pr39
'\x00'
pr40
'\x00'
pr41
'\x00'
pr42
'\x00'
pr43
'\x00'
pr44
'\x00'
pr45
'\x00'
pr46
'\x00'
pr47
'\x00'
pr48
'\x00'
pr49
'\x00'
No ID match for device socket://192.168.200.190:9100:
MFG:Generic;MDL:Printer;DES:Generic Printer;
Using lsb/usr/cupsfilters/textonly.ppd (status: 3)
Unknown value for media-col: (unknown IPP value tag 0x34)
Choices: [u'media-bottom-margin', u'media-left-margin', u'media-right-margin', u'media-size', u'media-source', u'media-top-margin', u'media-type']
Selecting from choices: media-bottom-margin
Unknown value for media-col: (unknown IPP value tag 0x34)
Choices: [u'media-bottom-margin', u'media-left-margin', u'media-right-margin', u'media-size', u'media-source', u'media-top-margin', u'media-type']
Selecting from choices: media-bottom-margin
/usr/share/system-config-printer/monitor.py:741: Warning: Source ID 2778 was not found when attempting to remove it
  gobject.source_remove (self.update_timer)
/usr/share/system-config-printer/system-config-printer.py:2013: Warning: Source ID 2790 was not found when attempting to remove it
  gobject.source_remove (self.populateList_timer)
/usr/share/system-config-printer/monitor.py:191: Warning: Source ID 2901 was not found when attempting to remove it
  gobject.source_remove (timer)
guest@porteus:~$ 
Something about a "cups_insecure_filter error" in the Notifications window and printer debug screens.

Code: Select all

Printer warning

Printer 'HP-Officejet-Pro-8600' 'cups_insecure_filter error'
Image

Image
Ed

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

Re: printing-3.2 for porteus 3.2

Post#80 by donald » 17 Nov 2016, 18:03

@ Blaze
Blaze wrote:donald, it's call to brokenman (about cups)
OK,pardon.. :oops:

It's just that i don't know where cups will / should be by default.
brokenman wrote:any reason why cups was not added to the printing module?
this sounds like cups will not be included in the stock porteus-iso.
(No idea why it is in x86_64 then)
:friends:

pauleus
White ninja
White ninja
Posts: 10
Joined: 17 Nov 2016, 03:50
Distribution: Mint
Location: US

Re: printing-3.2 for porteus 3.2

Post#81 by pauleus » 17 Nov 2016, 22:25

OK, so I usm -g cups and start cupsd, but parallel backend not working...

root@porteus:/usr/lib/cups/backend# ls
beh* bluetooth* hp* http@ implicitclass* ipps@ parallel* smb@ socket*
bjnp* gutenprint52+usb* hpfax* https@ ipp* lpd* serial* snmp* usb*
root@porteus:/usr/lib/cups/backend# ./parallel
root@porteus:/usr/lib/cups/backend#
root@porteus:/usr/lib/cups/backend# lpinfo -v
network ipp
network ipps
network http
network lpd
network socket
network https
network smb
root@porteus:/usr/lib/cups/backend# dmesg | grep par
[ 22.044151] parport_pc 00:02: reported by Plug and Play ACPI
[ 22.044223] parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
[ 22.585483] ppdev: user-space parallel port driver

Anyone else using old parallel thing like me? :sorry:

User avatar
brokenman
Site Admin
Site Admin
Posts: 5659
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: printing-3.2 for porteus 3.2

Post#82 by brokenman » 18 Nov 2016, 00:46

Because cups is present in /var/log/packages/ or I'm wrong?
cups is only in kde and cinnamon. Probably best to include it in the printing module.
How do i become super user?
Wear your underpants on the outside and put on a cape.

pauleus
White ninja
White ninja
Posts: 10
Joined: 17 Nov 2016, 03:50
Distribution: Mint
Location: US

Re: printing-3.2 for porteus 3.2

Post#83 by pauleus » 18 Nov 2016, 05:30

FYI - I happen to have Ubuntu Mate 15.10 on USB so I try that, works perfect.
Trouble seems to be that Porteus kernel not give me /dev/lp0 on this machine.
Rest of v3.2 works very nice for me. Great job!

User avatar
francois
Contributor
Contributor
Posts: 5136
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

Re: printing-3.2 for porteus 3.2

Post#84 by francois » 18 Nov 2016, 14:15

cups is only in kde and cinnamon
Is there some major reason why cups is included in these desktop and not into the others?
Carpe diem.

User avatar
Blaze
DEV Team
DEV Team
Posts: 1555
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: printing-3.2 for porteus 3.2

Post#85 by Blaze » 18 Nov 2016, 15:30

Ed_P, can you try my 07-printing-x86_64-17.11.2016.xzm 67.93 Mb (64 bit) module in Always Fresh mode? Thanks.

donald, thanks for your report.
pauleus wrote:but parallel backend not working...

What is parallel backend? What is it for?

Probably, it's that do you mean https://pkgs.org/search/parallel (look at Slackware 14.2 section)
brokenman wrote:cups is only in kde and cinnamon. Probably best to include it in the printing module.
Agree with you, but need to exclude cups package from kde and cinnamon and include it in the printing module. What do you say about this decision?
Linux porteus 4.13.3-porteus #1 SMP PREEMPT Sat Sep 23 18:22:13 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
brokenman
Site Admin
Site Admin
Posts: 5659
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: printing-3.2 for porteus 3.2

Post#86 by brokenman » 18 Nov 2016, 18:57

cups is a dependency of other packages in kde and cinnamon.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 5136
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

Re: printing-3.2 for porteus 3.2

Post#87 by francois » 18 Nov 2016, 21:16

So why not printing for kde, cinnamon. ... ... smaller packages for those two big ones, and bigger packages with cups for mate, xfce ...
Forget my suggestion, the less packages there will be, the simpler, KISS, KISS, KISS. 8)
Carpe diem.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5659
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: printing-3.2 for porteus 3.2

Post#88 by brokenman » 19 Nov 2016, 00:15

@pauleus
Have you tried creating the file?

Code: Select all

modprobe lp
modprobe ppdev
modprobe parport_pc
mknod /dev/lp0 b 6 0
How do i become super user?
Wear your underpants on the outside and put on a cape.

pauleus
White ninja
White ninja
Posts: 10
Joined: 17 Nov 2016, 03:50
Distribution: Mint
Location: US

Re: printing-3.2 for porteus 3.2

Post#89 by pauleus » 19 Nov 2016, 04:11

@brokenman

I boot again and lp module not loaded, /dev/lp0 not there.
So, modprobe lp from console and lp loads, /dev/lp0 created. Good.
I don't know why it's not automatic.

Then, usm -g cups and check backends in /usr/lib/cups/backend
but parallel is not there. It was before but not now.

So, download and activate 07-printing... module,
OK, now parallel is there... ????

Try it,

root@porteus:~# /usr/lib/cups/backend/parallel
direct parallel:/dev/lp0 "unknown" "LPT #1" "" ""

OK, that's good too.

Setup with system-config-printer, but won't print.

Try lpinfo -v,

root@porteus:~# lpinfo -v
network socket
network ipps
network ipp
network http
network https
network lpd
network smb

Should show up there, but it's not. Won't work. Don't know why.
Maybe something not right in usm cups package for this. :unknown:

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: printing-3.2 for porteus 3.2

Post#90 by Ed_P » 19 Nov 2016, 04:41

Blaze wrote:Ed_P, can you try my 07-printing-x86_64-17.11.2016.xzm 67.93 Mb (64 bit) module in Always Fresh mode? Thanks.
I did, same result.

Code: Select all

guest@porteus:~$ uname -r
4.8.8-porteus

guest@porteus:~$ cat /proc/cmdline 

quiet from=/ISOs/Porteus-CINNAMON-v3.2-x86_64-nu.iso kmap=us extramod=/porteus3.2/Modules 

guest@porteus:~$ ls /mnt/live/memory/images
000-kernel.xzm/    07-printing-x86_64-17.11.2016.xzm/
001-core.xzm/      firefox-50.0b5-x86_64-1.xzm/
002-xorg.xzm/      flashplayer-plugin-23.0.0.205-x86_64-1.xzm/
003-cinnamon.xzm/

guest@porteus:~$ ls /usr/lib/
NetworkManager/                       librokenman
bjlib/                                macroport
cinnamon-control-center-1/            mozilla/
iscan-data/                           pkgconfig/
kde4/                                 polkit-1/
libcinnamon-control-center.so@        rpm/
libcinnamon-control-center.so.1@      siconv/
libcinnamon-control-center.so.1.0.0*  systemd/
libcncpmslld2.so.3.0.0                udev/
libcncpnet2.so.1.2.3                  udisks2/
guest@porteus:~$ 
Ed

Post Reply