LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-27-2005, 12:22 AM   #1
chrisidaho
LQ Newbie
 
Registered: Feb 2005
Location: na
Distribution: RH/Slack
Posts: 13

Rep: Reputation: 0
Slack 10; HP 3845; CUPS; Unable to print from command line


Background: Running Slack 10, have HP deskjet 3845 (usb printer), using CUPS.

Problem: CUPS prints out the test page fine, KDE printer manager prints out test page fine, I can print text from KDE based applications, (no graphics however, like PDF's) but no other programs seem to be able to find the printer, and I can't do anything at the command line:

chris@home:~$ lpstat
Printer 'HomePrinter@localhost' - cannot open connection - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
Printer 'HomePrinter@localhost' - cannot open connection - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports

What am I missing?

Thanks in advance,
Chris
 
Old 03-27-2005, 10:14 AM   #2
herbc
Member
 
Registered: May 2004
Location: United States
Distribution: Slackware 10.0
Posts: 72

Rep: Reputation: 15
Only a guess. Did you rmove the lp and cups packages after install, then re-install the cups package? If both packages were selected during the install (I believe they are as default) lp overwrites the links setup by the cups package.

/herbc
 
Old 03-27-2005, 10:33 PM   #3
chrisidaho
LQ Newbie
 
Registered: Feb 2005
Location: na
Distribution: RH/Slack
Posts: 13

Original Poster
Rep: Reputation: 0
No, I didn't, but could you tell me what the links should be so I can verify their status before I try that?
 
Old 03-28-2005, 07:54 AM   #4
herbc
Member
 
Registered: May 2004
Location: United States
Distribution: Slackware 10.0
Posts: 72

Rep: Reputation: 15
ls -l /usr/bin/lp*

lp -> lp-cups
lp-lprng -> lpr
lpq -> lpq-cups
lpr -> lpr-cups
lprm -> lprm-cups
lpstat -> lpstat-cups

More links in /usr/man[1358]

From Patrick's e-mail to root (login as root, run mail from CLI, select message 2).

There is also another printing system called CUPS that's becoming more
popular. CUPS takes the place of lprng to spool print jobs. It also
does many of the same things as apsfilter. If you've done a full
installation and you want to use CUPS, you might want to reinstall
the CUPS package to set various links (like /usr/bin/lpr) to point
to the CUPS versions -- these locations are shared between LPRng and
CUPS, and all of the links will be pointed to the programs from
whichever package (cups or lprng) was installed last. Normally this
will be LPRng.

Good hunting. /herbc
 
Old 03-30-2005, 12:05 AM   #5
chrisidaho
LQ Newbie
 
Registered: Feb 2005
Location: na
Distribution: RH/Slack
Posts: 13

Original Poster
Rep: Reputation: 0
herbc,
You were right, it was a symbolic link issue. They all were pointing to lpd so I changed them to *-cups and it works just great.

Thanks,
Chris
 
Old 04-27-2005, 01:21 AM   #6
chrisidaho
LQ Newbie
 
Registered: Feb 2005
Location: na
Distribution: RH/Slack
Posts: 13

Original Poster
Rep: Reputation: 0
One other issue with my printer: HPIODDIR and HPSSDDIR in the rc.d hplip file aren't pointed to anything. Once I modified (the rc.hplip file since I use slackware) hplip file to point (as below) they came up fine upon restarting hplip:
HPIODDIR=/usr/sbin
HPSSDDIR=/usr/share/hplip

Chris
Chris
 
  


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
Unable to print with CUPS on Kubuntu perlmonger Linux - Hardware 30 08-04-2007 02:51 PM
Unable to print to WindowsXP via CUPS cwaltrs Linux - Networking 4 09-25-2006 08:24 AM
Unable to print to HP Deskjet 5740 with CUPS Davidian1024 Linux From Scratch 1 08-01-2005 11:36 AM
unable to print with CUPS if printer wasn't on when computer start sirpelidor Linux - Software 1 10-03-2004 09:24 PM
print from command line, normally use cups itsjustme Linux - General 2 06-14-2004 11:14 AM


All times are GMT -5. The time now is 09:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration