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 Wed 17 Sep 2014, 11:41
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 1 of 14 [197 Posts]   Goto page: 1, 2, 3, ..., 12, 13, 14 Next
Author Message
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Fri 04 Aug 2006, 04:19    Post subject:  CUPS printing - installation script - update 13SEP06  

Installing CUPS and a parallel port or USB printer in Puppy 1.xx or 2.xx

5DEC06 - USE THIS NEW DOTPUP INSTEAD: cups-install-v0.3.pup for even easier CUPS and printer installation !
* * * * * * * * * * * * * * * * * * * * * * * * * *
UPDATE 13SEP06: Installation script v0.1f. Changes from script v0.1c:
- verifies any *.ppd file in cups-install dir with 'cupstestppd'
- added 'network' to choice of printer types
- starts default browser with CUPS web interface from script
- checks for missing perl modules only in Puppy 2.01/2.02 (perl 5.8.6).
(Puppy 2.10, using perl 5.8.8, has the missing modules)
- checks that cupsd is running before starting browser
- backs up original /etc/rc.d/rc.local to /etc/rc.d/rc.local_cups
- changed to high-capacity download server ftp://slackware.cs.utah.edu

* Background

Barry K has, through his Puppy Printer Wizard, put printer support in Puppy for a number of Canon, Epson, HP and Lexmark printers. This is good news for those having one of the supported printers. Unfortunately, my Brother HL-1030 parallel port printer is not one of them. To make matters worse, in order to share it in my home network, I had it connected to my D-Link DI-713P Wireless Gateway's printer port. This required a special driver from D-Link to get to work in XP.

When rarsa announced his breakthrough CUPS solution for Puppy some time ago, I used his scripts and the files that were downloaded to get the Brother printer to work in Puppy 1.07. It was easier to set up in Puppy than it was in XP - no special driver was neccessary! I must confess that I did have to search the net for the right 'Device' and 'Device URI' syntax for this unusual configuration. It turned out to be 'Device': 'LPD/LPR Host or Printer' and 'Device URI': lpd://192.168.0.1/lp' for my network. I've been printing happily ever since. The ability to print from Puppy was the one thing that had kept me from running Puppy as my main OS instead of Kanotix.

* The CUPS installation script

I have been following the CUPS threads on the Puppy forum and the great work dewdrop has been doing helping others. However, I found rarsa's instructions awkward, having to execute separate scripts to install the CUPS files. They also needed updating for Puppy 2.xx. So I decided to re-write the scripts into a single script, update the CUPS files from Slackware 10.1 to 10.2 and add the CUPS 'gimp-print' file containing numerous additional printer drivers.

The script will now ask for the type of printer to be installed (parallel, USB or network) and install the correct modules for either Puppy 1.xx or 2.xx (the module names have changed between kernel versions).

Please note that in Puppy 2.00/2.01/2.02, the perl installation is missing some perl modules needed to run CUPS. The missing files are in perl_missing.tar.gz, attached to this post. See the instructions further down on how to install this file.

* Instructions for using the script

Installing the CUPS files (Note - you need to be online so the script can download the necessary files)

1. Download the attached file (cups-install.tar.gz) and copy it to /root/

Then, in a console, do the following:

2. Change to your root directory

# cd /root

3. Unpack the file:

# tar -xzf cups-install.tar.gz

4. Change to the installation directory

# cd cups-install

5. Run the script. This will download and install the four CUPS files. If the files have been previously downloaded, the script will use the these files instead of downloading them again. Just make sure they are in the same directory as the CUPS install script.

# sh cups-install.sh

Adding and configuring your printer

1. After the CUPS files are installed, the script will automatically start up your default browser with the CUPS web interface where you add and configure your printer. The terminal with this script will remain open with instructions to help you add and configure your printer. Once configured, a test page can be printed to check the setup. No re-booting of the PC is neccessary.

If you should want to read the instructions again, they are in the file 'cups-conf.txt'. Open the file with an editor to read it.

Note that you may not need to download a .ppd file for your printer before running this script. It may already be listed on the 'Make' and 'Model' pages of the CUPS web interface. If it is not listed, download a suitable .ppd file from www.linuxprinting.org , copy it to the same directory as this script and then run the script again. It will automatically install the .ppd file. The 'Make' and 'Model' should now be present when you try to add the printer in the CUPS web interface.

Tip: If you have an HP printer, you can check which 'Model' name to use in the CUPS web interface by looking up the 'Printer Class' for your printer on HP's 'All Supported Devices' page: http://hplip.sourceforge.net/supported_devices/combined.html
Example: HP PSC1410 'All in one' printer - use 'DJ3320'

2. Finish by deleting the temporary directory (if you don't want to save the downloaded files).

# cd ..
# rm -R cups-install

* Adding the missing perl modules for Puppy 2.00/2.01/2.02

1. Download the attached file (perl-add-missing.tar.gz) and copy it to /root/

Then, in a console, do the following:

2. Change to your root directory

# cd /root

3. Unpack the file. This will create temporary directory perl-add-missing

# tar -xzf perl-add-missing.tar.gz

4. Change to directory perl-add-missing

# cd perl-add-missing

5. Run the script.

# sh perl-add-missing.sh

6. Finish by deleting the temporary directory

# cd ..
# rm -R perl-add-missing

* Feedback

Please report in this thread if you are successful or if you have problems installing a printer using the script and these instructions.

Good luck!

Paul
cups-install.tar.gz
Description  Updated installation script v0.1f
gz

 Download 
Filename  cups-install.tar.gz 
Filesize  11.08 KB 
Downloaded  953 Time(s) 
perl-add-missing.tar.gz
Description  Only needed for Puppy 2.00/2.01/2.02
gz

 Download 
Filename  perl-add-missing.tar.gz 
Filesize  75.07 KB 
Downloaded  1023 Time(s) 

Last edited by pakt on Fri 11 May 2007, 02:13; edited 17 times in total
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 04 Aug 2006, 04:39    Post subject:  

Seems this could make people happy. Testers needed.
Have put it on the wiki news . . .
http://puppylinux.org/wikka/LatestNews

Cool

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Fri 04 Aug 2006, 04:49    Post subject:  

Lobster wrote:
Seems this could make people happy. Testers needed.
Have put it on the wiki news . . .
http://puppylinux.org/wikka/LatestNews

Cool

Thanks Lobster Very Happy
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Fri 04 Aug 2006, 10:43    Post subject:  

I'll test your script as soon as I can.

I've had way to many people at home this summer and feel like a turist guide. Not that I'm complaining.

I know how important it is to have testers. I wouldn't have been able to refine the installation the first time around if it wasn't for dewdrop and other people testing and giving advice.

_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Back to top
View user's profile Send private message Visit poster's website 
dewdrop


Joined: 29 Aug 2005
Posts: 298
Location: Texas USA

PostPosted: Fri 04 Aug 2006, 11:00    Post subject: Installing CUPS and a parallel port or USB printer in Puppy  

Hi Paul,

This is just tremendous. I've downloaded the files and will try today to do pristine installs of Puppy 109CE, and Puppy 2.02, using them with my HP6540 USB printer.

Thanks for all this work.

I'll send this thread's address to Flash so that he can include it in his beginners thread.....

http://www.murga.org/~puppy/viewtopic.php?t=597

dewdrop
Back to top
View user's profile Send private message 
Kal

Joined: 05 May 2005
Posts: 624
Location: California, High Desert

PostPosted: Fri 04 Aug 2006, 14:14    Post subject: Cups  

Hi, Paul
I did a fresh Puppy 2.02, hdd #1 install and tried the new cups installer. This is with a usb HP3740 printer. I used xarchive to untar, instead of xterm, but the same smell. Install your perl package and than run sh cups-install.sh in terminal, used "Xterm here" from right click menu in cups-install window. Installed the printer in the print manager and all went well. You have a nice spacings on the entries in rc.local. No having to "modprobe usblp" or reboot! Printed test page. A+ score on this Cups installer. Very good upgrade. I only made one mistake, I forgot to hookup to the internet first (rushed it).
Thanks, Kal
Back to top
View user's profile Send private message 
Buteman


Joined: 24 Jul 2006
Posts: 16
Location: Bute - Scotland

PostPosted: Fri 04 Aug 2006, 14:41    Post subject:  

Thanks for your efforts,
Unfortunately it's not quite there for me yet as I get some errors.
The link to www.linuxprinting.org is malformed as there is a comma immediately after .org and before the final /
I did spot this but it is not easy to see.
That is a minor problem because I am getting the same errors as I had before when running cups-install.sh
they are :

sh-3.1# sh cups-install.sh
--19:27:24-- ftp://ftp.linux.cz/pub/linux/slackware/slackware-10.2/slackware/a/ cups-1.1.23-i486-1.tgz
=> `cups-1.1.23-i486-1.tgz'
Resolving ftp.linux.cz... done.
Connecting to ftp.linux.cz[147.251.48.205]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/linux/slackware/slackware-10.2/slackware/a .. . done.
==> PORT ... done. ==> RETR cups-1.1.23-i486-1.tgz ...
Error in server response, closing control connection.
Retrying.

--19:30:44-- ftp://ftp.linux.cz/pub/linux/slackware/slackware-10.2/slackware/a/cups-1.1.23-i486-1.tgz
(try: 2) => `cups-1.1.23-i486-1.tgz'
Connecting to ftp.linux.cz[147.251.48.205]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/linux/slackware/slackware-10.2/slackware/a ... done.
==> PORT ... done. ==> RETR cups-1.1.23-i486-1.tgz ...
Error in server response, closing control connection.

These contiue for a number of times ( 20 I think ) then it gives up.
best wishes,
Norm
Back to top
View user's profile Send private message 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Fri 04 Aug 2006, 14:51    Post subject:  

Whew...well, now I know how I am going to spend this weekend. I will be trying it on my two Canon printers. One is an i70 portable, the other an MP780 multifunction (scanner+printer), both through the USB port. One thing I cannot do in Win 98SE is make either printer work through a PCMCIA USB 2.0 adapter. Good heavens, if that works then I am going to have to learn the Swedish national anthem...
Back to top
View user's profile Send private message 
Kal

Joined: 05 May 2005
Posts: 624
Location: California, High Desert

PostPosted: Fri 04 Aug 2006, 15:43    Post subject: Cups  

Hi, Buterman
Just wondering if you have tried going to the slackware site and downloading from another server manually.
http://slackware.it/en/pb/package.php?q=10.2/cups-1.1.23-i486-1#download

Good Luck, Kal
Back to top
View user's profile Send private message 
dewdrop


Joined: 29 Aug 2005
Posts: 298
Location: Texas USA

PostPosted: Fri 04 Aug 2006, 17:54    Post subject: Installing CUPS and a parallel port or USB printer in Puppy  

dewdrop wrote:
Hi Paul,

This is just tremendous. I've downloaded the files and will try today to do pristine installs of Puppy 109CE, and Puppy 2.02, using them with my HP6540 USB printer.


dewdrop


I did pristine installs for Puppy109CE and Puppy2.02 for my USB printer noted above....both installs worked perfectly.

Thanks again Paul.

dewdrop
Back to top
View user's profile Send private message 
Buteman


Joined: 24 Jul 2006
Posts: 16
Location: Bute - Scotland

PostPosted: Fri 04 Aug 2006, 18:06    Post subject: Re: Cups  

Kal wrote:
Hi, Buterman
Just wondering if you have tried going to the slackware site and downloading from another server manually.
http://slackware.it/en/pb/package.php?q=10.2/cups-1.1.23-i486-1#download

Good Luck, Kal

I did download the files for slack 10.1 at the suggestion of another forum member and edited cups-install.sh but I cannt seem to get anything to print to my remote printer. running the printer wizard gives no option for remote printer uuse either.
Norm
Back to top
View user's profile Send private message 
kirk

Joined: 11 Nov 2005
Posts: 1406
Location: florida

PostPosted: Fri 04 Aug 2006, 18:09    Post subject:  

Works for me with a networked postscript printer. But I didn't have to have it, xpdq included in Puppy works for me as well.


Thanks
Very Happy
Back to top
View user's profile Send private message 
edoc


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

PostPosted: Fri 04 Aug 2006, 18:47    Post subject: Re: CUPS Printing - New installation script - Please test...  

pakt wrote:
Installing CUPS and a parallel port or USB printer in Puppy 1.xx or 2.xx

Instructions

1. Download the attached file (cups-install.tar.gz) and copy it to /root/
Then, in a console, do the following:

2. Change to your root directory
# cd /root

3. Unpack the file:
# tar -xzf cups-install.tar.gz

4. Change to the installation directory
# cd cups-install


Here is my experience -- HDD install of Puppy 2.02 on a Laptop:

sh-3.1# cd /root
sh-3.1# tar -xzf cups-install.tar.gz
sh-3.1# cd cups-install
sh: cd: cups-install: No such file or directory


Never a simple install or setup of anything here ... doc

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


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

PostPosted: Fri 04 Aug 2006, 20:55    Post subject: Re: CUPS Printing - New installation script - Please test...  

edoc wrote:


Here is my experience -- HDD install of Puppy 2.02 on a Laptop:

sh-3.1# cd /root
sh-3.1# tar -xzf cups-install.tar.gz
sh-3.1# cd cups-install
sh: cd: cups-install: No such file or directory




Perhaps I need to phrase my question more directly?

Was I supposed to manually create /root/cups-install or was
tar -xzf cups-install.tar.gz supposed to do that?

If supposed to be installed automatically what would cause it to
fail and what need I do?

I really need to be able to install my color printer. I have been
without it now for several weeks.

Thanks! doc

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

Joined: 30 Jun 2006
Posts: 215
Location: Wellington New Zealand

PostPosted: Fri 04 Aug 2006, 21:39    Post subject: Re: CUPS Printing - New installation script - Please test...  

[quote="edoc"]
edoc wrote:

Perhaps I need to phrase my question more directly?

Was I supposed to manually create /root/cups-install or was
tar -xzf cups-install.tar.gz supposed to do that?

Thanks! doc


When changing to a directory I find it useful to use the ls command to check exactly where I am. Also if you click on the tar.gz file in Rox, Puppys pupzip will open and you can select all files and extract ( it saves remembering all the right xzf etc options).

sh-3.1# cd my-documents/
sh-3.1# ls
clipart cups-install.tar.gz
cups-install tmp
sh-3.1# cd cups-install
sh-3.1# ls
cupsconf.tar.gz cups-conf.txt cups-install.sh read_me.txt
sh-3.1# sh cups-install.sh

Bill
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 14 [197 Posts]   Goto page: 1, 2, 3, ..., 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.1068s ][ Queries: 13 (0.0061s) ][ GZIP on ]