Printing with CUPS: Almost here ! (Finally HERE!)

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#121 Post by rarsa »

what pup-cups?

Do you mean the cups-install from here?--> http://www.murga.org/~puppy/viewtopic.php?p=12248#12248

I just tried it and it worked.
shrdlu
Posts: 25
Joined: Wed 09 Nov 2005, 21:44
Location: NE Illinois

CUPS with DLink print server

#122 Post by shrdlu »

Thanks so much, Rarsa. I am happily printing following your instructions on page 1. As a noopup, I respectfully suggest you add "reboot" after the instruction to use usr_devx.sfs. Most of us newbies won't already have it installed. Other than that it worked like a charm. It even works with my fairly inexpensive DLink print server. When you add the printer, instead of using LPT1, use "LPD/LPR Host or Printer". When you see the "lpd" prompt, use:

Code: Select all

lpd://<print server address>/<portname>
in my case, this was:
lpd://192.168.1.10/HP500
Cheers!
If only I could be half as good as my dog thinks I am
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

Re: DONE!

#123 Post by edoc »

rarsa wrote: 1. Download the cups-install.tar.gz file
OK
rarsa wrote:2. Open a console terminal and change folders to the folder where you downloaded the file.
OK
rarsa wrote:3. Untar the cups-install.tar.gz with "tar -xvzf cups-install.tar.gz". This tar file includes the scripts to install cups. ESP Ghostscript and the hpijs driver.
OK
rarsa wrote:4. From the console execute "sh cups-install.sh"
OK.
rarsa wrote:5. If you are printing to a remote CUPS server go to step 9, otherwise continue with step 6.
Perhaps remote later, local for simplicity now! ;-)
rarsa wrote:6. If your print drivers require ESP Ghost script, execute ""sh espgs-install.sh". (the hpijs driver needs it).
OK
rarsa wrote:7. Install the CUPS drivers for the printers connected to your puppy computer according to your driver's instructions. Check in http://www.linuxprinting.org to find out the drivers required by your printer.
http://www.linuxprinting.org/show_print ... ceJet_4100
"HP OfficeJet 4100
Color inkjet printer, max. 4800x1200 dpi, works Mostly
Recommended driver: hpijs (Home page, view PPD, download PPD)"

Sounds as though I may not need anything special besides hpijs, which is included already. Yes?
rarsa wrote:These instructions include the hpijs, if your printer is suported just execute "sh hpijs-install.sh".
OK
rarsa wrote:8. If your driver requires foomatic, you also need to install Perl. Don't use the Perl PupGet as it is a stripped down version. If you are using puppy 1.0.5 download the usr_devx.sfs file. If you are using a puppy version prior to 1.0.5 downlad the attached perl installer, untar it and instal with "sh perl-5.8.6-install.sh"
I am using Puppy 1.0.6 so am not certain what to do here so I skipped this step. Don't know if I need foomatic anyhow.
rarsa wrote:9. Restart cups with "sh /etc/rc.d/rc.cups restart"
OK
rarsa wrote:10. Open your browser and go to the following address http://localhost:631
OK
rarsa wrote:11. Add your printer following the links on that page. If you already have a CUPS server that allow browsing you will see the shared printers there.
This step at http://localhost:631/admin could be more obscure but I am not certain how. I am supposed to know what precisely (I presume one must be precise) to enter here how? Another Linux tool that inappropriately presumes prior knowledge of details most people do not know.

Device URI for hp4215
Device URI: ________________
Examples:

file:/path/to/filename.prn
http://hostname:631/ipp/
http://hostname:631/ipp/port1
ipp://hostname/ipp/
ipp://hostname/ipp/port1
lpd://hostname/queue
socket://hostname
socket://hostname:9100

??
rarsa wrote:12. Print the test page

It's THAT easy. I took dewdrop and my self about 80 hours to get to this point but we are finally here!
I sure appreciate all of your work!

I am still significantly behind you in Linux knowledge so I have stubled close to the end -- hopefully only near the end!

Can you clarify the http://localhost:631/admin setting expectations of CUPS please?

I can almost smell that ink drying on the paper!

Thanks! doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

#124 Post by dewdrop »

Hi Doc,

You wrote the following:
am still significantly behind you in Linux knowledge so I have stubled close to the end -- hopefully only near the end!

Can you clarify the http://localhost:631/admin setting expectations of CUPS please?
This is Dewdrop, and I think I can help you get thru the last part since I was the tester for Rarsa on this.

You say you are using Puppy 1.0.6. In that case, I think you will need to download and put onto your drive where the pup001 file is located the usr_devx.sfs. file....if you don't already have it downloaded and placed there. Reboot after the usr.devx.sfs files has been added.

Just before you go to the http://localhost:631 website, be sure to do the step that says "sh /etc/rc.d/rc.cups restart" in the rxvt window. ( I know you indicated that you did this, but it was part of the steps that I usually forgot and then nothing would happen).

Once you are this far, go to the localhost:631 website and you should then be able to go thru the steps ...I can't get localhost to come up at the moment, or I would lead you thru each step exactly.....and once you get to the page where it says select your printer, all of the printers for HP should be listed under the HP page. Select your printer, then go to the next step, and eventually it will say print test page. Click that, and your printer should start up.

Let me know if this helps you. If not, I'll try get connected to the localhost and send you the steps exactly and not rely on my memory.

Good luck. I'll be expecting to hear from you

Dewdrop
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#125 Post by edoc »

dewdrop wrote: You say you are using Puppy 1.0.6. In that case, I think you will need to download and put onto your drive where the pup001 file is located the usr_devx.sfs. file....if you don't already have it downloaded and placed there. Reboot after the usr.devx.sfs files has been added.
OK. I am also trying this on a 1.0.4 machine and understand that I do not need it on that one?

I messed up before. I just realized that I had clicked the wrong DEVICE and that stopped me. I just ran it and selected the correct one (on the 1.0.4 machine).

xpdq does not recognize what I have done so far so my error in following the 1.0.6 steps on a 1.0.4 machine needs to be resolved. (I need to update this one soon ...)

I am going to head over to the 1.0.4 machine and try things out ... after I make a quick effort to fix this one.

BTW: I am running GrafPup 1.0.6 on the other machine instead of generic 1.0.6 Puppy. Does that matter?
dewdrop wrote: Just before you go to the http://localhost:631 website, be sure to do the step that says "sh /etc/rc.d/rc.cups restart" in the rxvt window. ( I know you indicated that you did this, but it was part of the steps that I usually forgot and then nothing would happen).
Got it.

Thanks! doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

#126 Post by dewdrop »

Hi Doc,
OK. I am also trying this on a 1.0.4 machine and understand that I do not need it on that one?

I started the testing with 1.0.4, and might I suggest that you read thru the thread from where I start with the testing. You will see my efforts/errors, and they should keep you going in the right direction. Since you are using 1.0.4, there is another file that you need to download/install...it is: perl-5.8.6-install.tar.gz.

Once I switched over to 1.0.5, and downloaded the developer file: usr_devx.sfs, This replaced/removed the need for the perl file.

BTW: I am running GrafPup 1.0.6 on the other machine instead of generic 1.0.6 Puppy. Does that matter?

You've got me on that one. I've never used anything but the generic pups and those usually from Live CD's. I guess I've used pup installed on a memory stick too.

Like you, I'm pretty new with Linux and Puppy, so there is a ton of stuff I haven't a clue about, but I'll bet the developer of GrafPup would love to hear if you were able to get CUPS working on his version.

Again, please review the entire thread, and good luck.

Dewdrop
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#127 Post by edoc »

edoc wrote: I am going to head over to the 1.0.6 machine and try things out ... after I make a quick effort to fix this 1.0.4 one.
Went back and ran sh perl ... and then restarted CUPS.

Tried to print but nothing.

Tried xpdq and nothing.

Tried Restart Job and got this:

Jobs

Error:

client-error-not-possible

?? doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

#128 Post by dewdrop »

Hey Doc,

Let's begin anew.

Go to your 1.0.4 machine and do the CUPS download/install with a "pristine" 1.0.4 install - rename the 1.0.4 pup001 file to some other name, then restart puppy so you get a new pup001 file.

Then do the following steps from Rarsa's instructions on page one of the thread:

1. Download the cups-install.tar.gz file
2. Open a console terminal and change folders to the folder where you downloaded the file.
3. Untar the cups-install.tar.gz with "tar -xvzf cups-install.tar.gz". This tar file includes the scripts to install cups. ESP Ghostscript and the hpijs driver.
4. From the console execute "sh cups-install.sh"
5. If you are printing to a remote CUPS server go to step 9, otherwise continue with step 6.
6. If your print drivers require ESP Ghost script, execute ""sh espgs-install.sh". (the hpijs driver needs it).

......................Be sure to include step 6.........................

8. If your driver requires foomatic, you also need to install Perl. Don't use the Perl PupGet as it is a stripped down version. If you are using puppy 1.0.5 or newer download the usr_devx.sfs file. If you are using a puppy version prior to 1.0.5 downlad the attached perl installer, untar it and instal with "sh perl-5.8.6-install.sh"
9. Restart cups with "sh /etc/rc.d/rc.cups restart"
10. Open your browser and go to the following address http://localhost:631

As you can see below, I had your printer included in a long listing of HP printers on the localhost site.

****Edit++++

I have removed the printscreen to conserve space on the thread and the server.

Dewdrop


Highlight your printer model once you get to the page of HP printers, then continue to the next page where it says your printer has been installed. Click on the letters HP where it says:

Admin

Printer HP has been added successfully.

This opens another window that has as one selection "print test page". click on that and your printer should start printing.

The xpdq...or whatever the printer management stuff is inside the puppy has nothing to do with getting printers to work inside of CUPS....as far as I know.

Good luck. Next we'll go thru the 1.0.6 setup. But let's get 1.0.4 working first.

dewdrop
Last edited by dewdrop on Mon 12 Dec 2005, 14:29, edited 1 time in total.
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#129 Post by edoc »

dewdrop wrote:Let's begin anew.
Go to your 1.0.4 machine and do the CUPS download/install with a "pristine" 1.0.4 install - rename the 1.0.4 pup001 file to some other name, then restart puppy so you get a new pup001 file.
Naaw, hate to waste time with 1.0.4 and don't dare mess with this laptop (1.0.4) without a real good backup as it is my main PC for everything.

I gathered all of the downloads to a USB stick, did a real clean install of GrafPup to a desktop, and started ... Uh Oh!

Forgot that I do not have a wired nic in that one and my wireless nic options require fighting either with ndiswrapper (forget that) or trying to get a acx100 module recognized ... will be doing that soon.

Meanwhile I am going to find myself a generic wired 509 or similar nic tomorrow morning and get this thing done!

Will post when back at it tomorrow.

Thanks! doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
diehard2

#130 Post by diehard2 »

Hi, I'm having problems with this install. I seem to have installed cups correctly, but I got several errors when installing ghostscript (0kb of 10240 written to header or something like that) and perl looks like it installs, but I can't find the directory anywhere and perl -h (all lower case) doesn't work. I'm running from the livecd and using a 128 mb usb key for my directory. I looked in home, and there is nothing in the home/bin. I also tried the sfs file, but that didn't give me perl either. Any help is appreciated. Thanks

~Steve
User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#131 Post by rarsa »

diehard2 wrote:I got several errors when installing ghostscript (0kb of 10240 written to header or something like that)
Please post the exact message.
diehard2 wrote:If you are using and perl looks like it installs
Did you read my note saying that you only need to install perl if you have 1.0.5 or older? If you are using 1.0.7 you should download and use usr_devx.sfs[/quote]

Do you have enough space on your partition?
User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

Printing with CUPS (finally here)

#132 Post by dewdrop »

Hi Steve,

This is dewdrop, I'm the tester that helped Rarsa get this printing thing working.

A necessary piece of info you need to supply is the version of Puppy that you are trying to get the printer set up with. Also helpful would be the kind/model of printer.

As a head start, if it is Puppy 1.0.5 or later, follow these directions:

"you will need to download and put onto your drive where the pup001 file is located the usr_devx.sfs. file....if you don't already have it downloaded and placed there. Reboot after the usr.devx.sfs files has been added."

Then go thru the install routine again, remember to do the following procedure to restart CUPS:

sh /etc/rc.d/rc.cups restart

Then go to the http://localhost:631 and go thru the printer install procedure.

Let us know what happened.

Good luck.

dewdrop
diehard2

#133 Post by diehard2 »

Wow that was fast,

I'm running completely off of my usb key, there's no disk drive in the computer. The usb key is completely taken up with pup file. I'm running the 1.07 version of puppy. I believe the main problem is with perl, as I can get into cups and the printer is reported correctly. the page where you choose the driver is where I run into problems. There aren't any drivers there. I thought the perl installation could be used instead of the sfs file. So, is it possible to do this without the sfs file? Thanks for any help.

~Steve
User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

CUPS

#134 Post by dewdrop »

diehard2 wrote:Wow that was fast,

So, is it possible to do this without the sfs file? Thanks for any help.

~Steve
I'm afraid your question above is beyond my ability, so I'll have to ask Rarsa to answer it. But, my feeling is that it is not possible to do it without the sfs file.

My own experience with using Puppy on a pen drive was rather short, and I was using one with 512 megs, so I had lots of space for everything.

Dewdrop
User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#135 Post by rarsa »

diehard2 wrote:I believe the main problem is with perl, as I can get into cups and the printer is reported correctly. the page where you choose the driver is where I run into problems. There aren't any drivers there. I thought the perl installation could be used instead of the sfs file.
I don't know if I am confused by what you are saying or you are confused about Perl, so to avoid any confussion I will start from the bottom, sorry if I state something obvious to you.

- Perl is a scripting language. Some Gohstscript drivers use Perl. Some others do not. Having Perl does not mean that you have the drivers.

- You need to install the CUPS drivers for your printer. If those drivers require Perl, then you need to install Perl too.

Go to http://www.linuxprinting.org with your printer model and search for the appropriate drivers.
diehard2

#136 Post by diehard2 »

Hi rarsa,

Sorry if I was unclear. I cannot install the sfs file since I don't have enough space on my usb key. I tried to install perl using the script in the instruction post but was unsuccessful most likely since I'm on the latest puppy. Is there a way to install perl without the sfs file on the latest version of puppy? Thanks.

~Steve
User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#137 Post by rarsa »

Oh, sorry.

If the problem is with Perl. I suggest opening another thread specific to that problem, you will get more responses.
baysoor
Posts: 10
Joined: Tue 14 Feb 2006, 02:10

Help! Does not work with PSC1209 Multifunction

#138 Post by baysoor »

I have AMDK6-300 with 128 MB RAM, Hard disk install of puppy 1.0.7. I followed all instructions in this post (I think). I have succesful cups install. I can see the http://localhost cups webpage and I can configure the printer but CUPS does not see the printer. It is indeed connected to the USB port. My test print jobs are aborted. I am attaching error log and proc usb file to show device. The error log is of several instances of me swithing ports, restarting cups etc. Sorry for the long log file but I did not know what to cut. The device file may not match the port number as I copied the proc file once but switched around between both ports while debugging. BTW How do I find out which usb port is /usb/lp0 or lp1 from the proc file? The numbers do not match. Is it one of those start from 0 and start from 1 thing? If this does not work I am willing to spend time to get hplip driver working but I will need guidance in downloading all the requireed stuff like gcc tcl and other stuff. Can somebody (rarsa ;-) please help?
Attachments
log.tar.gz
cups error log
(3.81 KiB) Downloaded 329 times
usb_devices.gz
Proc file usb devices
(622 Bytes) Downloaded 278 times
User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

#139 Post by pakt »

diehard2 wrote:Is there a way to install perl without the sfs file on the latest version of puppy? Thanks.
MU's Full-Perl is smaller and also works with CUPS (his Mini-Perl does NOT however).

See thread http://www.murga.org/~puppy/viewtopic.php?t=4193 for the dotpup.

Paul
User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

Re: Help! Does not work with PSC1209 Multifunction

#140 Post by dewdrop »

baysoor wrote:I have AMDK6-300 with 128 MB RAM, Hard disk install of puppy 1.0.7. I followed all instructions in this post (I think). I have succesful cups install. I can see the http://localhost cups webpage and I can configure the printer but CUPS does not see the printer. It is indeed connected to the USB port. My test print jobs are aborted. I am attaching error log and proc usb file to show device. The error log is of several instances of me swithing ports, restarting cups etc. Sorry for the long log file but I did not know what to cut. The device file may not match the port number as I copied the proc file once but switched around between both ports while debugging. BTW How do I find out which usb port is /usb/lp0 or lp1 from the proc file? The numbers do not match. Is it one of those start from 0 and start from 1 thing? If this does not work I am willing to spend time to get hplip driver working but I will need guidance in downloading all the requireed stuff like gcc tcl and other stuff. Can somebody (rarsa ;-) please help?
Hi baysoor,

I shall leave the job of helping to Rarsa, as you requested, but would like to add only the following:
Did you download and place on the C: area of your hard drive, the usr.devx.sfs file?

It is my understanding that from Puppy 1.0.5 onward, this file needs to be present in the same area as the pup001 file....it contains, among other things, the PERL file that the instructions need to get the printers to work. The perl file *perl 5.8.0" that can be downloaded from the dotpup location is not sufficient and should not be used.

Let us know if/when you have accomplished the above, and what the results are.

dewdrop
Post Reply