View previous topic :: View next topic |
Author |
Message |
squares016 n00b
Joined: 29 Jan 2004 Posts: 52
|
Posted: Fri Sep 17, 2004 2:30 am Post subject: Problem with test printing using cat |
|
|
I am trying to get my printer working with cups and foomatic, the printing guide. But when I do try using cat to print, as they said in the guide, I get this error message:
Code: | bash-2.05b# cat test.txt > /dev/lpO
bash: /dev/lpO: Permission denied
|
I have tried to change the permissions on the /dev/lp0 file, and still get the same error. The printer is a parrallel port and is a Canon BJC-6000. Please help. |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Sep 17, 2004 12:25 pm Post subject: |
|
|
- What are the permissions on /dev/lp0 ?
- Is the user in the printer group ?
- Is there a printer group?
The cat stuff is nonsense; use
like normal people. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Fri Sep 17, 2004 1:39 pm Post subject: |
|
|
I find the cat stuff quite kewl.. Try doing that on windows |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Sep 17, 2004 2:06 pm Post subject: |
|
|
Code: | type test.txt > lpt1: |
Even works in DOS. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Sep 17, 2004 3:01 pm Post subject: |
|
|
adaptr wrote: | Code: | type test.txt > lpt1: |
Even works in DOS. | If you've got a printer that's actualy smart enough to do something usefull with ascii text sent to it. It's been a few years since that was a given. |
|
Back to top |
|
|
squares016 n00b
Joined: 29 Jan 2004 Posts: 52
|
Posted: Fri Sep 17, 2004 8:43 pm Post subject: |
|
|
Quote: | - What are the permissions on /dev/lp0 ? |
The permissions on all are, read write and execute.
Quote: | - Is the user in the printer group ?
- Is there a printer group? |
No, I don't think there is a printer group. How could I create a group for the printer?
The "lpr test.txt" didn't do anything either:
Code: | bash-2.05b# lpr test.txt
lpr: error - scheduler not responding! |
|
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Sep 17, 2004 9:33 pm Post subject: |
|
|
The printer grout is called lp and I believe it is created by default.
Quote: | lpr: error - scheduler not responding! |
That sounds like cupsd isn't running. |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sat Sep 18, 2004 8:19 pm Post subject: |
|
|
You do not have CUPSd running - so no printing for you until you do !
Code: | rc-update add cupsd default
/etc/init.d/cupsd start |
_________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
squares016 n00b
Joined: 29 Jan 2004 Posts: 52
|
Posted: Sat Sep 18, 2004 8:21 pm Post subject: |
|
|
I have one more question. I added root to the printer group, and I think it worked. It didn't give me any error messages, although it did not print anything. So I was wondering if my printer (Canon BJC-6000) would be considered a PPA-Based printer? |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sat Sep 18, 2004 8:26 pm Post subject: |
|
|
Which is what ?
Do you mean PPD ? _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Sat Sep 18, 2004 8:36 pm Post subject: |
|
|
Did you install the gimp-print package? You need that in order to have the correct driver for that printer. |
|
Back to top |
|
|
squares016 n00b
Joined: 29 Jan 2004 Posts: 52
|
Posted: Sat Sep 18, 2004 8:42 pm Post subject: |
|
|
No I have not installed the gimp print package yet. Like it says in the printing guide:
Quote: | Note: Some printers (especially the PPA-based ones like HP's 720 series, 820 series and 1000 series) don't accept ASCII-feed. If you have such a printer, remember that you have a PPA-based printer and that this test will fail even if the printer works. |
So, that's what I'm wondering about. And I have only got to this part so far. |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Sat Sep 18, 2004 8:51 pm Post subject: |
|
|
Oh, well don't worry about it then. Get the driver installed and set up and see if you can print to it then.
I think that document's a little out of date. They should probably change "Some printers don't accept ascii feed" to "Most inkjet and some laser printers don't accept ascii feed." |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Sep 19, 2004 8:32 pm Post subject: |
|
|
Probably, which sucks - any printer that professes PS level 2 ability has to accept full ASCII feeds. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
|