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
Blaze
DEV Team
DEV Team
Posts: 1505
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#121 by Blaze » 28 Nov 2016, 05:06

I have in /tmp/hp/

Code: Select all

hplip-3.16.11.tar.gz
hplip-3.16.11.tar.gz.asc (.asc inside)
brokenman wrote:Also, what is the name of $CWD/$PKGNAM-$VERSION.?z* that you are trying to unpack?
the name is hplip-3.16.11.tar.gz

BTW. In x86_64 I don't touch this line and all good compiled.
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

jssouza
DEV Team
DEV Team
Posts: 348
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm
Location: Liechtenstein

Re: printing-3.2 for porteus 3.2

Post#122 by jssouza » 28 Nov 2016, 09:04

Hi Blaze,

The problem occurs because of the asc file. The slackbuild tries to retrieve version in the second line as
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}

Because of the hplip-3.16.11.tar.gz.asc also present, the above resolves to:

Code: Select all

sh -x hplip.SlackBuild
+ PKGNAM=hplip
++ cut -f 1 -d -
++ rev
++ cut -f 3- -d .
++ rev
++ echo hplip-3.16.11.tar.gz hplip-3.16.11.tar.gz.asc
+ VERSION=3.16.11.tar
...
And then the subsequent tar error tar: /tmp/hp/hplip-3.16.11.tar.tar.?z*: Cannot open: No such file or directory occurs.

If the asc is moved somewhere else or renamed it to say hplipasc.tar.gz.asc, the script continues further.
...
++ echo hplip-3.16.11.tar.gz
+ VERSION=3.16.11
...

Doing some changes in the slackbuild for configure options and installing some needed packages (curl, python etc) was able to successfully build the slackware package.
BTW, the same error occurred on cinnamon x86_64 also.

User avatar
Blaze
DEV Team
DEV Team
Posts: 1505
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#123 by Blaze » 28 Nov 2016, 16:42

jssouza, I deleted hplip-3.16.11.tar.gz.asc and now hplip-3.16.11 is compiled.
Probably I don't copied hplip-3.16.11.tar.gz.asc when I compiled hplip-3.16.11 for x86_64.
Thanks for your advice :Bravo:
Cheers :beer:


07-printing-i586-28.11.2016.xzm

Code: Select all

root@porteus:~# ls /home/guest/Загрузки/07-printing-i586-28.11.2016/var/log/packages
PyQt5-5.7-i486-1alien
brscan-0.2.4-0.i386
brscan-skey-0.2.4-1.i386
brscan2-0.2.5-1.i386
brscan3-0.2.11-4.i386
brscan4-0.4.2-1.i386
cups-bjnp-1.2-i486-1_slonly
cups-filters-1.9.0-i586-2
cups-pdf-3.0beta1-i486-1_slonly
epson-inkjet-printer-escpr-1.6.10-i486-1_SBo
exo-0.10.7-i586-1
foomatic-db-engine-4.0.12-i486-1_slonly
foomatic-filters-4.0.12-i486-1
ghostscript-9.19-i586-2
ghostscript-fonts-std-8.11-noarch-1
gutenprint-5.2.11-i586-2
hplip-3.16.11-i586-3
hplip-plugin-3.16.10-i586-1_SBo
imagescan-3.22.2-1epson4fedora24.i686
imagescan-plugin-networkscan-1.1.0-1epson4fedora24.i686
imagescan-plugin-ocr-engine-1.0.0-1epson4fedora24.i686
iscan-2.30.3-1.i686
iscan-data-1.38.0-1.noarch
iscan-network-nt-1.1.1-1.i386
libgimp-2.8.18-alt1.i586
libnl-1.1.4-i486-1
net-snmp-5.7.3-i586-3
notify-python-0.1.1-i586-5
pycups-1.9.73-i586-1
pycurl-7.43.0-i586-1
pygobject-2.28.6-i486-2
qpdf-6.0.0-i586-1
reportlab-3.2.0-i486-1_slonly
scangearmp2_3.20-1_i386
simple-scan-2.32.0.2-i586-2gv
sip-4.18-i586-1
system-config-printer-1.3.13-i586-2
xsane-0.999-i486-1
root@porteus:~# 
My script for cleaning hplip i586 - will be useful in the future for fast updating hplip in the 07-printing-i586

Code: Select all

#!/bin/sh
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/etc/dbus-1/system.d/com.hp.hplip.conf
rm -rf /home/guest/Загрузки/07-printing-i586-21.11.2016/etc/hp
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/etc/xdg/autostart/hplip-systray.desktop
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/lib/udev/rules.d/56-hpmud.rules
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-toolbox
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-align
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-check
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-clean
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-colorcal
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-config_usb_printer
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-devicesettings
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-diagnose_plugin
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-diagnose_queues
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-doctor
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-fab
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-faxsetup
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-firmware
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-info
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-levels
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-linefeedcal
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-logcapture
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-makecopies
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-makeuri
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-pkservice
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-plugin
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-pqdiag
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-print
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-printsettings
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-probe
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-query
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-scan
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-sendfax
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-setup
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-systray
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-testpage
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-timedate
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-uninstall
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-unload
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-upgrade
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hp-wificonfig
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/bin/hpijs
rm -rf /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/doc
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/systemd/system/hplip-printer@.service
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpdiscovery.so
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpdiscovery.so.0
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpdiscovery.so.0.0.1
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpip.so
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpip.so.0
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpip.so.0.0.1
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpipp.so
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpipp.so.0
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpipp.so.0.0.1
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpmud.so
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpmud.so.0
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpmud.so.0.0.6
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpdiscovery.la
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpip.la
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpipp.la
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/libhpmud.la
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/python2.7/site-packages/cupsext.la
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/python2.7/site-packages/hpmudext.la
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/python2.7/site-packages/pcardext.la
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/python2.7/site-packages/scanext.la
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/sane/libsane-hpaio.la
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/applications/hplip.desktop
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/cups/backend/hp
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/cups/backend/hpfax
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/cups/filter/foomatic-rip-hplip
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/cups/filter/hpcups
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/cups/filter/hpcupsfax
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/cups/filter/hpps
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/cups/filter/pstotiff
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/python2.7/site-packages/cupsext.so
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/python2.7/site-packages/hpmudext.so
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/python2.7/site-packages/pcardext.so
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/python2.7/site-packages/scanext.so
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/sane/libsane-hpaio.so
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/sane/libsane-hpaio.so.1
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/lib/sane/libsane-hpaio.so.1.0.0
rm -rf /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/cups/drv/hp
rm -rf /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/cups/drv/HP
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/cups/mime/pstotiff.convs
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/cups/mime/pstotiff.types
rm -rf /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/cups/model/HP
rm -rf /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/ppd/HP
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/dbus-1/system-services/com.hp.hplip.service
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi
rm -rf /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/hplip
rm -rf /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/doc/
rm -rf /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/src/
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/usr/share/polkit-1/actions/com.hp.hplip.policy
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/var/log/packages/hplip-3.16.9-i586-1dj
rm /home/guest/Загрузки/07-printing-i586-21.11.2016/var/log/scripts/hplip-3.16.9-i586-1dj
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
francois
Contributor
Contributor
Posts: 5081
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: printing-3.2 for porteus 3.2

Post#124 by francois » 30 Nov 2016, 01:35

@blaze:
1.0 most recent version of printing module works under kde5. xfce4, cinnamon. But you need pygtk-2.24.0-x86_64-bundle.xzm and dbus-python-1.2.4-x86_64-1.xzm provided by usm. In addition the cups server has to be started.

To get the cups server running at bootup:

Code: Select all

chmod +x /etc/rc.d/rc.cups
2.0 Openbox module.
I have provided modifications needed for the openbox desktop of ncmprhnsbl viewtopic.php?f=75&t=6046&p=50962#p50962

Do we leave it to ncmprhnsbl to provide the adaptations necessary for its desktop to work with your printing module or do you think that you can include them into your printing module?
Voltaire: Le mieux est l'ennemi du bien.

Falcony
Full of knowledge
Full of knowledge
Posts: 235
Joined: 01 Jan 2011, 12:44
Location: Russia

Re: printing-3.2 for porteus 3.2

Post#125 by Falcony » 30 Nov 2016, 06:41

@Blaze

May leave libgimp if you like - i delet it for FIDOSlax by separately.

Please exclude snmpd from staring at boot process with in this module

chmod -x /etc/rc.d/rc.snmpd

This is not security hole but may bring problem.

User avatar
Blaze
DEV Team
DEV Team
Posts: 1505
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#126 by Blaze » 30 Nov 2016, 18:53

francois,
But you need pygtk-2.24.0-x86_64-bundle.xzm and dbus-python-1.2.4-x86_64-1.xzm provided by usm.
I use Cinnamon and these packages are present. I think these packages do not need.

Code: Select all

root@porteus:~# find /var/log/packages/ -iname *python*
/var/log/packages/dbus-python-1.2.4-x86_64-1
/var/log/packages/pygobject3-python3-3.20.1-x86_64-1jay
/var/log/packages/python-2.7.11-x86_64-2
/var/log/packages/python-pam-0.1.4-x86_64-2jay
/var/log/packages/python-pillow-3.0.0-x86_64-1
/var/log/packages/python-setuptools-22.0.5-x86_64-1
/var/log/packages/python3-3.5.2-x86_64-1jay
root@porteus:~# find /var/log/packages/ -iname *pygtk*
/var/log/packages/pygtk-2.24.0-x86_64-2
root@porteus:~#
About Openbox
or do you think that you can include them into your printing module?
see above. For others Desktop Environments these packages will be doubled + excess size.

In Openbox for install these extra modules

Code: Select all

su
toor
usm -g dbus-python
usm -g pygtk
In addition the cups server has to be started.

Code: Select all

root@porteus:~# ls -l /home/guest/Загрузки/07-printing-i586-28.11.2016/etc/rc.d/
итого 12
-rwxr-xr-x 1 guest users 3678 июн 15 05:53 rc.cups*
-rwxr-xr-x 1 guest users 3085 июн 23 07:34 rc.cups-browsed*
-rwxr-xr-x 1 guest users  895 июн  3 21:36 rc.snmpd*
root@porteus:~# chmod +x /home/guest/Загрузки/07-printing-i586-28.11.2016/etc/rc.d/rc.cups
root@porteus:~# ls -l /home/guest/Загрузки/07-printing-i586-28.11.2016/etc/rc.d/
итого 12
-rwxr-xr-x 1 guest users 3678 июн 15 05:53 rc.cups*
-rwxr-xr-x 1 guest users 3085 июн 23 07:34 rc.cups-browsed*
-rwxr-xr-x 1 guest users  895 июн  3 21:36 rc.snmpd*
root@porteus:~# ls -l /home/guest/Загрузки/07-printing-x86_64-26.11.2016/etc/rc.d
итого 12
-rwxr-xr-x 1 guest users 3678 июн 15 05:53 rc.cups*
-rwxr-xr-x 1 guest users 3085 июн 23 06:25 rc.cups-browsed*
-rwxr-xr-x 1 guest users  895 июн  3 20:13 rc.snmpd*
root@porteus:~# chmod +x /home/guest/Загрузки/07-printing-x86_64-26.11.2016/etc/rc.d/rc.cups
root@porteus:~# ls -l /home/guest/Загрузки/07-printing-x86_64-26.11.2016/etc/rc.d
итого 12
-rwxr-xr-x 1 guest users 3678 июн 15 05:53 rc.cups*
-rwxr-xr-x 1 guest users 3085 июн 23 06:25 rc.cups-browsed*
-rwxr-xr-x 1 guest users  895 июн  3 20:13 rc.snmpd*
root@porteus:~#
All seems OK.
1.1 Pointing cups to http://localhost:631/admin for cups to load into webbrowser appropriately.
This request to me or to brokenman?

Code: Select all

su
toor
sed -i 's|localhost:631|localhost:631/admin|g' /usr/share/applications/cups.desktop
If you want, you can change it manually via mousepad.

Open /usr/share/applications/cups.desktop with mousepad

find

Code: Select all

Exec=/usr/bin/xdg-open http://localhost:631/
replace with

Code: Select all

Exec=/usr/bin/xdg-open http://localhost:631/admin/
save changes.

At the start menu of Porteus Desktop Environment open 'Manage Printing' and check url in your browser.
Falcony, thanks.
Please exclude snmpd from staring at boot process with in this module

chmod -x /etc/rc.d/rc.snmpd
done.
May leave libgimp
done.

07-printing-i586-30.11.2016.xzm
07-printing-x86_64-30.11.2016.xzm
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
francois
Contributor
Contributor
Posts: 5081
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: printing-3.2 for porteus 3.2

Post#127 by francois » 30 Nov 2016, 22:10

@blaze:
You must be right for cinnamon.

However within kde5 3.2.1 porteus:

Code: Select all

root@porteus:/home/guest# find /var/log/packages/ -iname *python*
/var/log/packages/python-pillow-3.0.0-x86_64-1
/var/log/packages/python-setuptools-22.0.5-x86_64-1
/var/log/packages/python-2.7.11-x86_64-2
/var/log/packages/notify-python-0.1.1-x86_64-5
root@porteus:/home/guest#
From within xfce4:

Code: Select all

root@porteus:/home/guest# find /var/log/packages/ -iname *python*
/var/log/packages/python-2.7.11-x86_64-2
/var/log/packages/notify-python-0.1.1-x86_64-5
root@porteus:/home/guest# 
Voltaire: Le mieux est l'ennemi du bien.

Jack
Contributor
Contributor
Posts: 1187
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: printing-3.2 for porteus 3.2

Post#128 by Jack » 30 Nov 2016, 22:27

And in Mate here is the output.

Code: Select all

root@porteus:/home/guest# find /var/log/packages/ -iname *python*
/var/log/packages/notify-python-0.1.1-x86_64-5
/var/log/packages/wxPython-2.8.12.1-x86_64-2_slonly
/var/log/packages/dbus-python-1.2.4-x86_64-1
/var/log/packages/python-2.7.11-x86_64-2
root@porteus:/home/guest# 
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
francois
Contributor
Contributor
Posts: 5081
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: printing-3.2 for porteus 3.2

Post#129 by francois » 30 Nov 2016, 23:32

cups server has to be started even in cinnamon which has the appropriate python files:
Or with cupsd or with changing permission /etc/rc.d/rc.cups:

Code: Select all

 ls -l /etc/rc.d
total 119
drwxr-xr-x 2 root  root     56 Sep 23  2008 init.d/
etc.

-rw-r--r-- 1 root  root   3678 Jun 15 05:53 rc.cups
etc.
Changing permission to rc.cups

Code: Select all

root@porteus:/home/guest# chmod +x /etc/rc.d/rc.cups

Code: Select all

root@porteus:/home/guest#  ls -l /etc/rc.d
total 119
drwxr-xr-x 2 root  root     56 Sep 23  2008 init.d/
etc.
-rwxr-xr-x 1 root  root   3678 Jun 15 05:53 rc.cups*
etc.
So brokenman should change on the original iso/etc/rc.d/rc.cups :

Code: Select all

root@porteus:/home/guest# chmod +x /etc/rc.d/rc.cups
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Ed_P
Contributor
Contributor
Posts: 3325
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#130 by Ed_P » 30 Nov 2016, 23:53

And in 3.2.1 Cinnamon 64-bit:

Code: Select all

guest@porteus:~$ find /var/log/packages/ -iname *python*
/var/log/packages/notify-python-0.1.1-x86_64-5
/var/log/packages/dbus-python-1.2.4-x86_64-1
/var/log/packages/pygobject3-python3-3.20.1-x86_64-1jay
/var/log/packages/python-2.7.11-x86_64-2
/var/log/packages/python-pam-0.1.4-x86_64-2jay
/var/log/packages/python-pillow-3.0.0-x86_64-1
/var/log/packages/python-setuptools-22.0.5-x86_64-1
/var/log/packages/python3-3.5.2-x86_64-1jay
guest@porteus:~$ 
And

Code: Select all

guest@porteus:~$ ls -l /etc/rc.d/*cups*
-rwxr-xr-x 1 guest users 3678 Jun 15 01:53 /etc/rc.d/rc.cups*
-rwxr-xr-x 1 guest users 3085 Jun 23 02:25 /etc/rc.d/rc.cups-browsed*
guest@porteus:~$ 
But I just noticed I am not in AF mode.
francois wrote:So brokenman should change on the original iso/etc/rc.d/rc.cups :

Code: Select all

root@porteus:/home/guest# chmod +x /etc/rc.d/rc.cups
And don't forget:
1.1 Pointing cups to http://localhost:631/admin for cups to load into webbrowser appropriately.
Ed

User avatar
francois
Contributor
Contributor
Posts: 5081
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: printing-3.2 for porteus 3.2

Post#131 by francois » 01 Dec 2016, 00:01

@blaze:

Ed is right. We should change /usr/share/applications/cups.desktop in printing module:

Code: Select all

Exec=/usr/bin/xdg-open http://localhost:631/
for

Code: Select all

Exec=/usr/bin/xdg-open http://localhost:631/admin/
Thanks.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 5081
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: printing-3.2 for porteus 3.2

Post#132 by francois » 01 Dec 2016, 00:15

@blaze:
dbus-python and pygtk missing into the mate, kde5, xfce edition should be added on the isos as cinnamon has them already. These are crucial packages to the functioning of system-config-printer.

Are these packages necessary on the cinnamon desktop? What is their use exactly?
Voltaire: Le mieux est l'ennemi du bien.

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

Re: printing-3.2 for porteus 3.2

Post#133 by brokenman » 01 Dec 2016, 00:39

Are these packages necessary on the cinnamon desktop? What is their use exactly?
Yes they are dependencies of required packages.

In my opinion cups should be added to the printing module and the executable bit on /etc/rc.d/rc.cups should be set there and not in the other modules. People who want to print will use the printing module, and as such will require cups to be started.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 5081
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: printing-3.2 for porteus 3.2

Post#134 by francois » 01 Dec 2016, 00:46

@brokenman:
Thus you also suggest the inclusion of pygtk and dbus-python at the same time, and the modification of the webbrowser link to cups.

Yet we have never been able to modify the permission of rc.cups from printing module. Is there any reason for that? On the isos could the permissions be changed for that file (/usr/share/application/cups.desktop)?
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Blaze
DEV Team
DEV Team
Posts: 1505
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#135 by Blaze » 01 Dec 2016, 17:37

brokenman wrote:In my opinion cups should be added to the printing module and the executable bit on /etc/rc.d/rc.cups should be set there and not in the other modules. People who want to print will use the printing module, and as such will require cups to be started.
Done!

07-printing-i586-01.12.2016.xzm
07-printing-x86_64-01.12.2016.xzm

Code: Select all

Added:

cups-2.1.4-x86_64-1.txz
https://pkgs.org/search/cups

dbus-python-1.2.4-x86_64-1.txz
https://pkgs.org/search/dbus-python

pygtk-2.24.0-x86_64-2.txz
https://pkgs.org/search/pygtk


Tweaks:

chmod +x /printing-module/etc/rc.d/rc.cups
sed -i 's|localhost:631|localhost:631/admin|g' /printing-module/usr/share/applications/cups.desktop


!!!!!!!!!Owner changed on the root account!!!!!!!!!
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

Post Reply