LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2004, 04:08 AM   #1
sKru
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
parport0 error using my HP printer


Hi all,
i'm using Slackware 9.1 and i wanna try to use my HPOfficeJet G85 using parallel port.
My linux box is used also as samba server so i would like to print from any MS client
using the box as print server.
I recompile the kernel 2.6.6 and attach to parralel print port my HP.
At startup i see:
kernel: parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
kernel: parport0: irq 7 detected
kernel: parport0: Printer, Hewlett-Packard OfficeJet G85

So i think it's all right. Then i install LPRNG software and create a queue.
When i check if it's all right after editing printcap file using checkpc -f command, it
gives to me that response:
Warning - HPDeskjet: cannot open lp device '/dev/parport0' - Permission denied

if i change permissione that respose:
Warning - HPDeskjet: cannot open lp device '/dev/parport0' - No such device or address

So when i try to print using a WindowsClient i obtein the same above result:

opening device '/dev/parport0' at 2004-05-13-19:11:32.335 ## A=nobody@nettuno+188 number=188 process=228
cannot open '/dev/parport0' - 'Permission denied', attempt 1, sleeping 10 at 2004-05-13-19:11:32.336 #

or with right permission:
opening device '/dev/parport0' at 2004-05-13-19:22:42.358 ## A=nobody@nettuno+443 number=443 process=468
cannot open '/dev/parport0' - 'No such device or address', attempt 1, sleeping 10 at 2004-05-13-19:22:42.359

I'm going mad =/ please any good advice will be very appreciated
Thanks a lot

sKru
 
Old 05-17-2004, 06:49 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Try (as root)
echo "hello" > /dev/lp0
 
Old 05-17-2004, 10:46 AM   #3
sKru
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
root@nettuno:/# echo 'hello' > /dev/lp0
-bash: /dev/lp0: No such device or address
 
Old 05-17-2004, 11:58 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Very interesting. Try
mknod -m 666 /dev/lp0 c 6 0
 
Old 05-18-2004, 02:23 AM   #5
sKru
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
root@nettuno:/# mknod -m 666 /dev/lp0 c 6 0
mknod: `/dev/lp0': File exists

the same thing if i use parport0 =/

Thank you very much fot your interesting about my problem, i don't know what else try. HEre i paste what kernel said at startup:

nettuno kernel: parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
nettuno kernel: parport0: irq 7 detected
nettuno kernel: parport0: Printer, Hewlett-Packard OfficeJet G85
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
accidentally deleted /dev/parport0 ebil Linux - Hardware 5 04-21-2005 08:35 PM
Nothing Prints. Problem with /dev/parport0 VorlonInfoTech Linux - Hardware 3 02-20-2005 02:39 PM
Parport0 error with my HPOfficeJetG85 sKru Linux - Hardware 0 05-17-2004 04:22 AM
Howto accessing parport0 Li... Debian 1 04-10-2004 03:50 PM
/dev/parport0 probs The Yeti Lives Linux - General 0 08-06-2003 03:58 AM


All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration