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

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
alexshiozaki
n00b
n00b


Joined: 31 Mar 2003
Posts: 30

PostPosted: Thu Apr 24, 2003 4:57 am    Post subject: printing test using cat fails Reply with quote

i have an hpdeskjet722c connected to my computer through a parallel port. i selected "Parallel port support", "PC-style hardware", and "Parallel printer support". when i run cat test.txt > /dev/lp0, i receive the error message -bash: /dev/lp0: Permission denied. anybody got a solution?
Back to top
View user's profile Send private message
Jeld
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 84
Location: NYC, US

PostPosted: Thu Apr 24, 2003 5:38 am    Post subject: Reply with quote

How about cat test | lpr. Does that work?
_________________
package JAPH;sub x{$/='$';@1=map{$_=ord;$_--;chr}
split//,<DATA>;@2=map{$_=ord;$_++;chr}split//
,<DATA>;$_=sub{$.++%2?shift@2:shift@1};bless$_;}
1;$x=JAPH->x;for(1..25){print&$x,;}__DATA__
Kt!ouf!fmIdf"$ts@ngqOq`jq
Back to top
View user's profile Send private message
alexshiozaki
n00b
n00b


Joined: 31 Mar 2003
Posts: 30

PostPosted: Sat Apr 26, 2003 12:17 am    Post subject: Reply with quote

# cat test.txt | lpr
lpr: error - no default destination available.

do you by any chance know how to make a default destination available?
Back to top
View user's profile Send private message
plasmaroo
Retired Dev
Retired Dev


Joined: 24 Apr 2003
Posts: 50

PostPosted: Sat Apr 26, 2003 12:36 pm    Post subject: Reply with quote

Looks as you don't haven't chmod'ed /dev/lp0 right. Try doing that from root.

Some printers don't like plain ASCII data, and need it in their scary format. Anyhow, use CUPS. It helps.

:arrow: emerge cups
:arrow: emerge gimp-print-cups
:arrow: emerge gs
:arrow: /etc/init.d/cupsd restart

Then go to http://127.0.0.1:631/admin and follow on from there.
Back to top
View user's profile Send private message
alexshiozaki
n00b
n00b


Joined: 31 Mar 2003
Posts: 30

PostPosted: Sun Apr 27, 2003 8:24 pm    Post subject: Reply with quote

the reason i'm trying to get printing up with cat is to test it before i actually install cups (which is what the gentoo printing guide suggests). i was running cat test.txt | lpr as root before. so far what i've done to get it working is emerge cups, emerge foomatic (i don't think that affects cat but just mentioning) and enabled Parallel port support, PC-style hardware, and Parallel printer support in the kernel (not compiled as modules). btw the link doesn't work :(
Back to top
View user's profile Send private message
alexshiozaki
n00b
n00b


Joined: 31 Mar 2003
Posts: 30

PostPosted: Tue Apr 29, 2003 1:53 am    Post subject: Reply with quote

i've checked the directory /dev and there doesn't seem to actually be an lp0 (or lpanything, for that matter). is that my problem? did i miss something in the kernel?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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