Thanks to Wread who has already cleared the problem and proposed a solution in 32 bit.
An HP Photosmart C5180, "All in one", on the network, allowed me to test the validity of the 64 bit solution. (Printer and scanner)
A. Introduction :
You need to download 18 packages, create and activate the modules.
Apparently, there is no 64 bit version of ReportLab package. It is therefore necessary to create it.
Fortunately there is a file reportlab.SlackBuild! Furthermore it is responsible for downloading
"reportlab-2.5.tar.gz" from "www.reportlab.com".
To achieve this, a little script is required.It will enable you to realize either a single module or
as many modules as there are packets. This may take a while, be patient...
B. hplip64.sh :
1. code: SELECT ALL
2. copy and paste under Kwrite.
3. save as "hplip64.sh" for instance.
4. make script executable : chmod +x hplip64.sh
5. run this script as root (su, password).
Code: Select all
#!/bin/bash
BW="\\033[1;02m"; NC="\\033[00m"; BR="\\033[1;31m"; BG="\\033[1;32m"
packages="foomatic-filter ghostscript-9.02 gimp-2.6 hplip-3 Imaging libexif libgphoto libieee1284\
libtiff net-snmp notify-python PyQt-4 sane-1 sip-4 xsane" # requiredbuilder
slackyd -u
slackyd -p
for pack in $packages; do
slackyd -g $pack -f
done
#
# Create package reportlab.txz - ReportLab Open Source PDF library is released by ReportLab Inc., under BSD license.
if [ ! -d reportlab ]; then mkdir reportlab;fi
cd reportlab
wget -nc "http://ftp.osuosl.org/pub/vectorlinux/Uelsk8s/sbbs/reportlab.SlackBuild"
touch /usr/bin/requiredbuilder; chmod +x /usr/bin/requiredbuilder
sh reportlab.SlackBuild
rm /usr/bin/requiredbuilder
cd ..
if [ -s reportlab-2.5-x86_64-1.txz ]; then mv reportlab-2.5-x86_64-1.txz /var/slackyd/;fi
#--------------------------------------------------------------------------------------------------------------------
echo -e $BG"\\nmake & activate modules for porteus 1.1 x86_64\\n"$NC
echo -e $BW"[1]$NC Create separated modules"
echo -e $BW"[2]$NC Create All-in-one module"
echo -e $BW"[3]$NC Do not create module"
while [ true ]; do
read -n 1 -s option
case "$option" in
"1")for pack in `ls /var/slackyd/*.txz`;do
txz2xzm $pack ${pack%.txz}.xzm
activate ${pack%.txz}.xzm
done
break;;
"2")mkdir tmp-dir
for pack in `ls /var/slackyd/*.txz`;do
installpkg -root tmp-dir $pack
if [ $? != 0 ]; then
echo "error installing package "$pack; exit
fi
done
dir2xzm tmp-dir hplip-all-3.11.3a-x86_64-1.xzm
activate hplip-all-3.11.3a-x86_64-1.xzm
break;;
"3")exit
esac
done
echo "Removing packages and sources..."
rm -r tmp-dir
rm -r reportlab
slackyd -p
#
#Verify snmpd
if [ ! -x /etc/rc.d/rc.snmpd ]; then
chmod +x /etc/rc.d/rc.snmpd
fi
Open a terminal :
1. hp-check : Check the existence and versions of HPLIP dependencies.
What is desired :
guest@porteus:~$ hp-check
No errors or warnings.
Readme : http://hplipopensource.com/hplip-web/te ... check.html
2. hp-setup : Installs HPLIP printers and faxes in the CUPS spooler.
Tries to automatically determine the correct PPD file to use.
Usage: hp-setup [MODE] [OPTIONS] [SERIAL NO.|USB bus:device|IP|DEVNODE]
Readme : http://hplipopensource.com/hplip-web/te ... setup.html
For me, network printer, I specify my network address : 172.31.0.10
I can check if the printer is located at that address : guest@porteus:~$ hp-makeuri 172.31.0.10
CUPS URI: hp:/net/Photosmart_C5100_series?ip=172.31.0.10 <----printer
SANE URI: hpaio:/net/Photosmart_C5100_series?ip=172.31.0.10 <----scanner
guest@porteus:~$ hp-setup 172.31.0.10
After that, the file "/etc/cups/printers.conf" is created. You can read it, as root!
root@porteus:/home/guest# cat /etc/cups/printers.conf
This line : "DeviceURI hp:/net/Photosmart_C5100_series?ip=172.31.0.10" indicates that the printer
is configured properly
Sorry, I have not tested the USB connection...
3. hp-toolbox : The HP Device Manager (aka "Toolbox") for HPLIP supported devices.
Provides access to status, tools, and supplies levels.
warning: hp-toolbox should not be run as root/superuser.
For example, tab "Printer Control" allows you to run three essential functions :
- Start/Idle
- Accept jobs
- Default printer
Before starting "hp-toolbox" you must add user to the groups "sys and "lp" as below :
root@porteus:/home/guest# usermod -G lp,sys -a guest
First start.
a. command line:
guest@porteus:~$ hp-toolbox &
b. KDE menu : Applications/ Utilities/ Printer Management Application
After.
Taskbar, icon "hp" (systray)
I have made more than once the procedure with one module or eighteen modules.
I have never found any error. But ...
IMPORTANT : During a normal session, opened by "guest", do not try to deactivate the module(s) that allow the operation of hplip.
To do this, close the current session and log back in as a super-user "root". You can then deactivate and delete the module(s).
Otherwise, most of the modules hplip are stopped, but not all and you must reboot!
Good luck!
For the purists :
The script does not load the package "requiredbuilder-0.16.5-x86_64-2sl.txz" required by "reportlab.SlackBuild".
You can add it to the list "packages" at the beginning of the script :
in this way: requiredbuilder.
But then, you must delete the lines 18 and 20 :
18. touch /usr/bin/requiredbuilder; chmod +x /usr/bin/requiredbuilder
20. rm /usr/bin/requiredbuilder
Publié after 3 hours 51 minute 46 seconds:
Packages list :
18 packages to download :
-rw-r--r-- 1 root root 78652 april 5 20:17 foomatic-filters-4.0.6-x86_64-1.txz
-rw-r--r-- 1 root root 11839884 april 5 20:17 ghostscript-9.02-x86_64-1_slack13.37.txz
-rw-r--r-- 1 root root 10236712 april 5 20:18 gimp-2.6.11-x86_64-3.txz
-rw-r--r-- 1 root root 12530856 april 5 20:18 hplip-3.11.3a-x86_64-1.txz
-rw-r--r-- 1 root root 367012 april 5 20:18 Imaging-1.1.7-x86_64-1sl.txz
-rw-r--r-- 1 root root 306960 april 5 20:18 libexif-0.6.20-x86_64-1.txz
-rw-r--r-- 1 root root 1060988 april 5 20:18 libgphoto2-2.4.10.1-x86_64-1.txz
-rw-r--r-- 1 root root 75032 april 5 20:18 libieee1284-0.2.11-x86_64-2.txz
-rw-r--r-- 1 root root 472744 april 5 20:18 libtiff-3.9.4-x86_64-2.txz
-rw-r--r-- 1 root root 2014200 april 5 20:18 net-snmp-5.6.1-x86_64-1.txz
-rw-r--r-- 1 root root 18960 april 5 20:18 notify-python-0.1.1-x86_64-1.txz
-rw-r--r-- 1 root root 8342240 april 5 20:19 PyQt-4.8.1-x86_64-1.txz
-rw-r--r-- 1 root root 1698508 april 5 20:28 reportlab-2.5-x86_64-1.txz
-rw-r--r-- 1 root root 2750500 april 5 20:19 sane-1.0.22-x86_64-2.txz
-rw-r--r-- 1 root root 329668 april 5 20:19 sip-4.11.2-x86_64-1.txz
-rw-r--r-- 1 root root 1727440 april 5 20:18 tcl-8.5.9-x86_64-1.txz
-rw-r--r-- 1 root root 1673308 april 5 20:18 tk-8.5.9-x86_64-1.txz
-rw-r--r-- 1 root root 1633000 april 5 20:19 xsane-0.998-x86_64-1.txz
snmp test : xxx.xxx.xxx.xxx Printer IP address
snmpwalk -Os -c public -v 1 xxx.xxx.xxx.xxx 1.3.6.1.4.1.11.2.3.9.1.1.7.0
enterprises.11.2.3.9.1.1.7.0 = STRING: "MFG:HP;MDL:Photosmart C5100 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;
CLS:PRINTER;DES:Q8220;SN:MY7CCQ223104MK;S:038009C4860010210078cb0000041b8005346b8004647b8000944be000048bd000345b8003a;
Z:0102,05000009016a81013241013241013240013241013241"
Publié after 11 hours 57 minutes 10 seconds:
GIMP missing dependencies
If you wish to use "gimp" you should add some libraries, as shown below :
guest@porteus:~$ slackyd -p ; slackyd -u
guest@porteus:~$ slackyd -d gimp
Files downloaded -> /var/slackyd/
-rw-r--r-- 1 guest guest 155K april 7 07:57 aalib-1.4rc5-x86_64-3.txz
-rw-r--r-- 1 guest guest 67K april 7 07:57abl b-0.1.2-x86_64-1.txz
-rw-r--r-- 1 guest guest 328K april 7 07:57 gegl-0.1.2-x86_64-1.txz
-rw-r--r-- 1 guest guest 488K april 7 07:57 hal-0.5.14-x86_64-3.txz
-rw-r--r-- 1 guest guest 735K april 7 07:57 libwmf-0.2.8.4-x86_64-5.txz
Make one module, "lib-gimp-2.6.11-x86_64.xzm" (forum : read HOWTO make your module)
root@porteus:/home/guest# ./mkmodule.sh lib-gimp-2.6.11-x86_64
enjoy!