Print direct to printer, not to a file first: HOW?

Problems and successes with specific brands/models of printers
Message
Author
Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

Print direct to printer, not to a file first: HOW?

#1 Post by Sylvander »

I notice that when I'm online with Firefox, and want to print a page...
I must first print to a file...
Then open the file and send to the printer from there. :?

Is it possible to send directly to the printer? :D

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

Which version of Puppy are you using? Are you using its original CUPS or have you done an upgrade?

Is Firefox the only program that behaves this way?

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#3 Post by Sylvander »

Using BoxPup-413-k2.6.25.16

CUPS-1.3.11-i486
Its an upgrade; behaved even worse originally, couldn't set it up.
I upgraded boxpup from an earlier version and that was a bit of a mess...
Needed to clean up duplicates in the menu.

Firefox is the only thing I've noticed doing this; don't do much printing yet.
Can you suggest an experiment with something else?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

Try printing from Gnumeric. If you have the same problem, I can suggest a solution.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#5 Post by Sylvander »

Gnumeric also offers only "Print to file". :(
Attachments
00.jpg
(6.19 KiB) Downloaded 1949 times

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#6 Post by rcrsn51 »

Go here and read the section titled "Printing from Applications." Then install the setdefprn-1.0.pet.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#7 Post by Sylvander »

Followed your instructions. :D

Installing setdefprn-1.0.pet cause multiple problems. :(

e.g. Network Connection: ETH0 disabled [red warning over it].
Various icons in the menu not available [e.g. Logout].

Uninstalled the program, but that didn't improve matters.
SO...
Ran a 2nd Puppy [Lighthouse-4.43f], and used Xfe to delete the contents of sda3 [BoxPup partition], then copy over a recent [made a few hours ago] snap2 snapshot of [the contents of] sda3.

All now back as it was prior to the install.

Where to go from here? :?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#8 Post by rcrsn51 »

I'm not familiar with Boxpup's window manager, but it sounds like it had trouble installing the menu entry supplied by setdefprn.

However, you should only need one key file from the PET package. Download the PET and rename it as a .TGZ package. Then extract it.

Inside, you should see a folder named "root". Inside that folder is a hidden file named ".gtkrc.mine". Copy this file to your own root folder.

Try to print again. If that still doesn't work, I'll download a copy of Boxpup and have a look.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#9 Post by rcrsn51 »

[Update]
Boxpup already has the file /root/.gtkrc.mine. So open it in a text editor and add the line

Code: Select all

gtk-print-backends = "file,cups,lpr"

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#10 Post by Sylvander »

Followed your instructions...

"Print to LPR" now included, and prints direct to the default printer [the only connected printer].

Is there a way to bring up the control window for the printer?
It's printing page-after-page and I don't know how to stop it. :?

An unresponsive script is being reported, and I told it to STOP, but still the printer is printing!

Used HTOP to KILL a likely looking process, and that appears to have stopped the printer.
Will now use "Ctrl+Alt+backspace" and xwin.
Last edited by Sylvander on Sat 03 Apr 2010, 20:10, edited 1 time in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#11 Post by rcrsn51 »

Start your web browser and go to localhost:631.

Open the Jobs tab and delete the old jobs that are queued up.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#12 Post by Sylvander »

It shows "No jobs".

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#13 Post by rcrsn51 »

Reboot your computer. That will restart CUPS.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#14 Post by Sylvander »

Done.

All now looks good.

Thank goodness some wizard knows all this magic. :D

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#15 Post by rcrsn51 »

Excellent. I suspect that your initial install of CUPS 1.3.11 caused problems because it also tries to install a menu item.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#16 Post by Sylvander »

Needing assistance yet again.
Need to set up printing on 6 Puppies with pupsaves on Flash Drive partitions, plus 1-copy-of-each-of-2-of-the-Puppies with their pupsaves in folders on an internal HDD partition.
Total of 8 at this point.

1.
(a) Beginning with Boxpup-431, loaded from CD-RW with pupsave on a partition on a Flash Drive.

(b) Installed:
hpijs-2.8.2_static-1
hpliplite-3.9.8-mu-p4
One of these un-necessary?

(c) Ran "Menu->Setup->CUPS".
Get to the point where it asks for "Device URI:", and I don't know what to input in the box.
My printer is connected to a parallel port [lpt1].

(d) Used your previous instructions to add gtk-print-backends = "file,cups,lpr" at the end of /root/.gtkrc.mine

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#17 Post by rcrsn51 »

a. Are you using the CUPS 1.1.23 that comes with Boxpup-431 or are you trying the upgrade to 1.3.11? What model printer do you have?

b. IIRC, hpijs-2.8.2_static-1 just contains printer drivers, but hpliplite-3.9.8-mu-p4 supports both printers and scanners.

c. On the drop-down list for Devices, do you not have an entry for LPT?

d. This patch is only needed if you have installed CUPS 1.3.11.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#18 Post by rcrsn51 »

[Update]

I downloaded Boxpup431 and did a test frugal install. It contains CUPS 1.3.9.

However, Boxpup appears to be missing all the parallel port kernel modules. This explains why LPT does not show up on your list of CUPS devices.

Attempting to add the modules with modprobe failed.

I then looked at the standard Puppy 4.3.1 which has the same kernel 2.6.30.5. It does contain the parallel port kernel modules.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#19 Post by Sylvander »

1. "Are you using the CUPS.....that comes with Boxpup-431"
Yes, no attempt to change from the native version.

2. "What model printer do you have?"
HP Deskjet 840c.

3. " IIRC, hpijs-2.8.2_static-1 just contains printer drivers, but hpliplite-3.9.8-mu-p4 supports both printers and scanners"
Don't have an HP scanner, so should I uninstall hpliplite-3.9.8-mu-p4?

4. "On the drop-down list for Devices, do you not have an entry for LPT?"
No. :(

5. "This patch is only needed if you have installed CUPS 1.3.11"
So I should revert back?

6. "I downloaded Boxpup431 and did a test frugal install. It contains CUPS 1.3.9"
I once installed a prog, that put an item in the menu.
The prog displayed the Puppy and kernel versions in a small box on the desktop.
Can't now find it; any idea what it's named, and where to get it?

7. "Boxpup appears to be missing all the parallel port kernel modules. This explains why LPT does not show up on your list of CUPS devices"
Can anything be done to fix that?

8. "Attempting to add the modules with modprobe failed"
Was this you attempting a fix, and it failed?
I don't know what modprobe is.

9. "I then looked at the standard Puppy 4.3.1 which has the same kernel 2.6.30.5. It does contain the parallel port kernel modules"
Is it possible to swap in a copy of the kernel that includes the modules?
Too difficult?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#20 Post by rcrsn51 »

Did your parallel printer work in Boxpup-413? That's what you were using at the start of this thread.

You will need to talk to gray about the missing kernel modules.

Post Reply