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.
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: printing-3.2 for porteus 3.2

Post#136 by francois » 02 Dec 2016, 00:43

1.0 pygtk is not sufficient, it needs pycairo for kde5, xfce4, openbox:

Code: Select all

root@porteus:/home/guest# system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 31, in <module>
    import gtk
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: No module named cairo
root@porteus:/home/guest#
It seems that you need:

Code: Select all

usm -g pycairo

Code: Select all

root@porteus:/mnt/sdb2/64bit_v32/porteus/optional# ls /mnt/sdb2/64bit_v32/porteus/optional/pygtk-2.24.0-x86_64-bundle/var/log/packages/
pycairo-1.10.0-x86_64-1  pygtk-2.24.0-x86_64-2
and accept bundle. You will have to build it from the kde5 or xfce4 environment. :)

2.0 Permission change does not work from printing module.

Code: Select all

root@porteus:/mnt/sdb2/64bit_v32/porteus/modules# ls -l /mnt/sdb2/64bit_v32/porteus/modules/07-printing-x86_64-01.12.2016/etc/rc.d/
total 12
-rwxr-xr-x 1 root root 3678 Jun 15 05:53 rc.cups*
-rwxr-xr-x 1 root root 3085 Jun 23 06:25 rc.cups-browsed*
-rw-r--r-- 1 root root  895 Jun  3 20:13 rc.snmpd
root@porteus:/mnt/sdb2/64bit_v32/porteus/modules# 

Code: Select all

root@porteus:/home/guest# ls -l /etc/rc.d
total 115
drwxr-xr-x 2 root root    56 Sep 23  2008 init.d/
lrwxrwxrwx 1 root root     4 Nov 28 02:32 rc.0 -> rc.6*
etc.

-rw-r--r-- 1 root root  3678 Jun 15 05:53 rc.cups
Thanks.
Prendre son temps, profiter de celui qui passe.

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:

Re: printing-3.2 for porteus 3.2

Post#137 by Blaze » 02 Dec 2016, 16:40

francois, thanks for testing :) :) :)
I don't use usm for printing module and prefer Cinnamon environment.
2.0 Permission change does not work from printing module.
It's really strange. I think that brokenman must to remove rc.cups by default --->>>

Code: Select all

rm /etc/rc.d/rc.cups
because rc.cups is contained in the 07-printing module.

A new versions:

07-printing-i586-02.12.2016.xzm
07-printing-x86_64-02.12.2016.xzm

Code: Select all

Added

pycairo-1.10.0-x86_64-1.txz
https://pkgs.org/search/pycairo
Cheers
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
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: printing-3.2 for porteus 3.2

Post#138 by francois » 02 Dec 2016, 17:48

You are right about the solution to rc.cups. We will wait brokenman's move. :)

Thanks for your patience.
Prendre son temps, profiter de celui qui passe.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: printing-3.2 for porteus 3.2

Post#139 by brokenman » 02 Dec 2016, 21:34

I just checked my tree. I think someone asked for cups to be added to all desktops as it is currently in my tree for all desktops. Please remove it from the printing module and I will turn on executable bit in 003 modules. I have removed cups from the latest printing module so no need to do anything further. Sorry for the confusion.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: printing-3.2 for porteus 3.2

Post#140 by francois » 02 Dec 2016, 23:12

@brokenman:

Does this means that you are going to take care also of rc.cups permission and /usr/share/applications/cups.desktop with Exec=/usr/bin/xdg-open http://localhost:631/admin/?

Sorry if you meant it. :)
Prendre son temps, profiter de celui qui passe.

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:

Re: printing-3.2 for porteus 3.2

Post#141 by Blaze » 03 Dec 2016, 07:06

Please remove it from the printing module and I will turn on executable bit in 003 modules. I have removed cups from the latest printing module so no need to do anything further.
What I need to do with printing module or you upload your version of printing module for us? Thanks.

What about remove cups from environments (003 modules) that don't have dependence in cups.
In environments (003 modules) who require cups, for example Cinnamon and KDE5, need to remove rc.cups from /etc/rc.d/
and stay with cups and executable rc.cups in printing modules.

If I don't have printer - executable rc.cups is not needed for me at boot up of Porteus. It takes time...


I mean this step for brokenman

Code: Select all

rm /003-modules/etc/rc.d/rc.cups
francois wrote:Does this means that you are going to take care also of rc.cups permission and /usr/share/applications/cups.desktop with Exec=/usr/bin/xdg-open http://localhost:631/admin/?
Yep, brokenman must to do this change in the (003 modules)

Code: Select all

sed -i 's|localhost:631|localhost:631/admin|g' /003-modules/usr/share/applications/cups.desktop
francois, can you test printing module in LXQt 0.11 for Porteus 3.2 x64 by fulalas?
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
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: printing-3.2 for porteus 3.2

Post#142 by francois » 03 Dec 2016, 14:41

@blaze:

Code: Select all

guest@porteus:~$ system-config-printer
/usr/bin/system-config-printer: /usr/share/system-config-printer/system-config-printer.py: /usr/bin/python: bad interpreter: No such file or directory
/usr/bin/system-config-printer: line 3: /usr/share/system-config-printer/system-config-printer.py: Success
guest@porteus:~$ cd /var/log/packages
guest@porteus:/var/log/packages$ ls
etc.

pycairo-1.10.0-x86_64-1
pycups-1.9.73-x86_64-1
pycurl-7.43.0-x86_64-1
pygobject-2.28.6-x86_64-2
pygtk-2.24.0-x86_64-2
There is no python-2.7.11-x86_64-2.txz. Fulalas will have to add python-2.7.11-x86_64-2.txz it to its lxqt module. There is no need for tlc and tk packages.

I have advised fulalas. :)
Prendre son temps, profiter de celui qui passe.

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

Re: printing-3.2 for porteus 3.2

Post#143 by Ed_P » 03 Dec 2016, 16:29

This new version works with my 3.2.1 Cinnamon 64-bit system and HP-Officejet-Pro-8600 network printer.

Code: Select all

guest@porteus:~$ system-config-printer
guest@porteus:~$ 
IMO I think for all the various DEs with their unique package installs that a base functional print module with a separate support print module to satisfy one or more DEs approach would work. For example 07-printing-x86_64-02.12.2016.xzm works for Cinnamon as is but may not work for the KDE DE. For the KDE DE system it would need a 07-KDE-printing-x86_64-02.12.2016.xzm module in additon to the 07-printing-x86_64-02.12.2016.xzm to work.

I would also think that if CUPS is only needed for printing it only be a part of the 07-printing module.
Ed

fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: printing-3.2 for porteus 3.2

Post#144 by fulalas » 03 Dec 2016, 18:50

I don't like the idea to put a lot of libs inside a generic module 'just in case'. In my opinion it would be smarter to put python inside printing module once is this module that's missing python, not LXQt and stuff that comes with it, right?

But maybe in this specific case it's just a matter of putting these two files inside /usr/lib64:

libpython2.7.so (symlink pointing to the lib below)
libpython2.7.so.1.0 (real lib)

Could you check, please?

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:

Re: printing-3.2 for porteus 3.2

Post#145 by Blaze » 03 Dec 2016, 20:38

Ed_P, if Porteus will be based on arch - it would be solved with commands like this:

Code: Select all

pacman -S libcups cups cups-filters ghostscript gsfonts simple-scan hplip python-dbus foomatic-db foomatic-db-engine foomatic-db-nonfree foomatic-filters gutenprint cups-pdf
yaourt -S epson-inkjet-printer-escpr
yaourt -S iscan iscan-data
yaourt -S sane xsane
and you can choose which packages you need (exclude and include).
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
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: printing-3.2 for porteus 3.2

Post#146 by francois » 04 Dec 2016, 13:55

brokenman wrote:I just checked my tree. I think someone asked for cups to be added to all desktops as it is currently in my tree for all desktops. Please remove it from the printing module and I will turn on executable bit in 003 modules. I have removed cups from the latest printing module so no need to do anything further. Sorry for the confusion.
@fulalas:
It seems that brokenman has taken care of the printing module after this last statement. If the libpython2.7.so.1.0 is sufficient to do the job on your lxqt module, then this is perfect. I will have a look at it.

@Ed:
Cups is necessary for system-config-printer to work. Cups is needed on kde5.
Prendre son temps, profiter de celui qui passe.

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

Re: printing-3.2 for porteus 3.2

Post#147 by Ed_P » 04 Dec 2016, 15:11

francois wrote:@Ed:
Cups is necessary for system-config-printer to work.
I understand that and it is why I think it should be a part of the print module rather than the ISO. If it is going to be a part of the ISO, all ISOs, then having it in the print module is duplicate space. But I don't think it is duplicate RAM since I would think the code in one would overlay the code in the other when mounted.
Ed

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: printing-3.2 for porteus 3.2

Post#148 by francois » 04 Dec 2016, 18:57

Brokenman has inserted CUPS in all desktop, because it is needed by kde5.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: printing-3.2 for porteus 3.2

Post#149 by francois » 05 Dec 2016, 02:53

printing is in the modules section for porteus 3.2.1
http://dl.porteus.org/x86_64/Porteus-v3.2.1/modules/
Prendre son temps, profiter de celui qui passe.

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

Re: printing-3.2 for porteus 3.2

Post#150 by Ed_P » 05 Dec 2016, 05:14

francois wrote:printing is in the modules section for porteus 3.2.1
It doesn't appear to be the current one. http://forum.porteus.org/viewtopic.php? ... 135#p51057
Ed

Post Reply