Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 07:20
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
cups1.4b2-i486 pet (2.46MB) reworked for lpt & usb printers
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 4 Posts_count   Goto page: Previous 1, 2, 3, 4 Next
Author Message
ttuuxxx


Joined: 05 May 2007
Posts: 10827
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 31 Jan 2009, 00:35    Post_subject:  

Patriot wrote:
Sure ttuuxxx, I'll quietly see how's the progress over there on the 4.2alpha and see what I can do ...

Smile

I've also tested your cups1.4b2 pet ... It exhibits the same problem for lpt printing ... It'll work just fine and dandy on first boot LiveCD/frugal/full ... After a saved session, it'll also work on first lpt print or first lpt printer access ... Try adding it again ... the lpt port now no longer appears ... try print again and we'll get a /dev/lp0 permission denied ... A reboot will give lpt access also for the first time ... then it repeats again ...

(I do not have usb printer to test ... so usb printer tests will have to wait until sometime next week ...)

So, it is not a cups issue now, it's puppy's issue ... It's in 4.1.x & 4.2alpha ... They all have the same backbone structure, so I'll have to see what else need's changing ... All these pesky little things can annoy users and users don't like to be annoyed by stuffs that just works everywhere else ...

Rgds


Patriot ok then I have no way of testing cups because the only printer I have is on my wifes pc, my other 2 pc's don't have a printer, So I'll leave it in your hands, when you figure out the Permissions problem could you please post it in the 4.2 alpha2 section so we could add it to the next release, most of the time we split certain packages into 2 sections, The main release and Devx.sfs release I'm not sure if cups dev files get placed in the DevX of does it just get tossed aside. Dev files increase packages by a large amount sometimes and most of the time they aren't needed. Unless they are needed for other compiling needs, thats why I was wondering about cups dev files, Are they needed to compile gutenprint? We'll need probably the latest GutenPrint also to match up, This is where it gets tricky you have to enable a few options like the /usr/ as default directory and enable ppd, but it it creates locales, those should be made into another package, to keep the main release down in size.
Hope that helps Smile
If its too much to ask just say so and I'll continue on with it, Just that I have so much already in the works, It makes it hard to focus on one task that I can't even fully test,lol
ttuuxxx

don't worry about gutenprint I already made it up, I'm not sure how Barry made his previous version work, they didn't have the ppd files included. so it was less than 2MB my version has 1429 ppd files and makes the package 13MB ouch!!
ttuuxxx
http://www.puppylinux.asia/tpp/ttuuxxx/programs/documents/gutenprint-5.2.3-i386.pet
http://www.puppylinux.asia/tpp/ttuuxxx/programs/documents/gutenprint-5.2.3-Locale-Doc.pet

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send_private_message Visit_website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 31 Jan 2009, 04:53    Post_subject:  

ttuuxx,
the ppd files are all stored in a compressed format inside the executable 'cups-genppd.5.0'.
(that file may be named differently in later versions of CUPS)

See my script /usr/sbin/cups_shell that generates the ppd files.

cups_shell is in the rootfs-skeleton in Unleashed and has a menu entry.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send_private_message Visit_website 
ttuuxxx


Joined: 05 May 2007
Posts: 10827
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 31 Jan 2009, 05:07    Post_subject:  

BarryK wrote:
ttuuxx,
the ppd files are all stored in a compressed format inside the executable 'cups-genppd.5.0'.
(that file may be named differently in later versions of CUPS)

See my script /usr/sbin/cups_shell that generates the ppd files.

cups_shell is in the rootfs-skeleton in Unleashed and has a menu entry.


Thanks Barry, I deleted the ppd's and found that file in gutenprint now its 2.8MB pet big drop in size Smile
ttuuxxx
http://www.puppylinux.asia/tpp/ttuuxxx/programs/documents/gutenprint-5.2.3-i386-no-ppd.pet

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send_private_message Visit_website 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Sat 31 Jan 2009, 17:09    Post_subject:  

BarryK wrote:
See my script /usr/sbin/cups_shell that generates the ppd files.

cups_shell is in the rootfs-skeleton in Unleashed and has a menu entry.

Aha! I sense the potential solution to a problem for 4.1.2 and 4.2 ... cups_shell is NOT in the 0rootfs-skeleton of 4.1.2 anywhere that I can find but especially not /usr/sbin. Maybe that's why we've been having so much trouble getting CUPS to print?

While I'm on the subject, I get a couple of weird entries in my 4.2 build for Gtkprint manager and Gtkprint configuration? Neither of them works because they say no printer is attached when physically there is a printer attached. Is there any connection there?

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send_private_message 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Sun 01 Feb 2009, 16:30    Post_subject:  

GOOD NEWS: The updated CUPS, following the step-by-step, worked to solve the problem with my Samsung ML-2251NP laser printer on the desktop - now working correctly again, including PDF.

ODDITY NOTE: It has the printer labeled as PARALLEL:/dev/lp0 even though it is a USB connection.

BAD NEWS: It will not recognize the second USB printer, a HP OfficeJet 4215, at all. I tried a couple of different USB ports and nada. Tried a reboot ... just in case ... no joy.

Suggestions, please?

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send_private_message Visit_website 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Sun 01 Feb 2009, 18:56    Post_subject:  

Moved over to my laptop, connected to the same Linksys router as the desktop just described, and loaded the new CUPS per instructions.

I am now able to see and print to the Samsung laser printer on the desktop PC.

Then I plugged the HP OJ 4215 printer into my laptop via USB. It is recognized in the hardware but not by CUPS.

NOTE: I did observe on both computers that there was no line called "service_init loop" in rc.services so I put it ahead of the last several lines which referred to "service" and hoped for the best.

WDYT?

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 01 Feb 2009, 19:06    Post_subject:  

edoc,
maybe you need to restart cups.
Type:
/etc/init.d/cups stop
/etc/init.d/cups start


Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Sun 01 Feb 2009, 19:19    Post_subject:  

Just tried it ... nada.

I forgot to mention that CUPS does not open properly on my laptop when I call it from the Menu, I have to open a browser window and start it using localhost:631/

When I try to open from the Menu I get the CUPS Web Interface Help window telling me to expect CUPS to open in 3-30 seconds but nothing happens other than I observe CUPS grabbing some Personal Storage space then when I click okay in the window and wait a few seconds it gives that storage space back.

Not sure what is happening. This is a 4.12-Normal Frugal install.

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send_private_message Visit_website 
ttuuxxx


Joined: 05 May 2007
Posts: 10827
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 01 Feb 2009, 20:23    Post_subject:  

edoc try my version http://www.puppylinux.asia/tpp/ttuuxxx/programs/documents/cups-1.4b2-i386-v2.pet
start it by clicking menu/manage printing and see how you go.
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send_private_message Visit_website 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Sun 01 Feb 2009, 21:11    Post_subject:  

OH SO CLOSE! Rolling Eyes

I needed to reboot before it did the job ... but ... your version sees the printer and tries to load it then I get this:

Quote:
Printer command job processing, "Unable to open device file "/dev/lp0": Permission denied"


Could it be that even though it is physically connected to a different computer it is trying to use the same "Connection" parallel:/dev/lp0 ?

Quote:
Description: hp officejet 4200 series
Location: office
Driver: HP Officejet 4200 Series Foomatic/hpijs, hpijs 2.8.12 (color)
Connection: parallel:/dev/lp0
Defaults: job-sheets=none, none media=Letter

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send_private_message Visit_website 
ttuuxxx


Joined: 05 May 2007
Posts: 10827
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 01 Feb 2009, 21:21    Post_subject:  

try this in a command line
chmod 0666 /dev/lp0
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send_private_message Visit_website 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Sun 01 Feb 2009, 21:38    Post_subject:  

No impact so I reloaded hpijs-2.8.12.pet then stopped and started CUPS then ran the chmod again.

Then I rn a Print Test Page and it is stuck cycling "Printer Command Job Processing"

After I send this I will close everything and reboot and try again.

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send_private_message Visit_website 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Mon 02 Feb 2009, 23:48    Post_subject:  

Hmmm .....

I've spent more time than I've planned to with cups ... Now, cups and puppy can play along nicely with either one or both of usb & lpt printers ...

1. I've added minor udev rules changes for standard cups package to work properly. No more /dev/lp# permission denied. This will mknod lp with 0666. The added udev rules also allows you to use usb and lpt printers simultaneously. Puppy was telling me to use either one, not both. Not anymore ...

2. All lpt printers will go to /dev/lp# and all usb printers should now go to /dev/usb/lp# ...

3. I've posted the cups 1.4b2 standard (full) pet reworked with the above fixes. This pet package will make some cleanups during installation and now have automatic "postinstall" install. I did not make any changes to the cups source. Full source is available from www.cups.org btw ...

4. I've also made a patched cups binary that runs as root. It was made for internal tests as it breaks web interface security plus several more security related stuffs. However, it works without having to fiddle with puppy. You may make a request if you want a copy as it is not meant for public release/use.

5. I've made a lame script to view list of printers available. This is a preliminary version that I plan to expand later on. So it's far from perfect, yet can be helpful to find out which printer is on what /dev ...

6. Please remember that cups does not always detect your printers ... try a reboot with the printer ON for lpts ... cups only knows /dev/lp ... so, cant help much with usb printers as from what I know the usb backend is somewhat broken with cups and with the various quirks with usb printer protocols, I can't fix what I can't see ...

Finally, I'm only one person, not a gazillion dollar org. My printers are old lpts and one broken usb. If cups works for you then great, if not please post a report with a proper spec.

Have a nice day !

Rgds
listprinter.zip
Description  script to list printers ... dont forget to chmod 0755 ...
zip

 Download 
Filename  listprinter.zip 
Filesize  894 Bytes 
Downloaded  289 Time(s) 
Back to top
View user's profile Send_private_message 
8-bit


Joined: 03 Apr 2007
Posts: 3382
Location: Oregon

PostPosted: Tue 03 Feb 2009, 20:06    Post_subject:  

I tried installing Cups 1.4b2 using the Pet and for some reason, I cannot find an option to delete a printer if one screws up.
Matter of fact, I don't even see the Modify Printer option anymore.
I reinstalled an older version of CUPS to get my printer working again.

But as far as the missing options I pointed out, am I missing the boat and just not seeing them?
Back to top
View user's profile Send_private_message 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Tue 03 Feb 2009, 23:27    Post_subject:  

You click on Printers then click on the printer that you want to modify or delete then you click on the right hand window (not Maintenance) under the printer name that says Administration and the drop-down gives you a variety of choices including MOdify and Delete.

There is a problem with permissions - it seems to constantly reset itself so that you get an error when trying to make certain changes.

Quote:
403 Forbidden


I have done the chmod 0666 /dev/lp0 several times but no effect. Not sure what is happening.

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 2 of 4 Posts_count   Goto page: Previous 1, 2, 3, 4 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1017s ][ Queries: 12 (0.0119s) ][ GZIP on ]