Page 10 of 15

Re: printing-3.2 for porteus 3.2

Posted: 02 Dec 2016, 00:43
by francois
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.

Re: printing-3.2 for porteus 3.2

Posted: 02 Dec 2016, 16:40
by Blaze
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

Re: printing-3.2 for porteus 3.2

Posted: 02 Dec 2016, 17:48
by francois
You are right about the solution to rc.cups. We will wait brokenman's move. :)

Thanks for your patience.

Re: printing-3.2 for porteus 3.2

Posted: 02 Dec 2016, 21:34
by brokenman
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.

Re: printing-3.2 for porteus 3.2

Posted: 02 Dec 2016, 23:12
by francois
@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. :)

Re: printing-3.2 for porteus 3.2

Posted: 03 Dec 2016, 07:06
by Blaze
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?

Re: printing-3.2 for porteus 3.2

Posted: 03 Dec 2016, 14:41
by francois
@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. :)

Re: printing-3.2 for porteus 3.2

Posted: 03 Dec 2016, 16:29
by Ed_P
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.

Re: printing-3.2 for porteus 3.2

Posted: 03 Dec 2016, 18:50
by fulalas
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?

Re: printing-3.2 for porteus 3.2

Posted: 03 Dec 2016, 20:38
by Blaze
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).

Re: printing-3.2 for porteus 3.2

Posted: 04 Dec 2016, 13:55
by francois
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.

Re: printing-3.2 for porteus 3.2

Posted: 04 Dec 2016, 15:11
by Ed_P
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.

Re: printing-3.2 for porteus 3.2

Posted: 04 Dec 2016, 18:57
by francois
Brokenman has inserted CUPS in all desktop, because it is needed by kde5.

Re: printing-3.2 for porteus 3.2

Posted: 05 Dec 2016, 02:53
by francois
printing is in the modules section for porteus 3.2.1
http://dl.porteus.org/x86_64/Porteus-v3.2.1/modules/

Re: printing-3.2 for porteus 3.2

Posted: 05 Dec 2016, 05:14
by Ed_P
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