Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with test printing using cat
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
squares016
n00b
n00b


Joined: 29 Jan 2004
Posts: 52

PostPosted: Fri Sep 17, 2004 2:30 am    Post subject: Problem with test printing using cat Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Sep 17, 2004 12:25 pm    Post subject: Reply with quote

- 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
Code:
lpr test.txt

like normal people.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Fri Sep 17, 2004 1:39 pm    Post subject: Reply with quote

I find the cat stuff quite kewl.. Try doing that on windows :)
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Sep 17, 2004 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Sep 17, 2004 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
squares016
n00b
n00b


Joined: 29 Jan 2004
Posts: 52

PostPosted: Fri Sep 17, 2004 8:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Sep 17, 2004 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Sep 18, 2004 8:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
squares016
n00b
n00b


Joined: 29 Jan 2004
Posts: 52

PostPosted: Sat Sep 18, 2004 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Sep 18, 2004 8:26 pm    Post subject: Reply with quote

Which is what ?
Do you mean PPD ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sat Sep 18, 2004 8:36 pm    Post subject: Reply with quote

Did you install the gimp-print package? You need that in order to have the correct driver for that printer.
Back to top
View user's profile Send private message
squares016
n00b
n00b


Joined: 29 Jan 2004
Posts: 52

PostPosted: Sat Sep 18, 2004 8:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sat Sep 18, 2004 8:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sun Sep 19, 2004 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
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