3

I'm trying to port a linux program to windows 7, that receives an lpr command from a websocket and sends the command to a local vinyl cutter. The windows lpr implementation is different and there is not a lot of advice to go by.

I have enabled the LPR services in windows, and have installed the vinyl cutter as an LPR printer. It prints fine from illustrator or something. However, trying to lpq the printer, or lpr it,

C:\Users\M> lpq -S 127.0.0.1 -P vinyl
Windows LPD ServerError: specified printer does not exist

C:\Users\M> lpq -S <full computer hostname> -P vinyl
Windows LPD ServerError: specified printer does not exist

C:\Users\M> lpq -S google.com -P vinyl
*times out*

This error is pretty hard to find help with by googling; since my printer is local, could it be a permissions issue? I know little about windows. I tried to do it in cygwin but cygwin seems to want to use the windows lpr version too.

3
  • h30499.www3.hp.com/t5/System-Administration/… Just a shot in the dark...? Sep 7, 2014 at 20:47
  • Just noticed this question is still open. Did you ever get it solved?
    – fixer1234
    Nov 12, 2014 at 9:31
  • Nope. I ended up having to use the windows "print" command, instead of the windows lpr implementation for my application (printing from websockets). This means my program can't be OS independent :(
    – erg
    Nov 15, 2014 at 13:58

2 Answers 2

2

The LPD server in Windows doesn't like loopback addresses, try using the actual IP address on the network adapter instead.

0

Most devices of this kind have Windows drivers and you jump through these kinds of hoops to get them to work in Linux. I would start by trying to use a Windows driver and software with the device connected to the Windows machine. It is usually easier to get a Linux machine to share a Windows device than the other way around. A workaround might even be to just set it up on both machines as a local printer and then move the cable between machines.

Can the device be set up as a network device connected directly to the router (an easier setup)?

If there is a reason why the device needs to be connected to the Linux computer, you might be looking at a permissions issue. Verify that the device is set for public sharing (any user).

Another thought: there are a number of ways to address a networked printer. Try one of the other methods of specifying it (ipp, http, AppSocket, etc.). If you have another linux computer, an easy way is to let it find the printer and then copy the URI.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .