Printing

Post here if you are a new Porteus member and you're looking for some help.
cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

Re: Printing

Post#46 by cttan » 19 Mar 2013, 21:59

Hi francois,

Yes. I am using Porteus 2.0 64bit to print.

Code: Select all

# uname -a
Linux a10b23c45d67 3.7.8-porteus #1 SMP PREEMPT Fri Feb 15 11:30:14 UTC 2013 x86_64 Intel(R) Core(TM)2 Duo CPU     T5670  @ 1.80GHz GenuineIntel GNU/Linux
# cat /etc/slackware-version 
Slackware 14.0
# cat /etc/porteus-version 
Porteus-v2.0
Gutenprint and Ghostscript downloaded from PPM. Now available from my box.
Gutenprint 5.2.9
https://www.box.com/s/xkdmxgau2ftuvhmpdv44

Ghostscript 9.05
https://www.box.com/s/ulgkypfusi80szdn0zmh

Ghostscript fonts
https://www.box.com/s/ud2n3qvt475notc5jj2m

Add printer:-
1. Goto localhost:631/admin from your browser
2. Click Add Printer. Enter username root and its password.
3. Click your detected local printer.
4. Select the driver that suit your printer or you may click Select Another Make/Manufacturer.
5. Click Add Printer.

Printer driver selection:-
https://www.box.com/s/gwjk1tmpz3peazpkqxij

Printer manufacturer selection:-
https://www.box.com/s/p252b9y6mwn113vt390m

My printer script for copy2ram mode:-
Note: Ghostscript modules in /porteus/modules

Code: Select all

#!/bin/bash
if !(grep devpts -A 500 /proc/mounts | grep .xzm | cut -d " " -f2 | grep gutenprint-5.2.9-x86_64-1.xzm) then
  activate /mnt/sdb1/useful_mods_xzm/gutenprint-5.2.9-x86_64-1.xzm
fi
echo blacklist usblp >> /etc/modprobe.d/blacklist.conf
cp -a /mnt/sdb1/20-canon-mp145.rules /etc/udev/rules.d
cp -a /mnt/sdb1/Canon_MP140_series.ppd /usr/share/cups/model
rmmod usblp
modprobe lp
modprobe parport
modprobe parport_pc
lpadmin -p Canon_MP145 -P /usr/share/cups/model/Canon_MP140_series.ppd -v usb://Canon/MP140%20series?serial=D19ABA&interface=1
sleep 2 
lpoptions -d Canon_MP145
/etc/rc.d/rc.cups restart
sleep 2 
cupsenable Canon_MP145
cupsaccept Canon_MP145
opera localhost:631/printers
exit
20-canon-mp145.rules
Note: huawei is only label and adapted from 3G broadband script.

Code: Select all

ACTION!="add", GOTO="huawei_zerocd_end"

SUBSYSTEM=="usb", ATTR{bDeviceClass}!="ff" ,ENV{DEVTYPE}=="usb_device", GOTO="huawei_zerocd_disable"
SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", GOTO="huawei_zerocd_disable"
GOTO="huawei_zerocd_end"

LABEL="huawei_zerocd_disable"
ATTR{idVendor}=="04a9", ATTR{idProduct}=="172b", MODE:="0660", GROUP:="lp"

LABEL="huawei_zerocd_end"
Canon_MP140_series.ppd
Note: copy out from system after successfully added the printer.
https://www.box.com/s/gojtaq0bus1d6yaz2mab

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

Re: Printing

Post#47 by francois » 20 Mar 2013, 17:13

@cttan:
I confirm that the the gutenprint and ghostscript packages that you use (gutenprint-5.2.9-x86_64-1, ghostscript-9.05-x86_64-3, ghostscript-fonts-std-8.11-noarch-1) work on my toshiba z930 for porteus 64 bit. There is no problem setting up the printer whether usb wise or network wise. I was using older versions of these modules ( gutenprint-5.2.6-x86_64-1, ghostscript-9.02-x86_64, ghostscript-fonts-std-8.11-noarch-1). I imagine that this was the problem.

Clearly, it was not CUPS.

I have updated the modules for porteus 2.0 on the HOWTO: Universal printer solution: gutenprint-ghostscript:
viewtopic.php?f=39&t=822&p=6289#p6289

I am going to test the 32 bit modules too for EdP.

*****************************

Tested on 32 bit porteus v. 2.0. There is no problem setting up the printer whether usb wise or network wise.

@cttan: Good to have you on the forum for printer issues. :D

****************************

@EdP:
1) Maybe there is an error due to the use of a gutenprint version for 64 bit. You mention that you have a 32 bit installation, that is:
cttan wrote:Hi EdP,

PPM 64bit has the Ghostscript Fonts module
Here is the link:-
https://www.box.com/s/ud2n3qvt475notc5jj2m

2) Would you please try the URL method with the most recent versions of gutenprint and ghostscript modules, I have updated the thread to point to the compatible porteus 2.0 version for the 32 bit edition see:
viewtopic.php?f=39&t=822

This would troubleshoot your printer before we get straight the printer network installation.


3) If you have the impression with all you have tried that correctly the gutenprint and ghostscript drivers, try the system-config-printer method (I just updated it):
viewtopic.php?f=61&t=1994&p=13635#p13635
This method is somewhat different and might yield interesting results.

As this is a complicated printer case, lets start a specific thread if you don't mind. This will leave a cleaner trace for posterity , see:
viewtopic.php?f=61&t=2053

I would really like to get your printer to function. :)
Last edited by francois on 24 Mar 2013, 12:17, edited 4 times in total.
Voltaire: Le mieux est l'ennemi du bien.

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

Re: Printing

Post#48 by francois » 24 Mar 2013, 11:44

Amradman wrote:To complicated for me. I only know a few of the Linux skills and this is my first experience with a Slackware based system. But THANKS for the assistance. I do appreciate it.
We have adapted recently a printer system package for you amongst others, to simplify the task of installing your printer:
viewtopic.php?f=61&t=1994&p=13635#p13635

Please mention your printer manufacturer and model. I will check if the approach will easily work for you, that is I will verify if your printer is in the database. And then we will help you install the appropriate software.

Thanks. :)
Voltaire: Le mieux est l'ennemi du bien.

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

Re: Printing

Post#49 by Ed_P » 25 Apr 2013, 18:08

francois wrote:I would really like to get your printer to function. :)
Thank you francois. At this point it's not important but when things free up I would like to take you up on your offer.
Ed

Post Reply