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 23 Oct 2014, 15:28
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Printing with CUPS: Almost here ! (Finally HERE!)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 16 [229 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 14, 15, 16 Next
Author Message
rarsa


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

PostPosted: Mon 05 Sep 2005, 11:14    Post subject:  

dewdrop wrote:
It's fun being part of a team (although I'm a minor part, I believe)
As I said before, It's well known that we developers aren't good at testing our own creations. It does not matter how much time a developer puts into something if it does not work. So, I would say that your part is not minor. On the contrary, it's fundamental.

Funny thing. At work testers know how happy I am everytime they find a bug in my work. Better them than the client, eh?
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: Mon 05 Sep 2005, 11:29    Post subject: CUPS  

Hi Rarsa,

Thanks for the compliment.

I'm having a slight problem getting the localhost to connect this morning, so as I am waiting I decided I should check on the USB Connection area and see what I could see. This is what was listed for the printer as far as where the information is located (I guess).

/proc/bus/usb/devices

I have no idea if this is of any help or not.

Dewdrop

Last edited by dewdrop on Mon 05 Sep 2005, 18:02; edited 1 time in total
Back to top
View user's profile Send private message 
dewdrop


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

PostPosted: Mon 05 Sep 2005, 12:14    Post subject: CUPS  

Hi Rarsa,

Trying to get a connection to localhost this morning is a real pain so I'm going to give it a rest for a couple hours or so.

I did notice a difference in your instructions for the tar

the first one was tar -xvzf log.tar.gz/var/log/cups/*

the second was tar -cvzf log.tar.gz/var/log/cups

I know about the x and c difference from your posts. My question has to do with the * - asterisk - is it there on not?

Dewdrop
Back to top
View user's profile Send private message 
rarsa


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

PostPosted: Mon 05 Sep 2005, 13:11    Post subject:  

My mistake. It's with the *. As in DOS or windows or many other regular expresions, the * is a wild card meaning "everything"


Code:
tar -cvzf   log.tar.gz   /var/log/cups/*


This comamnd says
tar : execute the tar command
-c : Creating a new tar file
-v : verbose. Show me what you are doing.
-z : After taring the files, compress them with gzip
-f log.tar.gz : into a file called log.tar.gz
/var/log/cups/* : and include all the files under the /var/log/cups/ folder.
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: Mon 05 Sep 2005, 15:34    Post subject: CUPS  

Rarsa,

Thanks for the explanation. I restarted the attempt to comply with your previous request and still got the unable to connect message. So, I thought to myself - why not see what comes up with a search of http:localhost:631.

Lo! and behold! I found this and it seems to be working.....so now it's back to the instructions with a fresh start.

Dewdrop

(what follows came off of some forum about localhost:631, but I'm just sending the part I found of help)

"I guess I would post this here instead of the slackware forum.
I have downloaded all drivers and filters I need for my printer but when I try to access the web interface I get this error.
quote:

The connection was refused when attempting to connect to http://localhost:631/


I'm assuming that because I'm behind a router that it denied the connection. Would need to forward the port for 631 to my linux box so I can access the web interface? If so I guess I will do that and then disable the option after I get that setup for security reasons. In all the guides and tutorials I've read none have nevered mentioned about having to do this.

localhost:631 is an internal web page on the machine you are at. The "connection refused" message usually means that cupsd is not running. To check this, open a terminal and su root. Then type "cupsd" to try to start the daemon. If it was not running before, you should just get a new bash prompt. If you get a "cupsd: Child exited with status 98!", then cups is running and there is something else wrong. If it does start ok, then you should be able to access localhost:631 using the root username and password."

In my case, I simply got the new bash prompt, so I assume for whatever reason my daemon was not running. - Newbie ? - what a daemon?

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


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

PostPosted: Mon 05 Sep 2005, 15:58    Post subject: CUPS  

Hi Rarsa,

Still a no go on the HP 6540 - the one I'll stick with, then once we get this one working, I expect the other one HP 3320 will work too.

As you will see from the information below, I had to do the "cupsd" to restart the daemon since I couldn't open the 631 site again.

I have no idea if this is what is keeping the operation from being a success or not....I kind of wish that some of the other people watching and trying to get their printers connected as they follow our adventures would chime in with success stories... Very Happy

Anyway, I've attached the log file.

Thanks.

Dewdrop

I just realized that I didn't include the info from the xterm screen. Here it is:

`usr/share/cups/fonts/Courier-BoldOblique' -> `/usr/share/cups/fonts/Courier-BoldOblique'
`usr/share/cups/fonts/Courier-Bold' -> `/usr/share/cups/fonts/Courier-Bold'
`usr/share/cups/data/psglyphs' -> `/usr/share/cups/data/psglyphs'
`usr/share/cups/data/HPGLprolog' -> `/usr/share/cups/data/HPGLprolog'
`usr/share/cups/data/testprint.ps' -> `/usr/share/cups/data/testprint.ps'
classes.conf
client.conf
cupsd.conf
mime.convs
mime.types
ppds.dat
printers.conf
pstoraster.convs
modprobe printer
Note: /etc/modules.conf is more recent than /lib/modules/2.4.29/modules.dep
/etc/rc.d/rc.cups start
cups: started scheduler.
# cupsd
# tar -cvzf log.tar.gz /var/log/cups/*
tar: Removing leading `/' from member names
var/log/cups/access_log
var/log/cups/error_log
log.tar.gz
Description 
gz

 Download 
Filename  log.tar.gz 
Filesize  1.86 KB 
Downloaded  329 Time(s) 
Back to top
View user's profile Send private message 
rarsa


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

PostPosted: Mon 05 Sep 2005, 20:08    Post subject:  

Let's do what the error_log says.

Open the configuration file with leafpad
Code:
leafpad   /etc/cups/cupsd.conf
and change the line that says "LogLevel info" to "LogLevel debug". Close and save the file

Then do the following (same as previous instructions):
- Delete the log files,
- Try to print the test page,
- Tar the log files
- Send me the log files again.

Make sure that you pack the files just after trying to print the test page. I want to see the error that you get right after you try it.

By the way.

Are you available to do an online test tonight? we could join in the irc channel and try to speed things up. I'll be online about 9:00 PM EST (that is GMT -5)
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: Mon 05 Sep 2005, 21:09    Post subject: CUPS  

Hi Rarsa,

This really threw me for a loop. I have no idea how to carry out the instructions using leafpad.

Also, I'd be willing to tothe IRC Channel thing, but I've never done that before either.....

With my limited knowledge, would the IRC chat be productive for you?

I expect that the 9pm EST (GMT -5) do you mean EDT (Eastern Daylight Time?) .... that's 8pm CDT (Central Daylight Time) for me....in other words in approximately 18 minutes....I have 7:42pm here.

I'll see if I can get the IRC Channel in these remaining minutes before 8pm.

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


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

PostPosted: Mon 05 Sep 2005, 21:36    Post subject: CUPS  

Hi Rarsa,

I believe that I'm hooked into the IRC Chat channel for puppy.

I have the IRC Chat set up on GAIM. Is that correct? It is now 8:26pm my time.....9:26pm EDT.

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


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

PostPosted: Mon 05 Sep 2005, 22:48    Post subject: CUPS  

Rarsa,

Here's the log file.

Dewdrop
log.tar.gz
Description 
gz

 Download 
Filename  log.tar.gz 
Filesize  3.75 KB 
Downloaded  316 Time(s) 
Back to top
View user's profile Send private message 
dewdrop


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

PostPosted: Tue 06 Sep 2005, 11:26    Post subject: CUPS  

Good morning Rarsa,

I have done another attempt with a new pristine install of Chubby Puppy, to no avail.

Here is my step by step from this morning, and an attached error log file after changing the LogLevel info to LogLevel debug with leafpad.

Let me know if I've skipped anything, or you want me to retry something.

Thanks for the direction last night on the IRC. What a learning experience.

Dewdrop

WHAT I DID

1.Downloaded the cups-install.tar.gz file, and put it into its own folder – (CUPS) - in the “MY Applications” folder.
2.Line 3 of the instructions has an error – it is missing a dash in the instructions “tar -xvzf cupsinstall.tar.gz” it should read “tar -xvzf cups-install.tar.gz”
3.Line 4 – executed the instruction and installed “sh cups-install.sh”
4.Line 5 – skipped – don't have server.
5.Line 6 – executed the instruction and installed “sh espgs-install.sh”
6.Line 7 – executed the instruction and installed “sh hpijs-install.sh”
7.Line 8 – executed the instruction and installed “sh /etc/rc.d/rc.cups restart”
8.Line 9 – I opened the browser and went to the localhost address.
9.Line 10 – Added my printer by following the links on the pages.
10.Clicked on the button that said “Print Test Page”. Northing happened. The information indicated that the page had been aborted.
The following instructions appear to be directed specifically at me as I was trying to do the tests. So this time I did not do them.

11. I did not delete the printer that had been created since this was the first try with a “pristine” install.
12. I did not re-install a new printer.

I did the following after the failed first attempt.
13.I executed the instruction “tar -czf/root/log.tar.gz /var/log/cups/error-log and received the following response to that command.
# tar -czf /root/log/.tar.gz /var/log/cups/error_log
tar: Removing leading `/' from member names
tar (child): /root/log/.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now

14.I looked for an error-log file in root and didn't find any.
15.I executed the instruction “tar -cvzf log.tar.gz /var/log/cups and received the following response to that command.

# tar -cvzf log.tar.gz /var/log/cups/*
tar: Removing leading `/' from member names
var/log/cups/access_log
var/log/cups/error_log
#
16.I looked into the CUPS folder that I had created in MY-Applications – where the initial files had been un-tarred into, and there was the log.tar.gz file.
17. I moved the log.tar.gz file from the CUPS folder into the MY-Applications folder.
18.I executed the command “leafpad /etc/cups/cupsd.conf”, changed the “LogLevel info” to “LogLevel debug”, then saved and closed that window.
19. I then went to the localhost page again, deleted the old printer information, re-entered the printer information, tried to print a test page with no success – this time the status is “aborted”.
20.I executed the instruction “tar -cvzf log.tar.gz /var/log/cups/* and received the following:
# tar -cvzf log.tar.gz /var/log/cups
tar: Removing leading `/' from member names
var/log/cups/
var/log/cups/access_log
var/log/cups/error_log
#
21. I went to the CUPS folder and found the log.tar.gz file.
22. I am sending that file along with this step by step to you on the forum.


I believe that I still have a copy of the log file prior to changing the instructions with leafpad if you need them.
log.tar.gz
Description 
gz

 Download 
Filename  log.tar.gz 
Filesize  2.03 KB 
Downloaded  335 Time(s) 
Back to top
View user's profile Send private message 
rarsa


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

PostPosted: Tue 06 Sep 2005, 12:59    Post subject:  

nice step by step.

You missed restarting cups after modifying the LogLevel

sh /etc/rc.d/rc.cups stop
sh /etc/rc.d/rc.cups start

Any way, It seems that the you got the same error regarding foomatic.

Actually this part is beyond my instructions as it seems that CUPS is correctly installed and working in your system.

If you remember my step 7 is "7. Install the CUPS drivers for the printers connected to your puppy computer according to your driver's instructions."

That is the tricky part with CUPS. In Mepis you may already had that driver installed and configured that's why you were able to use it. In Puppy's case, it does not have nearly as many drivers as other distributions in an effort to keep it small.

Then, what's next you may ask? Well, I'll thank you for your help testing the instructions and I'll move on... hehe, not really, I'll make my best to have your printers working.

This is what I found regarding foomatic:
http://www.linuxprinting.org/kpfeifle/LinuxKongress2002/Tutorial/II.Foomatic-User/II.tutorial-handout-foomatic-user.html

But don't jump at it just yet. I have already done half of the steps shown on that page. I've already included the driver you need (hpijs).

We will have to go through the instructions starting on the section titled "Getting the configuration file for your spooler".

Please read them but don't follow them yet.

I will try to package the alternative method for using the foomatic tools.

I'll let you know when it's ready. (Maybe later today. I'm working right now).
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: Tue 06 Sep 2005, 15:27    Post subject: CUPS  

Hi Rarsa,

Darn!!! javascript:emoticon('Shocked')

I was sure I had everything covered.....Smile So much for "sure-ness"

Now. I will get the information that you describe about foomatic and get it printed out so I have a paper copy. I'll read it over, but not jump at anything yet, paying special attention to the “Getting the configuration file for your spooler” and whatever follows.


Thinking that the following might help, I just did this:

A MEPIS printer step by step

Here's my step by step for getting the printer going using Simply MEPIS, v 3.3.2 test03.

I have no idea if this gives you an idea about something....shortening the “re-invention of the wheel” sort of thing, but I hope so.

I'll await your further instructions in the continuing saga of Puppy and CUPS.

Dewdrop


Loaded Mepis

Went to Control Center/peripherals

Clicked on Add Printer

Info came up says that the print system currently used is CUPS and that it's connected to localhost:631

Clicking on the Add Printer tab brings up the KDE Print Wizard.

As part of that window, I clicked on an area that says “the KDE Printing Team”. That brought up the following internet address.

http://printing.kde.org/

I then clicked on “next” and the Wizard gave me a listing entitled “Back end Selection” - I clicked on: Local Printer (parallel, serial, USB), then clicked the “Next” button.

This brought up the listing that also comes up with your Puppy effort - namely, the area labelled “USB” and shows my printer 6540...as does your listing. I clicked on my model under the USB listing.

This brought up the Printer Model Selection screen ....just like yours ... giving the various brands to select from. I clicked on HP and chose Deskjet 6540....again same as yours.

Then clicked “Next”. This brings up the Printer Test Window showing the Manufacturer: HP
Model: Deskjet 6540
Description: HP Deskjet 6540 (Foomatic + hpijs)
with the buttons “test” and “settings”.

I clicked the “test” button and a windows came up that says “Test page successfully sent to printer. Wait until printing complete then click OK button.” This waiting until the test is complete is important. I didn't once in Mepis, and things didn't “go as expected”. I forget now, but I didn't get a printer loaded...was the bottom line.

After a couple of seconds, the printer started printing the familiar CUPS test page. I waited until it completed the printing and clicked the “next” button.

This brings up the Banner selection area....no action on my part,....clicked “next”.

This brings up the Printer Quota Settings...no action on my part, ... clicked “next”.

This brings up the Users Access settings ....denied users... no action on my part,... clicked “next”.

This brings up the General information page where you give the printer a name...mandatory....and it has to be a single word. I insert HP in Name, leaving location blank. The Description line already has HP Deskjet 6540 information listed. I click “Next”

This bring up the Confirmation page where they listed:

General; Backend; Driver; as follows:

General
Type: local printer (parallel, serial, USB)
Name: HP
Location:
description: HP Deskjet 6540

Backend
Device:

Driver
Type: DB driver
Manufacturer: HP
Model: Deskjet 6540
Description: HP Deskjet 6540 (Foomatic + hpijs)

I then clicked “finish” and the Printers – Control Center window re-appears showing my HP printer.

I can now close the window, or continue setting up other items listed. I closed the window.

My printer is now working. I know this because I went to the forum page where you responded to my step by step from this morning, copied your response, put it into OO Writer, and printed it out.

END OF Step by Step for Mepis.















Cool Cool Cool Cool Cool Shocked Shocked Shocked Shocked Shocked Shocked [img] Shocked Shocked Shocked [/img]
Back to top
View user's profile Send private message 
rarsa


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

PostPosted: Tue 06 Sep 2005, 23:25    Post subject:  

I think we are close.

Please send me the result of the following command:
Code:
ls -la /usr/lib/cups/filter


I am 99.99% sure that the foomatic filter comes with the hpijs installation. The problem is that the foomatic tools are writen in Perl (a scripting language) and you don't have the Perl interpreter.

Try this command:
Code:
perl -h
Does that show you the perl usage with all the parameters? or Does it say command not found?

If it is command not found, install Perl. Perl is a PupGet. You can install it through the Puppy start menu, under "Setup | PupGet package manager". Follow the instructions and install it.

After that try printing again the test page.
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: Wed 07 Sep 2005, 11:48    Post subject: CUPS  

Hi Rarsa,

I believe that I should be in the install from yesterday, so I loaded that onto my machine - in other words, this is not a pristine install.

I then went to the folder where I have the CUPS files located and opened the xterm terminal from inside that folder. I don't know if this procedure is what you were expecting, but here are the results of your requests.

Dewdrop



[quote]Please send me the result of the following command:
Code:
ls -la /usr/lib/cups/filter

BusyBox v0.60.5 (2004.09.18-02:04+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# ls -la /usr/lib/cups/filter
drwxr-xr-x 2 root root 1024 Sep 6 09:02 .
drwxr-xr-x 6 root root 1024 Oct 14 2004 ..
lrwxrwxrwx 1 root root 21 Sep 6 09:02 foomatic-rip -> /usr/bin /foomatic-rip
-rwxr-xr-x 1 root root 4748 Jan 4 2005 gziptoany
-rwxr-xr-x 1 root root 43880 Jan 4 2005 hpgltops
-rwxr-xr-x 1 root root 24004 Jan 4 2005 imagetops
-rwxr-xr-x 1 root root 56868 Jan 4 2005 imagetoraster
-rwxr-xr-x 1 root root 689216 Jan 4 2005 pdftops
-rwxr-xr-x 1 root root 30664 Jan 4 2005 pstops
-rwxr-xr-x 1 root root 1888 Dec 15 2003 pstopxl
-rwxr-xr-x 1 root root 1856 Dec 15 2003 pstoraster
-rwxr-xr-x 1 root root 7872 Jan 4 2005 rastertodymo
-rwxr-xr-x 1 root root 12948 Jan 4 2005 rastertoepson
-rwxr-xr-x 1 root root 12500 Jan 4 2005 rastertohp
-rwxr-xr-x 1 root root 36516 Jan 4 2005 texttops
#
# perl -h
perl: No such file or directory
#


Per your instructions, I shall now install the Perl PupGet.

Dewdrop
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 16 [229 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 14, 15, 16 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.1134s ][ Queries: 13 (0.0066s) ][ GZIP on ]