View previous topic :: View next topic |
Author |
Message |
alexshiozaki n00b
Joined: 31 Mar 2003 Posts: 30
|
Posted: Thu Apr 24, 2003 4:57 am Post subject: printing test using cat fails |
|
|
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 |
|
|
Jeld Tux's lil' helper
Joined: 28 Jun 2002 Posts: 84 Location: NYC, US
|
Posted: Thu Apr 24, 2003 5:38 am Post subject: |
|
|
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 |
|
|
alexshiozaki n00b
Joined: 31 Mar 2003 Posts: 30
|
Posted: Sat Apr 26, 2003 12:17 am Post subject: |
|
|
# 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 |
|
|
plasmaroo Retired Dev
Joined: 24 Apr 2003 Posts: 50
|
Posted: Sat Apr 26, 2003 12:36 pm Post subject: |
|
|
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.
emerge cups
emerge gimp-print-cups
emerge gs
/etc/init.d/cupsd restart
Then go to http://127.0.0.1:631/admin and follow on from there. |
|
Back to top |
|
|
alexshiozaki n00b
Joined: 31 Mar 2003 Posts: 30
|
Posted: Sun Apr 27, 2003 8:24 pm Post subject: |
|
|
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 |
|
|
alexshiozaki n00b
Joined: 31 Mar 2003 Posts: 30
|
Posted: Tue Apr 29, 2003 1:53 am Post subject: |
|
|
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 |
|
|
|