LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-23-2004, 09:24 AM   #1
Gary_Menegon
Member
 
Registered: Jun 2004
Location: Joliet, Illinois
Distribution: slackware
Posts: 38

Rep: Reputation: 15
adding printer in slackware 2.4.22


I have edited /etc/printcap, info below:

print1|The printer:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/print1:\
:if=/var/spool/lpd/lp/filter:\
:mc=2:\
:sh:\
:lf=/var/log/lpd-error.log:


When I run lpc status I get:


Printer 'print@localhost' - cannot open connection - No such file or directory Make sure the remote host supports the LPD protocol



This is a local printer, I don't understand why I am getting such an error, or where to look.

Thankyou in advance for any help or suggestions.

Gary
 
Old 06-23-2004, 09:42 AM   #2
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Rep: Reputation: 15
Hey Gary. First, does your printer even work? Second, are you trying to use LPRng with CUPS installed? I ran into a couple problems with both of these spooler systems conflicting sometimes. As far as lpc status, try using lpq , does that work?
 
Old 06-23-2004, 10:45 AM   #3
Gary_Menegon
Member
 
Registered: Jun 2004
Location: Joliet, Illinois
Distribution: slackware
Posts: 38

Original Poster
Rep: Reputation: 15
adding printer in Slackware 2.4.22

The printer does work, I have used it on another system. I have also type:

echo "test printer" > /dev/lp0

and have received a reply on the printer.

The printer is an Epson action printer t1000

To answer your second question, I am trying to add this printer by hand, in other words editing the /etc/printcap and adding necessary directories and files.

Maybe that is where I am making a mistake, I have added a directory /print1 under /var/spool/lpd , and files under print1 of .seq, errs, lock, status. I have also changed permissions. Am I forgetting something?

Thankyou,

Gary
 
Old 06-23-2004, 06:04 PM   #4
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 540

Rep: Reputation: 32
I'd suggest you configure your printer by the CUPS web interface.
Open a web browser (konqueror or mozilla for instance) at
localhost:631 (no dial connection of course)
the "add printer" button and follow instructions.
Very easy and fast
Hope this helps
Ciao
 
Old 06-24-2004, 09:05 AM   #5
Gary_Menegon
Member
 
Registered: Jun 2004
Location: Joliet, Illinois
Distribution: slackware
Posts: 38

Original Poster
Rep: Reputation: 15
adding printer in Slackware 2.4.22

Thanks for the suggestion, but this computer is a stand-alone. It is not on any network. I would really like to add a printer by commands and editing files. I am a newbie to Linux, but not new to command lanquages. I have worked many years in the telco industry with PDS and TL1, which are proprietary command lanquages.

Thankyou,

Gary
 
Old 06-24-2004, 01:16 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
this may help.

http://www.cups.org/sam.html#4_3

good luck.
 
Old 07-02-2004, 09:01 AM   #7
Gary_Menegon
Member
 
Registered: Jun 2004
Location: Joliet, Illinois
Distribution: slackware
Posts: 38

Original Poster
Rep: Reputation: 15
I have now used CUPS to add the printer, but I am still getting the same type of error message when I try to print. Error message is:

sending job ` root@darkstar + 694` to printer1@localhost Cannot open connection to localhost - no such file or directory make sure the remote host supports the LPD protocol

This is a directly connected printer, could someone tell me why I am receiving such an error message and what is wrong?

Thankyou,

Gary
 
Old 07-02-2004, 10:01 AM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
is the cups daemon running?
 
Old 07-05-2004, 10:08 AM   #9
Gary_Menegon
Member
 
Registered: Jun 2004
Location: Joliet, Illinois
Distribution: slackware
Posts: 38

Original Poster
Rep: Reputation: 15
Yes, the CUPS and LPD daemons are running.

Gary
 
Old 07-05-2004, 11:04 AM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
here is something that may help

http://www.linuxquestions.org/questi...539#post806539

hope that helps.
good luck.
 
  


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
I need help adding a printer rehuntley Linux - Newbie 3 09-11-2005 08:43 PM
Adding a printer krackerroot Linux - Networking 1 10-12-2003 02:14 PM
Adding a local printer harperonline Linux - Hardware 3 08-12-2003 11:39 AM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 06:37 PM
adding a printer Schizo265 Linux - Hardware 2 12-01-2002 05:49 AM


All times are GMT -5. The time now is 07:09 AM.

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