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 Thu 31 Jul 2014, 19:56
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Announcements
CUPS printing - installation script - update 13SEP06
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 12 of 14 [197 Posts]   Goto page: Previous 1, 2, 3, ..., 10, 11, 12, 13, 14 Next
Author Message
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Mon 18 Sep 2006, 09:32    Post subject:  

I've finally had time to try peppyy's CUPS dotpup. There are problems when running the cups-install script from another script. For example, 'more' doesn't work - pressing 'space' didn't do anything and pressing 'return' closes the window instead of showing the next line. Also it would be good if the script started immediately when the dotpup is opened instead of having to click on the separate installation script.

I'm not sure what's causing the problem aussie is getting when trying to download the CUPS files.

I think the best solution may be to rewrite the CUPS install script and adapt it for use as a dotpup instead of having one script call another. Also include all the files that are currently downloaded by the script so we avoid server problems. The dotpup will probably be around 10MB. After installation, the dotpup can be deleted and only the necessary files will have been added to Puppy.

peppyy's use of MU's perl-midi was a good idea and it can be installed along with missing-perl by the script if it detects that perl is missing altogether.

I will start on this project to modify the CUPS script today and then, if peppyy has no objection, see if I can put together a dotpup. I'll post my progress in this thread.

Paul
Back to top
View user's profile Send private message 
peppyy


Joined: 27 Jun 2005
Posts: 429
Location: VT USA

PostPosted: Mon 18 Sep 2006, 22:30    Post subject:  

I agree that it would be better to have it open the script directly and that it would be good to include the files in the dotpup. If you could have it check for perl first and download it if needed that would make it even better. I have to admit that I could not figure out how to launch the dotpup directly but I was working on it Wink

I think I also mentioned the exit problem at the end. With one script inside another I think the priority was for the outer script. As soon as the function of the install stopped for any length of time, my script continued its count and went to the exit comand.

This is why we test things right Very Happy

_________________
Questions? Search Puppy Linux Answers with Google
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Tue 19 Sep 2006, 10:08    Post subject:  

peppyy wrote:

This is why we test things right Very Happy

Yep, otherwise Puppy wouldn't be where it is - a great little distro Cool

I have re-worked the CUPS script to work as a program complete with dialog windows. Just click on the install file and the rest is automatic.

I plan on uploading an early version for testing later today. I need to see where we can host it. It will be about 13MB in size. Once it works satisfactorily, we can try to make a dotpup out of it.

Right now I am off to the post office in town to pick up a 3G datacard and a 3G router that will give me not 'broadband' but 'broader-band' to replace my present dial-up. I will be connecting my network to the nearby 3G mobile mast that was erected some months ago. This will give me about 8x faster internet access. I can't get anything else so this will have to do. Razz
Back to top
View user's profile Send private message 
aussie


Joined: 06 Mar 2006
Posts: 66

PostPosted: Wed 20 Sep 2006, 03:09    Post subject:  

pakt

Your eagerly anticipated new automatic CUPS Install script/program, will be a giant step forward for puppykind, and devoteecups, looking forward to testing it. Very Happy

_________________
Aussie, Aussie, Aussie
Back to top
View user's profile Send private message 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Wed 20 Sep 2006, 13:14    Post subject:  

Thanks for the enthusiasm, aussie Smile

My apologies for not uploading the CUPS install test package sooner but I ran into some problems.

After some early success in getting my 'broader-band' connection working using 3G, my 3G datacard stopped working Sad so it is back to dial-up until I can get a replacement card. The complete package I was going to upload is 13MB, but that just takes too long using dialup so I have removed the CUPS files. If you want to test the early CUPS installation program, download the CUPS files (as shown below) into the cups-install/ directory before clicking on 'cups-install'.

How to test:

1. Copy cups-install.tar.gz to /root

2. Unpack: tar -xzf cups-install.tar.gz

3. cd cups-install/

4. Download these files into cups-install/

wget -c ftp://ftp.linux.cz/pub/linux/slackware/slackware-10.2/slackware/a/cups-1.1.23-i486-1.tgz
wget -c ftp://ftp.linux.cz/pub/linux/slackware/slackware-10.2/slackware/ap/espgs-8.15rc4-i486-1.tgz
wget -c ftp://ftp.linux.cz/pub/linux/slackware/slackware-10.2/slackware/ap/hpijs-1.7-i486-1.tgz
wget -c ftp://ftp.linux.cz/pub/linux/slackware/slackware-10.2/slackware/ap/gimp-print-4.2.7-i486-1.tgz

5. Click on cups-install to run the CUPS installation program

Feedback welcome on how the program works in Puppy 1.xx & Puppy 2.xx

When we get the program to run reliably it should be fairly easy to make the program (and the CUPS files) into a dotpup.

Happy testing Wink
Paul
cups-install.tar.gz
Description 
gz

 Download 
Filename  cups-install.tar.gz 
Filesize  919.89 KB 
Downloaded  269 Time(s) 
Back to top
View user's profile Send private message 
peppyy


Joined: 27 Jun 2005
Posts: 429
Location: VT USA

PostPosted: Wed 20 Sep 2006, 20:58    Post subject:  

Nice script! I downloaded the files and put them all together in /usr/local/cups-install and it worked perfectly from there. Forgot I had a couple printers installed but it only took a minute to put them back. I attemtped several times to create a dotpup that ran the script automatically but the best I could get is an open folder with your script waiting for a click. It is a really big dotpup. almost 14mb so perhaps the last thing it should do is remove the temporary files from usr/local/cups-install. Or perhaps it should install from temp?

I put the dotpup up here temporarily

Link removed to avoid confusion.

It is a pretty fast server but no direct linking available without a premium account

_________________
Questions? Search Puppy Linux Answers with Google

Last edited by peppyy on Sun 24 Sep 2006, 19:15; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
MU


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

PostPosted: Wed 20 Sep 2006, 21:09    Post subject:  

mirror:
http://dotpups.de/dotpups/Printing/
Mark
Back to top
View user's profile Send private message Visit poster's website 
Torymon

Joined: 22 Aug 2006
Posts: 96
Location: The Great State of Mississippi,USA

PostPosted: Wed 20 Sep 2006, 23:05    Post subject:  

Thanks Mark!
Right nice of you!
Peppyy, pakt, does your script look for existing .ppd files and install them?
I know that Paul started with it looking for existing's and installing but does the
new script cover that as well?...
I'm willing to test but I don't want to lose my (very rare!!!) .ppd file that took
me over 5 or 6 hours to find the "generator" for! Laughing
I presume that I could put my "custom" ppd file in the 'cups-install' directory
and the script "will find it and install it automatically". ... Yes?
Hell, I'll make several dozen copies and check this out and see what happens!
I've downloaded the .pup from Mark's site and do the install with my .ppd
moved into the cups-install and see.
Let ya'll know later!
Woof!
Tory
Back to top
View user's profile Send private message 
peppyy


Joined: 27 Jun 2005
Posts: 429
Location: VT USA

PostPosted: Wed 20 Sep 2006, 23:47    Post subject:  

When in doubt, backup, backup, backup and it might not hurt to backup Very Happy

I have a custom .ppd on my libranet machine, or did until I updated the apps with synaptic I think it is called and it uninstalled it because it was not part of the original package. (Called it broken). I was never able to make it work again from scratch and I could not find the howto again, (over a year later). Went back to the old driver that comes with cups and just changed the default settings.

Thanks for the Mirror Mark.

Pakt, this 3G network sounds interesting. I wish they had something like that for my dad to get connected to. He suffers the intermitent dialup blues where he lives and is lucky to connect at all. I had to get him an external modem to get online since the line quality is so bad. At times his fax dosn't work correctly even. I am working on getting him a longer range wireless card so he can find some connections with his puptop in town.

Good luck with the network.

_________________
Questions? Search Puppy Linux Answers with Google
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Thu 21 Sep 2006, 02:26    Post subject:  

@Mark: Yes, thanks for the mirror Smile

peppyy wrote:
It is a really big dotpup. almost 14mb so perhaps the last thing it should do is remove the temporary files from usr/local/cups-install. Or perhaps it should install from temp?
It doesn't really need to be executed from /root. It will actually run from any directory - the script keeps track of where it is. The problem is if a .ppd file needs to be added to the installation directory by the user - the instructions need to tell the user where to put the file.

Here's a solution - have the installation program run from /tmp and tell the user to put the .ppd file in /root where it will be found by the program. That way the .ppd file will be saved while the installation program will be deleted after a reboot.

If this sounds reasonable, I will modify the script and upload it to this thread.
Torymon wrote:
Peppyy, pakt, does your script look for existing .ppd files and install them?
I know that Paul started with it looking for existing's and installing but does the new script cover that as well?...
Yep, the program will even test the .ppd file's validity, ie, if it is acceptable for use by CUPS. If it is, a green window pops up with a 'validation successful' message - if not a red window pops up with a 'validation fail' message telling the user to replace the .ppd file with a valid one. Cool
Back to top
View user's profile Send private message 
Torymon

Joined: 22 Aug 2006
Posts: 96
Location: The Great State of Mississippi,USA

PostPosted: Thu 21 Sep 2006, 03:45    Post subject:  

pakt,
that's cool!
If a user knew to put the ppd in /root...
As you said, the /tmp could get rid of the superflous install files but still retain
the "priceless" ppd file AND check/confirm it's suitability/validity...
(how do they say in those MasterCard commercials???... oh yeh?)
Priceless!
Sounds good guys! Ain't had the chance to test yet but planning on it!
Thumbs up to the team!! Very Happy
WoofWoof!
Tory
Back to top
View user's profile Send private message 
aussie


Joined: 06 Mar 2006
Posts: 66

PostPosted: Thu 21 Sep 2006, 09:01    Post subject:  

Well done pakt, peppyy, and MU for the mirror, the cups-install dotpup works like a charm, have now got to get myself a compatible printer and Puppy will be able to bark in print. Very Happy
_________________
Aussie, Aussie, Aussie
Back to top
View user's profile Send private message 
jaxpilot


Joined: 31 May 2006
Posts: 25
Location: St. Augustine

PostPosted: Thu 21 Sep 2006, 11:54    Post subject: CUPS - perfectly awesome - 2.10 HD / Dell 3100 cn  

Just want to say thanks a million for this script! As a newbie I have struggled with Puppy for 9 months - gave up 3 months ago. came back again this morning and wow! Downloaded 2.10, pupget for perl, ran your scripts after adding perl missing and copying my dell 3100 .ppd file and in 5 minutes had full color duplex laser printing up and running. The script was flawless for me.

Awesome, awesome, awesome.

Thanks,
Paul
Back to top
View user's profile Send private message AIM Address Yahoo Messenger 
peppyy


Joined: 27 Jun 2005
Posts: 429
Location: VT USA

PostPosted: Thu 21 Sep 2006, 14:47    Post subject: Re: CUPS - perfectly awesome - 2.10 HD / Dell 3100 cn  

jaxpilot wrote:
Just want to say thanks a million for this script! As a newbie I have struggled with Puppy for 9 months - gave up 3 months ago. came back again this morning and wow! Downloaded 2.10, pupget for perl, ran your scripts after adding perl missing and copying my dell 3100 .ppd file and in 5 minutes had full color duplex laser printing up and running. The script was flawless for me.

Awesome, awesome, awesome.

Thanks,
Paul


Thanks!
That's what we like to hear. Another happy pup. I am glad it worked for you but the praise belongs to pakt with all the hard work. I just have the fast connection and MU's dotpup wizzard which I need to read a bit more about. The new dotpup includes everything you should need in one package. I still have another test run or two to do but it is looking really good at the moment.

(Trotts off to clean up a couple hard drives)

_________________
Questions? Search Puppy Linux Answers with Google
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Fri 22 Sep 2006, 05:44    Post subject:  

OK, I have modified the script to only look for a .ppd file in /root. The CUPS install package should be unpacked in /tmp and run from there. That way it is automatically deleted on rebooting.

I discovered a potential bug - if more than one .ppd file exists in /root the script would fail. I have fixed that bug. Now if more than one .ppd file is found, a message pops up reporting the error and suggesting that all except one file be removed.

Attached is the new cups-install script. Just copy it over the old one.

Paul
cupsinstall-script-22sep06.tar.gz
Description 
gz

 Download 
Filename  cupsinstall-script-22sep06.tar.gz 
Filesize  4.04 KB 
Downloaded  307 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 12 of 14 [197 Posts]   Goto page: Previous 1, 2, 3, ..., 10, 11, 12, 13, 14 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Announcements
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.0962s ][ Queries: 12 (0.0063s) ][ GZIP on ]