LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Adding a printer (https://www.linuxquestions.org/questions/linux-software-2/adding-a-printer-750642/)

Gary_Menegon 08-27-2009 09:34 AM

Adding a printer
 
--------------------------------------------------------------------------------

I have used the command lpadmin -p laserjetV -m laserjet.ppd -V parallel -D "HP laserjet V" -L "office 502" successfully, however when I do a lpstat I still get the error message printer 'laserjetV@localhost' - cannot open connection - no such file or directory make sure the remote host supports the lpd protocol. I get a similar error regardless of what type of printer I try to add. What am I forgetting? Does someone know what is causing this error message?

Thankyou,
Gary
__________________
Gary A. Menegon

bigrigdriver 08-27-2009 05:57 PM

1. check your /etc/hosts file. make sure there is a line which reads something like:
127.0.0.1 localhost mycomputer (or whatever you named your computer when you installed Linux). Without that line, the system may not recognize "localhost", but it may recognize "mycomputer". I've tripped myself up with that oversight a few times.

2. Which distro are you using? most distros have service management utilities. find out which utilities your distro uses for printer management, and use that to try to add a printer.

3. If you are using the CUPS prining system, use a browser and enter the url http://localhost:631 to get into the CUPS management utilities. use that to add a printer.

As a side note: with CUPS, you can have one physical printer, but you can set up several virtual printers depending on the printing tasks you most commonly need. each virtual is configured and named for the particular task. then, when you need to print something, select the appropriate virtual printer.


All times are GMT -5. The time now is 11:56 AM.