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 Fri 31 Oct 2014, 13:58
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 1 of 4 [54 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Tue 27 Jan 2009, 06:45    Post subject:  cups1.4b2-i486 pet (2.46MB) reworked for lpt & usb printers
Subject description: Full cups-1.4b2 for Puppy Linux 4.1.x & 4.2alpha
 

Hmmm .....

I've been trying to figure out how to get latest CUPS working. I know that the default CUPS 1.1.23 works just fine. But as soon as I upgrade to CUPS 1.3.3, it broke something somewhere. I've also added Samba server 3.0.26 and the stuff won't play nice. Apart from that, paraport modules start to disappear on reboot. It's really odd to see paraport goes missing on next subsequent reboot, and yeah, all my printers are lpt ones ...

Finally made it to work by moving the samba spool folders to /tmp/spool. Gave sysinit a whack to load paraport if its gone. (Anyone who's having similar issue, just check if parport modules are loaded. If not, check my notes below ... or cups won't detect LPT ...) Now, all is working just fine on full hdd install ... Moving samba spools on /tmp allowed me to print ps and raw to lpt printers. Raw printer makes life easier for some of those windows98 machines that I have.

Then I thought, why not get cups-1.3.9 ?

Uh-oh ... there begins my journey ... Grabbed the stable release cups-1.3.9 and compiled it. Gosh, it was 12MB total ... Ok, need to slim it down a bit. So, away with the man pages and the locales ...

Installed it and ugh ... can't print now !? ... Kept getting permission denied, backend error, filter stops etc etc ... Hey, I'm setting the same permissions and spool samba folder as before, but, why doesn't it print ?

Finally traced it to /var/spool/cups folder permissions ... no matter what permissions I set, it just won't print ... ok, lets move it somewhere then ... and jackpot! All my troubles went away in a flash ...

Smile

Hastily prep-up a cups pet package and made several tests with LiveCD, frugal and hybrid LiveCD boots ... seems to work fine each time ... Honestly though, I dreaded of having to go thru the cups source code. My programming is virtually rusty and looking at thousand lines of codes is not my idea of having fun at the moment. So, I have added some codes to cups init script to create the tmp spools folders.

Well, I hope someone else who's having a tough time with the latest cups to give this a shot and let me know how it goes. I do not have any usb printer at the moment, so I'm interested to know if this still works.


note: these are no longer required. kept for historical record.
Code:

1. Open a terminal and stop existing cupsd: 'killall cupsd'

2. Install the cups-1.3.9-i486

3. Add these lines to your /etc/cups/cupsd.conf (after LogLevel is ok)

   RequestRoot /tmp/spool/cups
   TempDir /tmp/spool/cups/tmp
   
4. In a terminal, start new cupsd: '/etc/init.d/cups start'

5. You should get msg: "cups: started scheduler"

6. Add printer/configure and make a test print


Code:

If you're using LPT printer and paraport module disappear on next reboot. You'll need to manually load these modules. It should be loaded before cups starts.
 
Add these lines in rc.services before the the init.d services are called:

modprobe parport
modprobe parport_pc
modprobe lp
chmod 0666 /dev/lp0


Have Fun !

Rgds

p/s: A BIG thank you to ttuuxxx for the heads-up on cups-1.4b2. Please refer to my post below.


cups_std-1.4b2-i486.pet : reworked cups packages specific for puppy 4.x.x
No longer available. Pm me if you really want it.
The recommended CUPS package is here.

For installation procedure click here:
http://www.murga-linux.com/puppy/viewtopic.php?p=269591#269591

experimental usb printer backend as addon is available below.


Rgds

Added:
Was tested with Puppy Linux 4.1.1 and 4.1.2
Just tested with Puppy Linux 4.2alpha. Preliminary result confirmed it is working.
-----
Compiled new Cups-1.4b2
Preliminary testing done on Puppy Linux 4.1.1 and 4.1.2. So far so good.
-----
Latest pet reworked for simultaneous usb & lpt printers
experimental usb backend addon

.
cups-1.4b2-usblp-addon.tar.gz
Description  usb printer backend addon : put into /usr/lib/cups/backend
gz

 Download 
Filename  cups-1.4b2-usblp-addon.tar.gz 
Filesize  9.93 KB 
Downloaded  398 Time(s) 

Last edited by Patriot on Tue 11 Aug 2009, 05:34; edited 7 times in total
Back to top
View user's profile Send private message 
BarryK
Puppy Master


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

PostPosted: Wed 28 Jan 2009, 06:10    Post subject:  

Quote:
Finally traced it to /var/spool/cups folder permissions ... no matter what permissions I set, it just won't print ... ok, lets move it somewhere then ... and jackpot! All my troubles went away in a flash ...


Oh my yes, I also had lots of fun and games with CUPS. That's why I ended up putting a fairly old version into Puppy4, as I couldn't get later versions to work.

But, what do you mean by "let's move it somewhere"? Do you mean you just deleted the 'cups' folder?

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Wed 28 Jan 2009, 11:17    Post subject:  

Hmmm .....

Hey there BarryK !

BarryK wrote:

But, what do you mean by "let's move it somewhere"? Do you mean you just deleted the 'cups' folder?


Wink ... err, no ... I moved /var/spool/cups to /tmp/spool/cups ... and set cupsd.conf to point over there ...

I couldn't go through the entire cups sources to find out where and why exactly ... From what I've read, a bunch of stuffs was changed between 1.1.23 and 1.3.3 (& 1.3.9 too) ... It was too much for me to go through the whole thing ...

Latest cups refuse to use root a/c at all and I figured that it definitely must be something to do with folder/file related permissions ... I've tried daemon/lp/bin users, all no go with original spool folder ... so, moving to /tmp seems logical to test a hunch I had, based on the cups err log ...

Yeah, I know all this is just a quick hack, but, it gets the job done (my lan users are happy too!) ... so far it works everytime I added it to a fresh puppy ... it's best to really spend some time getting cozy with cups and get cups to play nicely on puppy ... perhaps when I have more time, I'll do a proper patch ...

BTW, Barry, I'm swaying off topic here but is it possible for me to get the freememapplet sources please ? I'd be much obliged ...

Rgds
Back to top
View user's profile Send private message 
ttuuxxx


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

PostPosted: Wed 28 Jan 2009, 11:42    Post subject:  

Hi Guys I also have the latest Beta Cups cups-1.4b2 going, I got it running a few days before this release came out and was posted in the 4.2 section, I did it for the next release of puppy, I didn't have to move anything around at all, but I did have to use/alter Barry's Scripts, but it works, plus Its the full version, nothing really removed and I added Barrys Scripts. You can install it overtop your current version also.
here's a link
http://www.puppylinux.asia/tpp/ttuuxxx/programs/documents/cups-1.4b2-i386-v2.pet
ttuuxxx

Ps Patriot I'll have a look for the freememory source code, I had it like a year ago, so it might take some time to find it, Keep up the great work Smile

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile

Last edited by ttuuxxx on Fri 30 Jan 2009, 05:51; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Wed 28 Jan 2009, 15:37    Post subject: CUPS-1.4b2 pet update  

Hmmm .....

Hey ttuuxxx !

Thanks for the heads up ... I was wondering if 1.4b2 will still give me a headache ... Apparently NOT ! Smile

I've just grabbed the source and made a quick compile ... Also made a pet package too ... Slightly smaller package here ... I noticed dir2pet made duplicated man-html files ... I've double checked the files and removed the duplication ...

Well, so far tested on 2 different systems plus some QA tests on several fresh QEMU puppys ... Wooaaa ... First thing that strikes me is the "cleaner" web interface ...

The best thing is yet to come it seems ... No more fiddling with spool settings ... no more permission errors ... no more manually loading the parport modules ! Yeah, if parport/lp modules disappear, cups will load 'em automatically ... now, that really made my day ...

Every first time install on a fresh puppy goes smoothly... next, add/configure printers and away I print ... Smile

Great! Tomorrow I'll update all those systems that already have cups139 ... Very Happy

So, that makes two of us who did a binary cups14b2 package that works on puppy ...

Great work to you too ttuuxxx !

Rgds

ps. I'd really appreciate if there's a source for puppy released freememapplet ... I did read on BarryK's blog about the changes he made but the actual source would be much better ... I wanted to stop the messages that inotifywait keeps sending out to the logs ... it really helps when I need to look for something in the logs ...
Back to top
View user's profile Send private message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Wed 28 Jan 2009, 17:44    Post subject: cups_std-1.4b2-i486 install procedure  

Hmmm .....

This post was getting very messy ... I've edited this post to keep it short & simple ...

New step-by-step installation procedure :

1. One-click-to-install cups 1.4b2

2. Reboot

3. Start CUPS and add printer, login IS required. Default user: root; password: woofwoof.

4a. LPT printer setup: select LPT# as normal, parallel:/dev/lp[0-2]

4b. USB printer setup: select SCSI/BEH and change to parallel:/dev/usb/lp[0-7]

5. Test print

6. Done



Rgds

Last edited by Patriot on Mon 02 Feb 2009, 23:33; edited 3 times in total
Back to top
View user's profile Send private message 
BarryK
Puppy Master


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

PostPosted: Wed 28 Jan 2009, 20:07    Post subject:  

Quote:
I'll have a look for the freememory source code, I had it like a year ago, so it might take some time to find it, Keep up the great work

'freememapplet_xlib-411' is the one used in 4.1.2 I think. The source should be at puptrix.org/sources

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Wed 28 Jan 2009, 20:11    Post subject:  

Hmmm .....

BarryK wrote:

'freememapplet_xlib-411' is the one used in 4.1.2 I think. The source should be at puptrix.org/sources


Ok ... I'll go and get a copy. Much appreciated. Must get some shut-eye now ...

Errr ... whoops ... getting a 403 at puptrix ... hmmm ....

Rgds
Back to top
View user's profile Send private message 
ttuuxxx


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

PostPosted: Fri 30 Jan 2009, 08:51    Post subject:  

Updated the cups package, now all you do is click
Menus/System/Manage Printing
to start the new Cups packag

Hey Patriot
This is the FreeMemory source that I compiled/altered the version that comes with my icewm packages, Its very stable on icewm, never disapears from the taskbar, unlike when other versions have been compiled on JWM.
ttuuxxx

just type ./compile, it gives a few errors but works anyways, if you improve the source, please release it, also if you right click on the FMA taskbar icon it gives you a few options that are outdated -Kp,-partview, They need to be changed to Pprocess and Top View.
freememory.tar.gz
Description 
gz

 Download 
Filename  freememory.tar.gz 
Filesize  15.67 KB 
Downloaded  381 Time(s) 

_________________
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 poster's website 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Fri 30 Jan 2009, 10:20    Post subject:  

Hmmm .....

Thank you for the freemem source ... Much obliged ... Will take a look at it soon ...

Well, actually I've already figured out why the JWM freememapplet tray disappears ... happens only on full hdd installs, doesn't happen on LiveCD/Frugal tests ... the bug occurs in pup_event_frontend_d ... that pup_event was supposed to put the free "whatever memory" amount in /tmp/pup_event_freesizemem to be picked up by freememapplet ... if that ram amount is not sent to /tmp then freememapplet never appears ...

Anyway, I've already made some fixes & adjustments to pup_event_frontend_d to show available free ram for only hdd installs ... Dunno if anyone is interested with this fix ...

Now, if I could only get the actual JWM freememapplet source then perhaps I can shoot 3-4 birds with one stone ...


Rgds
Back to top
View user's profile Send private message 
ttuuxxx


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

PostPosted: Fri 30 Jan 2009, 10:27    Post subject:  

Patriot wrote:
Hmmm .....

Thank you for the freemem source ... Much obliged ... Will take a look at it soon ...

Well, actually I've already figured out why the JWM freememapplet tray disappears ... happens only on full hdd installs, doesn't happen on LiveCD/Frugal tests ... the bug occurs in pup_event_frontend_d ... that pup_event was supposed to put the free "whatever memory" amount in /tmp/pup_event_freesizemem to be picked up by freememapplet ... if that ram amount is not sent to /tmp then freememapplet never appears ...

Anyway, I've already made some fixes & adjustments to pup_event_frontend_d to show available free ram for only hdd installs ... Dunno if anyone is interested with this fix ...

Now, if I could only get the actual JWM freememapplet source then perhaps I can shoot 3-4 birds with one stone ...


Rgds


Patriot

Freememory does do the disappearing trick from the taskbar on the live cd as well, I ran puppy/compiled live for over 1yr and must left a few hundred times, guaranteed. Smile
not to set you back, but there might be more to it yet.
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 poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Fri 30 Jan 2009, 13:40    Post subject:  

Quote:

Freememory does do the disappearing trick from the taskbar on the live cd as well, I ran puppy/compiled live for over 1yr and must left a few hundred times, guaranteed. Smile
not to set you back, but there might be more to it yet.
ttuuxxx


Hey Jeff , Barry k, Patriot

I found out while ago doing a lot of experimental builds
that the free memory app

chokes because of something else
so I made a quick code fix

I called it quick_init
then make it a+x (Make executable/searchable)

and click it whenever things go buggy
once is enough to fix it until you reboot


Code:

#!/bin/sh
#big_bass  quick fix for multiple start up problems
mount /proc
mount /sys
mount /dev/pts



big_bass
[/code][/quote]
Back to top
View user's profile Send private message 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Fri 30 Jan 2009, 20:02    Post subject:  

Hmmm .....

Quote:
ttuuxxx:

Freememory does do the disappearing trick from the taskbar on the live cd as well, I ran puppy/compiled live for over 1yr and must left a few hundred times, guaranteed......


Right, I've taken a look again at my pup_event_frontend_d routines ... Spent a bit more time at the codes and I've just realized an oversight on my part ... I overlooked one line that shouldn't be used without proper processing ... If you look at lines ~512 in the orig pup_event_fontend_d, ask yourself if that ps | grep will do what you want ...

Try this patched pup_event_frontend_d on your LiveCD/frugal/full installs ... I'm sure I got it right unless there's some other dark forces preventing me from seeing the code right ... Smile

Quote:
big_bass:

..... I called it quick_init .....

Wowzer ... coz that suddenly gives me another hunch .... Right, I did some checking and I've just figured out why cups 1.4b2 is having problems with lpt ports .... wooaaa ... it's so simple and yet elusive ... and it's not even cups 1.4b2 fault ....

It seems that if parport+_pc+lp modules are not loaded and later loaded manually, active /dev/lp* will get reset to 0660 permissions ... while cups needs 0666 permissions ... hmmm .... sometimes I wonder ....

I guess a reworked cups pet needs to be done ... I'll try to get a usb printer next week and make a full cups tests with lpt/usb before making an updated pet ...

Rgds
pup_event_frontend_d.tar.gz
Description  Patched pup_event_frontend. Freememapplet disappearing trick fix :)
gz

 Download 
Filename  pup_event_frontend_d.tar.gz 
Filesize  6.93 KB 
Downloaded  410 Time(s) 

Last edited by Patriot on Fri 30 Jan 2009, 21:12; edited 3 times in total
Back to top
View user's profile Send private message 
ttuuxxx


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

PostPosted: Fri 30 Jan 2009, 20:44    Post subject:  

Patriot wrote:
Hmmm .....

I guess a reworked cups pet needs to be done ... I'll try to get a usb printer next week and make a full cups tests with lpt/usb before making an updated pet ...

Rgds


Patriot ummmm just try my latest version above on a clean live cd, it works out of the box, Its doesn't have any issues that I can see. Why not look at the puppy 4.2 development section and gives us a hand there?
ttuuxxx
http://www.murga-linux.com/puppy/viewtopic.php?p=270155#270155

_________________
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 poster's website 
Patriot


Joined: 15 Jan 2009
Posts: 734

PostPosted: Fri 30 Jan 2009, 23:26    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [54 Posts]   Goto page: 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:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1175s ][ Queries: 13 (0.0051s) ][ GZIP on ]